/* =========================================================
   VLSI Tools / LearnChip — shared stylesheet
   ========================================================= */

:root {
  --bg: #05070d;
  --bg-raised: #0b0f1a;
  --bg-card: #0e1424;
  --bg-card-hover: #121a2e;
  --border: #232b45;
  --border-soft: #1a2138;
  --text: #eef1fa;
  --text-dim: #a3aec9;
  --text-faint: #6b7590;
  --cyan: #4d9bff;
  --cyan-soft: rgba(77, 155, 255, 0.12);
  --amber: #34e0a1;
  --amber-soft: rgba(52, 224, 161, 0.12);
  --violet: #a855f7;
  --danger: #f0654f;
  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 1180px;
  --font-sans: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --shadow-lg: 0 20px 60px -20px rgba(0,0,0,0.6);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* faint circuit-grid backdrop */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(to right, rgba(77, 155, 255,0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(77, 155, 255,0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 90%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.01em; margin: 0; }
p { margin: 0; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  background: var(--cyan-soft);
  border: 1px solid rgba(77, 155, 255,0.25);
  padding: 6px 12px;
  border-radius: 999px;
}
.eyebrow.amber { color: var(--amber); background: var(--amber-soft); border-color: rgba(52, 224, 161,0.3); }
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  padding: 13px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--cyan);
  color: #04122b;
  box-shadow: 0 8px 30px -10px rgba(77, 155, 255,0.55);
}
.btn-primary:hover { background: #7ab5ff; box-shadow: 0 10px 34px -8px rgba(77, 155, 255,0.7); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 9px 16px; font-size: 13px; }

/* ---------- Header / Nav ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,14,19,0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
}
.brand-mark {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brand-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}
.brand small {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  font-weight: 500;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  font-size: 14.5px;
  color: var(--text-dim);
  font-weight: 500;
  transition: color 0.15s ease;
  position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--cyan); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--border); border-radius: 8px;
  width: 40px; height: 40px; color: var(--text); cursor: pointer;
  align-items: center; justify-content: center;
}

/* ---------- Showcase banner ---------- */
.showcase-banner {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  box-shadow: 0 30px 60px -30px rgba(77, 155, 255, 0.25);
}
.showcase-banner img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 60px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  margin: 20px 0 20px;
  color: var(--text);
}
.hero h1 .accent { color: var(--cyan); }
.hero-sub {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 46ch;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* SoC learning map graphic */
.soc-map {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-lg);
}
.soc-map-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.soc-map-title { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; color: var(--text-faint); text-transform: uppercase;}
.soc-map-rev { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); }
.soc-diagram {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.soc-node {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 6px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  position: relative;
}
.soc-node.core { border-color: rgba(77, 155, 255,0.5); color: var(--cyan); box-shadow: 0 0 0 1px rgba(77, 155, 255,0.15) inset; }
.soc-diagram .trace {
  grid-column: 1 / -1;
  height: 2px;
  background: repeating-linear-gradient(to right, var(--cyan) 0 6px, transparent 6px 12px);
  opacity: 0.5;
  margin: -6px 0;
}
.soc-caption { font-size: 13px; color: var(--text-faint); }

/* ---------- Sections ---------- */
section { padding: 76px 0; }
section.tight { padding: 56px 0; }
.section-head {
  max-width: 640px;
  margin-bottom: 44px;
}
.section-head h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  margin: 14px 0 12px;
}
.section-head p { color: var(--text-dim); font-size: 16.5px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border) 20%, var(--border) 80%, transparent);
}

/* ---------- Tool cards ---------- */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.tool-card:hover {
  border-color: rgba(77, 155, 255,0.4);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
}
.tool-card-top { display: flex; align-items: center; justify-content: space-between; }
.tool-tag { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; color: var(--cyan); text-transform: uppercase; }
.tool-num { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-faint); }
.tool-visual {
  height: 84px;
  border-radius: 8px;
  background: var(--bg-raised);
  border: 1px solid var(--border-soft);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 0.08em;
}
.tool-card h3 { font-size: 20px; }
.tool-card p { color: var(--text-dim); font-size: 14.5px; }
.tool-card-foot {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
}
.badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--cyan-soft);
  color: var(--cyan);
  border: 1px solid rgba(77, 155, 255,0.25);
}
.badge.soon { background: var(--amber-soft); color: var(--amber); border-color: rgba(52, 224, 161,0.28); }
.tool-link { font-size: 13.5px; font-weight: 600; color: var(--text); display: inline-flex; align-items: center; gap: 5px; }
.tool-link:hover { color: var(--cyan); }

