/* ============================================================
   TESTMOON — AI Test Automation
   Cosmic Moonlight theme · shared styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,600;12..96,700;12..96,800&family=Hanken+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --bg:        #07060f;
  --bg-2:      #0c0a1a;
  --surface:   rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border:    rgba(255, 255, 255, 0.09);
  --border-2:  rgba(255, 255, 255, 0.16);
  --text:      #ECEAF6;
  --muted:     #9b97bd;
  --faint:     #6e6a91;

  --moon:      #efeeff;
  --accent:    #67e8f9;   /* luminous cyan */
  --accent-2:  #a78bfa;   /* violet */
  --mint:      #5eead4;
  --pink:      #f0abfc;

  --grad: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 55%, var(--pink) 100%);
  --grad-soft: linear-gradient(135deg, rgba(103,232,249,0.16), rgba(167,139,250,0.16));

  --display: 'Bricolage Grotesque', sans-serif;
  --body: 'Hanken Grotesk', sans-serif;
  --mono: 'JetBrains Mono', monospace;

  --radius: 18px;
  --radius-lg: 28px;
  --maxw: 1180px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.75);
  --glow: 0 0 60px -10px rgba(103, 232, 249, 0.45);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Cosmic backdrop ------------------------------------------------ */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 700px at 78% -8%, rgba(167, 139, 250, 0.20), transparent 60%),
    radial-gradient(900px 600px at 8% 6%, rgba(103, 232, 249, 0.12), transparent 55%),
    radial-gradient(1200px 900px at 50% 110%, rgba(240, 171, 252, 0.10), transparent 60%),
    var(--bg);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    radial-gradient(1.4px 1.4px at 20% 30%, rgba(255,255,255,0.9), transparent),
    radial-gradient(1.2px 1.2px at 70% 18%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 40% 70%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1.5px 1.5px at 85% 60%, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 12% 80%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.3px 1.3px at 60% 88%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 92% 35%, rgba(255,255,255,0.5), transparent);
  background-repeat: no-repeat;
}

::selection { background: rgba(103, 232, 249, 0.3); color: #fff; }

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

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

/* Typography ----------------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent);
  padding: 7px 14px; border: 1px solid var(--border);
  border-radius: 100px; background: var(--surface);
  backdrop-filter: blur(6px);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.section { padding: clamp(70px, 9vw, 130px) 0; position: relative; }
.section-head { max-width: 640px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4.6vw, 3.3rem); margin: 18px 0 16px; }
.section-head p { color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.15rem); }

/* Buttons -------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: 0.97rem; padding: 13px 24px;
  border-radius: 100px; transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary {
  background: var(--grad); color: #07060f; font-weight: 700;
  box-shadow: 0 10px 30px -8px rgba(103, 232, 249, 0.5);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(167, 139, 250, 0.65); }
.btn-ghost {
  background: var(--surface); color: var(--text); border: 1px solid var(--border-2);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--accent); background: var(--surface-2); }
.btn-lg { padding: 16px 30px; font-size: 1.02rem; }

/* Navbar --------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  transition: background .3s, border-color .3s, box-shadow .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8, 7, 16, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 10px 40px -25px rgba(0,0,0,0.9);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.03em; }
.brand .logo { width: 34px; height: 34px; flex: none; }
.brand span { color: var(--text); }
.brand b { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  color: var(--muted); font-weight: 500; font-size: 0.96rem;
  padding: 9px 15px; border-radius: 100px; transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }
.nav-toggle span { display: block; width: 19px; height: 2px; background: var(--text); margin: 4px auto; border-radius: 2px; transition: .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Hero ----------------------------------------------------------- */
.hero { position: relative; padding: clamp(60px, 9vw, 110px) 0 clamp(60px, 8vw, 100px); overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 50px; align-items: center;
}
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); margin: 22px 0 22px; font-weight: 800; }
.hero p.lead { font-size: clamp(1.05rem, 1.7vw, 1.3rem); color: var(--muted); max-width: 540px; margin-bottom: 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-trust { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; color: var(--faint); font-size: 0.85rem; }
.hero-trust .stars { color: var(--accent); letter-spacing: 2px; }
.hero-trust b { color: var(--text); font-weight: 600; }

/* Moon visual */
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; min-height: 360px; }
.moon {
  position: relative; width: clamp(220px, 30vw, 320px); aspect-ratio: 1; border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, #ffffff, #d9d6f5 30%, #8d88c4 70%, #514c7a 100%);
  box-shadow:
    inset -22px -20px 50px rgba(20,16,40,0.85),
    0 0 90px 8px rgba(167,139,250,0.45),
    0 0 160px 30px rgba(103,232,249,0.22);
  animation: float 7s ease-in-out infinite;
}
.moon::before, .moon::after {
  content: ""; position: absolute; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(120,114,160,0.5), rgba(80,75,120,0.65));
  box-shadow: inset 2px 3px 6px rgba(20,16,40,0.6);
}
.moon::before { width: 22%; height: 22%; top: 24%; left: 30%; }
.moon::after  { width: 13%; height: 13%; top: 58%; left: 56%; }
.crater { position: absolute; border-radius: 50%; background: radial-gradient(circle at 40% 40%, rgba(120,114,160,0.45), rgba(70,66,108,0.6)); box-shadow: inset 1px 2px 4px rgba(20,16,40,0.6); }
.crater.c1 { width: 9%; height: 9%; top: 40%; left: 64%; }
.crater.c2 { width: 6%; height: 6%; top: 70%; left: 34%; }
.crater.c3 { width: 5%; height: 5%; top: 18%; left: 58%; }

