/* ============================================================
   HOLDGE — Hold and Hedge
   Dark premium · minimalist fintech · self-custodial DeFi suite
   ============================================================ */

:root {
  /* --- Surfaces (cool near-black) --- */
  --bg:          #0a0b0e;
  --bg-grad:     #0c0e12;
  --surface:     #101319;
  --surface-2:   #14181f;
  --surface-3:   #181d25;
  --border:      rgba(255,255,255,0.07);
  --border-2:    rgba(255,255,255,0.12);
  --border-glow: rgba(255,255,255,0.18);

  /* --- Text --- */
  --text:        #f3f5f6;
  --text-soft:   #c3cad2;
  --text-dim:    #8b939d;
  --text-faint:  #5a626c;

  /* --- Accents: equal L & C, hue-rotated --- */
  --green:  oklch(0.80 0.13 165);   /* Swap         */
  --blue:   oklch(0.74 0.13 248);   /* Borrow Safe  */
  --violet: oklch(0.72 0.13 296);   /* Agent        */
  --green-dim:  oklch(0.80 0.13 165 / 0.14);
  --blue-dim:   oklch(0.74 0.13 248 / 0.14);
  --violet-dim: oklch(0.72 0.13 296 / 0.14);

  --accent: var(--green);           /* brand primary */
  --accent-dim: var(--green-dim);

  /* --- Type --- */
  --font-display: 'Sora', system-ui, sans-serif;
  --font-body:    'Sora', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* --- Rhythm --- */
  --container: 1240px;
  --section-pad: 132px;
  --radius: 16px;
  --radius-lg: 22px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* ambient background glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 540px at 78% -8%, oklch(0.80 0.13 165 / 0.10), transparent 60%),
    radial-gradient(820px 520px at 12% 8%, oklch(0.74 0.13 248 / 0.07), transparent 62%);
  pointer-events: none;
  z-index: 0;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 1;
}

/* ---------- shared atoms ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
}

.section-head { max-width: 760px; }
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.07;
  letter-spacing: -0.02em;
  margin: 22px 0 18px;
  text-wrap: balance;
}
.section-sub {
  font-size: 19px;
  color: var(--text-dim);
  max-width: 620px;
  text-wrap: pretty;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: 100px;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #07120c;
  box-shadow: 0 0 0 1px color-mix(in oklch, var(--accent), white 8%), 0 14px 40px -14px var(--accent);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--accent), 0 20px 50px -16px var(--accent); }
.btn-ghost {
  border: 1px solid var(--border-2);
  color: var(--text-soft);
  background: rgba(255,255,255,0.015);
}
.btn-ghost:hover { border-color: var(--border-glow); color: var(--text); transform: translateY(-2px); }
.btn svg { width: 16px; height: 16px; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in oklch, var(--bg) 72%, transparent);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--border);
}
.nav-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  /* Marca da SUÍTE: 3 cores = os 3 apps (Swap verde · SafeBorrow azul · Agent violeta).
     Só a LP principal usa as 3; cada app mantém sua cor única. */
  background: linear-gradient(135deg, var(--green) 0%, var(--green) 30%, var(--blue) 50%, var(--violet) 70%, var(--violet) 100%);
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12), 0 6px 22px -7px var(--blue);
}
.brand-mark::after {
  content: "";
  position: absolute; inset: 9px;
  border-radius: 3px;
  background: var(--bg);
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 14.5px;
  color: var(--text-dim);
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 16px; }

.lang-toggle {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-2);
  border-radius: 100px;
  padding: 3px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
}
.lang-toggle button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 100px;
  color: var(--text-faint);
  transition: color .15s ease, background .15s ease;
}
.lang-toggle button.active { background: var(--surface-3); color: var(--text); }
.lang-toggle .fl { width: 16px; height: 11px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.16); flex: none; }

.nav-cta { font-size: 14px; padding: 11px 20px; }
.menu-btn { display: none; }

/* ============================================================
   HERO  (3 variants toggled by [data-hero])
   ============================================================ */
