/* ============================================================
   PromptShield by KareriAI — "Sentinel Dark" Design System
   Theme concept:
   - Deep space navy  -> trust, security-operations depth
   - Cyan   #22D3EE   -> the shield glow / live scanning
   - Violet #8B5CF6   -> AI / neural intelligence
   - Green  #34D399   -> safe / allowed
   - Red    #F87171   -> threat blocked
   Brand gradient: cyan -> violet
   ============================================================ */

/* ---------- 1. Design tokens ---------- */
:root {
  /* surfaces */
  --bg-0: #050914;
  --bg-1: #0a1020;
  --bg-2: #0f1830;
  --bg-3: #14203d;
  --glass: rgba(15, 24, 48, 0.55);
  --line: rgba(148, 163, 184, 0.14);
  --line-strong: rgba(148, 163, 184, 0.28);

  /* text */
  --text-hi: #eaf0fb;
  --text-mid: #b6c2d6;
  --text-lo: #7f8ca3;

  /* brand */
  --cyan: #22d3ee;
  --cyan-soft: rgba(34, 211, 238, 0.12);
  --violet: #8b5cf6;
  --violet-soft: rgba(139, 92, 246, 0.12);
  --green: #34d399;
  --green-soft: rgba(52, 211, 153, 0.12);
  --red: #f87171;
  --red-soft: rgba(248, 113, 113, 0.12);
  --amber: #fbbf24;
  --amber-soft: rgba(251, 191, 36, 0.12);

  --grad-brand: linear-gradient(120deg, #22d3ee 0%, #818cf8 55%, #8b5cf6 100%);
  --grad-glow: radial-gradient(closest-side, rgba(34, 211, 238, 0.22), transparent 70%);

  /* shape & motion */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-full: 999px;
  --shadow-1: 0 6px 24px rgba(2, 6, 18, 0.55);
  --shadow-2: 0 18px 50px rgba(2, 6, 18, 0.65);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* type */
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --nav-h: 72px;
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  background: var(--bg-0);
  color: var(--text-hi);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ambient page background: grid + aurora glows */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 480px at 12% -8%, rgba(34, 211, 238, 0.10), transparent 60%),
    radial-gradient(1000px 560px at 88% -4%, rgba(139, 92, 246, 0.12), transparent 62%),
    var(--bg-0);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 78%);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: rgba(34, 211, 238, 0.32); color: #fff; }

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.25rem; }
p  { color: var(--text-mid); }

.grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mono { font-family: var(--font-mono); }

/* ---------- 4. Layout utilities ---------- */
.container { width: min(1140px, 100% - 3rem); margin-inline: auto; }
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; position: relative; }
.section-head { max-width: 680px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.section-head p { margin-top: 1rem; font-size: 1.06rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--grad-brand);
}

/* ---------- 5. Buttons & badges ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.7rem;
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, border-color 0.25s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  background: var(--grad-brand);
  color: #04121a;
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.35), 0 10px 34px rgba(34, 211, 238, 0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.55), 0 16px 44px rgba(139, 92, 246, 0.38); }

.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--text-hi);
  background: rgba(148, 163, 184, 0.05);
}
.btn-ghost:hover { border-color: var(--cyan); background: var(--cyan-soft); transform: translateY(-2px); }

.btn-sm { padding: 0.55rem 1.15rem; font-size: 0.9rem; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  background: var(--glass);
  font-size: 0.82rem;
  color: var(--text-mid);
  backdrop-filter: blur(8px);
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 2.2s infinite; }

@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---------- 6. Navbar ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5, 9, 20, 0.78);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; width: min(1140px, 100% - 3rem); margin-inline: auto; }

.brand { display: inline-flex; align-items: center; gap: 0.65rem; font-family: var(--font-display); font-weight: 700; font-size: 1.16rem; letter-spacing: -0.01em; }
.brand svg { width: 30px; height: 30px; }
.brand small { display: block; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.22em; color: var(--text-lo); font-weight: 400; }
.brand-name { line-height: 1.05; }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-size: 0.95rem; color: var(--text-mid); position: relative; padding: 0.3rem 0; transition: color 0.2s; }
.nav-links a::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--grad-brand);
  border-radius: 2px;
  transition: width 0.28s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--text-hi); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: 0.8rem; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 0.5rem; z-index: 110; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text-hi); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 7. Hero ---------- */
