:root {
  --bg: #12100e;
  --bg-elev: #1a1715;
  --bg-card: #1f1b18;
  --border: rgba(172, 156, 141, 0.16);
  --border-strong: rgba(172, 156, 141, 0.34);
  --ivory: #efe9e1;
  --muted: #b6aa9d;
  --taupe: #ac9c8d;
  --burgundy: #72383d;
  --burgundy-bright: #934a50;
  --frost: #aac7d8;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --glow-x: 68%;
  --glow-y: 18%;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ivory);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.ambient-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(640px circle at var(--glow-x) var(--glow-y), rgba(114, 56, 61, 0.22), transparent 60%),
    radial-gradient(520px circle at 15% 75%, rgba(170, 199, 216, 0.08), transparent 65%);
  transition: background 0.3s ease;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(18, 16, 14, 0.78);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 70px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ivory);
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.brand-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--taupe);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.18s ease;
}

.nav-link:hover {
  color: var(--ivory);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 0.84rem;
}

.btn-primary {
  background: var(--ivory);
  color: #161311;
}

.btn-primary:hover {
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(239, 233, 225, 0.16);
}

.btn-secondary {
  background: rgba(172, 156, 141, 0.12);
  color: var(--ivory);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: rgba(172, 156, 141, 0.22);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--border);
}

.btn-ghost:hover {
  color: var(--ivory);
  border-color: var(--border-strong);
}

/* Hero */
.hero {
  padding: 72px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--taupe);
  margin-bottom: 22px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--frost);
  box-shadow: 0 0 0 4px rgba(170, 199, 216, 0.18);
}

.hero-title {
  margin: 0 0 20px;
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.7rem, 5.2vw, 4.3rem);
  line-height: 1.03;
  letter-spacing: -0.02em;
  color: var(--ivory);
}

.hero-title em {
  font-style: italic;
  color: var(--frost);
}

.hero-sub {
  margin: 0 0 28px;
  max-width: 540px;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.hero-metrics {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.metric {
  display: flex;
  flex-direction: column;
}

.metric-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ivory);
}

.metric-lbl {
  font-size: 0.78rem;
  color: var(--taupe);
}

.metric-sep {
  width: 1px;
  height: 32px;
  background: var(--border);
}

/* Interactive Console */
.hero-console {
  background: linear-gradient(160deg, rgba(35, 30, 26, 0.96), rgba(22, 19, 17, 0.98));
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.console-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 5px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border);
  margin-bottom: 18px;
}

.console-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.console-tab.active {
  background: var(--burgundy);
  color: var(--ivory);
}

.console-body {
  padding: 6px 6px 4px;
}

.console-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.console-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--frost);
  background: rgba(170, 199, 216, 0.12);
  border: 1px solid rgba(170, 199, 216, 0.28);
  padding: 4px 10px;
  border-radius: 999px;
}

.console-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--taupe);
}

.console-title {
  margin: 0 0 10px;
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.1;
}

.console-desc {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.console-specs {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  border-top: 1px solid var(--border);
}

.console-specs li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.84rem;
}

.console-specs li span {
  color: var(--taupe);
}

.console-specs li strong {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  color: var(--ivory);
  font-size: 0.8rem;
}

.console-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Sections */
.section {
  padding: 76px 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}

.section-kicker {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--taupe);
  margin-bottom: 10px;
}

.section-title {
  margin: 0 0 12px;
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  line-height: 1.08;
}

.section-sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.product-card.featured {
  border-color: rgba(170, 199, 216, 0.35);
  background: linear-gradient(180deg, rgba(170, 199, 216, 0.06), var(--bg-card) 42%);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 18px;
}

.pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
}

.pill-frost {
  color: var(--frost);
  background: rgba(170, 199, 216, 0.12);
  border: 1px solid rgba(170, 199, 216, 0.26);
}

.pill-luxe {
  color: #e7b5b9;
  background: rgba(114, 56, 61, 0.28);
  border: 1px solid rgba(147, 74, 80, 0.45);
}

.price-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--taupe);
}

.card-title {
  margin: 0 0 10px;
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: 1.85rem;
  line-height: 1.1;
}

.card-copy {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.card-list {
  margin: 0 0 24px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.85rem;
  flex: 1;
}

.card-list li {
  margin-bottom: 8px;
}

.card-list strong {
  color: var(--ivory);
  font-weight: 600;
}

.card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* Pillars */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.pillar-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.pillar-num {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  color: var(--frost);
  margin-bottom: 12px;
}

.pillar-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 600;
}

.pillar-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

/* CTA Band */
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 40px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(114, 56, 61, 0.34), rgba(28, 25, 23, 0.96) 65%);
  border: 1px solid var(--border-strong);
}

.cta-band-copy {
  max-width: 580px;
}

.cta-band h2 {
  margin: 0 0 10px;
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.1;
}

.cta-band p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 36px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.86rem;
}

.footer-brand strong {
  color: var(--ivory);
}

.footer-logo {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--taupe);
  text-decoration: none;
  font-size: 0.86rem;
  transition: color 0.16s ease;
}

.footer-links a:hover {
  color: var(--ivory);
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .nav {
    display: none;
  }
  .hero {
    padding: 44px 0 40px;
  }
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  .cta-band {
    padding: 28px 22px;
  }
}