.hero {
  padding: 188px 0 120px;
  position: relative;
}
.hero-variant { display: none; }
[data-hero="a"] .hv-a,
[data-hero="b"] .hv-b,
[data-hero="c"] .hv-c { display: block; }

.hero-eyebrow { margin-bottom: 28px; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.98;
  text-wrap: balance;
}
.hero h1 .accent {
  background: linear-gradient(100deg, var(--green), var(--blue) 50%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: 20px;
  color: var(--text-soft);
  line-height: 1.55;
  text-wrap: pretty;
}
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero-note {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-faint);
  letter-spacing: 0.02em;
}

/* --- Variant A: split, position card --- */
.hv-a .hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.hv-a h1 { font-size: clamp(48px, 6vw, 88px); }
.hv-a .hero-sub { margin: 30px 0 38px; max-width: 480px; }
.hv-a .hero-actions { margin-bottom: 26px; }

/* --- Variant B: centered editorial --- */
.hv-b { text-align: center; }
.hv-b .hero-eyebrow { margin-bottom: 30px; }
.hv-b h1 { font-size: clamp(52px, 8.5vw, 132px); margin: 0 auto; max-width: 14ch; }
.hv-b .hero-sub { margin: 34px auto 40px; max-width: 600px; font-size: 22px; }
.hv-b .hero-actions { justify-content: center; margin-bottom: 64px; }

/* --- Variant C: split, app trio --- */
.hv-c .hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 56px;
  align-items: center;
}
.hv-c h1 { font-size: clamp(46px, 5.6vw, 82px); }
.hv-c .hero-sub { margin: 28px 0 36px; max-width: 440px; }

/* Position card (variant A visual) */
.poscard {
  background: linear-gradient(170deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 40px 90px -40px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.04);
  position: relative;
}
.poscard-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.poscard-tag {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-dim);
}
.poscard-live {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--green);
  display: inline-flex; align-items: center; gap: 7px;
}
.poscard-live::before { content:""; width:6px; height:6px; border-radius:50%; background: var(--green); box-shadow:0 0 10px var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.35} }

.hf-gauge { display: flex; align-items: center; gap: 26px; margin-bottom: 26px; }
/* `--pct-anim` é o ângulo ANIMADO do anel (varre de 0 → --pct no load).
   Registrar via @property permite interpolar o número; sem suporte, cai no
   fallback `--pct-anim: var(--pct)` e o anel só não anima. */
@property --pct-anim {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}
.hf-ring {
  --pct: 74;
  --pct-anim: var(--pct);
  width: 132px; height: 132px; flex-shrink: 0;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, var(--surface) 70%, transparent 71%),
    conic-gradient(var(--green) 0, var(--blue) calc(var(--pct-anim) * 0.5%), var(--violet) calc(var(--pct-anim) * 1%), rgba(255,255,255,0.07) calc(var(--pct-anim) * 1%) 100%);
  display: grid; place-items: center;
  position: relative;
  animation: hf-ring-fill 1.2s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes hf-ring-fill {
  from { --pct-anim: 0; }
  to   { --pct-anim: var(--pct); }
}
/* leve "respiro" do número, em sincronia com a varredura */
.hf-ring-val b { animation: hf-val-pop 1s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes hf-val-pop {
  0%   { opacity: 0; transform: scale(.85); }
  55%  { opacity: 1; transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}
.hf-ring-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; flex-shrink: 0; width: 132px; }
.hf-ring-val { text-align: center; }
.hf-ring-val b { font-family: var(--font-mono); font-size: 32px; font-weight: 600; letter-spacing: -0.02em; display:block; }
.hf-cap { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); white-space: nowrap; text-align: center; width: 100%; }
.hf-meta { flex: 1; }
.hf-meta-row { display: flex; justify-content: space-between; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--border); }
.hf-meta-row:last-child { border-bottom: none; }
.hf-meta-row .k { font-size: 13px; color: var(--text-dim); }
.hf-meta-row .v { font-family: var(--font-mono); font-size: 14px; color: var(--text); }
.hf-meta-row .v.up { color: var(--green); }

