/* ==========================================================================
   GSCSuite — design system
   "Control room" aesthetic: diagnostic readouts, status ticks, schematic
   grid texture. The visual language mirrors the product's core promise —
   every claim is either a verified green tick or a flagged amber warning.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,500&family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

:root {
  --ink: #0a0b0d;
  --ink-2: #0e1013;
  --surface: #14161b;
  --surface-2: #1b1e24;
  --border: #262a31;
  --border-soft: #1e2127;
  --text: #f3ede2;
  --text-dim: #c9c3b8;
  --text-muted: #8b9098;
  --green: #3ecf8e;
  --green-dim: #2a8f63;
  --amber: #f5a524;
  --amber-dim: #b5791a;
  --red: #ef5a5a;

  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'IBM Plex Sans', -apple-system, sans-serif;
  --serif: 'Fraunces', Georgia, serif;

  --radius: 10px;
  --radius-lg: 16px;
  --container: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image:
    linear-gradient(var(--border-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 900px 500px at 82% -5%, rgba(62, 207, 142, 0.14), transparent 60%),
    radial-gradient(ellipse 700px 400px at 5% 15%, rgba(245, 165, 36, 0.08), transparent 60%);
}

.wrap { max-width: var(--container); margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }

img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow.amber { color: var(--amber); }
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(10, 11, 13, 0.78);
  border-bottom: 1px solid var(--border-soft);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-family: var(--mono); font-weight: 600; font-size: 15px; letter-spacing: 0.02em; display: flex; align-items: center; gap: 6px; }
.logo .bracket { color: var(--green); }
.nav-links { display: flex; gap: 28px; font-family: var(--mono); font-size: 13px; color: var(--text-muted); }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  font-family: var(--mono); font-size: 13px; font-weight: 600;
  background: var(--green); color: var(--ink);
  padding: 8px 16px; border-radius: 999px;
}
.nav-cta:hover { background: #56dba1; }
.nav-toggle { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 14px; font-weight: 600;
  padding: 13px 22px; border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--green); color: var(--ink); }
.btn-primary:hover { background: #56dba1; }
.btn-ghost { border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--text-muted); }

/* ---------- hero ---------- */
.hero { padding: 96px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5vw, 62px); margin: 18px 0 20px; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero p.lead { font-size: 18px; color: var(--text-dim); max-width: 46ch; margin-bottom: 32px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.hero-note { font-family: var(--mono); font-size: 12px; color: var(--text-muted); }

/* status readout panel */
.readout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.6);
}
.readout-head {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono); font-size: 11px; color: var(--text-muted);
}
.readout-head .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); }
.readout-body { padding: 6px 0; }
.readout-row {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 18px;
  font-family: var(--mono); font-size: 12.5px;
  border-left: 2px solid transparent;
  opacity: 0;
  animation: rowIn 0.5s ease forwards;
}
.readout-row.ok { border-left-color: var(--green); }
.readout-row.warn { border-left-color: var(--amber); }
.readout-row .tag { color: var(--text-muted); flex: 1; }
.readout-row .status { font-weight: 600; }
.readout-row.ok .status { color: var(--green); }
.readout-row.warn .status { color: var(--amber); }
.readout-row .ms { color: var(--text-muted); font-size: 11px; }
.readout-row:nth-child(1){animation-delay:.1s} .readout-row:nth-child(2){animation-delay:.25s}
.readout-row:nth-child(3){animation-delay:.4s} .readout-row:nth-child(4){animation-delay:.55s}
.readout-row:nth-child(5){animation-delay:.7s} .readout-row:nth-child(6){animation-delay:.85s}
@keyframes rowIn { from { opacity: 0; transform: translateX(-6px);} to { opacity:1; transform:none; } }
.readout-cursor { padding: 10px 18px; font-family: var(--mono); font-size: 12.5px; color: var(--text-muted); }
.readout-cursor::after { content: "_"; animation: blink 1s step-start infinite; color: var(--green); }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- sections ---------- */
section { padding: 88px 0; position: relative; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); margin-top: 14px; }
.section-head p { color: var(--text-dim); margin-top: 14px; font-size: 16.5px; }

.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent); }

/* thesis / pull-quote */
.thesis {
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.thesis blockquote {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.35; color: var(--text);
  max-width: 780px;
}
.thesis cite { display: block; margin-top: 22px; font-family: var(--mono); font-size: 13px; color: var(--text-muted); font-style: normal; }

/* trust split: official vs unofficial */
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.trust-col { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; background: var(--surface); }
.trust-col.official { border-top: 3px solid var(--green); }
.trust-col.unofficial { border-top: 3px solid var(--amber); }
.trust-col h3 { font-family: var(--mono); text-transform: uppercase; font-size: 14px; letter-spacing: 0.06em; margin-bottom: 4px; }
.trust-col.official h3 { color: var(--green); }
.trust-col.unofficial h3 { color: var(--amber); }
.trust-col .sub { font-size: 13px; color: var(--text-muted); margin-bottom: 22px; }
.trust-item { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--border-soft); }
.trust-item:first-of-type { border-top: none; }
.trust-item .name { font-weight: 600; font-size: 14.5px; }
.trust-item .desc { color: var(--text-muted); font-size: 13.5px; margin-top: 3px; }
.trust-item .mark { font-family: var(--mono); font-size: 13px; flex-shrink: 0; width: 20px; }
.trust-col.official .mark { color: var(--green); }
.trust-col.unofficial .mark { color: var(--amber); }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 44px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--mono); font-size: 13px; color: var(--green);
  position: absolute; top: 0; left: 0;
}
.step::after { content: ""; position: absolute; top: 8px; left: 34px; right: -24px; height: 1px; background: var(--border); }
.step:last-child::after { display: none; }
.step h4 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 14px; }

/* pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.price-card { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; background: var(--surface); display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--green); background: linear-gradient(180deg, rgba(62,207,142,0.08), var(--surface) 40%); position: relative; }
.price-card.featured::before {
  content: "MOST POPULAR"; font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
  background: var(--green); color: var(--ink); padding: 4px 10px; border-radius: 999px;
  position: absolute; top: -12px; left: 28px;
}
.price-card h3 { font-family: var(--mono); font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 14px; }
.price-amount { font-family: var(--serif); font-size: 44px; margin-bottom: 4px; }
.price-amount span { font-family: var(--mono); font-size: 14px; color: var(--text-muted); }
.price-card .desc { color: var(--text-muted); font-size: 13.5px; margin-bottom: 22px; }
.price-list { list-style: none; display: flex; flex-direction: column; gap: 11px; margin-bottom: 26px; flex: 1; }
.price-list li { font-size: 13.5px; color: var(--text-dim); display: flex; gap: 9px; }
.price-list li::before { content: "✓"; color: var(--green); font-family: var(--mono); }
.price-card .btn { justify-content: center; }

/* faq */
.faq-item { border-bottom: 1px solid var(--border-soft); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0; cursor: pointer; font-size: 16.5px; font-weight: 500;
}
.faq-q .plus { font-family: var(--mono); color: var(--green); transition: transform 0.25s ease; }
.faq-item.open .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; color: var(--text-muted); font-size: 14.5px; line-height: 1.7; }
.faq-a-inner { padding-bottom: 22px; max-width: 70ch; }

/* footer cta band */
.cta-band {
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  text-align: center; padding: 90px 0;
}
.cta-band h2 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 18px; }
.cta-band p { color: var(--text-muted); margin-bottom: 32px; }
.cta-band .hero-ctas { justify-content: center; }

footer { padding: 56px 0 40px; }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; margin-bottom: 40px; }
.footer-links { display: flex; gap: 48px; }
.footer-col h5 { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 13.5px; color: var(--text-dim); margin-bottom: 10px; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; color: var(--text-muted); flex-wrap: wrap; gap: 10px; }

/* blog */
.blog-list { display: flex; flex-direction: column; }
.blog-item { display: grid; grid-template-columns: 140px 1fr; gap: 24px; padding: 28px 0; border-top: 1px solid var(--border-soft); }
.blog-item:first-child { border-top: none; }
.blog-item time { font-family: var(--mono); font-size: 12px; color: var(--text-muted); }
.blog-item h3 { font-size: 21px; margin-bottom: 8px; }
.blog-item p { color: var(--text-muted); font-size: 14.5px; }
.blog-item .tag { font-family: var(--mono); font-size: 11px; color: var(--green); margin-top: 10px; display: inline-block; }

.article { max-width: 720px; margin: 0 auto; padding: 64px 28px 100px; }
.article .eyebrow { margin-bottom: 18px; }
.article h1 { font-size: clamp(32px, 5vw, 46px); margin-bottom: 18px; }
.article .meta { font-family: var(--mono); font-size: 12.5px; color: var(--text-muted); margin-bottom: 44px; }
.article h2 { font-size: 26px; margin: 42px 0 16px; }
.article h3 { font-size: 20px; margin: 32px 0 12px; }
.article p { color: var(--text-dim); margin-bottom: 18px; font-size: 16px; }
.article ul, .article ol { color: var(--text-dim); margin: 0 0 18px 22px; }
.article li { margin-bottom: 8px; }
.article code { font-family: var(--mono); background: var(--surface-2); padding: 2px 6px; border-radius: 4px; font-size: 0.9em; }
.article pre { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 18px; overflow-x: auto; margin-bottom: 20px; }
.article pre code { background: none; padding: 0; }
.article blockquote { border-left: 3px solid var(--green); padding-left: 20px; font-style: italic; color: var(--text); margin: 24px 0; }
.article table { width: 100%; border-collapse: collapse; margin-bottom: 24px; font-size: 14px; }
.article th, .article td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border-soft); }
.article th { font-family: var(--mono); font-size: 11px; text-transform: uppercase; color: var(--text-muted); }

/* comparison table (pricing page) */
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td { padding: 14px 16px; border-bottom: 1px solid var(--border-soft); font-size: 14px; text-align: center; }
.compare-table th:first-child, .compare-table td:first-child { text-align: left; }
.compare-table thead th { font-family: var(--mono); font-size: 12px; color: var(--text-muted); text-transform: uppercase; }
.compare-table td:not(:first-child) { font-family: var(--mono); }
.compare-table .yes { color: var(--green); }
.compare-table .no { color: var(--text-muted); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .trust-grid, .pricing-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .blog-item { grid-template-columns: 1fr; }
}
