/* ============================================================
   Securfex — sistema visual
   Marca: teal #0B97A6 · navy #06294A
   Tipografía: Space Grotesk (titulares) · Plus Jakarta Sans (texto) · IBM Plex Mono (técnico)
   ============================================================ */

:root {
  --teal: #0B97A6;
  --teal-600: #0E97A6;
  --teal-bright: #1BB6C9;
  --teal-300: #7FD6DF;
  --teal-soft: #E2F4F6;

  --navy: #06294A;
  --navy-700: #0A3257;
  --ink: #051D33;
  --ink-900: #03162A;

  --paper: #F3F6F8;
  --paper-2: #EAEFF2;
  --white: #ffffff;

  --text: #0C2B47;
  --muted: #5B7384;
  --muted-2: #8597A4;
  --line: #DCE5EB;

  --on-dark: #EaF1F5;
  --on-dark-muted: #93AEC2;
  --on-dark-line: rgba(255,255,255,0.10);

  --radius: 16px;
  --radius-lg: 24px;
  --radius-sm: 10px;

  --shadow-sm: 0 1px 2px rgba(6,41,74,.06), 0 2px 6px rgba(6,41,74,.05);
  --shadow-md: 0 10px 30px rgba(6,41,74,.10), 0 2px 8px rgba(6,41,74,.06);
  --shadow-lg: 0 30px 60px -18px rgba(6,41,74,.30);
  --shadow-teal: 0 18px 50px -18px rgba(11,151,166,.55);

  --maxw: 1200px;
  --ease: cubic-bezier(.22,.61,.36,1);

  --font-head: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --shield-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 28"><path d="M12 1L22 5V13C22 21 17 26 12 27C7 26 2 21 2 13V5Z" fill="black"/></svg>') center/contain no-repeat;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
::selection { background: var(--teal); color: #fff; }

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

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal-600);
}
.eyebrow::before { content: ""; width: 18px; height: 1.5px; background: var(--teal); display: inline-block; }
.eyebrow.on-dark { color: var(--teal-300); }
.eyebrow.on-dark::before { background: var(--teal-300); }