.orbit {
  position: absolute; inset: -6% ; border: 1px dashed rgba(255,255,255,0.13); border-radius: 50%;
  animation: spin 26s linear infinite;
}
.orbit::before {
  content: ""; position: absolute; top: -7px; left: 50%; width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 18px var(--accent); transform: translateX(-50%);
}
.orbit.o2 { inset: -22%; animation-duration: 40s; animation-direction: reverse; border-color: rgba(255,255,255,0.07); }
.orbit.o2::before { background: var(--pink); box-shadow: 0 0 18px var(--pink); width: 10px; height: 10px; }

/* floating test chips */
.chip {
  position: absolute; font-family: var(--mono); font-size: 0.72rem; padding: 8px 13px;
  border-radius: 12px; background: rgba(12,10,26,0.78); border: 1px solid var(--border-2);
  backdrop-filter: blur(8px); display: flex; align-items: center; gap: 7px; box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}
.chip .tick { color: var(--mint); }
.chip.t1 { top: 8%; left: -4%; animation-delay: .4s; }
.chip.t2 { bottom: 14%; right: -6%; animation-delay: 1.4s; }
.chip.t3 { bottom: -2%; left: 14%; animation-delay: 2.2s; }

@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* Marquee logos -------------------------------------------------- */
.proof { padding: 30px 0 10px; }
.proof p { text-align: center; color: var(--faint); font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; font-family: var(--mono); margin-bottom: 22px; }
.proof-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(24px, 5vw, 60px); opacity: 0.7; }
.proof-row span { font-family: var(--display); font-weight: 700; font-size: 1.25rem; color: var(--muted); letter-spacing: -0.02em; }

