/* ==========================================
   SPUD — styles.css
   Dark theme, forest-green accent, Space Grotesk + Libre Baskerville + Titan One
   ========================================== */

/* --- RESET & BASE --- */

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

:root {
  --bg:        #0A0F0D;
  --surface:   #111916;
  --surface-2: #151D19;
  --border:    #1E2A24;
  --text:      #E8E6E3;
  --text-dim:  #5A6560;
  --primary:   #2D6A4F;
  --primary-light: #40916C;
  --destructive: #C1544B;
  --amber:     #B8860B;
  --white:     #E8E6E3;
  --logo-cross:#E8E6E3;
  --nav-bg:    rgba(10,15,13,0.8);
  --nav-bg-scroll: rgba(10,15,13,0.95);
  --ghost-hover-bg: rgba(255,255,255,0.04);
  --code-comment: #4A5550;
  --font:      'Space Grotesk', -apple-system, sans-serif;
  --font-display: 'Libre Baskerville', Georgia, serif;
  --font-logo: 'Titan One', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  --max-w:     1200px;
  --radius:    8px;
  --radius-sm: 6px;
  --radius-lg: 12px;
}

/* --- LIGHT THEME --- */

[data-theme="light"] {
  --bg:        #FAFAF8;
  --surface:   #F0F2F0;
  --surface-2: #E6EAE8;
  --border:    #CDD5D0;
  --text:      #1A2420;
  --text-dim:  #5A6E64;
  --primary:   #2D6A4F;
  --primary-light: #40916C;
  --destructive: #B8443B;
  --amber:     #9A7209;
  --white:     #1A2420;
  --logo-cross:#1A2420;
  --nav-bg:    rgba(250,250,248,0.8);
  --nav-bg-scroll: rgba(250,250,248,0.95);
  --ghost-hover-bg: rgba(0,0,0,0.04);
  --code-comment: #8A9690;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color 0.2s; }
a:hover { text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }

/* --- UTILITIES --- */

.section-container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

.divider {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 1px;
  background: var(--border);
}

/* --- BUTTONS --- */

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 32px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: rgba(45,106,79,0.9);
}

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 32px;
  background: transparent;
  color: var(--text);
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.btn-ghost:hover {
  border-color: var(--text-dim);
  background: var(--ghost-hover-bg);
}

/* --- NAVBAR --- */

.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 24px;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}

.navbar.scrolled {
  border-bottom-color: var(--border);
  background: var(--nav-bg-scroll);
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-logo);
  font-size: 1.4rem; font-weight: 600; color: var(--text);
}

.spud-logo-icon { display: flex; align-items: center; }

.nav-links {
  display: flex; gap: 32px;
}

.nav-links a {
  font-size: 0.9rem; font-weight: 400; color: var(--text-dim);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

.nav-actions { display: flex; gap: 12px; align-items: center; }
.nav-actions .btn-ghost { padding: 10px 20px; font-size: 0.85rem; }
.nav-actions .btn-primary { padding: 10px 20px; font-size: 0.85rem; }

.mobile-menu-btn {
  display: none;
  background: none; border: none; color: var(--text); cursor: pointer;
}

/* --- MOBILE MENU --- */

.mobile-menu {
  position: fixed; inset: 0; z-index: 2000;
  background: var(--bg);
  display: flex; flex-direction: column;
  padding: 16px 24px 40px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-menu.open { transform: translateX(0); }

.mobile-menu-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 40px;
}

.mobile-menu-close {
  background: none; border: none; color: var(--text); cursor: pointer;
}

.mobile-menu-links {
  display: flex; flex-direction: column; gap: 24px;
}

.mobile-menu-links a {
  font-size: 1.5rem; font-weight: 600; color: var(--text);
}

.mobile-menu-actions {
  margin-top: auto;
  display: flex; flex-direction: column; gap: 12px;
}

/* --- HERO --- */

.hero {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: 180px 24px 100px;
  overflow: hidden;
}

.hero-glow-pink {
  position: absolute; top: -100px; left: 50%; transform: translateX(-60%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(45,106,79,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-glow-lime {
  position: absolute; top: 0; left: 50%; transform: translateX(30%);
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(64,145,108,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 100%);
  pointer-events: none;
}

.hero-logomark {
  margin-bottom: 24px;
  opacity: 0.9;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.8rem; font-weight: 500; color: var(--text-dim);
  margin-bottom: 32px;
}

.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-family: var(--font);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  max-width: 800px;
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--primary-light);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-dim);
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* --- LOGOS --- */

.logos-section {
  padding: 60px 0 40px;
  text-align: center;
  overflow: hidden;
}

.logos-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-bottom: 28px;
}

.logos-track-wrapper {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 15%, black 85%, transparent);
}