.poscard-bar { height: 8px; border-radius: 100px; background: rgba(255,255,255,0.06); overflow: hidden; display: flex; }
.poscard-bar i { display: block; height: 100%; transform-origin: left center; animation: hf-bar-grow .9s cubic-bezier(.2, .7, .2, 1) both; }
.poscard-bar i:nth-child(1) { animation-delay: .25s; }
.poscard-bar i:nth-child(2) { animation-delay: .42s; }
.poscard-bar i:nth-child(3) { animation-delay: .59s; }
@keyframes hf-bar-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* acessibilidade — sem movimento, mostra o estado final direto */
@media (prefers-reduced-motion: reduce) {
  .hf-ring, .hf-ring-val b, .poscard-bar i, .poscard-live::before { animation: none; }
}
.poscard-foot { display: flex; justify-content: space-between; margin-top: 12px; font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); }

/* App trio (variant C visual) */
.trio { display: grid; gap: 14px; }
.trio-card {
  display: flex; align-items: center; gap: 16px;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  transition: transform .2s ease, border-color .2s ease;
}
.trio-card:hover { transform: translateX(6px); border-color: var(--border-2); }
.trio-ic { width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0; display: grid; place-items: center; }
.trio-card b { font-family: var(--font-display); font-weight: 600; font-size: 16px; display: block; }
.trio-card span { font-size: 13px; color: var(--text-dim); }

/* integration ticker */
.ticker {
  margin-top: 56px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 26px 0;
}
.ticker-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 18px; text-align: center; }
.ticker-row { display: flex; align-items: center; justify-content: center; gap: 52px; flex-wrap: wrap; }
.ticker-item { font-family: var(--font-display); font-weight: 600; font-size: 19px; color: var(--text-dim); letter-spacing: -0.01em; opacity: 0.78; transition: opacity .2s, color .2s; }
.ticker-item:hover { opacity: 1; color: var(--text); }

/* ============================================================
   SECTION shell
   ============================================================ */
section.block { padding: var(--section-pad) 0; position: relative; }
.block-divider { border-top: 1px solid var(--border); }

/* ============================================================
   APPS
   ============================================================ */
.apps-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 64px; }

.app-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items: center;
  padding: 52px 56px;
  margin-bottom: 28px;
  border: 1px solid var(--app-c-dim);
  border-radius: var(--radius-lg);
  /* painel tintado na cor do app: glow sutil no canto + base de superfície —
     separa e evidencia cada app (Swap verde · Safe Borrow azul · Agent violeta) */
  background:
    radial-gradient(110% 130% at 0% 0%, var(--app-c-dim), transparent 52%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  transition: border-color .25s ease, transform .25s ease;
}
.app-row:last-of-type { margin-bottom: 0; }
.app-row:hover { border-color: var(--app-c); transform: translateY(-2px); }
.app-row:nth-child(even) .app-copy { order: 2; }
.app-row:nth-child(even) .app-visual { order: 1; }