/* ---------- Learning path ---------- */
.path-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  position: relative;
}
.path-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  position: relative;
}
.path-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  margin-bottom: 14px;
  display: block;
}
.path-num b { color: var(--cyan); }
.path-step h3 { font-size: 19px; margin-bottom: 8px; }
.path-step p { color: var(--text-dim); font-size: 14.5px; }

/* ---------- Feature rows (features page) ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0;
}
.feature-row:not(:last-child) { border-bottom: 1px solid var(--border-soft); }
.feature-row.reverse .feature-visual { order: 2; }
.feature-visual {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  box-shadow: var(--shadow-lg);
}
.feature-visual .mono-line {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-dim);
  padding: 6px 10px;
  background: var(--bg-raised);
  border-radius: 6px;
  border: 1px solid var(--border-soft);
}
.feature-visual .mono-line .kw { color: var(--violet); }
.feature-visual .mono-line .sig { color: var(--cyan); }
.feature-body h3 { font-size: 27px; margin: 14px 0 12px; }
.feature-body p { color: var(--text-dim); font-size: 16px; margin-bottom: 18px; }
.feature-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--text-dim); }
.feature-list li::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan);
  margin-top: 8px; flex-shrink: 0;
  box-shadow: 0 0 8px var(--cyan);
}

/* ---------- Video demo placeholder ---------- */
.video-demo {
  display: flex; align-items: center; gap: 12px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 20px;
  color: var(--text-dim);
  font-size: 13.5px;
}
.video-demo .play-dot {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--cyan-soft); border: 1px solid rgba(77, 155, 255,0.35);
  display: flex; align-items: center; justify-content: center;
  color: var(--cyan); flex-shrink: 0; font-size: 12px;
}
.video-demo strong { color: var(--text); display: block; font-size: 13.5px; }
.video-demo span.sub { color: var(--text-faint); font-size: 12px; }

/* ---------- Tool tabs (Overview / License Generator) ---------- */
.tool-tabs {
  display: flex; gap: 6px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 20px;
}
.tool-tab-btn {
  background: none; border: none; cursor: pointer;
  font-family: var(--font-sans); font-size: 14px; font-weight: 600;
  color: var(--text-faint); padding: 10px 4px; margin-bottom: -1px;
  border-bottom: 2px solid transparent;
}
.tool-tab-btn.active { color: var(--text); border-bottom-color: var(--cyan); }
.tool-tab-panel { display: none; }
.tool-tab-panel.active { display: block; }

/* ---------- License generator ---------- */
.license-gen {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.license-gen .lg-state { display: flex; flex-direction: column; gap: 14px; }
.license-gen .lg-note { color: var(--text-dim); font-size: 14px; }
.license-gen .field { margin-bottom: 4px; }
.license-gen .lg-result { font-size: 13px; color: var(--text-faint); margin-top: 4px; }

/* ---------- Downloads ---------- */
.download-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.download-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.download-card:hover {
  border-color: var(--cyan);
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}
.download-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--cyan-soft); border: 1px solid rgba(77, 155, 255,0.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--cyan); flex-shrink: 0; font-size: 16px;
}
.download-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.download-meta strong { color: var(--text); font-size: 14.5px; }
.download-meta span.sub { color: var(--text-faint); font-size: 12px; font-family: var(--font-mono); }
@media (max-width: 560px) {
  .download-grid { grid-template-columns: 1fr; }
}

/* ---------- Hostid how-to box ---------- */
.howto-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-top: 4px;
}
.howto-box h4 {
  color: var(--text);
  font-size: 14.5px;
  margin: 0 0 8px;
}
.howto-box ol {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.howto-box li {
  color: var(--text-dim);
  font-size: 13.5px;
  line-height: 1.5;
}
.howto-box code {
  background: var(--bg-raised);
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--cyan);
}