.hero { padding: calc(var(--nav-h) + clamp(3rem, 8vw, 6.5rem)) 0 clamp(3.5rem, 7vw, 6rem); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { margin: 1.3rem 0 1.25rem; }
.hero .lede { font-size: 1.13rem; max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 2rem 0 2.4rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 1.6rem; color: var(--text-lo); font-size: 0.88rem; }
.hero-meta strong { color: var(--text-hi); font-family: var(--font-display); font-size: 1.05rem; display: block; }

/* ---------- 8. Terminal window ---------- */
.terminal {
  position: relative;
  background: rgba(7, 12, 26, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2), 0 0 80px rgba(34, 211, 238, 0.08);
  overflow: hidden;
  backdrop-filter: blur(10px);
}
.terminal::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(34, 211, 238, 0.5), transparent 32%, transparent 68%, rgba(139, 92, 246, 0.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.terminal-bar {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(15, 24, 48, 0.6);
}
.tl-dot { width: 11px; height: 11px; border-radius: 50%; }
.tl-dot.r { background: #ff5f57; } .tl-dot.y { background: #febc2e; } .tl-dot.g { background: #28c840; }
.terminal-title { margin-left: auto; margin-right: auto; font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-lo); transform: translateX(-22px); }
.terminal-body { padding: 1.2rem 1.3rem 1.4rem; font-family: var(--font-mono); font-size: 0.82rem; line-height: 1.9; }
.t-line { display: flex; gap: 0.6rem; opacity: 0; animation: lineIn 0.4s forwards; }
.t-line .prompt-sign { color: var(--cyan); user-select: none; }
.t-cmd { color: var(--text-hi); }
.t-ok   { color: var(--green); }
.t-warn { color: var(--amber); }
.t-bad  { color: var(--red); }
.t-dim  { color: var(--text-lo); }
@keyframes lineIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* floating shield chips around terminal */
.float-chip {
  position: absolute;
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.5rem 0.95rem;
  border-radius: var(--r-full);
  font-family: var(--font-mono); font-size: 0.74rem;
  background: rgba(10, 16, 32, 0.92);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-1);
  animation: floaty 5.5s ease-in-out infinite;
}
.float-chip.blocked { color: var(--red); border-color: rgba(248, 113, 113, 0.4); top: -16px; right: 8%; }
.float-chip.safe { color: var(--green); border-color: rgba(52, 211, 153, 0.4); bottom: -16px; left: 6%; animation-delay: -2.6s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

.hero-visual { position: relative; }
.hero-visual::before {
  content: "";
  position: absolute; inset: -12% -18%;
  background:
    radial-gradient(closest-side, rgba(34, 211, 238, 0.16), transparent 70%) 20% 30% / 60% 60% no-repeat,
    radial-gradient(closest-side, rgba(139, 92, 246, 0.18), transparent 70%) 80% 70% / 60% 60% no-repeat;
  z-index: -1;
}

/* ---------- 9. Trust bar ---------- */
.trust { padding: 2.2rem 0 0; }
.trust p { text-align: center; font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-lo); margin-bottom: 1.4rem; }
.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 2.6rem 3.4rem; opacity: 0.65; }
.trust-row span { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--text-mid); display: inline-flex; align-items: center; gap: 0.5rem; }
.trust-row span::before { content: "◆"; font-size: 0.6rem; color: var(--cyan); }

