/* ShieldOps Website Design System (Stripe/Linear Tier)
   Zero external CDN dependencies. Pure CSS interactivity. Strict CSP compatible. */

:root {
  color-scheme: dark;

  --bg-base: #080b11;
  --bg-surface: #0e1420;
  --bg-surface-2: #141d2c;
  --bg-surface-elevated: #1a2436;
  --bg-surface-hover: #1e2a3f;

  --border-subtle: #1c2738;
  --border-strong: #2a3b54;
  --border-accent: rgba(79, 140, 255, 0.4);

  --text-main: #f0f4fc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;

  --accent: #4f8cff;
  --accent-glow: rgba(79, 140, 255, 0.15);
  --accent-hover: #6ea0ff;
  --mint: #00e5a3;
  --mint-glow: rgba(0, 229, 163, 0.15);

  --crit: #ff5c5c;
  --crit-bg: rgba(255, 92, 92, 0.12);
  --high: #ff9f43;
  --high-bg: rgba(255, 159, 67, 0.12);
  --medium: #feca57;
  --ok: #00e5a3;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --max-w: 1180px;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg-base: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-2: #f1f5f9;
    --bg-surface-elevated: #e2e8f0;
    --bg-surface-hover: #eef2f6;

    --border-subtle: #e2e8f0;
    --border-strong: #cbd5e1;
    --border-accent: rgba(43, 108, 238, 0.4);

    --text-main: #0f172a;
    --text-muted: #475569;
    --text-subtle: #64748b;

    --accent: #2563eb;
    --accent-glow: rgba(37, 99, 235, 0.08);
    --accent-hover: #1d4ed8;
    --mint: #059669;
    --mint-glow: rgba(5, 150, 105, 0.08);

    --crit: #dc2626;
    --crit-bg: rgba(220, 38, 38, 0.08);
    --high: #d97706;
    --high-bg: rgba(217, 119, 6, 0.08);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg-base);
  color: var(--text-main);
  font: 16px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Background atmospheric glow */
.bg-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 520px;
  background: radial-gradient(circle 450px at 50% 0%, rgba(79, 140, 255, 0.12), transparent 80%),
              radial-gradient(circle 350px at 70% 30%, rgba(0, 229, 163, 0.07), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

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

/* Typography */
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.025em; line-height: 1.2; color: var(--text-main); }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.7rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 16px; }
.lead { font-size: 1.2rem; line-height: 1.6; color: var(--text-muted); max-width: 760px; }
.subtext { font-size: 0.95rem; color: var(--text-muted); }
.mono { font-family: var(--font-mono); font-size: 0.9em; }

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #ffffff 30%, var(--accent) 70%, var(--mint) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
@media (prefers-color-scheme: light) {
  .gradient-text {
    background: linear-gradient(135deg, #0f172a 30%, #2563eb 70%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font: 600 0.98rem/1.2 var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(180deg, #5b95ff 0%, #3b7cf5 100%);
  color: #ffffff;
  box-shadow: 0 2px 14px rgba(79, 140, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #6ba1ff 0%, #4a88ff 100%);
  box-shadow: 0 4px 20px rgba(79, 140, 255, 0.5);
  transform: translateY(-1px);
}
.btn-secondary {
  background: var(--bg-surface-elevated);
  color: var(--text-main);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  background: var(--bg-surface-hover);
  border-color: var(--accent);
}
.btn-mint {
  background: linear-gradient(180deg, #00f0aa 0%, #00cb90 100%);
  color: #032014;
  font-weight: 700;
  box-shadow: 0 2px 14px rgba(0, 229, 163, 0.3);
}
.btn-mint:hover {
  background: #00ffa8;
  transform: translateY(-1px);
}
.btn-ghost {
  color: var(--text-muted);
  border-color: transparent;
  padding: 8px 16px;
}
.btn-ghost:hover {
  color: var(--text-main);
  background: var(--bg-surface-2);
}

/* Header */
header.top {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg-base) 82%, transparent);
  border-bottom: 1px solid var(--border-subtle);
  height: 64px;
}
header.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
  font-weight: 800;
  font-size: 1.25rem;
  text-decoration: none;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand svg { width: 26px; height: 26px; flex-shrink: 0; }
.brand span.pro-tag {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid var(--border-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}
nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
nav a:hover { color: var(--text-main); background: var(--bg-surface-2); }
nav .btn {
  padding: 7px 14px;
  font-size: 0.88rem;
  white-space: nowrap;
  margin-left: 4px;
}

@media (max-width: 1060px) {
  nav a.nav-hide-tablet { display: none; }
  nav { gap: 2px; }
  nav a { padding: 5px 8px; font-size: 0.85rem; }
}

@media (max-width: 820px) {
  nav a:not(.btn) { display: none; }
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-2);
  border: 1px solid var(--border-strong);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}
.lang-switch a { color: var(--text-muted); text-decoration: none; padding: 0 2px; }
.lang-switch a:hover { color: var(--accent); }
.lang-switch strong { color: var(--text-main); }

/* Hero */
.hero {
  padding: 96px 0 64px;
  text-align: center;
}
.hero .hero-content {
  max-width: 860px;
  margin: 0 auto;
}
.badge-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-strong);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}
.badge-hero .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
}
.hero h1 { margin-bottom: 20px; }
.hero .lead { margin: 0 auto 36px; }
.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}
.hero-sub {
  font-size: 0.9rem;
  color: var(--text-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.hero-sub span { display: inline-flex; align-items: center; gap: 6px; }

/* Interactive Terminal Demo */
.terminal-window {
  margin: 48px auto 0;
  max-width: 920px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
  text-align: left;
}
.terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-surface-2);
  border-bottom: 1px solid var(--border-subtle);
}
.terminal-dots { display: flex; gap: 7px; }
.terminal-dot { width: 11px; height: 11px; border-radius: 50%; }
.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; }
.terminal-title { font: 500 0.82rem var(--font-mono); color: var(--text-subtle); }
.terminal-body {
  padding: 22px;
  font: 0.9rem/1.65 var(--font-mono);
  background: #090d14;
  color: #d1d5db;
  overflow-x: auto;
}
.cmd-prompt { color: var(--mint); font-weight: 700; }
.cmd-text { color: #ffffff; font-weight: 600; }
.t-tag { display: inline-block; padding: 1px 6px; border-radius: 4px; font-size: 0.78rem; font-weight: 700; margin-right: 6px; }
.t-crit { background: var(--crit-bg); color: var(--crit); }
.t-high { background: var(--high-bg); color: var(--high); }
.t-ok { background: var(--mint-glow); color: var(--mint); }
.t-arrow { color: var(--accent); }
.terminal-footer-action {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* Sections */
section { padding: 90px 0; position: relative; }
section.alt {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.sec-head { text-align: center; max-width: 780px; margin: 0 auto 56px; }
.sec-head h2 { margin-bottom: 16px; }
.sec-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 12px;
}

/* Cards Grid */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(440px, 1fr)); gap: 28px; }

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  position: relative;
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-strong);
  color: var(--accent);
}
.card-icon.mint { color: var(--mint); }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--text-muted); font-size: 0.98rem; }