.section { padding: 116px 0; position: relative; }
.section-head { max-width: 640px; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); margin: 16px 0 0; }
.section-head p { margin-top: 18px; font-size: 18px; color: var(--muted); }
.section.dark .section-head p { color: var(--on-dark-muted); }
.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  padding: 13px 22px; border-radius: 12px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--teal); color: #fff; box-shadow: var(--shadow-teal); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 56px -16px rgba(11,151,166,.7); background: var(--teal-600); }
.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-600); transform: translateY(-2px); }
.btn-ghost.on-dark { color: #fff; border-color: rgba(255,255,255,.22); }
.btn-ghost.on-dark:hover { border-color: var(--teal-300); color: var(--teal-300); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-lg { padding: 16px 28px; font-size: 16px; border-radius: 14px; }

/* ============================== NAV ============================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s, box-shadow .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav.scrolled { background: rgba(255,255,255,.82); backdrop-filter: blur(14px); border-bottom-color: var(--line); box-shadow: 0 1px 0 rgba(6,41,74,.03); }
.nav.menu-open { background: var(--white); border-bottom-color: var(--line); }
.nav.menu-open .nav-links a, .nav.menu-open .nav-login { color: var(--text); }
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { height: 32px; width: auto; }
.brand .logo-color { display: none; }
.nav.scrolled .brand .logo-white { display: none; }
.nav.scrolled .brand .logo-color { display: block; }
.nav.menu-open .brand .logo-white { display: none; }
.nav.menu-open .brand .logo-color { display: block; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--on-dark); opacity: .92; transition: opacity .2s, color .2s; }
.nav-links a:hover { opacity: 1; color: var(--white); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-login { font-size: 15px; font-weight: 600; color: var(--on-dark); }
.nav-login:hover { color: var(--white); }
/* Barra blanca al hacer scroll → texto oscuro */
.nav.scrolled .nav-links a { color: var(--text); }
.nav.scrolled .nav-links a:hover { color: var(--teal-600); }
.nav.scrolled .nav-login { color: var(--text); }
.nav.scrolled .nav-login:hover { color: var(--teal-600); }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1.5px solid var(--on-dark-line); align-items: center; justify-content: center; }
.nav-toggle span { width: 18px; height: 2px; background: var(--on-dark); position: relative; transition: .25s; }
.nav-toggle span::before, .nav-toggle span::after { content:""; position:absolute; left:0; width:18px; height:2px; background: var(--on-dark); transition:.25s; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav.scrolled .nav-toggle, .nav.menu-open .nav-toggle { border-color: var(--line); }
.nav.scrolled .nav-toggle span, .nav.scrolled .nav-toggle span::before, .nav.scrolled .nav-toggle span::after,
.nav.menu-open .nav-toggle span, .nav.menu-open .nav-toggle span::before, .nav.menu-open .nav-toggle span::after { background: var(--text); }

/* ============================== HERO ============================== */
.hero {
  position: relative;
  background:
    radial-gradient(900px 540px at 78% -8%, rgba(27,182,201,.20), transparent 60%),
    radial-gradient(700px 500px at 8% 18%, rgba(11,151,166,.16), transparent 58%),
    linear-gradient(180deg, var(--navy) 0%, var(--ink) 70%, var(--ink-900) 100%);
  color: var(--on-dark);
  padding: 150px 0 96px;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(900px 600px at 70% 20%, #000 0%, transparent 78%);
  mask-image: radial-gradient(900px 600px at 70% 20%, #000 0%, transparent 78%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-copy { max-width: 580px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 66px); color: #fff; letter-spacing: -0.03em; }
.hero h1 .accent { color: var(--teal-300); }
.hero-sub { margin-top: 24px; font-size: clamp(17px, 1.6vw, 20px); color: var(--on-dark-muted); max-width: 500px; }
.hero-cta { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { margin-top: 30px; display: flex; gap: 26px; flex-wrap: wrap; font-size: 13.5px; color: var(--on-dark-muted); }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--teal-300); }

.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 14px 7px 9px; border-radius: 100px;
  background: rgba(255,255,255,.06); border: 1px solid var(--on-dark-line);
  font-size: 13px; color: var(--on-dark); font-weight: 500; margin-bottom: 26px;
}
.pill b { color: var(--teal-300); font-weight: 600; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal-bright); box-shadow: 0 0 0 4px rgba(27,182,201,.18); }

/* Hero demo card */
.demo {
  position: relative; z-index: 2;
  background: rgba(255,255,255,.98);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.05);
  padding: 22px;
  color: var(--text);
}
.demo-top { display: flex; align-items: center; gap: 8px; padding: 2px 4px 16px; border-bottom: 1px solid var(--line); }
.demo-top .tlights { display: flex; gap: 6px; }
.demo-top .tlights i { width: 10px; height: 10px; border-radius: 50%; display: block; background: #E2E8EC; }
.demo-top .url {
  margin-left: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--muted-2);
  background: var(--paper); border-radius: 7px; padding: 5px 11px; flex: 1;
  display: flex; align-items: center; gap: 7px;
}
.demo-top .url svg { width: 12px; height: 12px; color: var(--teal-600); }
.demo-body { padding: 22px 6px 4px; }

.drop {
  border: 2px dashed var(--line); border-radius: var(--radius);
  padding: 30px 22px; text-align: center;
  transition: border-color .4s, background .4s; position: relative; overflow: hidden;
}
.drop.active { border-color: var(--teal); background: var(--teal-soft); }
.drop-ico {
  width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 16px;
  background: linear-gradient(160deg, var(--teal) 0%, #0A7C89 100%);
  display: flex; align-items: center; justify-content: center; color: #fff;
  box-shadow: var(--shadow-teal);
}
.drop-ico svg { width: 26px; height: 26px; }
.drop h4 { font-size: 16px; color: var(--text); }
.drop p { font-size: 13px; color: var(--muted); margin-top: 5px; }

/* file row */
.file-row { display: flex; align-items: center; gap: 13px; padding: 14px; border-radius: 14px; background: var(--paper); margin-top: 14px; opacity: 0; transform: translateY(8px); transition: .4s var(--ease); }
.file-row.show { opacity: 1; transform: none; }
.file-ico { width: 42px; height: 42px; border-radius: 11px; background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--teal-600); flex: 0 0 auto; }
.file-ico svg { width: 20px; height: 20px; }
.file-info { flex: 1; min-width: 0; }
.file-name { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.file-name .sz { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted-2); font-weight: 500; }
.bar { height: 6px; border-radius: 100px; background: var(--paper-2); margin-top: 9px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0%; border-radius: 100px; background: linear-gradient(90deg, var(--teal), var(--teal-bright)); transition: width .3s linear; }
.file-stat { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); margin-top: 7px; display: flex; align-items: center; gap: 7px; }
.file-stat .lk { color: var(--teal-600); display: inline-flex; align-items: center; gap: 5px; }
.file-stat .lk svg { width: 13px; height: 13px; }