.logos-track {
  display: flex; gap: 48px;
  animation: scroll 30s linear infinite;
  width: max-content;
  align-items: center;
}

.logo-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dim);
  opacity: 0.5;
  white-space: nowrap;
}

.logo-item svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- SECTION HEADERS --- */

.section-header { text-align: center; margin-bottom: 60px; }

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary-light);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
  max-width: 700px;
  margin: 0 auto 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --- MODES --- */

.modes-section { padding: 80px 0; }

.modes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.mode-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: border-color 0.3s;
}

.mode-card:hover {
  border-color: var(--text-dim);
}

.mode-number {
  font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.mode-icon { font-size: 2rem; margin-bottom: 16px; }

.mode-card h3 {
  font-size: 1.3rem; font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.mode-card p {
  font-size: 0.95rem; color: var(--text-dim);
  line-height: 1.65;
  margin-bottom: 20px;
}

.mode-tag {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(45,106,79,0.1);
  border: 1px solid rgba(45,106,79,0.25);
  border-radius: 50px;
  font-size: 0.75rem; font-weight: 500;
  color: var(--primary-light);
}

/* --- FEATURES BENTO --- */

.features-section { padding: 80px 0; }

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  overflow: hidden;
}

.span-4  { grid-column: span 4; }
.span-5  { grid-column: span 5; }
.span-7  { grid-column: span 7; }
.span-8  { grid-column: span 8; }
.span-12 { grid-column: span 12; }

.card-label {
  font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--primary-light);
  margin-bottom: 12px;
}

.bento-card h3 {
  font-size: 1.2rem; font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}

.bento-card p {
  font-size: 0.9rem; color: var(--text-dim);
  line-height: 1.65;
  margin-bottom: 20px;
}

/* Code blocks */

.code-block {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.75;
  color: var(--text-dim);
  overflow-x: auto;
}

