/* ERAVU — black + logo blue */
:root {
  --bg: #000;
  --bg-soft: #05060f;
  --card: rgba(18, 24, 64, 0.35);
  --line: rgba(60, 100, 230, 0.22);
  --blue-1: #2a63d4;   /* logo top */
  --blue-2: #2b2a94;   /* logo bottom */
  --blue-3: #4d82ff;   /* bright accent */
  --text: #c9d5ff;     /* body: soft blue-white */
  --muted: #7d8cc4;
  --grad: linear-gradient(135deg, #3d78ff 0%, var(--blue-1) 40%, var(--blue-2) 100%);
  --radius: 18px;
  --max: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-3); text-decoration: none; transition: color .2s; }
a:hover { color: #8fb0ff; }

/* ---------- background glow + grid ---------- */
.bg-fx { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-fx::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
  opacity: .35;
}
.orb {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .45;
  animation: drift 18s ease-in-out infinite alternate;
}
.orb.o1 { width: 520px; height: 520px; background: var(--blue-1); top: -180px; left: -120px; }
.orb.o2 { width: 460px; height: 460px; background: var(--blue-2); bottom: -160px; right: -100px; animation-delay: -6s; }
@keyframes drift {
  to { transform: translate(80px, 60px) scale(1.15); }
}

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
section { padding: 110px 0; position: relative; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(0,0,0,.72); backdrop-filter: blur(14px); border-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 40px; height: 40px; border-radius: 50%; mix-blend-mode: screen; transition: transform .6s; }
.brand:hover img { transform: rotate(360deg); }
.wordmark {
  font-weight: 400; letter-spacing: .55em; font-size: 15px; text-transform: uppercase;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-left: .1em;
}
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  color: var(--muted); font-size: 12px; letter-spacing: .25em; text-transform: uppercase; position: relative;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0; background: var(--blue-3); transition: width .3s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--blue-3); margin: 5px 0; transition: .3s; }

/* ---------- type ---------- */
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .35em; text-transform: uppercase;
  color: var(--blue-3); margin-bottom: 18px;
}
h1, h2, h3 { color: #fff; line-height: 1.12; font-weight: 600; }
h1 { font-size: clamp(38px, 6.4vw, 76px); letter-spacing: -.02em; }
h2 { font-size: clamp(28px, 4vw, 46px); letter-spacing: -.01em; margin-bottom: 22px; }
h3 { font-size: 20px; margin-bottom: 10px; }
.grad-text {
  background: linear-gradient(110deg, #3d78ff, #6f9bff, var(--blue-1), var(--blue-2), #3d78ff);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 7s linear infinite;
}
@keyframes shimmer { to { background-position: -250% 0; } }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--text); max-width: 680px; }
p + p { margin-top: 18px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px; font-weight: 600; font-size: 14px; letter-spacing: .12em; text-transform: uppercase;
  transition: transform .25s, box-shadow .25s, background .25s;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 40px -10px rgba(61,120,255,.7); }
.btn-primary:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 16px 50px -10px rgba(61,120,255,.9); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--blue-3); color: #fff; transform: translateY(-3px); }
.btn .arrow { transition: transform .25s; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* ---------- hero ---------- */
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 120px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,.8fr); gap: 60px; align-items: center; }
.hero h1 { margin-bottom: 26px; }

/* animated logo with orbiting rings */
.logo-orbit { position: relative; width: min(380px, 80vw); aspect-ratio: 1; margin: 0 auto; }
.logo-orbit img {
  position: absolute; inset: 14%; width: 72%; height: 72%; border-radius: 50%; mix-blend-mode: screen;
  animation: float 6s ease-in-out infinite; filter: drop-shadow(0 0 30px rgba(61,120,255,.45));
}
.ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--line); }
.ring.r1 { border-top-color: var(--blue-3); animation: spin 9s linear infinite; }
.ring.r2 { inset: 6%; border-right-color: var(--blue-1); animation: spin 14s linear infinite reverse; }
.ring.r3 { inset: -6%; border-style: dashed; opacity: .5; animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-12px); } }