/* ---------- 10. Cards & feature grid ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative;
  background: linear-gradient(180deg, rgba(20, 32, 61, 0.5), rgba(10, 16, 32, 0.65));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.9rem;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.55), transparent);
  opacity: 0; transition: opacity 0.35s;
}
.card:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: var(--shadow-2); }
.card:hover::after { opacity: 1; }
.card h3 { margin: 1.1rem 0 0.55rem; }
.card p { font-size: 0.94rem; }

.icon-tile {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--cyan-soft);
  border: 1px solid rgba(34, 211, 238, 0.28);
  color: var(--cyan);
}
.icon-tile.violet { background: var(--violet-soft); border-color: rgba(139, 92, 246, 0.32); color: #a78bfa; }
.icon-tile.green  { background: var(--green-soft);  border-color: rgba(52, 211, 153, 0.3);  color: var(--green); }
.icon-tile.red    { background: var(--red-soft);    border-color: rgba(248, 113, 113, 0.3); color: var(--red); }
.icon-tile.amber  { background: var(--amber-soft);  border-color: rgba(251, 191, 36, 0.3);  color: var(--amber); }
.icon-tile svg { width: 22px; height: 22px; }

/* ---------- 11. Live scanner widget ---------- */
.scanner-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.4rem;
  align-items: stretch;
}
.scan-panel {
  background: rgba(7, 12, 26, 0.85);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.scan-panel textarea {
  width: 100%;
  min-height: 150px;
  resize: vertical;
  background: rgba(5, 9, 20, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--text-hi);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.scan-panel textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.14); }
.scan-controls { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; }
.sample-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-left: auto; }
.chip {
  font-family: var(--font-mono); font-size: 0.74rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  color: var(--text-mid);
  transition: all 0.2s;
}
.chip:hover { border-color: var(--cyan); color: var(--cyan); background: var(--cyan-soft); }

.scan-result { display: flex; flex-direction: column; gap: 1rem; }
.scan-verdict {
  border-radius: var(--r-md);
  padding: 1.15rem 1.3rem;
  display: flex; align-items: center; gap: 0.9rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  border: 1px solid var(--line);
  background: rgba(15, 24, 48, 0.5);
  color: var(--text-lo);
  min-height: 74px;
  transition: all 0.4s var(--ease);
}
.scan-verdict .v-icon { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%; }
.scan-verdict.blocked { border-color: rgba(248, 113, 113, 0.5); background: var(--red-soft); color: var(--red); box-shadow: 0 0 34px rgba(248, 113, 113, 0.15); }
.scan-verdict.blocked .v-icon { background: rgba(248, 113, 113, 0.18); }
.scan-verdict.safe { border-color: rgba(52, 211, 153, 0.5); background: var(--green-soft); color: var(--green); box-shadow: 0 0 34px rgba(52, 211, 153, 0.12); }
.scan-verdict.safe .v-icon { background: rgba(52, 211, 153, 0.18); }

