/* ==========================================================================
   Truescope Pentest Planner
   Design system + landing styles. Light/dark theming via semantic tokens.
   Palette, type, and motif carried from the Orion design system.
   ========================================================================== */

/* ---- Tokens: light (default) ---- */
:root {
  /* brand accent (constant across themes) */
  --accent:        #14bbdb;
  --accent-bright: #3ad3ef;
  --accent-deep:   #0e8fa5;
  --indigo:        #2a3bd0;
  --on-accent:     #04222b;   /* text on a cyan fill */
  --accent-text:   #0e8fa5;   /* cyan text, AA on light surfaces */
  --accent-tint:   rgba(20, 187, 219, .06);
  --accent-line:   rgba(20, 187, 219, .22);

  /* surfaces + text (theme-dependent) */
  --bg:         #ffffff;
  --bg-alt:     #f7f9fc;
  --surface:    #ffffff;
  --surface-2:  #f7f9fc;
  --border:     #e6ebf2;
  --text:       #0c1424;
  --text-muted: #54617a;

  /* permanently-dark "instrument" surfaces (used as accents in both themes) */
  --ink-900: #0a0e1a;
  --ink-800: #111827;
  --ink-line:#1e2a3f;
  --ink-fg:  #e8edf6;
  --ink-muted:#8a97ad;
  --ink-soft:#c3cddd;

  /* severity scale (for the planner) */
  --sev-critical:#e5484d;
  --sev-high:#f2820d;
  --sev-medium:#e5b000;
  --pass:#30a46c;

  /* elevation */
  --shadow-card:  0 1px 2px rgba(12, 20, 36, .04);
  --shadow-float: 0 1px 2px rgba(12, 20, 36, .04), 0 40px 80px -50px rgba(12, 20, 36, .35);

  /* type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-sans: "Inter", -apple-system, "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", ui-monospace, monospace;

  --nav-bg: rgba(255, 255, 255, .85);
  color-scheme: light;
}

/* ---- Tokens: dark ---- */
/* system preference, unless the user explicitly chose light */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent-text: #3ad3ef;
    --accent-tint: rgba(20, 187, 219, .1);
    --bg:        #0a0e1a;
    --bg-alt:    #070b14;
    --surface:   #111827;
    --surface-2: #0d1420;
    --border:    #1e2a3f;
    --text:      #e8edf6;
    --text-muted:#8a97ad;
    --shadow-card:  0 0 0 1px rgba(20, 187, 219, .05);
    --shadow-float: 0 0 0 1px rgba(20, 187, 219, .06), 0 40px 80px -50px rgba(20, 187, 219, .35);
    --nav-bg: rgba(10, 14, 26, .8);
    color-scheme: dark;
  }
}
/* explicit dark choice wins in both directions */
:root[data-theme="dark"] {
  --accent-text: #3ad3ef;
  --accent-tint: rgba(20, 187, 219, .1);
  --bg:        #0a0e1a;
  --bg-alt:    #070b14;
  --surface:   #111827;
  --surface-2: #0d1420;
  --border:    #1e2a3f;
  --text:      #e8edf6;
  --text-muted:#8a97ad;
  --shadow-card:  0 0 0 1px rgba(20, 187, 219, .05);
  --shadow-float: 0 0 0 1px rgba(20, 187, 219, .06), 0 40px 80px -50px rgba(20, 187, 219, .35);
  --nav-bg: rgba(10, 14, 26, .8);
  color-scheme: dark;
}

/* ---- Base ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s ease, color .3s ease;
}
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 440; letter-spacing: -.01em; line-height: 1.08; }
p { margin: 0; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(20, 187, 219, .45); border-radius: 6px; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 40px; }
.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
.mini { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; color: var(--text-muted); }

/* ---- Buttons ---- */
.btn {
  font-family: var(--font-sans); font-weight: 600; font-size: 15px;
  border-radius: 999px; padding: 13px 22px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  cursor: pointer; border: 1px solid transparent; transition: all .18s ease;
  text-align: center;
}
.btn svg { flex: 0 0 auto; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-bright); color: var(--on-accent); box-shadow: 0 0 40px -12px rgba(20, 187, 219, .7); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-text); }
.btn-ghost-dark { background: transparent; color: var(--ink-fg); border-color: var(--ink-line); }
.btn-ghost-dark:hover { border-color: var(--accent); color: var(--accent-bright); }
.btn-block { width: 100%; }

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg); backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { height: 68px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-name { font-weight: 700; font-size: 16px; color: var(--text); letter-spacing: .01em; }
.brand-tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: .09em; text-transform: uppercase; color: var(--text-muted); border-left: 1px solid var(--border); padding-left: 9px; }
.nav-links { display: flex; align-items: center; gap: 24px; font-size: 14px; font-weight: 500; color: var(--text-muted); }
.nav-links a:hover { color: var(--accent-text); }
.nav-right { display: flex; align-items: center; gap: 18px; }

/* theme toggle */
.theme-toggle {
  width: 38px; height: 38px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-muted); transition: all .18s ease; padding: 0;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent-text); }