/* Feature cards -------------------------------------------------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 28px; position: relative; overflow: hidden; transition: transform .3s, border-color .3s, background .3s;
}
.card:hover { transform: translateY(-5px); border-color: var(--border-2); background: var(--surface-2); }
.card .ic {
  width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid var(--border-2); margin-bottom: 20px;
}
.card .ic svg { width: 24px; height: 24px; stroke: var(--accent); }
.card h3 { font-size: 1.25rem; margin-bottom: 9px; }
.card p { color: var(--muted); font-size: 0.96rem; }
.card.span-2 { grid-column: span 2; }

/* Demo ----------------------------------------------------------- */
.demo-shell {
  background: linear-gradient(160deg, rgba(167,139,250,0.08), rgba(8,7,16,0.4));
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 34px); box-shadow: var(--shadow);
}
.demo-top { display: flex; align-items: center; gap: 8px; margin-bottom: 22px; }
.demo-top .dots { display: flex; gap: 7px; }
.demo-top .dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--border-2); }
.demo-top .dots i:nth-child(1){ background:#ff5f57; } .demo-top .dots i:nth-child(2){ background:#febc2e; } .demo-top .dots i:nth-child(3){ background:#28c840; }
.demo-top .tab { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); margin-left: 10px; }
.demo-body { display: grid; grid-template-columns: 1fr 1.25fr; gap: 22px; }
.demo-input label { display: block; font-size: 0.82rem; color: var(--muted); margin-bottom: 9px; font-weight: 600; }
.demo-input textarea {
  width: 100%; min-height: 130px; resize: vertical; border-radius: 14px; padding: 14px 16px;
  background: rgba(8,7,16,0.6); border: 1px solid var(--border-2); color: var(--text);
  font-family: var(--body); font-size: 0.96rem; line-height: 1.5; transition: border-color .2s;
}
.demo-input textarea:focus { outline: none; border-color: var(--accent); }
.demo-suggest { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.demo-suggest button {
  font-size: 0.78rem; font-family: var(--mono); padding: 6px 11px; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--border); color: var(--muted); transition: .2s;
}
.demo-suggest button:hover { color: var(--text); border-color: var(--accent); }
.demo-output {
  background: rgba(5,4,11,0.75); border: 1px solid var(--border-2); border-radius: 14px;
  padding: 18px; min-height: 280px; font-family: var(--mono); font-size: 0.82rem;
  overflow-y: auto; max-height: 420px;
}
.demo-output .placeholder { color: var(--faint); display: grid; place-items: center; height: 240px; text-align: center; gap: 12px; }
.demo-output .placeholder svg { width: 40px; height: 40px; stroke: var(--faint); opacity: .6; }
.demo-meta { display: flex; gap: 16px; margin-bottom: 14px; font-size: 0.74rem; color: var(--muted); flex-wrap: wrap; }
.demo-meta b { color: var(--accent); }
.tcase { border-left: 2px solid var(--border-2); padding: 9px 0 9px 13px; margin-bottom: 12px; }
.tcase .badge { display: inline-block; font-size: 0.64rem; padding: 2px 8px; border-radius: 100px; margin-bottom: 5px; letter-spacing: .06em; text-transform: uppercase; }
.badge.positive { background: rgba(94,234,212,0.14); color: var(--mint); }
.badge.negative { background: rgba(240,171,252,0.14); color: var(--pink); }
.badge.edge { background: rgba(103,232,249,0.14); color: var(--accent); }
.badge.security { background: rgba(167,139,250,0.16); color: var(--accent-2); }
.tcase .ttitle { color: var(--text); font-weight: 500; }
.tcase .tline { color: var(--muted); }
.tcase .tline span { color: var(--mint); }
.cursor { display:inline-block; width:7px; height:14px; background:var(--accent); margin-left:2px; animation: blink 1s steps(2) infinite; vertical-align: middle; }
@keyframes blink { 0%,50%{opacity:1;} 50.01%,100%{opacity:0;} }
.demo-actions { margin-top: 16px; display: flex; gap: 12px; flex-wrap: wrap; }