.scan-findings { display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.finding {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.75rem 1rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: rgba(15, 24, 48, 0.45);
  font-size: 0.88rem;
  animation: findingIn 0.35s var(--ease);
}
@keyframes findingIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
.finding .sev {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em;
  padding: 0.2rem 0.55rem; border-radius: var(--r-full); text-transform: uppercase; flex: none;
}
.sev.critical { background: var(--red-soft); color: var(--red); border: 1px solid rgba(248, 113, 113, 0.4); }
.sev.high { background: var(--amber-soft); color: var(--amber); border: 1px solid rgba(251, 191, 36, 0.4); }
.sev.medium { background: var(--violet-soft); color: #a78bfa; border: 1px solid rgba(139, 92, 246, 0.4); }
.sev.info { background: var(--cyan-soft); color: var(--cyan); border: 1px solid rgba(34, 211, 238, 0.4); }
.finding .f-name { color: var(--text-hi); font-weight: 600; }
.finding .f-detail { color: var(--text-lo); font-family: var(--font-mono); font-size: 0.74rem; margin-left: auto; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 45%; }
.scan-empty { color: var(--text-lo); font-size: 0.88rem; text-align: center; padding: 2rem 1rem; border: 1px dashed var(--line); border-radius: var(--r-md); flex: 1; display: flex; align-items: center; justify-content: center; }

.scan-line {
  height: 3px; border-radius: 3px;
  background: rgba(148, 163, 184, 0.12);
  overflow: hidden;
  opacity: 0; transition: opacity 0.2s;
}
.scan-line.on { opacity: 1; }
.scan-line i {
  display: block; height: 100%; width: 40%;
  background: var(--grad-brand);
  border-radius: inherit;
  animation: sweep 0.9s linear infinite;
}
@keyframes sweep { from { transform: translateX(-110%); } to { transform: translateX(280%); } }

/* ---------- 12. Steps / how it works ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.step { position: relative; padding-top: 1rem; }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-display);
  font-size: 3.4rem; font-weight: 700;
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.75), rgba(139, 92, 246, 0.25));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: block; margin-bottom: 0.9rem;
}
.step h3 { margin-bottom: 0.55rem; }
.step p { font-size: 0.94rem; }
.step code { font-family: var(--font-mono); font-size: 0.78rem; background: rgba(34, 211, 238, 0.1); color: var(--cyan); padding: 0.15rem 0.5rem; border-radius: 6px; border: 1px solid rgba(34, 211, 238, 0.22); }

/* code block */
.code-block {
  background: #070c1a;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.2rem 1.3rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.85;
  overflow-x: auto;
}
.code-block .c-k { color: #c4b5fd; }   /* keyword */
.code-block .c-s { color: #6ee7b7; }   /* string */
.code-block .c-f { color: #67e8f9; }   /* function */
.code-block .c-c { color: #5b6b85; }   /* comment */
.code-block .c-p { color: #e2e8f0; }   /* plain */

/* ---------- 13. Stats band ---------- */
.stats-band {
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 24, 48, 0.45), rgba(5, 9, 20, 0.2));
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 3rem 0; text-align: center; }
.stat .num { font-family: var(--font-display); font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 700; }
.stat .num em { font-style: normal; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .lbl { color: var(--text-lo); font-size: 0.86rem; margin-top: 0.3rem; }

/* ---------- 14. Testimonials ---------- */
.quote-card { display: flex; flex-direction: column; gap: 1.4rem; }
.quote-card blockquote { font-size: 1.02rem; color: var(--text-hi); line-height: 1.7; }
.quote-card blockquote::before { content: "“"; color: var(--cyan); font-size: 1.6rem; line-height: 0; margin-right: 0.2rem; }
.quote-who { display: flex; align-items: center; gap: 0.9rem; margin-top: auto; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 0.9rem;
  background: var(--grad-brand); color: #04121a;
}
.quote-who .n { font-weight: 600; font-size: 0.95rem; }
.quote-who .r { color: var(--text-lo); font-size: 0.82rem; }
.stars { color: var(--amber); letter-spacing: 0.15em; font-size: 0.85rem; }

/* ---------- 15. Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; align-items: stretch; }
.price-card { display: flex; flex-direction: column; gap: 0; }
.price-card.featured {
  border-color: rgba(34, 211, 238, 0.45);
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.07), rgba(139, 92, 246, 0.06)), linear-gradient(180deg, rgba(20, 32, 61, 0.6), rgba(10, 16, 32, 0.7));
  box-shadow: 0 0 60px rgba(34, 211, 238, 0.1), var(--shadow-2);
}
.plan-tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad-brand); color: #04121a; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.32rem 0.95rem; border-radius: var(--r-full); white-space: nowrap; }
.plan-name { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; }
.plan-desc { font-size: 0.88rem; color: var(--text-lo); margin: 0.35rem 0 1.3rem; }
.plan-price { font-family: var(--font-display); font-size: 2.7rem; font-weight: 700; line-height: 1; }
.plan-price small { font-size: 0.92rem; color: var(--text-lo); font-weight: 400; }
.plan-list { margin: 1.6rem 0 1.9rem; display: flex; flex-direction: column; gap: 0.7rem; font-size: 0.92rem; color: var(--text-mid); }
.plan-list li { display: flex; gap: 0.65rem; align-items: flex-start; }
.plan-list li::before { content: "✓"; color: var(--cyan); font-weight: 700; flex: none; }
.plan-list li.na { color: var(--text-lo); opacity: 0.65; }
.plan-list li.na::before { content: "—"; color: var(--text-lo); }
.price-card .btn { margin-top: auto; }

/* ---------- 16. CTA band ---------- */
.cta-band {
  position: relative;
  text-align: center;
  border-radius: var(--r-lg);
  border: 1px solid rgba(34, 211, 238, 0.3);
  background:
    radial-gradient(600px 260px at 50% -30%, rgba(34, 211, 238, 0.18), transparent 70%),
    linear-gradient(180deg, rgba(20, 32, 61, 0.75), rgba(10, 16, 32, 0.9));
  padding: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 5vw, 4rem);
  overflow: hidden;
}
.cta-band h2 { margin-bottom: 1rem; }
.cta-band p { max-width: 34rem; margin: 0 auto 2rem; }

/* ---------- 17. Footer ---------- */
.footer { border-top: 1px solid var(--line); background: rgba(5, 9, 20, 0.85); padding: 4rem 0 2rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer p { font-size: 0.9rem; margin-top: 1rem; max-width: 22rem; }
.footer h4 { font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-hi); margin-bottom: 1.1rem; font-family: var(--font-body); font-weight: 700; }
.footer ul { display: flex; flex-direction: column; gap: 0.65rem; }
.footer ul a { color: var(--text-lo); font-size: 0.92rem; transition: color 0.2s; }
.footer ul a:hover { color: var(--cyan); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; color: var(--text-lo); font-size: 0.85rem; }
.socials { display: flex; gap: 0.7rem; }
.socials a { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); color: var(--text-mid); transition: all 0.2s; }
.socials a:hover { color: var(--cyan); border-color: var(--cyan); background: var(--cyan-soft); transform: translateY(-2px); }
.socials svg { width: 16px; height: 16px; }

/* ---------- 18. Inner pages ---------- */
.page-hero { padding: calc(var(--nav-h) + clamp(3.5rem, 8vw, 6rem)) 0 clamp(2.5rem, 5vw, 4rem); text-align: center; }
.page-hero h1 { margin: 1.2rem 0 1rem; }
.page-hero p { max-width: 40rem; margin: 0 auto; font-size: 1.08rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split + .split { margin-top: clamp(3.5rem, 7vw, 6rem); }
.split .media { order: 0; }
.split.flip .media { order: 1; }
.split h3 { font-size: 1.55rem; margin-bottom: 0.9rem; }
.split p + ul, .split ul.tick-list { margin-top: 1.2rem; }
.tick-list { display: flex; flex-direction: column; gap: 0.7rem; }
.tick-list li { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--text-mid); font-size: 0.95rem; }
.tick-list li::before { content: "✓"; color: var(--green); font-weight: 700; flex: none; }

.media-panel {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(20, 32, 61, 0.5), rgba(10, 16, 32, 0.7));
  padding: 1.6rem;
  box-shadow: var(--shadow-1);
}

/* about page */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.team-card { text-align: center; padding: 2rem 1.4rem; }
.team-card .avatar { width: 74px; height: 74px; font-size: 1.4rem; margin: 0 auto 1.1rem; }
.team-card .n { font-weight: 700; font-family: var(--font-display); }
.team-card .r { color: var(--cyan); font-size: 0.82rem; font-family: var(--font-mono); margin: 0.25rem 0 0.7rem; }
.team-card p { font-size: 0.86rem; }

/* contact page */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 1.6rem; align-items: start; }
.info-card { display: flex; gap: 1.1rem; align-items: flex-start; padding: 1.5rem; }
.info-card h3 { margin: 0 0 0.3rem; font-size: 1.02rem; }
.info-card p { font-size: 0.9rem; }
.form-card { padding: 2rem; display: flex; flex-direction: column; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-mid); margin-bottom: 0.45rem; }
.field input, .field textarea, .field select {
  width: 100%;
  background: rgba(5, 9, 20, 0.85);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 0.8rem 1rem;
  font-size: 0.94rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.13); }