/* icon reflects the EFFECTIVE theme: moon shown in light, sun shown in dark */
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
}

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; background: radial-gradient(900px 500px at 88% -10%, var(--accent-tint), transparent 60%), var(--bg); }
.hero-orbits { position: absolute; top: -40px; right: -120px; opacity: .5; pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.02fr .98fr; gap: 52px; align-items: center; padding: 74px 0; }
.hero h1 { font-size: 56px; line-height: 1.02; color: var(--text); }
.hero-lead { font-size: 19px; color: var(--text-muted); max-width: 470px; }
.hero-checks { display: flex; align-items: center; gap: 20px; margin-top: 2px; font-family: var(--font-mono); font-size: 12.5px; color: var(--text-muted); flex-wrap: wrap; }
.hero-checks span { display: flex; align-items: center; gap: 7px; }
.hero-checks svg { color: var(--accent-text); }

/* start panel - the tool begins here */
.start-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-float); overflow: hidden; }
.start-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.start-head-title { font-size: 15px; font-weight: 600; color: var(--text); }
.start-progress { display: flex; gap: 4px; }
.start-progress i { width: 16px; height: 4px; border-radius: 2px; background: var(--border); }
.start-progress i.on { background: var(--accent); }
.start-body { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.start-q { font-size: 16px; font-weight: 600; color: var(--text); }
.schips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.schip { display: flex; align-items: center; gap: 9px; padding: 12px 13px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); cursor: pointer; font-size: 13.5px; font-weight: 500; color: var(--text); transition: all .15s ease; font-family: inherit; text-align: left; width: 100%; }
.schip:hover { border-color: var(--accent); }
.schip.sel { border-color: var(--accent); background: var(--accent-tint); box-shadow: 0 0 0 1px var(--accent); }
.schip .i { color: var(--accent-text); display: flex; flex: 0 0 auto; }

/* ---- Trust strip ---- */
.trust { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-inner { padding: 18px 40px; display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--text-muted); }
.trust-item svg { color: var(--accent-text); }
.trust-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--border); }

/* ---- What you get ---- */
.section { background: var(--bg); }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.get-grid { padding: 76px 0; display: grid; grid-template-columns: .95fr 1.05fr; gap: 52px; align-items: center; }
.get h2 { font-size: 34px; color: var(--text); }
.get-lead { font-size: 16px; color: var(--text-muted); max-width: 440px; }
.check-list { display: flex; flex-direction: column; gap: 11px; margin-top: 2px; }
.check-list li { list-style: none; display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--text); }
.check-list svg { margin-top: 2px; flex: 0 0 auto; color: var(--accent-text); }

/* plan preview card (instrument style - dark header both themes) */
.plan-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-float); }
.plan-head { background: var(--ink-900); color: var(--ink-fg); padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; }
.plan-head-title { font-family: var(--font-display); font-size: 18px; color: var(--ink-fg); }
.plan-body { padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.plan-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.plan-chip { font-family: var(--font-mono); font-size: 11px; color: var(--accent-text); background: var(--accent-tint); border: 1px solid var(--accent-line); padding: 4px 10px; border-radius: 6px; }
.plan-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.plan-stat { display: flex; flex-direction: column; gap: 1px; }
.plan-stat b { font-family: var(--font-display); font-weight: 440; font-size: 24px; color: var(--text); }
.plan-stat b.accent { color: var(--accent-text); }
.rule { height: 1px; background: var(--border); }
.plan-cov { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.plan-cov span { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text); }
.plan-cov .skip { color: var(--text-muted); }
.plan-cov svg { flex: 0 0 auto; }

/* ---- How it works ---- */
.how { padding: 56px 0; }
.how-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.how-head h2 { font-size: 26px; color: var(--text); }
.how-head span { font-size: 14px; color: var(--text-muted); }
.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 13px; }
.step-card.hl { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(20, 187, 219, .15); }
.step-card .num { font-family: var(--font-mono); font-size: 12px; color: var(--accent-text); }
.step-card b { font-size: 16px; font-weight: 600; color: var(--text); }
.step-card p { font-size: 13.5px; color: var(--text-muted); line-height: 1.5; }

/* ---- FAQ ---- */
.faq { padding: 76px 0; }
.faq-head { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; margin-bottom: 40px; }
.faq-head h2 { font-size: 32px; color: var(--text); }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.faq-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px 24px; display: flex; flex-direction: column; gap: 9px; }
.faq-card b { font-size: 16px; font-weight: 600; color: var(--text); }
.faq-card p { font-size: 14.5px; color: var(--text-muted); }

/* ---- CTA (fixed dark spotlight in both themes) ---- */
.cta { background: var(--ink-900); color: var(--ink-fg); position: relative; overflow: hidden; }
.cta-orbit { position: absolute; inset: 0; opacity: .5; pointer-events: none; }
.cta-inner { position: relative; padding: 64px 40px; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta h2 { font-size: 34px; color: var(--ink-fg); }
.cta p { font-size: 16px; color: var(--ink-soft); max-width: 520px; }
.cta-actions { display: flex; align-items: center; gap: 14px; }

/* ---- Footer ---- */
.footer { background: var(--bg); border-top: 1px solid var(--border); }
.footer-inner { padding: 30px 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand b { font-weight: 700; font-size: 14px; color: var(--text); }
.footer-links { display: flex; align-items: center; gap: 24px; font-size: 13.5px; color: var(--text-muted); }
.footer-links a:hover { color: var(--accent-text); }
.footer-copy { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-muted); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .container { padding: 0 22px; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; padding: 48px 0; }
  .hero h1 { font-size: 42px; }
  .hero h1 br { display: none; }
  .get-grid { grid-template-columns: 1fr; gap: 34px; padding: 56px 0; }
  .how-grid { grid-template-columns: 1fr 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .trust-inner { gap: 16px 24px; }
}
@media (max-width: 560px) {
  .schips { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
