/* ============================================================
   Reach CS — shared stylesheet
   Executive / modern SaaS aesthetic, dark navy
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=Source+Serif+4:opsz,wght@8..60,400;8..60,500;8..60,600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --navy-950: #060b16;
  --navy-900: #0a1222;
  --navy-850: #0d182d;
  --navy-800: #101f3a;
  --navy-700: #16294b;
  --line: rgba(120, 160, 230, 0.14);
  --line-strong: rgba(120, 160, 230, 0.28);
  --white: #f5f8ff;
  --mist: #aebbd4;
  --mist-dim: #7384a3;
  --blue: #3d7dff;
  --blue-bright: #5b9bff;
  --cyan: #46d4e0;
  --glass: rgba(20, 36, 66, 0.55);
  --glass-hi: rgba(34, 56, 100, 0.5);
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1200px;
  --shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.75);
  --grad-blue: linear-gradient(135deg, #3d7dff 0%, #46d4e0 100%);
  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'Source Serif 4', Georgia, serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--navy-950);
  color: var(--mist);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient background field */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 700px at 78% -8%, rgba(61, 125, 255, 0.18), transparent 60%),
    radial-gradient(900px 650px at 10% 8%, rgba(70, 212, 224, 0.08), transparent 55%),
    var(--navy-950);
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.5;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 0%, transparent 75%);
          mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 0%, transparent 75%);
}

h1, h2, h3, h4, .display { font-family: var(--font-display); color: var(--white); line-height: 1.08; letter-spacing: -0.02em; font-weight: 700; }

a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
section { position: relative; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--blue-bright);
  display: inline-block;
  margin-bottom: 18px;
}

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--white); transition: color 0.35s ease; }
.logo .mark { width: 34px; height: 40px; flex: 0 0 auto; display: block; color: var(--white); transition: color 0.35s ease; }
.logo-text { font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; color: currentColor; letter-spacing: -0.01em; transition: color 0.35s ease; }
.logo-text span { color: var(--blue-bright); }

/* ---------- Nav ---------- */
/* Transparent over hero; turns into a blurred navy bar on scroll */
header.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease, box-shadow 0.35s ease;
}
header.nav.scrolled {
  background: rgba(8, 14, 28, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 40px -28px rgba(0, 0, 0, 0.9);
}
/* On scroll the logo mark adopts the bright blue accent */
header.nav.scrolled .logo .mark { color: var(--blue-bright); }
header.nav.scrolled .logo-text { color: var(--white); }

.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; transition: height 0.35s ease; }
header.nav.scrolled .nav-inner { height: 66px; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { font-family: var(--font-display); font-size: 0.92rem; font-weight: 500; color: rgba(245, 248, 255, 0.86); transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a.btn-primary { color: #04101f; }
.nav-toggle { display: none; background: none; border: 0; color: var(--white); font-size: 1.5rem; cursor: pointer; }

/* Body needs top offset since header is now fixed, but hero sits under it intentionally.
   Inner pages start with content below the fold, so add scroll padding for anchors. */
html { scroll-padding-top: 90px; }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-display); font-weight: 600; font-size: 0.92rem;
  padding: 13px 24px; border-radius: 999px; display: inline-flex; align-items: center; gap: 9px;
  cursor: pointer; border: 1px solid transparent; transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn-primary { background: var(--grad-blue); color: #04101f; box-shadow: 0 12px 30px -10px rgba(61, 125, 255, 0.6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -10px rgba(61, 125, 255, 0.8); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); color: var(--white); border-color: var(--line-strong); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); transform: translateY(-2px); }
.btn .arr { transition: transform 0.2s; }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- Section heading ---------- */
.section-head { max-width: 720px; margin-bottom: 54px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: 16px; }
.section-head p { font-size: 1.08rem; color: var(--mist); }
.pad { padding: 96px 0; }
.pad-sm { padding: 64px 0; }

/* ---------- Glass card ---------- */
.card {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  backdrop-filter: blur(14px);
  transition: transform 0.3s, border-color 0.3s, background 0.3s;
  position: relative;
  overflow: hidden;
}
.card:hover { transform: translateY(-5px); border-color: var(--line-strong); background: var(--glass-hi); }
.card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.card p { font-size: 0.98rem; }
.card .ic {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(61, 125, 255, 0.12); border: 1px solid var(--line-strong); margin-bottom: 18px;
}
.card .ic svg { width: 22px; height: 22px; stroke: var(--blue-bright); fill: none; stroke-width: 1.7; }

.grid { display: grid; gap: 22px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Stats ---------- */
.stat-num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.1rem, 5vw, 3.2rem); color: var(--white); letter-spacing: -0.03em; background: var(--grad-blue); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; line-height: 1; }
.stat-lbl { font-family: var(--font-display); font-size: 0.86rem; color: var(--mist-dim); margin-top: 8px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 56px 0 36px; margin-top: 40px; background: var(--navy-900); }
footer .logo .mark { color: var(--blue-bright); }
footer .logo .logo-text { color: var(--white); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
footer h4 { font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mist-dim); margin-bottom: 16px; font-weight: 600; }
footer ul { list-style: none; }
footer li { margin-bottom: 10px; }
footer a { font-size: 0.94rem; color: var(--mist); transition: color 0.2s; }
footer a:hover { color: var(--white); }
.foot-bar { border-top: 1px solid var(--line); padding-top: 26px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.84rem; color: var(--mist-dim); font-family: var(--font-display); }
.foot-desc { font-size: 0.95rem; max-width: 290px; margin-top: 16px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Tag / pill ---------- */
.pill { font-family: var(--font-mono); font-size: 0.74rem; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--mist); background: rgba(255,255,255,0.03); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .g3, .g4 { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { position: fixed; inset: 78px 0 auto 0; flex-direction: column; background: rgba(8,14,28,0.97); backdrop-filter: blur(18px); padding: 24px 28px; border-bottom: 1px solid var(--line); gap: 18px; display: none; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}
@media (max-width: 600px) {
  .g3, .g4, .g2 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .pad { padding: 66px 0; }
}