.app-tagrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.app-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em;
  padding: 7px 14px; border-radius: 100px;
  border: 1px solid var(--app-c-dim);
  color: var(--app-c);
}
.app-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em;
  padding: 6px 12px; border-radius: 100px;
  border: 1px solid var(--border-2);
  color: var(--text-dim);
  white-space: nowrap;
}
.app-badge.free { color: var(--app-c); border-color: var(--app-c-dim); background: var(--app-c-dim); }
.app-badge .b-ic { width: 13px; height: 13px; flex-shrink: 0; }
.app-tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--app-c); box-shadow: 0 0 12px var(--app-c); }
.app-name { font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -0.025em; line-height: 1.05; margin-bottom: 18px; }
.app-desc { font-size: 18px; color: var(--text-soft); margin-bottom: 26px; max-width: 480px; text-wrap: pretty; }
.app-feats { list-style: none; display: grid; gap: 13px; margin-bottom: 30px; }
.app-feats li { display: flex; gap: 13px; font-size: 15.5px; color: var(--text-dim); align-items: flex-start; }
.app-feats li::before {
  content: ""; width: 17px; height: 17px; margin-top: 3px; flex-shrink: 0;
  border-radius: 6px; background: var(--app-c-dim);
  border: 1px solid var(--app-c);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
.app-link { font-family: var(--font-mono); font-size: 13px; color: var(--app-c); display: inline-flex; align-items: center; gap: 8px; letter-spacing: 0.03em; }
.app-link svg { width: 14px; height: 14px; transition: transform .2s; }
.app-link:hover svg { transform: translateX(4px); }

.app-cta {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-size: 15px; font-weight: 600;
  padding: 14px 26px; border-radius: 100px;
  background: var(--app-c); color: #0a0e12;
  box-shadow: 0 0 0 1px color-mix(in oklch, var(--app-c), white 8%), 0 14px 40px -16px var(--app-c);
  transition: transform .18s ease, box-shadow .25s ease;
}
.app-cta:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--app-c), 0 20px 52px -18px var(--app-c); }
.app-cta svg { width: 16px; height: 16px; }
.app-cta-ghost {
  background: transparent; color: var(--app-c);
  border: 1px solid var(--app-c-dim); box-shadow: none;
}
.app-cta-ghost:hover { border-color: var(--app-c); transform: translateY(-2px); box-shadow: none; }
.app-access {
  display: flex; align-items: center; gap: 8px; margin-top: 16px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.02em; color: var(--text-faint);
}
.app-access svg { width: 13px; height: 13px; flex-shrink: 0; color: var(--app-c); }

/* app visual cards */
.app-visual {
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: 0 40px 90px -50px rgba(0,0,0,0.8);
  position: relative;
  overflow: hidden;
  min-height: 320px;
}
.app-visual::before {
  content: ""; position: absolute; top: -40%; right: -20%;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, var(--app-c-dim), transparent 65%);
  pointer-events: none;
}
.av-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.av-title { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); }
.av-chip { font-family: var(--font-mono); font-size: 11px; color: var(--app-c); border: 1px solid var(--app-c-dim); padding: 4px 10px; border-radius: 100px; }

/* swap visual */
.swap-leg { display: flex; align-items: center; justify-content: space-between; background: var(--surface-3); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; }
.swap-leg .tk { display: flex; align-items: center; gap: 11px; }
.swap-leg .tk i, .swap-leg .tk-ic { width: 30px; height: 30px; border-radius: 50%; display: block; flex-shrink: 0; object-fit: cover; }
.swap-leg .tk b { font-weight: 600; font-size: 15px; }
.swap-leg .tk span { font-size: 11px; color: var(--text-faint); display: block; font-family: var(--font-mono); }
.swap-leg .amt { font-family: var(--font-mono); font-size: 16px; }
.swap-arrow { display: grid; place-items: center; height: 30px; }
.swap-arrow span { width: 30px; height: 30px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border-2); display: grid; place-items: center; color: var(--app-c); font-size: 14px; }
.swap-meta { display: flex; justify-content: space-between; margin-top: 18px; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-faint); }
.swap-meta b { color: var(--app-c); }

/* borrow visual */
.bs-stack { display: grid; gap: 14px; }
.bs-slider-row .lab { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-dim); margin-bottom: 9px; }
.bs-slider-row .lab b { font-family: var(--font-mono); color: var(--text); }
.bs-track { height: 8px; border-radius: 100px; background: rgba(255,255,255,0.06); position: relative; }
.bs-track i { position: absolute; left:0; top:0; height: 100%; border-radius: 100px; background: var(--app-c); }
.bs-track i::after { content:""; position:absolute; right:-7px; top:50%; transform: translateY(-50%); width:16px; height:16px; border-radius:50%; background:#fff; box-shadow:0 2px 8px rgba(0,0,0,.5); }
.bs-result { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; padding: 18px; border-radius: 14px; background: var(--app-c-dim); border: 1px solid var(--app-c); }
.bs-result .k { font-size: 13px; color: var(--text-soft); }
.bs-result .v { font-family: var(--font-mono); font-size: 22px; font-weight: 600; color: #fff; }

/* agent visual (fluxo de automação) */
.sig-flow { display: grid; gap: 11px; }
.sig-node { display: flex; align-items: center; gap: 14px; background: var(--surface-3); border: 1px solid var(--border); border-radius: 13px; padding: 14px 16px; }
.sig-node .ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; font-family: var(--font-mono); font-size: 12px; }
.sig-node b { font-size: 14px; font-weight: 600; display: block; }
.sig-node span { font-size: 12px; color: var(--text-faint); font-family: var(--font-mono); }
.sig-node .status { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--app-c); }
.sig-conn { height: 14px; width: 1px; background: var(--border-2); margin-left: 32px; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 60px; counter-reset: step; }
.step {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 30px 36px;
  background: linear-gradient(180deg, var(--surface), transparent);
  position: relative;
}
.step-num { font-family: var(--font-mono); font-size: 13px; color: var(--accent); letter-spacing: 0.1em; margin-bottom: 26px; display: block; }
.step h3 { font-family: var(--font-display); font-weight: 600; font-size: 21px; letter-spacing: -0.01em; margin-bottom: 12px; }
.step p { font-size: 15px; color: var(--text-dim); text-wrap: pretty; }