/* ---------- Stats / logos strip ---------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 36px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.stat { text-align: center; }
.stat b { display: block; font-size: 30px; font-family: var(--font-mono); color: var(--cyan); }
.stat span { font-size: 13px; color: var(--text-faint); }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}
.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  border-color: rgba(77, 155, 255,0.5);
  background: linear-gradient(180deg, rgba(77, 155, 255,0.07), var(--bg-card) 40%);
  box-shadow: 0 0 0 1px rgba(77, 155, 255,0.15), var(--shadow-lg);
  position: relative;
}
.price-card.featured::before {
  content: "MOST POPULAR";
  position: absolute; top: -12px; left: 26px;
  background: var(--cyan); color: #04122b;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em;
  padding: 4px 10px; border-radius: 999px; font-weight: 700;
}
.price-card h3 { font-size: 19px; margin-bottom: 6px; }
.price-card .price-desc { color: var(--text-faint); font-size: 13.5px; margin-bottom: 20px; }
.price-amount { display: flex; align-items: baseline; gap: 6px; margin-bottom: 6px; }
.price-amount b { font-size: 38px; font-family: var(--font-mono); }
.price-amount span { color: var(--text-faint); font-size: 13.5px; }
.price-card .price-note { color: var(--text-faint); font-size: 12.5px; margin-bottom: 22px; }
.price-features { display: flex; flex-direction: column; gap: 11px; margin: 6px 0 26px; flex-grow: 1; }
.price-features li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-dim); }
.price-features li::before { content: "✓"; color: var(--cyan); font-weight: 700; flex-shrink: 0; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
}
.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
}
.contact-info-card h3 { font-size: 19px; margin-bottom: 16px; }
.contact-line { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border-soft); font-size: 14.5px; }
.contact-line:first-of-type { border-top: none; }
.contact-line .label { color: var(--text-faint); min-width: 90px; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; padding-top: 2px;}
.contact-line a:hover { color: var(--cyan); }

form.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 12.5px; color: var(--text-dim); font-weight: 600; }
.field input, .field textarea, .field select {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 13px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14.5px;
  outline: none;
  transition: border-color 0.15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--cyan); }
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 12.5px; color: var(--text-faint); }
.form-note code {
  font-family: var(--font-mono);
  font-size: 11.5px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--text-dim);
}

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--border-soft);
  padding: 20px 0;
}
.faq-item summary {
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--cyan); font-size: 20px; font-weight: 400; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { color: var(--text-dim); margin-top: 12px; font-size: 14.5px; max-width: 70ch; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 54px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 100% at 50% 0%, rgba(77, 155, 255,0.14), transparent 70%);
  pointer-events: none;
}
.cta-band h2 { font-size: clamp(24px,3.4vw,34px); margin-bottom: 14px; position: relative; }
.cta-band p { color: var(--text-dim); max-width: 50ch; margin: 0 auto 28px; position: relative; }
.cta-band .hero-actions { justify-content: center; position: relative; }

/* ---------- Timeline (about page) ---------- */
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--border-soft);
}
.timeline-item:first-child { border-top: none; }
.timeline-item .t-year { font-family: var(--font-mono); color: var(--cyan); font-size: 14px; padding-top: 2px; }
.timeline-item h4 { font-size: 17px; margin-bottom: 6px; }
.timeline-item p { color: var(--text-dim); font-size: 14.5px; }

/* ---------- Values grid ---------- */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.value-card .v-icon {
  width: 40px; height: 40px; border-radius: 9px;
  background: var(--cyan-soft); border: 1px solid rgba(77, 155, 255,0.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--cyan); font-family: var(--font-mono); font-weight: 700; margin-bottom: 14px;
}
.value-card h4 { font-size: 16.5px; margin-bottom: 8px; }
.value-card p { color: var(--text-dim); font-size: 14px; }

/* ---------- Footer ---------- */
footer.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 56px 0 30px;
  margin-top: 40px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand p { color: var(--text-faint); font-size: 13.5px; margin-top: 14px; max-width: 34ch; }
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 14px; color: var(--text-dim); }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 26px; border-top: 1px solid var(--border-soft);
  font-size: 13px; color: var(--text-faint);
  flex-wrap: wrap; gap: 12px;
}
.footer-tags { display: flex; gap: 10px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; }
.footer-tags span { border: 1px solid var(--border); padding: 3px 8px; border-radius: 999px; }

/* ---------- Page header (interior pages) ---------- */
.page-header {
  padding: 64px 0 20px;
}
.page-header .eyebrow { margin-bottom: 18px; }
.page-header h1 { font-size: clamp(30px, 4.4vw, 46px); margin-bottom: 16px; }
.page-header p { color: var(--text-dim); font-size: 17px; max-width: 60ch; }