/* Steps ---------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 26px; position: relative; }
.step .num { font-family: var(--display); font-weight: 800; font-size: 2.4rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; line-height: 1; margin-bottom: 14px; }
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* Pricing -------------------------------------------------------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 34px 30px; display: flex; flex-direction: column; transition: transform .3s, border-color .3s;
}
.price-card:hover { transform: translateY(-5px); border-color: var(--border-2); }
.price-card.featured { border-color: rgba(103,232,249,0.4); background: linear-gradient(165deg, rgba(103,232,249,0.08), rgba(167,139,250,0.06)); box-shadow: var(--glow); position: relative; }
.price-card.featured .tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #07060f; font-weight: 700; font-size: 0.72rem; padding: 5px 14px; border-radius: 100px; letter-spacing: .04em; }
.price-card h3 { font-size: 1.3rem; margin-bottom: 6px; }
.price-card .desc { color: var(--muted); font-size: 0.9rem; margin-bottom: 22px; min-height: 40px; }
.price-card .amount { font-family: var(--display); font-weight: 800; font-size: 2.8rem; line-height: 1; }
.price-card .amount small { font-size: 0.95rem; font-weight: 500; color: var(--muted); font-family: var(--body); }
.price-card ul { list-style: none; margin: 24px 0 28px; display: grid; gap: 12px; }
.price-card li { display: flex; gap: 11px; align-items: flex-start; font-size: 0.93rem; color: var(--text); }
.price-card li svg { width: 18px; height: 18px; flex: none; stroke: var(--mint); margin-top: 3px; }
.price-card .btn { margin-top: auto; width: 100%; }

/* About + Founder ------------------------------------------------ */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 50px; align-items: center; }
.about-copy h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin: 16px 0 18px; }
.about-copy p { color: var(--muted); margin-bottom: 16px; font-size: 1.02rem; }
.about-stats { display: flex; gap: 34px; margin-top: 26px; flex-wrap: wrap; }
.about-stats .s b { display: block; font-family: var(--display); font-weight: 800; font-size: 2rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.about-stats .s span { color: var(--faint); font-size: 0.85rem; }

.founder-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 34px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.founder-card::before { content:""; position:absolute; top:-40%; right:-30%; width:300px; height:300px; border-radius:50%; background: radial-gradient(circle, rgba(167,139,250,0.25), transparent 70%); pointer-events:none; }
.founder-head { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; position: relative; }
.founder-avatar {
  width: 78px; height: 78px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--grad); color: #07060f; font-family: var(--display); font-weight: 800; font-size: 1.7rem;
  box-shadow: 0 0 30px -6px rgba(103,232,249,0.5);
}
.founder-head h3 { font-size: 1.3rem; }
.founder-head .role { color: var(--accent); font-family: var(--mono); font-size: 0.8rem; letter-spacing: .05em; margin-top: 3px; }
.founder-card .bio { color: var(--muted); font-size: 0.95rem; line-height: 1.7; position: relative; }
.founder-socials { display: flex; gap: 10px; margin-top: 22px; }
.founder-socials a { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); transition: .2s; }
.founder-socials a:hover { border-color: var(--accent); transform: translateY(-2px); }
.founder-socials svg { width: 18px; height: 18px; stroke: var(--muted); }

/* Contact -------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; }
.contact-info h2 { font-size: clamp(2rem,4vw,2.8rem); margin: 14px 0 16px; }
.contact-info p { color: var(--muted); margin-bottom: 28px; }
.contact-detail { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.contact-detail .ci { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--border); flex: none; }
.contact-detail .ci svg { width: 19px; height: 19px; stroke: var(--accent); }
.contact-detail .label { font-size: 0.76rem; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; }
.contact-detail a, .contact-detail span { color: var(--text); font-size: 0.98rem; }
.contact-detail a:hover { color: var(--accent); }

/* Shared form ---------------------------------------------------- */
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: 0.82rem; color: var(--muted); margin-bottom: 7px; font-weight: 600; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; border-radius: 12px; background: rgba(8,7,16,0.6);
  border: 1px solid var(--border-2); color: var(--text); font-family: var(--body); font-size: 0.96rem; transition: border-color .2s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 36px); }

