@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..700;1,9..144,400..600&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #0c0e14;
  --surface: #131621;
  --surface-2: #191d2b;
  --line: rgba(233, 236, 244, 0.09);
  --line-strong: rgba(233, 236, 244, 0.18);
  --ink: #f1f2f7;
  --ink-2: #b3b8c6;
  --ink-3: #767d90;
  --cobalt: #3f5bf6;
  --cobalt-bright: #6f85ff;
  --cobalt-deep: #263aa8;
  --cobalt-tint: rgba(63, 91, 246, 0.12);
  --ok: #5ec98f;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --maxw: 1200px;
  --pad: clamp(20px, 4vw, 48px);
  --sp: clamp(72px, 11vw, 148px);
  --r-card: 16px;
  --r-field: 9px;
  --shadow: 0 34px 70px -42px rgba(0, 0, 0, 0.9);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink-2);
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 560px at 82% -8%, rgba(63, 91, 246, 0.14), transparent 60%),
    radial-gradient(760px 460px at 8% 4%, rgba(63, 91, 246, 0.06), transparent 55%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { background: var(--cobalt); color: #fff; }

:focus-visible {
  outline: 2px solid var(--cobalt-bright);
  outline-offset: 3px;
  border-radius: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--pad);
}

/* ---------- type ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.03;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--cobalt-bright);
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.lead {
  font-size: clamp(1.08rem, 1.5vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 56ch;
}
.section-title {
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  max-width: 20ch;
}
.mono { font-family: var(--font-mono); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0.92rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease),
    border-color 0.3s var(--ease), color 0.3s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--cobalt);
  color: #fff;
  box-shadow: 0 14px 34px -14px rgba(63, 91, 246, 0.75);
}
.btn-primary:hover { background: var(--cobalt-bright); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--ink); background: rgba(255, 255, 255, 0.04); }
.btn svg { width: 16px; height: 16px; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(12, 14, 20, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  min-height: 76px;
}
.hd-left { display: flex; align-items: center; gap: 26px; }
.hd-right { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}
.brand-mark { width: 30px; height: 30px; color: var(--cobalt-bright); flex: none; }
.status {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(94, 201, 143, 0.5);
  animation: pulse 2.6s var(--ease) infinite;
}
.hd-login {
  font-size: 0.86rem;
  color: var(--ink-2);
  padding: 0.4rem 0.1rem;
  transition: color 0.25s;
}
.hd-login:hover { color: var(--ink); }

.nav {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 88px var(--pad) 48px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  transform: translateY(-102%);
  transition: transform 0.55s var(--ease);
}
.nav.open { transform: translateY(0); }
.nav-item {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 7vw, 2.7rem);
  font-weight: 400;
  color: var(--ink);
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.nav-item span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-3);
}
.nav-item:hover { color: var(--cobalt-bright); }
.nav-foot {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-3);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.25s;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  padding: clamp(72px, 9vw, 128px) 0 clamp(64px, 8vw, 112px);
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}
.hero-title {
  font-size: clamp(2.7rem, 6.4vw, 5rem);
  margin: 22px 0 0;
}
.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--cobalt-bright);
}
.hero-sub {
  margin-top: 26px;
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  max-width: 44ch;
}
.hero-cta {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-meta {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}
.hero-meta b { color: var(--ink-2); font-weight: 500; }

/* flow card */
.flow-card {
  position: relative;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.flow-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 20px;
  background: radial-gradient(420px 200px at 80% 0%, rgba(63, 91, 246, 0.22), transparent 60%);
  z-index: 0;
  pointer-events: none;
}
.flow-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-3);
  letter-spacing: 0.05em;
  position: relative;
}
.flow-head b { color: var(--ink); font-weight: 500; }
.flow-track {
  position: relative;
  margin: 26px 4px 18px;
  height: 66px;
}
.flow-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--line-strong);
  transform: translateY(-50%);
}
.flow-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--cobalt-bright), transparent);
  width: 42%;
  animation: slide 4.5s var(--ease) infinite;
}
.flow-nodes {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
}
.flow-node {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  color: var(--ink-2);
}
.flow-node.live { border-color: var(--cobalt); color: var(--cobalt-bright); box-shadow: 0 0 0 4px var(--cobalt-tint); }
.flow-node svg { width: 18px; height: 18px; }
.flow-rows { position: relative; display: grid; gap: 12px; }
.flow-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}
.flow-row .k { color: var(--ink-3); }
.flow-row .v { color: var(--ink); text-align: right; }
.flow-row .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
}
.flow-row .dot.c { background: var(--cobalt-bright); }