/* ============================================================
   SECURITY
   ============================================================ */
.sec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.sec-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sec-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  background: var(--surface);
}
.sec-card .ic { width: 40px; height: 40px; border-radius: 11px; background: var(--accent-dim); border: 1px solid color-mix(in oklch, var(--accent), transparent 55%); display: grid; place-items: center; margin-bottom: 18px; color: var(--accent); }
.sec-card .ic svg { width: 20px; height: 20px; }
.sec-card h4 { font-family: var(--font-display); font-weight: 600; font-size: 17px; margin-bottom: 8px; }
.sec-card p { font-size: 14px; color: var(--text-dim); text-wrap: pretty; }

/* ============================================================
   METRICS
   ============================================================ */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.metric { padding: 40px 34px; border-right: 1px solid var(--border); background: var(--surface); }
.metric:last-child { border-right: none; }
.metric .num { font-family: var(--font-display); font-weight: 600; font-size: clamp(34px, 3.6vw, 48px); letter-spacing: -0.03em; line-height: 1; margin-bottom: 12px; }
.metric .num .u { color: var(--accent); }
.metric .lab { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--text-dim); text-transform: uppercase; }

/* ============================================================
   INTEGRATIONS
   ============================================================ */
.integ-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 56px; }
.integ {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  background: var(--surface);
  display: flex; flex-direction: column; gap: 14px;
  transition: border-color .2s ease, transform .2s ease;
}
.integ:hover { border-color: var(--border-2); transform: translateY(-3px); }
.integ-logo { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.integ-kind { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); }
.integ p { font-size: 14px; color: var(--text-dim); margin-top: 2px; text-wrap: pretty; }

/* ============================================================
   PLANS
   ============================================================ */
.plans-note {
  display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px;
}
.plans-note .pn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.02em;
  color: var(--text-dim);
  border: 1px solid var(--border); border-radius: 100px; padding: 8px 15px;
}
.plans-note .pn i { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; display: block; }