/* Attack Path SVG Interactive Diagram */
.attack-box {
  background: var(--bg-base);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 36px 0;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.4);
}
.attack-svg-wrap {
  width: 100%;
  overflow-x: auto;
}
.attack-svg {
  display: block;
  min-width: 680px;
  margin: 0 auto;
}
@keyframes pulseLine {
  0% { stroke-dashoffset: 20; }
  100% { stroke-dashoffset: 0; }
}
.anim-pulse {
  stroke-dasharray: 6 4;
  animation: pulseLine 1.4s linear infinite;
}

/* Role Tabs (Pure CSS on radio buttons) */
.role-tabs {
  margin: 40px 0;
}
.role-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.role-tab-input { display: none; }
.role-tab-label {
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.role-tab-label:hover { color: var(--text-main); border-color: var(--accent); }

#tab-msp:checked ~ .role-nav label[for="tab-msp"],
#tab-cto:checked ~ .role-nav label[for="tab-cto"],
#tab-dev:checked ~ .role-nav label[for="tab-dev"] {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 2px 14px rgba(79, 140, 255, 0.35);
}

.role-content { display: none; animation: fadeIn 0.3s ease; }
#tab-msp:checked ~ #content-msp { display: grid; }
#tab-cto:checked ~ #content-cto { display: grid; }
#tab-dev:checked ~ #content-dev { display: grid; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Pricing Grid */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  max-width: 980px;
  margin: 0 auto;
}
.price-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 36px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.price-card.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(79, 140, 255, 0.05) 0%, var(--bg-surface) 100%);
  box-shadow: 0 10px 40px rgba(79, 140, 255, 0.15);
}
.price-badge {
  position: absolute;
  top: -14px;
  right: 28px;
  background: linear-gradient(90deg, var(--accent), var(--mint));
  color: #031525;
  font: 700 0.78rem var(--font-sans);
  padding: 3px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.price-val {
  font-size: 2.8rem;
  font-weight: 800;
  margin: 16px 0 6px;
  letter-spacing: -0.03em;
}
.price-val small { font-size: 1rem; color: var(--text-muted); font-weight: 500; }
.feature-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 32px;
  flex-grow: 1;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.feature-list li strong { color: var(--text-main); }
.feature-list svg { width: 18px; height: 18px; color: var(--mint); flex-shrink: 0; margin-top: 3px; }

/* FAQ Details */
.faq-box { max-width: 820px; margin: 0 auto; }
details {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 14px;
  transition: border-color 0.2s;
}
details[open] { border-color: var(--border-strong); }
summary {
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--text-subtle);
  transition: transform 0.2s;
}
details[open] summary::after { transform: rotate(45deg); color: var(--accent); }
details p { margin: 14px 0 0; color: var(--text-muted); font-size: 0.98rem; }

/* Lead Form */
.form-card {
  max-width: 620px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}
.lead-form { display: grid; gap: 18px; }
.lead-form label { display: grid; gap: 6px; font-weight: 600; font-size: 0.92rem; color: var(--text-main); }
.lead-form input, .lead-form select {
  font: 500 0.95rem var(--font-sans);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface-2);
  color: var(--text-main);
  transition: border-color 0.2s;
}
.lead-form input:focus, .lead-form select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.lead-form .consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.lead-form .consent input { margin-top: 3px; }
.hp-field { position: absolute; left: -9999px; }

/* Footer */
footer {
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0;
  color: var(--text-subtle);
  font-size: 0.9rem;
}
footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
footer a { color: var(--text-muted); text-decoration: none; }
footer a:hover { color: var(--text-main); }