/* ---------- Auth widget ---------- */
[hidden] { display: none !important; }
.auth-widget { position: relative; display: flex; align-items: center; }
.auth-signin-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-raised); border: 1px solid var(--border);
  color: var(--text); font-family: var(--font-sans); font-size: 13.5px; font-weight: 600;
  padding: 9px 14px 9px 10px; border-radius: 8px; cursor: pointer;
  transition: border-color 0.15s ease;
}
.auth-signin-btn:hover { border-color: var(--cyan); }
.auth-signin-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.auth-user { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.auth-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--cyan); color: #04122b;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 12px;
  overflow: hidden; flex-shrink: 0;
}
.auth-avatar img { width: 100%; height: 100%; object-fit: cover; }
.auth-name { font-size: 13.5px; font-weight: 600; color: var(--text); max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auth-menu {
  position: absolute; top: calc(100% + 10px); right: 0;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px;
  padding: 8px; min-width: 170px; box-shadow: var(--shadow-lg); z-index: 60;
}
.auth-menu button {
  width: 100%; text-align: left; background: none; border: none; color: var(--text-dim);
  font-family: var(--font-sans); font-size: 13.5px; padding: 9px 10px; border-radius: 6px; cursor: pointer;
}
.auth-menu button:hover { background: var(--bg-raised); color: var(--text); }

/* ---------- Sign-in modal ---------- */
.link-btn {
  background: none; border: none; padding: 0; margin: 0;
  color: var(--cyan); font-family: var(--font-sans); font-size: inherit;
  font-weight: 600; cursor: pointer;
}
.link-btn:hover { text-decoration: underline; }

.auth-modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(2, 4, 10, 0.72);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.auth-modal {
  position: relative;
  width: 100%; max-width: 380px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 30px 26px 26px;
}
.auth-modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 30px; height: 30px; border-radius: 8px;
  background: none; border: none; color: var(--text-faint);
  font-size: 20px; line-height: 1; cursor: pointer;
}
.auth-modal-close:hover { background: var(--bg-raised); color: var(--text); }
.auth-modal-title { font-size: 19px; margin-bottom: 4px; color: var(--text); }
.auth-modal-sub { font-size: 13.5px; color: var(--text-dim); margin-bottom: 22px; }

.auth-provider-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.auth-provider-btn {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  background: var(--bg-raised); border: 1px solid var(--border);
  color: var(--text); font-family: var(--font-sans); font-size: 14px; font-weight: 600;
  padding: 11px 14px; border-radius: 8px; cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.auth-provider-btn:hover { border-color: var(--cyan); background: var(--bg-card-hover); }
.auth-provider-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.auth-provider-btn[data-provider="apple"] svg { color: var(--text); }

.auth-divider {
  display: flex; align-items: center; gap: 12px;
  color: var(--text-faint); font-size: 12px;
  margin-bottom: 20px;
}
.auth-divider::before, .auth-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--border-soft);
}

.auth-email-form { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }
.auth-modal-error {
  font-size: 13px; color: var(--danger);
  background: rgba(240, 101, 79, 0.1);
  border: 1px solid rgba(240, 101, 79, 0.3);
  border-radius: 8px; padding: 9px 12px;
  margin: 0;
}
.auth-modal-toggle { font-size: 13px; color: var(--text-dim); margin-bottom: 8px; }
.auth-modal-forgot { font-size: 13px; margin: 0; }

/* ---------- Buy cards (per-tool pricing) ---------- */
.buy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.buy-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 14px;
}
.buy-card-top { display: flex; align-items: center; justify-content: space-between; }
.buy-card h3 { font-size: 17px; }
.buy-card .buy-desc { color: var(--text-dim); font-size: 13.5px; min-height: 42px; }
.buy-price-row { display: flex; align-items: baseline; gap: 6px; }
.buy-price-row b { font-size: 26px; font-family: var(--font-mono); }
.buy-price-row span { color: var(--text-faint); font-size: 12.5px; }
.buy-actions { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.todo-tag {
  display: inline-block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.04em;
  color: var(--amber); background: var(--amber-soft); border: 1px dashed rgba(52, 224, 161,0.4);
  padding: 5px 8px; border-radius: 6px; margin-top: 6px;
}

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .tool-grid, .path-grid, .pricing-grid, .value-grid, .buy-grid { grid-template-columns: 1fr 1fr; }
  .feature-row, .feature-row.reverse { grid-template-columns: 1fr; }
  .feature-row.reverse .feature-visual { order: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
}
@media (max-width: 680px) {
  .nav-links { display: none; position: fixed; top: 65px; left: 0; right: 0; background: var(--bg); flex-direction: column; align-items: flex-start; padding: 26px 28px; gap: 22px; border-top: 1px solid var(--border-soft); max-height: calc(100vh - 65px); overflow-y: auto; z-index: 40; box-shadow: var(--shadow-lg); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-cta .btn { display: none; }
  .auth-name { max-width: 70px; }
  .tool-grid, .path-grid, .pricing-grid, .value-grid, .footer-top, .buy-grid { grid-template-columns: 1fr; }
  .auth-name { max-width: 80px; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .soc-diagram { grid-template-columns: repeat(3, 1fr); }
  .cta-band { padding: 40px 22px; }
  section { padding: 54px 0; }
}