.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 56px; }
.plan {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 30px 32px;
  background: linear-gradient(180deg, var(--surface), transparent);
  display: flex; flex-direction: column;
}
.plan.feature {
  border-color: color-mix(in oklch, var(--violet), transparent 55%);
  background:
    radial-gradient(420px 200px at 50% -10%, var(--violet-dim), transparent 65%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: 0 30px 80px -50px rgba(0,0,0,0.8);
}
.plan-flag {
  position: absolute; top: -11px; left: 30px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: #120a1c; background: var(--violet);
  padding: 5px 12px; border-radius: 100px;
}
.plan-term { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 18px; }
.plan-price { display: flex; align-items: baseline; gap: 9px; margin-bottom: 6px; }
.plan-price b { font-family: var(--font-display); font-weight: 600; font-size: 44px; letter-spacing: -0.02em; line-height: 1; }
.plan-price .per { font-family: var(--font-mono); font-size: 14px; color: var(--text-dim); }
.plan-price .planned { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); border: 1px solid var(--border); border-radius: 100px; padding: 3px 9px; margin-left: 8px; align-self: center; }
.plan-price .soon { font-family: var(--font-mono); font-size: 12px; color: var(--violet); }
.plan-cycle { font-size: 13px; color: var(--text-faint); margin-bottom: 22px; }
.plan-save { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-soft); margin-bottom: 22px; display: inline-flex; align-items: center; gap: 7px; }
.plan-save::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--violet); }
.plan ul { list-style: none; display: grid; gap: 12px; margin-bottom: 28px; }
.plan ul li { display: flex; gap: 11px; font-size: 14.5px; color: var(--text-dim); align-items: flex-start; }
.plan ul li::before {
  content: ""; width: 16px; height: 16px; margin-top: 2px; flex-shrink: 0; border-radius: 5px;
  background: var(--violet-dim); border: 1px solid var(--violet);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
.plan .btn { width: 100%; justify-content: center; margin-top: auto; }
.plan .btn-violet { background: var(--violet); color: #120a1c; box-shadow: 0 0 0 1px color-mix(in oklch, var(--violet), white 8%), 0 14px 40px -16px var(--violet); }
.plan .btn-violet:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--violet), 0 20px 50px -18px var(--violet); }
.plans-micro { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); margin-top: 26px; text-align: center; }

/* ============================================================
   APP CHOOSER MODAL
   ============================================================ */
.appmodal {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity .22s ease;
}
.appmodal.open { opacity: 1; pointer-events: auto; }
.appmodal-backdrop {
  position: absolute; inset: 0;
  background: rgba(4,5,8,0.72);
  backdrop-filter: blur(8px) saturate(1.2);
}
.appmodal-card {
  position: relative;
  width: 100%; max-width: 520px;
  background: linear-gradient(170deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 32px 30px 30px;
  box-shadow: 0 50px 110px -40px rgba(0,0,0,0.85), inset 0 1px 0 rgba(255,255,255,0.05);
  transform: translateY(14px) scale(0.985);
  transition: transform .26s cubic-bezier(.2,.7,.2,1);
}
.appmodal.open .appmodal-card { transform: none; }
.appmodal-x {
  position: absolute; top: 18px; right: 18px;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--text-dim);
  border: 1px solid var(--border);
  transition: color .15s, border-color .15s, background .15s;
}
.appmodal-x:hover { color: var(--text); border-color: var(--border-2); background: var(--surface-3); }
.appmodal-x svg { width: 17px; height: 17px; }
.appmodal-head { margin-bottom: 24px; }
.appmodal-head h3 { font-family: var(--font-display); font-weight: 600; font-size: 25px; letter-spacing: -0.02em; margin: 16px 0 8px; }
.appmodal-head p { font-size: 15px; color: var(--text-dim); }
.appmodal-list { display: grid; gap: 12px; }
.appmodal-app {
  display: flex; align-items: center; gap: 16px;
  padding: 17px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-3);
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}
.appmodal-app:hover { border-color: var(--app-c); transform: translateX(4px); background: var(--app-c-dim); }
.ama-ic {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center;
  color: var(--app-c); background: var(--app-c-dim);
  border: 1px solid color-mix(in oklch, var(--app-c), transparent 55%);
}
.ama-ic svg { width: 22px; height: 22px; }
.ama-body { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.ama-body b { font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.ama-body > span { font-size: 13px; color: var(--text-dim); }
.ama-badge {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.04em;
  color: var(--text-faint) !important; margin-top: 5px;
}
.ama-badge.free { color: var(--app-c) !important; }
.ama-arrow { width: 18px; height: 18px; color: var(--app-c); flex-shrink: 0; transition: transform .18s ease; }
.appmodal-app:hover .ama-arrow { transform: translateX(4px); }

@media (max-width: 560px) {
  .appmodal-card { padding: 26px 20px 22px; }
  .appmodal-app { padding: 14px; gap: 13px; }
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-grid { display: grid; grid-template-columns: 0.6fr 1.4fr; gap: 56px; }
.faq-list { display: grid; gap: 0; }
.faq-item { border-top: 1px solid var(--border); }
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 4px; font-family: var(--font-display); font-weight: 500; font-size: 19px; color: var(--text); transition: color .15s; }
.faq-q:hover { color: var(--accent); }
.faq-icn { flex-shrink: 0; width: 22px; height: 22px; position: relative; }
.faq-icn::before, .faq-icn::after { content:""; position:absolute; background: var(--text-dim); transition: transform .25s ease, background .2s; }
.faq-icn::before { top: 50%; left: 0; right: 0; height: 1.5px; transform: translateY(-50%); }
.faq-icn::after { left: 50%; top: 0; bottom: 0; width: 1.5px; transform: translateX(-50%); }
.faq-item.open .faq-icn::after { transform: translateX(-50%) scaleY(0); }
.faq-item.open .faq-icn::before { background: var(--accent); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 4px 26px; font-size: 16px; color: var(--text-dim); max-width: 640px; text-wrap: pretty; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.cta-block { text-align: center; padding: 110px 0 var(--section-pad); }
.cta-card {
  border: 1px solid var(--border-2);
  border-radius: 28px;
  padding: 80px 60px;
  background:
    radial-gradient(700px 360px at 50% -20%, oklch(0.80 0.13 165 / 0.16), transparent 60%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  position: relative;
  overflow: hidden;
}
.cta-card h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(36px, 5vw, 64px); letter-spacing: -0.03em; line-height: 1.02; margin-bottom: 20px; text-wrap: balance; }
.cta-card p { font-size: 19px; color: var(--text-soft); max-width: 540px; margin: 0 auto 38px; text-wrap: pretty; }
.cta-form { display: flex; gap: 12px; max-width: 460px; margin: 0 auto; }
.cta-form input {
  flex: 1; background: rgba(0,0,0,0.3); border: 1px solid var(--border-2); border-radius: 100px;
  padding: 15px 22px; color: var(--text); font-family: var(--font-body); font-size: 15px; outline: none;
  transition: border-color .2s;
}
.cta-form input:focus { border-color: var(--accent); }
.cta-form input::placeholder { color: var(--text-faint); }
.cta-micro { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); margin-top: 20px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--border); padding: 72px 0 56px; position: relative; z-index: 1; }
.footer-top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 48px; margin-bottom: 56px; }
.footer-brand p { font-size: 14px; color: var(--text-dim); max-width: 280px; margin-top: 18px; text-wrap: pretty; }
.footer-col h5 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 18px; }
.footer-col a { display: block; font-size: 14.5px; color: var(--text-dim); padding: 6px 0; transition: color .15s; }
.footer-col a:hover { color: var(--text); }
.footer-bot { display: flex; align-items: center; justify-content: space-between; padding-top: 28px; border-top: 1px solid var(--border); gap: 20px; flex-wrap: wrap; }
.footer-bot p { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); }
.footer-disc { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-faint); max-width: 620px; line-height: 1.6; margin-top: 22px; }