/* form success */
.form-success { text-align: center; padding: 30px 10px; display: none; }
.form-success.show { display: block; animation: pop .4s ease; }
.form-success .check { width: 66px; height: 66px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--border-2); }
.form-success .check svg { width: 32px; height: 32px; stroke: var(--mint); }
.form-success h3 { font-size: 1.5rem; margin-bottom: 8px; }
.form-success p { color: var(--muted); }
@keyframes pop { from { transform: scale(.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* CTA band ------------------------------------------------------- */
.cta-band { text-align: center; }
.cta-inner {
  background: linear-gradient(150deg, rgba(103,232,249,0.12), rgba(167,139,250,0.12));
  border: 1px solid var(--border-2); border-radius: var(--radius-lg);
  padding: clamp(44px, 6vw, 78px) 24px; position: relative; overflow: hidden;
}
.cta-inner::before { content:""; position:absolute; inset:0; background: radial-gradient(500px 200px at 50% 0%, rgba(167,139,250,0.25), transparent 70%); pointer-events:none; }
.cta-inner h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: 16px; position: relative; }
.cta-inner p { color: var(--muted); font-size: 1.1rem; max-width: 520px; margin: 0 auto 30px; position: relative; }
.cta-inner .hero-cta { justify-content: center; position: relative; }

/* Footer --------------------------------------------------------- */
.footer { border-top: 1px solid var(--border); padding: 64px 0 30px; margin-top: 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { color: var(--muted); font-size: 0.93rem; max-width: 300px; }
.footer-col h4 { font-family: var(--body); font-size: 0.78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); margin-bottom: 18px; }
.footer-col a, .footer-col .fitem { display: block; color: var(--muted); font-size: 0.93rem; margin-bottom: 12px; transition: color .2s; }
.footer-col a:hover { color: var(--accent); }
.footer-col .fitem { color: var(--text); }
.footer-col .fitem small { display:block; color: var(--faint); font-size: 0.78rem; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 50px; padding-top: 26px; border-top: 1px solid var(--border); color: var(--faint); font-size: 0.85rem; }
.footer-bottom .legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom .legal a:hover { color: var(--accent); }

/* Modal ---------------------------------------------------------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000; background: rgba(4,3,10,0.7);
  backdrop-filter: blur(8px); display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: linear-gradient(165deg, #121024, #0a0817); border: 1px solid var(--border-2);
  border-radius: var(--radius-lg); width: 100%; max-width: 520px; max-height: 92vh; overflow-y: auto;
  padding: clamp(26px, 4vw, 38px); box-shadow: var(--shadow); position: relative; animation: rise .35s cubic-bezier(.2,.8,.2,1);
}
@keyframes rise { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal .close { position: absolute; top: 18px; right: 18px; width: 38px; height: 38px; border-radius: 11px; background: var(--surface); border: 1px solid var(--border); display: grid; place-items: center; transition: .2s; }
.modal .close:hover { border-color: var(--accent); }
.modal .close svg { width: 18px; height: 18px; stroke: var(--text); }
.modal .eyebrow { margin-bottom: 14px; }
.modal h3 { font-size: 1.7rem; margin-bottom: 8px; }
.modal > p.sub { color: var(--muted); margin-bottom: 24px; font-size: 0.96rem; }

/* Reveal animations --------------------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s 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; }

/* Legal pages ---------------------------------------------------- */
.legal-page { max-width: 820px; margin: 0 auto; padding: clamp(50px, 7vw, 90px) 24px; }
.legal-page .eyebrow { margin-bottom: 18px; }
.legal-page h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 12px; }
.legal-page .updated { color: var(--faint); font-family: var(--mono); font-size: 0.82rem; margin-bottom: 40px; }
.legal-page h2 { font-size: 1.4rem; margin: 38px 0 12px; }
.legal-page p, .legal-page li { color: var(--muted); margin-bottom: 14px; font-size: 0.98rem; line-height: 1.75; }
.legal-page ul { padding-left: 22px; margin-bottom: 14px; }
.legal-page a { color: var(--accent); }
.legal-page a:hover { text-decoration: underline; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.92rem; margin-top: 40px; }
.back-link:hover { color: var(--accent); }
.back-link svg { width: 16px; height: 16px; }

/* Responsive ----------------------------------------------------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .hero-visual { order: -1; min-height: 300px; }
  .features-grid, .steps, .pricing-grid { grid-template-columns: 1fr 1fr; }
  .card.span-2 { grid-column: span 2; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .demo-body { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .nav-links.mobile-open {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    position: absolute; top: 74px; left: 0; right: 0; padding: 16px 24px 22px;
    background: rgba(8,7,16,0.96); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border);
  }
  .nav-links.mobile-open a { padding: 12px 14px; }
  .features-grid, .steps, .pricing-grid, .footer-grid { grid-template-columns: 1fr; }
  .card.span-2 { grid-column: span 1; }
  .form .row { grid-template-columns: 1fr; }
  .about-stats { gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 420px) {
  .wrap { padding: 0 18px; }
  .hero-cta .btn { width: 100%; }
}