.code-block .k { color: var(--primary-light); }
.code-block .s { color: #7EB89A; }
.code-block .b { color: #6B9E8A; }
.code-block .n { color: var(--amber); }
.code-block .c { color: var(--code-comment); font-style: italic; }

/* Stats */

.stat-group { display: flex; flex-direction: column; gap: 20px; }

.stat-number {
  font-size: 2.4rem; font-weight: 600;
  font-family: var(--font-display);
  color: var(--primary-light);
}

.stat-label { font-size: 0.8rem; color: var(--text-dim); }

/* Dashboard metrics */

.dashboard-metrics {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.metric {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}

.metric-label {
  font-size: 0.7rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.metric-value {
  font-size: 1.8rem; font-weight: 600;
}

.metric-value.pink { color: var(--primary-light); }
.metric-value.white { color: var(--text); }
.metric-value.red { color: var(--destructive); }
.metric-value.lime { color: var(--primary-light); }

/* --- PROTOCOLS --- */

.protocols-section { padding: 80px 0; }

.protocols-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.protocol-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: border-color 0.3s;
}

.protocol-card:hover { border-color: var(--text-dim); }

.protocol-name {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(45,106,79,0.1);
  border: 1px solid rgba(45,106,79,0.25);
  border-radius: var(--radius-sm);
  font-size: 0.75rem; font-weight: 700;
  color: var(--primary-light);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.protocol-card h3 {
  font-size: 1.3rem; font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.protocol-card p {
  font-size: 0.95rem; color: var(--text-dim);
  line-height: 1.65;
  margin-bottom: 20px;
}

.protocol-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
}

.protocol-tags span {
  padding: 5px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.72rem; font-weight: 500;
  color: var(--text-dim);
}

/* --- TRUST STRIP --- */

.trust-strip { padding: 80px 0; }

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.trust-item { text-align: center; }

.trust-icon { font-size: 2rem; margin-bottom: 12px; color: var(--primary-light); }
.trust-icon svg { width: 32px; height: 32px; }

.trust-item h4 {
  font-size: 1rem; font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}

.trust-item p {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* --- CTA --- */

.cta-section {
  position: relative;
  padding: 100px 0 120px;
  text-align: center;
  overflow: hidden;
}

.cta-glow {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 500px;
  background: radial-gradient(circle, rgba(45,106,79,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}

.cta-inner h2 em {
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--primary-light);
}

.cta-inner p {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 480px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* --- FOOTER --- */

.footer {
  border-top: 1px solid var(--border);
  padding: 60px 24px 30px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-logo);
  font-size: 1.2rem; font-weight: 600;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.footer-col li { margin-bottom: 10px; }

.footer-col a {
  font-size: 0.9rem; color: var(--text-dim);
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--text); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-bottom a { color: var(--text-dim); transition: color 0.2s; }
.footer-bottom a:hover { color: var(--text); }

/* --- SCROLL REVEAL --- */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- PAGE-LEVEL STYLES (for docs, pricing, about, etc.) --- */

.page-hero {
  padding: 160px 24px 60px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.page-hero h1 em {
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--primary-light);
}

.page-hero p {
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Doc cards */

.doc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 80px;
}

.doc-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color 0.3s;
}

.doc-card:hover {
  border-color: var(--text-dim);
}

.doc-card-icon {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.doc-card h3 {
  font-size: 1.15rem; font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}

.doc-card p {
  font-size: 0.9rem; color: var(--text-dim);
  line-height: 1.6;
}

.doc-card .card-arrow {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--primary-light);
  font-weight: 500;
}

/* Quick start section */

.quickstart-section {
  padding: 0 0 80px;
}

.quickstart-section h2 {
  font-size: 1.8rem; font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
  text-align: center;
}

.quickstart-steps {
  max-width: 700px;
  margin: 0 auto;
}

.quickstart-step {
  margin-bottom: 28px;
}

.quickstart-step h3 {
  font-size: 1rem; font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}

.quickstart-step h3 span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  background: var(--primary);
  border-radius: 50%;
  font-size: 0.8rem;
  color: #fff;
  margin-right: 10px;
}

/* Pricing cards */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  transition: border-color 0.3s;
}

.pricing-card:hover {
  border-color: var(--text-dim);
}

.pricing-card.featured {
  border-color: var(--primary);
  position: relative;
}

.pricing-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(45,106,79,0.1);
  border: 1px solid rgba(45,106,79,0.25);
  border-radius: 50px;
  font-size: 0.7rem; font-weight: 600;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.pricing-card h3 {
  font-size: 1.3rem; font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}

.pricing-card .price {
  font-size: 2.5rem; font-weight: 600;
  margin-bottom: 4px;
}

.pricing-card .price-sub {
  font-size: 0.85rem; color: var(--text-dim);
  margin-bottom: 24px;
}

.pricing-card .pricing-desc {
  font-size: 0.9rem; color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 24px;
}

.pricing-features {
  margin-bottom: 28px;
}

.pricing-features li {
  display: flex; align-items: baseline; gap: 10px;
  font-size: 0.9rem; color: var(--text-dim);
  margin-bottom: 10px;
  line-height: 1.5;
}

.pricing-features li::before {
  content: '✓';
  color: var(--primary-light);
  font-weight: 700;
  flex-shrink: 0;
}

.pricing-card .btn-primary,
.pricing-card .btn-ghost { width: 100%; text-align: center; }

.pricing-card .price-mo {
  font-size: 1rem; font-weight: 400; color: var(--text-dim);
}

/* 4-column pricing grid */

.pricing-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.pricing-card.enterprise-card {
  border-style: dashed;
}

/* Pricing tabs */

.pricing-tabs {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 4px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.pricing-tab-btn {
  padding: 10px 28px;
  border: none;
  border-radius: 50px;
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.pricing-tab-btn:hover {
  color: var(--text);
}

.pricing-tab-btn.active {
  background: var(--primary);
  color: #fff;
}

.pricing-tabs-desc {
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.pricing-panel {
  display: none;
}

.pricing-panel.active {
  display: block;
}

/* Credit model cards */

.credit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.credit-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
}

.credit-icon {
  margin-bottom: 16px;
  color: var(--primary-light);
}

.credit-icon svg {
  width: 32px;
  height: 32px;
}

.credit-card h3 {
  font-size: 1.3rem; font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}

.credit-price {
  font-size: 1.1rem; font-weight: 600;
  color: var(--primary-light);
  margin-bottom: 12px;
}

.credit-card p {
  font-size: 0.9rem; color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 20px;
}

.credit-examples {
  display: flex; flex-direction: column; gap: 8px;
}

.credit-example {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.8rem;
}

.credit-example span:first-child { color: var(--text-dim); }
.credit-example span:last-child { font-weight: 600; color: var(--text); }

/* About page */

.about-content {
  max-width: 700px;
  margin: 0 auto 60px;
  padding: 0 24px;
}

.about-content p {
  font-size: 1.05rem;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-content p.lead {
  font-size: 1.2rem;
  color: var(--text);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 80px;
}

.value-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
}

.value-card .value-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.value-card h3 {
  font-size: 1.15rem; font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}

.value-card p {
  font-size: 0.9rem; color: var(--text-dim);
  line-height: 1.6;
}

/* Placeholder / coming soon pages */

.coming-soon {
  padding: 200px 24px 120px;
  text-align: center;
}

.coming-soon h1 {
  font-size: 2.5rem; font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.coming-soon p {
  font-size: 1.05rem; color: var(--text-dim);
  max-width: 480px;
  margin: 0 auto;
}

/* --- THEME TOGGLE --- */

.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--text-dim);
  transform: scale(1.08);
}

.theme-toggle svg { width: 18px; height: 18px; display: block; }

.theme-toggle .icon-moon,
.theme-toggle .icon-sun { transition: opacity 0.2s; }

/* Dark mode: show moon, hide sun */
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }

/* Light mode: show sun, hide moon */
[data-theme="light"] .theme-toggle .icon-sun  { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* Mobile theme toggle in mobile menu */
.mobile-theme-toggle {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0;
  font-size: 1rem; font-weight: 500;
  color: var(--text-dim);
  cursor: pointer;
  background: none; border: none;
  font-family: var(--font);
}

.mobile-theme-toggle svg { width: 20px; height: 20px; color: var(--text); }
.mobile-theme-toggle .icon-sun  { display: none; }
.mobile-theme-toggle .icon-moon { display: block; }
[data-theme="light"] .mobile-theme-toggle .icon-sun  { display: block; }
[data-theme="light"] .mobile-theme-toggle .icon-moon { display: none; }
.mobile-theme-toggle .toggle-label-dark  { display: inline; }
.mobile-theme-toggle .toggle-label-light { display: none; }
[data-theme="light"] .mobile-theme-toggle .toggle-label-dark  { display: none; }
[data-theme="light"] .mobile-theme-toggle .toggle-label-light { display: inline; }

/* --- LIGHT THEME OVERRIDES --- */

/* SVG logo cross lines need to flip color */
[data-theme="light"] .spud-logo-icon svg line,
[data-theme="light"] .hero-logomark svg line,
[data-theme="light"] .footer-logo .spud-logo-icon svg line {
  stroke: var(--logo-cross);
}

/* Hero glows softer in light */
[data-theme="light"] .hero-glow-pink {
  background: radial-gradient(circle, rgba(45,106,79,0.06) 0%, transparent 70%);
}
[data-theme="light"] .hero-glow-lime {
  background: radial-gradient(circle, rgba(64,145,108,0.04) 0%, transparent 70%);
}
[data-theme="light"] .hero-grid {
  background-image:
    linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
}
[data-theme="light"] .cta-glow {
  background: radial-gradient(circle, rgba(45,106,79,0.04) 0%, transparent 70%);
}

/* Mode tags in light */
[data-theme="light"] .mode-tag {
  background: rgba(45,106,79,0.08);
  border-color: rgba(45,106,79,0.2);
}

/* Code block syntax colors in light */
[data-theme="light"] .code-block .b { color: #2D6A4F; }
[data-theme="light"] .code-block .n { color: #9A7209; }
[data-theme="light"] .code-block .s { color: var(--primary); }

/* Pricing check color in light */
[data-theme="light"] .pricing-features li::before { color: var(--primary); }

/* --- RESPONSIVE --- */

@media (max-width: 900px) {
  .nav-links, .nav-actions { display: none; }
  .mobile-menu-btn { display: block; }
  .navbar .theme-toggle { display: none; }

  .modes-grid { grid-template-columns: 1fr; }
  .protocols-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }

  .bento-grid { grid-template-columns: 1fr; }
  .span-4, .span-5, .span-7, .span-8, .span-12 { grid-column: span 1; }

  .dashboard-metrics { grid-template-columns: repeat(2, 1fr); }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand { grid-column: span 2; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .doc-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .pricing-grid-4 { grid-template-columns: repeat(2, 1fr); max-width: 100%; }
  .credit-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }

  .section-container { padding: 0 20px; }
  .modes-section, .features-section, .protocols-section, .trust-strip { padding: 60px 0; }
  .cta-section { padding: 80px 0 100px; }
}

@media (max-width: 600px) {
  .hero { padding: 130px 16px 60px; }
  .hero h1 { font-size: 2rem; }
  .hero-sub { font-size: 0.95rem; margin-bottom: 28px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-ghost { width: 100%; text-align: center; }
  .trust-grid { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }

  .doc-grid { grid-template-columns: 1fr; }
  .pricing-grid-4 { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .pricing-tab-btn { padding: 8px 18px; font-size: 0.8rem; }

  .page-hero { padding: 130px 16px 40px; }
  .page-hero h1 { font-size: 1.8rem; }
  .coming-soon { padding: 150px 16px 80px; }
  .coming-soon h1 { font-size: 1.8rem; }

  .section-container { padding: 0 16px; }
  .navbar { padding: 14px 16px; }
  .mobile-menu { padding: 14px 16px 32px; }

  .mode-card, .bento-card, .protocol-card,
  .doc-card, .pricing-card, .value-card { padding: 24px 20px; }

  .btn-primary, .btn-ghost { padding: 12px 24px; font-size: 0.9rem; }

  .cta-buttons { flex-direction: column; align-items: stretch; }
  .cta-buttons .btn-primary,
  .cta-buttons .btn-ghost { width: 100%; text-align: center; }
}