.scroll-cue {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  width: 24px; height: 40px; border: 1px solid var(--line); border-radius: 14px;
}
.scroll-cue::after {
  content: ""; position: absolute; top: 8px; left: 50%; width: 3px; height: 8px; margin-left: -1.5px;
  background: var(--blue-3); border-radius: 2px; animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; position: relative; overflow: hidden;
  transition: transform .35s, border-color .35s, box-shadow .35s;
}
.card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .35s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(61,120,255,.18), transparent 60%);
}
.card:hover { transform: translateY(-6px); border-color: rgba(77,130,255,.55); box-shadow: 0 20px 60px -20px rgba(61,120,255,.45); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; }
.card .num { font-size: 13px; letter-spacing: .3em; color: var(--blue-3); margin-bottom: 18px; display: block; }
.card p { color: var(--muted); font-size: 15.5px; }
.card .more { display: inline-block; margin-top: 20px; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; }
.icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 22px;
  background: rgba(61,120,255,.12); border: 1px solid var(--line); color: var(--blue-3);
}
.icon svg { width: 22px; height: 22px; }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head p { color: var(--muted); }

/* ---------- stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 40px 20px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { display: block; font-size: clamp(34px, 5vw, 54px); font-weight: 600; color: #fff; line-height: 1; margin-bottom: 10px; }
.stat span { font-size: 12px; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); }

/* ---------- article (phrase pages) ---------- */
.article { padding-top: 160px; }
.article .wrap { max-width: 780px; }
.article h1 { font-size: clamp(36px, 6vw, 64px); margin-bottom: 28px; }
.article h2 { font-size: clamp(24px, 3vw, 32px); margin: 56px 0 18px; }
.article .intro { font-size: clamp(19px, 2.2vw, 22px); color: #e3e9ff; margin-bottom: 18px; }
.article figure { margin: 48px 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.article figure img { width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; }
.article figcaption { padding: 14px 20px; font-size: 13px; color: var(--muted); background: var(--bg-soft); }
.article ul.checks { list-style: none; margin-top: 18px; }
.article ul.checks li { padding-left: 34px; position: relative; margin-bottom: 12px; }
.article ul.checks li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 20px; height: 20px; border-radius: 50%;
  border: 1px solid var(--blue-3);
  background: radial-gradient(circle, var(--blue-3) 30%, transparent 34%);
}
.byline { display: flex; align-items: center; gap: 14px; margin-bottom: 40px; color: var(--muted); font-size: 14px; }
.byline img { width: 44px; height: 44px; border-radius: 50%; mix-blend-mode: screen; }

/* proof timeline */
.timeline { margin-top: 26px; border-left: 1px solid var(--line); padding-left: 28px; }
.timeline li { list-style: none; position: relative; margin-bottom: 26px; }
.timeline li::before {
  content: ""; position: absolute; left: -34px; top: 8px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--muted);
}
.timeline li.done::before { background: var(--blue-3); border-color: var(--blue-3); box-shadow: 0 0 14px var(--blue-3); }
.timeline .date { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--blue-3); display: block; }
.timeline li:not(.done) .date { color: var(--muted); }

.callout {
  margin-top: 64px; padding: 40px; border-radius: var(--radius); border: 1px solid rgba(77,130,255,.45);
  background: linear-gradient(135deg, rgba(42,99,212,.18), rgba(43,42,148,.12));
}
.callout h2 { margin-top: 0; }

/* ---------- contact + footer ---------- */
.contact { text-align: center; }
.contact .lead { margin: 0 auto; }
.contact .btn-row { justify-content: center; }
footer { border-top: 1px solid var(--line); padding: 50px 0 40px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
footer nav a { color: var(--muted); }
footer nav a:hover { color: var(--text); }

/* ---------- reveal animations ---------- */
.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .12s; } .reveal.d2 { transition-delay: .24s; } .reveal.d3 { transition-delay: .36s; }

/* scroll progress bar */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--grad); z-index: 60; box-shadow: 0 0 10px var(--blue-3); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0,1fr); text-align: left; }
  .hero .logo-orbit { order: -1; width: min(240px, 60vw); margin: 0; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  section { padding: 80px 0; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 76px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: rgba(0,0,0,.96); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .4s;
  }
  .nav-links.open { max-height: 320px; }
  .nav-links li a { display: block; padding: 18px 24px; }
  .nav-links a::after { display: none; }
  .wordmark { letter-spacing: .4em; }
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  .callout { padding: 28px 22px; }
  .article { padding-top: 120px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
