:root {
  --bg-deep: #0d0d14;
  --bg-primary: #1a1a2e;
  --bg-card: #16213e;
  --bg-elevated: #1f2b47;
  --gold: #c9a857;
  --gold-light: #e0c878;
  --gold-dim: #8a7339;
  --steel: #4a6fa5;
  --steel-light: #6b8fc5;
  --text-primary: #e8e6e3;
  --text-secondary: #9a9a9a;
  --text-muted: #6a6a6a;
  --font-display: 'Cinzel', serif;
  --font-body: 'Inter', sans-serif;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.gold {
  color: var(--gold);
}

.section-kicker {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 1rem;
}

/* ====== HERO ====== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 2rem;
  overflow: hidden;
}

.hero-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(201,168,87,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(74,111,165,0.06) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-primary) 100%);
  z-index: 0;
}

.hero-bg-pattern::before {
  content: '';
  position: absolute;
  top: 10%;
  right: 5%;
  width: 400px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
  transform: rotate(-25deg);
}

.hero-bg-pattern::after {
  content: '';
  position: absolute;
  bottom: 20%;
  right: 15%;
  width: 300px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
  transform: rotate(-25deg);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-kicker {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.hero-lede {
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 520px;
}

.hero-visual {
  position: relative;
}

.blade-line {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-30deg);
  width: 2px;
  height: 300px;
  background: linear-gradient(to bottom, transparent, var(--gold), var(--gold-light), var(--gold), transparent);
  opacity: 0.4;
}

.forge-glow {
  position: absolute;
  top: 40%;
  left: 45%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,87,0.15) 0%, transparent 70%);
  filter: blur(40px);
}

.stats-row {
  display: flex;
  gap: 2rem;
  padding-top: 2rem;
}

.stat {
  text-align: center;
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.2;
}

.stat-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.hero-cta-row {
  display: flex;
  gap: 0.75rem;
  padding-top: 2rem;
  flex-wrap: wrap;
  align-items: center;
}

.btn-quiz {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold);
  color: var(--bg-deep);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-quiz:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.btn-ghost-outline {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: 1.5px solid rgba(201,168,87,0.3);
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s;
}

.btn-ghost-outline:hover {
  border-color: var(--gold);
  color: var(--text-primary);
}

/* ====== HERITAGE ====== */
.heritage {
  padding: 8rem 0;
  background: var(--bg-primary);
  position: relative;
}

.heritage::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}

.heritage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.heritage-text h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.heritage-text p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.heritage-features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.heritage-card {
  background: var(--bg-card);
  border: 1px solid rgba(201,168,87,0.1);
  border-radius: 8px;
  padding: 1.5rem;
  transition: border-color 0.3s;
}

.heritage-card:hover {
  border-color: rgba(201,168,87,0.3);
}

.card-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.heritage-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

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

/* ====== PIPELINE ====== */
.pipeline {
  padding: 8rem 0;
  background: var(--bg-deep);
  text-align: center;
}

.pipeline h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.pipeline-desc {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 4rem;
  font-size: 1rem;
}

.pipeline-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 1rem;
}

.step {
  flex: 1;
  max-width: 320px;
  text-align: left;
  background: var(--bg-card);
  border: 1px solid rgba(201,168,87,0.08);
  border-radius: 8px;
  padding: 2rem;
}

.step-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--gold-dim);
  opacity: 0.5;
  line-height: 1;
  margin-bottom: 1rem;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.step p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.step-arrow {
  font-size: 1.5rem;
  color: var(--gold-dim);
  padding-top: 3rem;
  flex-shrink: 0;
}

/* ====== DUAL MODE ====== */
.dual-mode {
  padding: 8rem 0;
  background: var(--bg-primary);
  position: relative;
}

.dual-mode::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}

.dual-mode h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
}

.mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.mode-card {
  background: var(--bg-card);
  border-radius: 8px;
  padding: 2.5rem;
  border: 1px solid rgba(201,168,87,0.08);
  position: relative;
  overflow: hidden;
}

.mode-b2c {
  border-top: 2px solid var(--gold);
}

.mode-b2b {
  border-top: 2px solid var(--steel);
}

.mode-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.mode-b2b .mode-label {
  color: var(--steel-light);
}

.mode-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.mode-card ul {
  list-style: none;
  padding: 0;
}

.mode-card li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.mode-card li:last-child {
  border-bottom: none;
}

.mode-card li::before {
  content: '\2192\00a0';
  color: var(--gold-dim);
}

.mode-b2b li::before {
  color: var(--steel);
}

/* ====== AUTOMATION ====== */
.automation {
  padding: 8rem 0;
  background: var(--bg-deep);
  text-align: center;
}

.automation h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.automation-desc {
  color: var(--text-secondary);
  max-width: 550px;
  margin: 0 auto 4rem;
}

.auto-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.auto-item {
  text-align: left;
  background: var(--bg-card);
  border: 1px solid rgba(201,168,87,0.06);
  border-radius: 8px;
  padding: 2rem;
}

.auto-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--bg-deep);
  background: var(--gold);
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  margin-bottom: 0.75rem;
}

.auto-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ====== CLOSING ====== */
.closing {
  padding: 8rem 0;
  background: var(--bg-primary);
  position: relative;
}

.closing::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}

.closing-content {
  max-width: 750px;
  margin: 0 auto;
  text-align: center;
}

.closing h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
}

.closing p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ====== FOOTER ====== */
.site-footer {
  padding: 3rem 0;
  background: var(--bg-deep);
  border-top: 1px solid rgba(255,255,255,0.04);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold);
}

.footer-brand p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.footer-meta p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  .hero {
    padding: 4rem 1.5rem;
    min-height: auto;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-visual {
    display: none;
  }

  .stats-row {
    display: flex;
    justify-content: flex-start;
    gap: 1.5rem;
    padding-top: 2rem;
  }

  .hero .hero-text .stats-row {
    display: flex;
  }

  .heritage-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .pipeline-steps {
    flex-direction: column;
    align-items: center;
  }

  .step-arrow {
    transform: rotate(90deg);
    padding: 0;
  }

  .step {
    max-width: 100%;
  }

  .mode-grid {
    grid-template-columns: 1fr;
  }

  .auto-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .container {
    padding: 0 1.25rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .stats-row {
    flex-wrap: wrap;
  }
}