/* success link */
.link-out { margin-top: 14px; opacity: 0; transform: translateY(8px); transition: .45s var(--ease); }
.link-out.show { opacity: 1; transform: none; }
.link-card { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 15px; border-radius: 13px; background: var(--navy); color: #fff; }
.link-card .lurl { font-family: var(--font-mono); font-size: 13px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #DCEAF0; }
.copy-btn { background: var(--teal); color: #fff; border-radius: 9px; padding: 8px 13px; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; transition: background .2s, transform .15s; }
.copy-btn:hover { background: var(--teal-bright); }
.copy-btn svg { width: 14px; height: 14px; }
.link-opts { display: flex; gap: 8px; margin-top: 11px; flex-wrap: wrap; }
.opt { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); background: var(--paper); border: 1px solid var(--line); padding: 6px 11px; border-radius: 100px; font-weight: 500; }
.opt svg { width: 13px; height: 13px; color: var(--teal-600); }

/* P2P connection visual */
.p2p { margin-top: 14px; padding: 15px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.p2p-row { display: flex; align-items: center; gap: 12px; }
.node { display: flex; flex-direction: column; align-items: center; gap: 7px; flex: 0 0 auto; }
.node-ico { width: 46px; height: 46px; border-radius: 13px; background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--teal-600); transition: background .35s, color .35s, border-color .35s; }
.node-ico svg { width: 22px; height: 22px; }
.node span { font-size: 12px; font-weight: 600; color: var(--text); }
.node.me .node-ico { background: var(--teal); color: #fff; border-color: transparent; }
.node.them.connected .node-ico { background: var(--navy); color: #fff; border-color: transparent; }
.wire { flex: 1; height: 2px; position: relative; border-radius: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 5px, transparent 5px 11px); transition: background .35s; }
.wire.live { background: linear-gradient(90deg, var(--teal), var(--teal-bright)); }
.wire .packet { position: absolute; top: 50%; left: 50%; width: 9px; height: 9px; border-radius: 50%; background: var(--teal-bright); transform: translate(-50%,-50%); box-shadow: 0 0 0 4px rgba(27,182,201,.18); opacity: 0; }
.wire.live .packet { opacity: 1; animation: flow 1.1s linear infinite; }
@keyframes flow { from { left: 4%; } to { left: 96%; } }
@media (prefers-reduced-motion: reduce) { .wire.live .packet { animation: none; left: 50%; } }
.p2p-status { margin-top: 12px; text-align: center; font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 7px; }
.p2p-status svg { color: var(--muted-2); flex: 0 0 auto; }
.p2p-status.ok { color: var(--teal-600); }
.p2p-status.ok svg { color: var(--teal-600); }

/* ============================== TRUST / CREDS ============================== */
.creds { background: var(--ink-900); border-top: 1px solid var(--on-dark-line); padding: 36px 0; }
.creds-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.creds-row .lbl { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); }
.creds-list { display: flex; gap: 14px; flex-wrap: wrap; }
.cred {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--on-dark); font-weight: 600; font-size: 14px;
  padding: 9px 16px; border-radius: 100px;
  background: rgba(255,255,255,.04); border: 1px solid var(--on-dark-line);
}
.cred svg { width: 16px; height: 16px; color: var(--teal-300); }

/* ============================== STEPS ============================== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 56px; }
.step { position: relative; padding: 30px 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.step-num { font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--teal-600); }
.step-ico { width: 50px; height: 50px; border-radius: 14px; background: var(--teal-soft); color: var(--teal-600); display: flex; align-items: center; justify-content: center; margin: 16px 0 18px; transition: background .3s, color .3s; }
.step:hover .step-ico { background: var(--teal); color: #fff; }
.step-ico svg { width: 24px; height: 24px; }
.step h3 { font-size: 21px; }
.step p { margin-top: 11px; color: var(--muted); font-size: 15.5px; }
.step-line { position: absolute; top: 54px; right: -26px; width: 26px; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 5px, transparent 5px 10px); }
.steps .step:last-child .step-line { display: none; }

/* ============================== FEATURES ============================== */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; }
.feat {
  padding: 30px 28px; border-radius: var(--radius); background: #fff;
  border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.feat:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.feat-ico { width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center; color: var(--teal-600); background: var(--teal-soft); margin-bottom: 18px; }
.feat-ico svg { width: 23px; height: 23px; }
.feat h3 { font-size: 19px; }
.feat p { margin-top: 10px; color: var(--muted); font-size: 15px; }
.feat.wide { grid-column: span 2; display: flex; gap: 26px; align-items: center; background: linear-gradient(135deg, var(--navy) 0%, var(--ink) 100%); color: #fff; border: none; }
.feat.wide h3 { color: #fff; font-size: 22px; }
.feat.wide p { color: var(--on-dark-muted); }
.feat.wide .feat-ico { background: rgba(255,255,255,.08); color: var(--teal-300); }
.feat.wide .feat-body { flex: 1; }

/* ============================== SECURITY ============================== */
.security { background: linear-gradient(180deg, var(--ink) 0%, var(--ink-900) 100%); color: var(--on-dark); overflow: hidden; }
.security::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 460px at 88% 30%, rgba(27,182,201,.16), transparent 62%);
  pointer-events: none;
}
.sec-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 60px; align-items: center; position: relative; z-index: 2; }
.sec-list { margin-top: 38px; display: flex; flex-direction: column; gap: 22px; }
.sec-item { display: flex; gap: 16px; }
.sec-item .ico { width: 44px; height: 44px; border-radius: 12px; flex: 0 0 auto; background: rgba(27,182,201,.12); border: 1px solid rgba(27,182,201,.22); color: var(--teal-300); display: flex; align-items: center; justify-content: center; }
.sec-item .ico svg { width: 21px; height: 21px; }
.sec-item h4 { font-size: 18px; color: #fff; }
.sec-item p { margin-top: 5px; color: var(--on-dark-muted); font-size: 15px; }

/* shield visual */
.shield-vis { position: relative; display: flex; align-items: center; justify-content: center; min-height: 420px; }
.shield-rings { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.shield-rings .ring { position: absolute; border: 1px solid rgba(27,182,201,.18); border-radius: 50%; }
.shield-rings .ring:nth-child(1) { width: 200px; height: 200px; }
.shield-rings .ring:nth-child(2) { width: 320px; height: 320px; animation: spin 26s linear infinite; border-style: dashed; }
.shield-rings .ring:nth-child(3) { width: 440px; height: 440px; border-color: rgba(27,182,201,.10); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .shield-rings .ring { animation: none !important; } }
.shield-core {
  position: relative; z-index: 2; width: 132px; height: 152px;
  background: linear-gradient(160deg, var(--teal) 0%, #086B77 100%);
  -webkit-mask: var(--shield-mask); mask: var(--shield-mask);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-teal);
}
.shield-wrap { position: relative; z-index: 2; }
.shield-wrap .lock { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; }
.shield-wrap .lock svg { width: 46px; height: 46px; }
.orbit-tag {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--on-dark);
  background: rgba(8,28,48,.78); border: 1px solid var(--on-dark-line); backdrop-filter: blur(6px);
  padding: 8px 13px; border-radius: 100px; box-shadow: var(--shadow-md);
}
.orbit-tag svg { width: 14px; height: 14px; color: var(--teal-300); }
.orbit-tag.t1 { top: 14%; left: 2%; } .orbit-tag.t2 { bottom: 18%; left: -4%; } .orbit-tag.t3 { top: 26%; right: -2%; } .orbit-tag.t4 { bottom: 12%; right: 6%; }

/* ============================== STATS ============================== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 14px; }
.stat .num { font-family: var(--font-head); font-size: clamp(38px, 5vw, 56px); font-weight: 600; color: var(--navy); letter-spacing: -.03em; }
.stat .num span { color: var(--teal-600); }
.stat .lbl { margin-top: 6px; color: var(--muted); font-size: 15px; }
.stat + .stat { border-left: 1px solid var(--line); }

/* ============================== PRICING ============================== */
.pricing { background: var(--paper); }
.toggle { display: inline-flex; align-items: center; gap: 12px; margin: 28px auto 0; }
.toggle .t-lbl { font-size: 15px; font-weight: 600; color: var(--muted); transition: color .2s; }
.toggle .t-lbl.on { color: var(--text); }
.switch { width: 52px; height: 30px; border-radius: 100px; background: var(--paper-2); border: 1px solid var(--line); position: relative; transition: background .25s; }
.switch.year { background: var(--teal); border-color: var(--teal); }
.switch i { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease); }
.switch.year i { transform: translateX(22px); }
.save-tag { font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; color: var(--teal-600); background: var(--teal-soft); padding: 3px 9px; border-radius: 100px; }

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 50px; align-items: stretch; }
.tier { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px 30px; display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s; }
.tier:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.tier.featured { background: linear-gradient(170deg, var(--navy) 0%, var(--ink) 100%); color: #fff; border-color: transparent; box-shadow: var(--shadow-lg); position: relative; }
.tier.featured .t-name, .tier.featured .price { color: #fff; }
.tier.featured .t-desc, .tier.featured li { color: var(--on-dark-muted); }
.tier.featured li svg { color: var(--teal-300); }
.t-badge { position: absolute; top: 22px; right: 22px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); background: var(--teal-300); padding: 5px 11px; border-radius: 100px; font-weight: 600; }
.t-name { font-family: var(--font-head); font-size: 19px; font-weight: 600; }
.t-desc { margin-top: 6px; color: var(--muted); font-size: 14px; min-height: 40px; }
.price { font-family: var(--font-head); font-size: 46px; font-weight: 600; color: var(--navy); letter-spacing: -.03em; margin-top: 16px; display: flex; align-items: baseline; gap: 4px; }
.price .per { font-family: var(--font-body); font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.tier.featured .price .per { color: var(--on-dark-muted); }
.price .cur { font-size: 28px; align-self: flex-start; margin-top: 6px; }
.tier .btn { width: 100%; margin: 22px 0 24px; }
.t-feats { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 13px; }
.t-feats li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--text); }
.t-feats li svg { width: 18px; height: 18px; color: var(--teal-600); flex: 0 0 auto; margin-top: 1px; }
.t-sep { height: 1px; background: var(--line); margin: 4px 0 20px; }
.tier.featured .t-sep { background: rgba(255,255,255,.12); }