/* ---------- band / reveal ---------- */
.band {
  padding: var(--sp) 0;
  position: relative;
}
.band.tight { padding-block: clamp(56px, 7vw, 92px); }
.band--dark {
  background: linear-gradient(180deg, #0f1220, #0a0c12);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-head {
  max-width: 62ch;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head .eyebrow { margin-bottom: 20px; }
.section-head .lead { margin-top: 22px; }

/* ---------- cards ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  background: var(--surface-2);
}
.card-ico {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: var(--cobalt-tint);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--cobalt-bright);
}
.card-ico svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.35rem; font-weight: 500; }
.card p { color: var(--ink-2); font-size: 0.98rem; }
.card-link {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--cobalt-bright);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  letter-spacing: 0.03em;
}
.card-link svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease); }
.card:hover .card-link svg { transform: translateX(4px); }

/* ---------- stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.stat {
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
}
.stat-num {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat-num .u { color: var(--cobalt-bright); }
.stat-label {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--ink-3);
}

/* ---------- cta ---------- */
.cta {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(720px 300px at 78% 30%, rgba(63, 91, 246, 0.28), transparent 60%),
    var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  padding: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
}
.cta h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
.cta p { margin-top: 16px; max-width: 44ch; }
.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ---------- faq ---------- */
.faq {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  padding: 24px 4px;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.faq-q .plus {
  flex: none;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  transition: transform 0.4s var(--ease), background 0.3s, color 0.3s;
}
.faq-item.open .faq-q .plus {
  transform: rotate(45deg);
  background: var(--cobalt);
  color: #fff;
  border-color: var(--cobalt);
}
.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.45s var(--ease);
}
.faq-item.open .faq-a { max-height: 260px; }
.faq-a p {
  padding: 0 4px 26px;
  max-width: 68ch;
  color: var(--ink-2);
}

/* ---------- forms ---------- */
.form {
  display: grid;
  gap: 16px;
}
.field { display: grid; gap: 8px; }
.field label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
}
.input,
.select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-field);
  padding: 0.85rem 1rem;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.input:focus,
.select:focus {
  outline: none;
  border-color: var(--cobalt);
  box-shadow: 0 0 0 3px var(--cobalt-tint);
}
.input::placeholder { color: var(--ink-3); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: #0a0c11;
  padding: clamp(56px, 7vw, 88px) 0 40px;
  margin-top: clamp(40px, 6vw, 80px);
}
.foot-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}
.foot-brand .brand { font-size: 1.25rem; }
.foot-brand p {
  margin-top: 18px;
  max-width: 30ch;
  color: var(--ink-3);
  font-size: 0.95rem;
}
.foot-tag {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-3);
  letter-spacing: 0.03em;
}
.foot-col h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  margin-bottom: 18px;
}
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.foot-col a {
  color: var(--ink-2);
  font-size: 0.95rem;
  transition: color 0.25s;
}
.foot-col a:hover { color: var(--cobalt-bright); }
.foot-bottom {
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-3);
}
.foot-bottom .links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-bottom a:hover { color: var(--ink-2); }

/* ---------- reveal + motion ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
.js .reveal.in { opacity: 1; transform: none; }
.js .hero-title .line { display: block; overflow: hidden; }
.js .hero-title .line > span {
  display: block;
  transform: translateY(112%);
  transition: transform 1s var(--ease);
}
.js .hero-title.in .line > span { transform: none; }
.js .hero-title.in .line:nth-child(2) > span { transition-delay: 0.12s; }

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

@keyframes slide {
  0% { transform: translateX(-60%); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateX(260%); opacity: 0; }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(94, 201, 143, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(94, 201, 143, 0); }
  100% { box-shadow: 0 0 0 0 rgba(94, 201, 143, 0); }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .flow-card { max-width: 560px; }
}
@media (max-width: 900px) {
  .site-header .wrap { grid-template-columns: auto 1fr auto; }
  .hd-left { gap: 14px; }
  .nav-toggle { display: flex; }
  .nav { display: none; }
  .nav.open { display: flex; }
  .hd-right { gap: 10px; }
  .hd-login { display: none; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .cta { grid-template-columns: 1fr; }
  .cta-actions { flex-direction: row; flex-wrap: wrap; }
  .foot-top { grid-template-columns: 1fr 1fr; gap: 34px; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .grid-3 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1 1 100%; }
}
*{box-sizing:border-box}
img,svg,video{max-width:100%;height:auto}