.form-note { font-size: 0.8rem; color: var(--text-lo); }
.form-success {
  display: none;
  border: 1px solid rgba(52, 211, 153, 0.45);
  background: var(--green-soft);
  color: var(--green);
  border-radius: var(--r-sm);
  padding: 0.9rem 1.1rem;
  font-size: 0.92rem;
}
.form-success.show { display: block; animation: findingIn 0.35s var(--ease); }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.9rem; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(15, 24, 48, 0.4);
  padding: 1.15rem 1.4rem;
  transition: border-color 0.25s;
}
.faq details[open] { border-color: rgba(34, 211, 238, 0.4); }
.faq summary { cursor: pointer; font-weight: 600; font-family: var(--font-display); font-size: 1rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--cyan); font-size: 1.3rem; font-weight: 400; transition: transform 0.25s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 0.8rem; font-size: 0.93rem; }

/* ---------- 19. Regex builder page ---------- */
.builder-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 1.4rem; align-items: stretch; }

.opt-row { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.opt-check { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.88rem; color: var(--text-mid); cursor: pointer; user-select: none; }
.opt-check input { width: 15px; height: 15px; accent-color: var(--cyan); cursor: pointer; }

.regex-card, .tester-card {
  background: rgba(7, 12, 26, 0.85);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.tester-card { margin-top: 1.4rem; }

.regex-head, .tester-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.regex-head h3, .tester-head h3 { font-size: 1.02rem; }

.regex-flags {
  font-family: var(--font-mono); font-size: 0.7rem;
  padding: 0.28rem 0.75rem; border-radius: var(--r-full);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #a78bfa; background: var(--violet-soft);
  white-space: nowrap;
}

.regex-input {
  width: 100%;
  background: #070c1a;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 0.95rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--cyan);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.regex-input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.14); }

.finding .frag {
  font-family: var(--font-mono); font-size: 0.76rem;
  color: var(--cyan);
  background: var(--cyan-soft);
  border: 1px solid rgba(34, 211, 238, 0.25);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  flex: none;
  max-width: 46%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.builder-warn {
  display: none;
  border: 1px solid rgba(251, 191, 36, 0.4);
  background: var(--amber-soft);
  color: var(--amber);
  border-radius: var(--r-sm);
  padding: 0.8rem 1rem;
  font-size: 0.85rem;
}
.builder-warn.show { display: block; animation: findingIn 0.35s var(--ease); }

.copy-btn.copied, .btn.copied { border-color: var(--green); color: var(--green); background: var(--green-soft); }

.tester-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; align-items: stretch; }
.tester-grid textarea {
  width: 100%;
  min-height: 170px;
  resize: vertical;
  background: rgba(5, 9, 20, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.8;
  color: var(--text-hi);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.tester-grid textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.14); }
.tester-preview {
  background: #070c1a;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 170px;
  color: var(--text-mid);
}
.tester-preview mark {
  background: rgba(34, 211, 238, 0.22);
  color: #fff;
  border-radius: 4px;
  padding: 0 0.15em;
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.5);
}
.tester-meta { font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-lo); }

/* ---------- 20. Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

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

/* ---------- 21. Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .scanner-wrap, .split, .contact-grid, .builder-grid, .tester-grid { grid-template-columns: 1fr; }
  .split.flip .media { order: 0; }
  .grid-3, .steps, .pricing-grid, .values-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid, .team-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-visual { margin-top: 1rem; }
}

@media (max-width: 620px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.mobile-open {
    display: flex;
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    background: rgba(5, 9, 20, 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 1.2rem 1.5rem 1.6rem;
    z-index: 99;
  }
  .nav-links.mobile-open a { width: 100%; padding: 0.7rem 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .grid-3, .grid-2, .steps, .pricing-grid, .values-grid, .team-grid, .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-actions .btn { width: 100%; }
  .float-chip { display: none; }
  .finding .f-detail { display: none; }
}
