/* ================================================================
   Interviewspire — shared design system
   Used by every page: index, about, privacy, terms, contact
   ================================================================ */

/* ============ TOKENS ============ */
:root {
  /* brand — stable across themes */
  --brand:      #3B82F6;
  --brand-2:    #60A5FA;
  --brand-3:    #93C5FD;
  --warm:       #F5B78A;  /* the human-warmth accent */
  --warm-deep:  #E89A66;
  --good:       #34D399;
  --warn:       #FBBF24;

  /* single committed dark theme */
  color-scheme: dark;
  --bg:      #0C0C24;
  --bg-2:    #12123A;
  --surface: #161642;
  --surface-2:#1B1B4E;
  --ink:     #EEEFFC;
  --ink-soft:#C6C9EE;
  --muted:   #9297CB;
  --line:    rgba(255,255,255,0.10);
  --line-2:  rgba(255,255,255,0.06);
  --shadow:  0 24px 60px -28px rgba(0,0,0,0.75);
  --glow:    0 0 0 1px rgba(96,165,250,0.22);

  /* fixed dark values — used by the always-dark immersive sections */
  --night:     #0C0C24;
  --night-2:   #12123A;
  --night-3:   #1A1A4C;
  --night-ink: #EEEFFC;
  --night-muted:#9FA4D6;
  --night-line: rgba(255,255,255,0.09);

  --serif: Georgia, 'Iowan Old Style', 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'JetBrains Mono', 'Roboto Mono', Menlo, monospace;

  --maxw: 1120px;
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --r-xl: 34px;
}

/* ============ BASE ============ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1,h2,h3 { text-wrap: balance; margin: 0; letter-spacing: -0.02em; font-weight: 800; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-2);
  font-weight: 600;
}
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; border-radius: 4px; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-weight: 700; font-size: 15px;
  padding: 14px 24px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: transform .18s ease, box-shadow .25s ease, background .2s ease;
}
.btn-primary {
  background: linear-gradient(180deg, var(--brand-2), var(--brand));
  color: #fff; box-shadow: 0 12px 30px -10px rgba(59,130,246,0.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 38px -12px rgba(59,130,246,0.7); }
.btn-ghost {
  background: transparent; color: var(--night-ink);
  border-color: rgba(255,255,255,0.22);
}
.btn-ghost:hover { background: rgba(255,255,255,0.06); transform: translateY(-2px); }
/* outline variant that works on light content backgrounds */
.btn-outline {
  background: transparent; color: var(--ink); border-color: var(--line);
}
.btn-outline:hover { background: var(--surface-2); transform: translateY(-2px); }

/* ============ NAV ============ */
header.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line-2);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -0.02em; font-size: 18px; color: var(--ink); }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(145deg, var(--brand-2), var(--brand));
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 17px;
  box-shadow: 0 6px 16px -6px rgba(59,130,246,0.7);
}
.brand span b { color: var(--brand-2); }
.brand .tld { color: var(--muted); font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--muted); font-size: 14.5px; font-weight: 600; transition: color .18s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
@media (max-width: 860px) { .nav-links { display: none; } }

/* ============ FOOTER ============ */
footer { padding: 54px 0 40px; border-top: 1px solid var(--line-2); }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot .fl { display: flex; gap: 26px; flex-wrap: wrap; }
.foot a { color: var(--muted); font-size: 14px; font-weight: 600; }
.foot a:hover { color: var(--ink); }
.foot .cp { color: var(--muted); font-size: 13px; }

/* ============ REVEAL ON SCROLL ============ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,1,.36,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ================================================================
   CONTENT PAGES  (about / privacy / terms / contact)
   ================================================================ */
.page-head {
  background:
    radial-gradient(700px 320px at 82% -30%, rgba(96,165,250,0.14), transparent 60%),
    var(--bg-2);
  border-bottom: 1px solid var(--line-2);
  padding: 72px 0 46px;
}
.page-head h1 { font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.05; margin-top: 14px; }
.page-head .lead { color: var(--muted); margin-top: 16px; font-size: 18.5px; max-width: 62ch; }
.page-head .updated {
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  margin-top: 20px; letter-spacing: 0.05em;
}

/* legal / prose */
.prose { max-width: 74ch; padding: 56px 0 96px; }
.prose > section { margin-bottom: 40px; }
.prose > section:last-child { margin-bottom: 0; }
.prose h2 {
  font-size: 1.4rem; letter-spacing: -0.02em; margin: 0 0 14px;
  display: flex; align-items: baseline; gap: 12px;
}
.prose h2 .num { font-family: var(--mono); font-size: 0.85rem; color: var(--brand-2); font-weight: 600; }
.prose h3 { font-size: 1.08rem; margin: 24px 0 8px; }
.prose p { color: var(--ink-soft); margin: 0 0 15px; }
.prose ul { color: var(--ink-soft); padding-left: 22px; margin: 0 0 15px; }
.prose li { margin-bottom: 9px; }
.prose li::marker { color: var(--brand-2); }
.prose a { color: var(--brand); font-weight: 600; }
.prose a:hover { text-decoration: underline; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose .callout {
  background: var(--surface-2); border: 1px solid var(--line);
  border-left: 3px solid var(--warm); border-radius: var(--r-sm);
  padding: 16px 18px; margin: 0 0 22px; font-size: 15px; color: var(--ink-soft);
}
.prose .callout strong { color: var(--ink); }
.prose table { border-collapse: collapse; width: 100%; margin: 6px 0 20px; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--ink); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; }
.prose td { color: var(--ink-soft); }
.table-scroll { overflow-x: auto; }

/* about page */
.about-body { padding: 62px 0 40px; }
.about-lead { max-width: 60ch; font-size: 20px; color: var(--ink-soft); line-height: 1.6; }
.about-lead .voice { font-family: var(--serif); font-style: italic; color: var(--warm-deep); }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; }
@media (max-width: 820px){ .value-grid { grid-template-columns: 1fr; } }
.vcard {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px; transition: transform .2s, box-shadow .25s;
}
.vcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.vcard .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); margin-bottom: 15px; }
.vcard .ic svg { width: 22px; height: 22px; }
.vcard h3 { font-size: 17.5px; }
.vcard p { color: var(--muted); font-size: 14.5px; margin-top: 9px; }
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 52px;
  padding: 34px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-lg); }
@media (max-width: 640px){ .stat-band { grid-template-columns: repeat(2,1fr); } }
.stat-band .s .n { font-size: 30px; font-weight: 850; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat-band .s .l { font-size: 12.5px; color: var(--muted); font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 4px; }

/* contact page */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 44px; padding: 58px 0 96px; align-items: start; }
@media (max-width: 860px){ .contact-grid { grid-template-columns: 1fr; gap: 36px; } }
.cmethods { display: grid; gap: 14px; }
.cmethod { display: flex; gap: 15px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.cmethod .ic { flex-shrink: 0; width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); }
.cmethod .ic svg { width: 20px; height: 20px; }
.cmethod h3 { font-size: 15.5px; }
.cmethod p { color: var(--muted); font-size: 14px; margin-top: 3px; }
.cmethod a { color: var(--brand); font-weight: 600; }
.cform { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 7px; letter-spacing: 0.01em; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--r-sm); font-family: var(--sans); font-size: 15px;
  background: var(--bg); border: 1px solid var(--line); color: var(--ink); transition: border-color .18s, box-shadow .18s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(96,165,250,0.18);
}
.field textarea { resize: vertical; min-height: 130px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 520px){ .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: 12.5px; color: var(--muted); margin-top: 14px; }