/* ============================================================
   reveal animation
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
  .reveal.in { opacity: 1; transform: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  :root { --section-pad: 88px; }
  .nav-links { display: none; }
  .menu-btn { display: grid; }
  .hv-a .hero-grid, .hv-c .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .app-row { grid-template-columns: 1fr; gap: 40px; padding: 36px 26px; }
  .app-row:nth-child(even) .app-copy { order: 0; }
  .app-row:nth-child(even) .app-visual { order: 0; }
  .steps { grid-template-columns: 1fr; }
  .sec-grid { grid-template-columns: 1fr; gap: 40px; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric:nth-child(2) { border-right: none; }
  .metric:nth-child(1), .metric:nth-child(2) { border-bottom: 1px solid var(--border); }
  .integ-grid { grid-template-columns: 1fr; }
  .plans-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 560px) {
  .container { padding: 0 22px; }
  .hero { padding: 148px 0 80px; }
  .metrics { grid-template-columns: 1fr; }
  .metric { border-right: none; border-bottom: 1px solid var(--border); }
  .cta-card { padding: 56px 28px; }
  .cta-form { flex-direction: column; }
  .cta-form .btn { justify-content: center; }
  .footer-top { grid-template-columns: 1fr; }
  .ticker-row { gap: 28px; }
}