/* ============================== FAQ ============================== */
.faq-list { max-width: 800px; margin: 50px auto 0; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; transition: box-shadow .3s, border-color .3s; }
.faq-item.open { box-shadow: var(--shadow-sm); border-color: var(--teal-300); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 21px 24px; text-align: left; font-family: var(--font-head); font-weight: 500; font-size: 17.5px; color: var(--text); }
.faq-q .ic { width: 26px; height: 26px; border-radius: 8px; background: var(--paper); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; transition: background .25s, transform .3s; }
.faq-q .ic svg { width: 15px; height: 15px; color: var(--teal-600); transition: transform .3s; }
.faq-item.open .faq-q .ic { background: var(--teal); }
.faq-item.open .faq-q .ic svg { color: #fff; transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-a-inner { padding: 0 24px 22px; color: var(--muted); font-size: 15.5px; }

/* ============================== CTA ============================== */
.cta {
  position: relative; overflow: hidden;
  background:
    radial-gradient(700px 420px at 80% 10%, rgba(27,182,201,.24), transparent 60%),
    linear-gradient(150deg, var(--teal) 0%, #0A7C89 48%, var(--navy) 100%);
  color: #fff; border-radius: var(--radius-lg); padding: 72px 64px; text-align: center;
}
.cta::before { content:""; position:absolute; inset:0; background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(600px 360px at 50% 0%, #000, transparent 75%); mask-image: radial-gradient(600px 360px at 50% 0%, #000, transparent 75%); }
.cta > * { position: relative; z-index: 2; }
.cta h2 { font-size: clamp(30px, 4.2vw, 48px); color: #fff; }
.cta p { margin: 18px auto 0; max-width: 560px; font-size: 18px; color: rgba(255,255,255,.86); }
.cta .hero-cta { justify-content: center; margin-top: 34px; }

/* ============================== FOOTER ============================== */
.footer { background: var(--ink-900); color: var(--on-dark-muted); padding: 76px 0 36px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.foot-brand img { height: 30px; margin-bottom: 18px; }
.foot-brand p { font-size: 14.5px; max-width: 290px; line-height: 1.7; }
.foot-soc { display: flex; gap: 10px; margin-top: 20px; }
.foot-soc a { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--on-dark-line); display: flex; align-items: center; justify-content: center; color: var(--on-dark-muted); transition: .2s; }
.foot-soc a:hover { color: var(--teal-300); border-color: var(--teal-300); transform: translateY(-2px); }
.foot-soc svg { width: 17px; height: 17px; }
.foot-col h5 { font-family: var(--font-head); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--on-dark); margin-bottom: 18px; font-weight: 600; }
.foot-col a { display: block; font-size: 14.5px; padding: 6px 0; transition: color .2s; }
.foot-col a:hover { color: var(--teal-300); }
.foot-bottom { margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--on-dark-line); display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: 13.5px; }
.foot-bottom .legal { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-bottom a:hover { color: var(--teal-300); }

/* ============================== REVEAL ============================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; } }

/* mobile menu */
.mobile-menu { display: none; position: fixed; inset: 76px 0 auto 0; z-index: 99; background: rgba(255,255,255,.97); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); flex-direction: column; padding: 18px 28px 26px; gap: 4px; transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .25s var(--ease); }
.mobile-menu.open { transform: none; opacity: 1; pointer-events: auto; }
.mobile-menu a { padding: 13px 0; font-size: 17px; font-weight: 500; border-bottom: 1px solid var(--line); }
.mobile-menu .nav-login { color: var(--text); }
.mobile-menu .btn { margin-top: 16px; border-bottom: none; }

/* ============================== RESPONSIVE ============================== */
@media (max-width: 960px) {
  .hero-grid, .sec-grid { grid-template-columns: 1fr; gap: 44px; }
  .demo { max-width: 480px; }
  .shield-vis { min-height: 340px; }
  .steps, .feat-grid, .tiers { grid-template-columns: 1fr; }
  .feat.wide { grid-column: auto; flex-direction: column; align-items: flex-start; }
  .step-line { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 30px 0; }
  .stat:nth-child(3) { border-left: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .nav-links, .nav-cta .nav-login, .nav-cta .btn { display: none; }
  .nav-toggle { display: flex; }
  .nav.menu-open .nav-toggle span { background: transparent; }
  .nav.menu-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
  .nav.menu-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }
  .mobile-menu { display: flex; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .section { padding: 78px 0; }
  .cta { padding: 52px 24px; }
  .hero { padding: 118px 0 64px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 26px 0; }
  .foot-grid { grid-template-columns: 1fr; }
  .creds-row { flex-direction: column; align-items: flex-start; }
  .brand img { height: 28px; }
  .demo { padding: 16px; }
  .demo-top .url { font-size: 11px; }
  .hero-meta { gap: 11px 18px; }
  .hero-meta span { font-size: 13px; }
  .pill { font-size: 12px; }
  .section-head p { font-size: 16.5px; }
  .hero-sub { font-size: 17px; }
  .step, .feat, .tier { padding: 26px 22px; }
  .feat.wide { padding: 26px 22px; }
  .cred { font-size: 13px; padding: 8px 14px; }
}
@media (max-width: 440px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .node-ico { width: 42px; height: 42px; }
  .node span { font-size: 11px; }
  .stat .num { font-size: 40px; }
}
