:root {
  --bg: #0f0f0f;
  --bg-2: #161614;
  --bg-3: #1e1e1b;
  --fg: #f5f0e8;
  --fg-muted: #8a8577;
  --teal: #0d9488;
  --teal-dim: rgba(13,148,136,0.15);
  --amber: #f59e0b;
  --amber-dim: rgba(245,158,11,0.15);
  --amber-light: #fcd34d;
  --charcoal: #2a2a26;
  --charcoal-light: #3a3a35;
  --border: rgba(245,240,232,0.08);
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
}

/* HEADER */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(15,15,15,0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

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

.logo-mark {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  width: 20px;
  height: 20px;
}

.tile {
  border-radius: 2px;
}

.t1 { background: var(--teal); }
.t2 { background: var(--amber); }
.t3 { background: var(--charcoal-light); }
.t4 { background: var(--teal); opacity: 0.5; }

.logo-text {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.02em;
}

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

.nav-links a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-links a[href="/dashboard"] {
  color: var(--teal);
  border: 1px solid var(--teal-dim);
  padding: 6px 16px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}

.nav-links a[href="/dashboard"]:hover {
  background: var(--teal-dim);
}

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 64px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.mosaic-grid {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0.07;
}

.mg-row {
  display: flex;
  flex: 1;
}

.mg-cell {
  flex: 1;
}

.c-teal { background: var(--teal); }
.c-teal-dark { background: #085a56; }
.c-amber { background: var(--amber); }
.c-amber-light { background: var(--amber-light); }
.c-charcoal { background: var(--charcoal); }
.c-charcoal-light { background: var(--charcoal-light); }

.hero-gradient {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 60% at 60% 50%, rgba(13,148,136,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(245,158,11,0.08) 0%, transparent 60%),
    linear-gradient(to bottom, rgba(15,15,15,0.3) 0%, var(--bg) 100%);
}

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

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 24px;
}

.eyebrow-line {
  display: block;
  width: 32px;
  height: 1px;
  background: var(--teal);
}

.hero-headline {
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 28px;
}

.hero-headline em {
  font-style: italic;
  color: var(--amber);
}

.hero-sub {
  font-size: 18px;
  color: var(--fg-muted);
  max-width: 440px;
  line-height: 1.7;
  margin-bottom: 48px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  background: var(--teal);
  color: var(--fg);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  border-radius: 3px;
  transition: background 0.2s, transform 0.15s;
}

.cta-primary:hover {
  background: #0f7e73;
  transform: translateY(-1px);
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  background: transparent;
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: 3px;
  transition: border-color 0.2s, color 0.2s;
}

.cta-secondary:hover {
  border-color: var(--fg-muted);
  color: var(--fg);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 32px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-number {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--fg);
}

.meta-label {
  font-size: 12px;
  color: var(--fg-muted);
  font-weight: 400;
}

.meta-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* FEATURES */
.features {
  padding: 120px 40px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}

.section-headline {
  font-size: clamp(28px, 3.5vw, 48px);
  color: var(--fg);
  margin-bottom: 64px;
  max-width: 640px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
}

.feature-card {
  background: var(--bg-2);
  padding: 40px 36px;
  transition: background 0.3s;
}

.feature-card:hover {
  background: var(--bg-3);
}

.feature-icon {
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 12px;
  font-family: 'DM Sans', sans-serif;
}

.feature-card p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* MODULES */
.modules {
  padding: 120px 40px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.module-flow {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 64px;
}

.flow-step {
  flex: 1;
  padding: 32px 28px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  position: relative;
}

.flow-step::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--amber));
  opacity: 0;
  transition: opacity 0.3s;
}

.flow-step:hover::before { opacity: 1; }

.step-number {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--charcoal-light);
  margin-bottom: 16px;
  line-height: 1;
}

.step-content h3 {
  font-size: 20px;
  color: var(--fg);
  margin-bottom: 12px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
}

.step-content p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.65;
}

.flow-arrow {
  display: flex;
  align-items: center;
  padding: 0 8px;
  padding-top: 32px;
  flex-shrink: 0;
}

/* APPROACH */
.approach {
  padding: 120px 40px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}

.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.approach-body {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.75;
  margin-bottom: 24px;
}

.approach-pillars {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 40px;
}

.pillar {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.pillar-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
  margin-top: 8px;
}

.pillar p {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.6;
}

.approach-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.mosaic-art {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  max-width: 280px;
}

.ma-row {
  display: flex;
  gap: 6px;
}

.ma-tile {
  flex: 1;
  aspect-ratio: 1;
  border-radius: 3px;
}

.ma-t1 { background: var(--teal); }
.ma-t2 { background: var(--charcoal); }
.ma-t3 { background: var(--amber); }
.ma-t4 { background: var(--charcoal-light); }
.ma-t5 { background: var(--teal); opacity: 0.6; }
.ma-t6 { background: var(--charcoal); }
.ma-t7 { background: var(--amber); opacity: 0.8; }
.ma-t8 { background: var(--teal); }
.ma-t9 { background: var(--charcoal-light); }
.ma-t10 { background: var(--amber); }
.ma-t11 { background: var(--teal); opacity: 0.7; }
.ma-t12 { background: var(--charcoal); }
.ma-t13 { background: var(--amber-light); }
.ma-t14 { background: var(--teal); }
.ma-t15 { background: var(--charcoal-light); }

.approach-stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 64px;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-text {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* CLOSING */
.closing {
  padding: 120px 40px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.cta-lg {
  padding: 16px 32px;
  font-size: 16px;
}

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

.closing-headline {
  font-size: clamp(28px, 3.5vw, 48px);
  color: var(--fg);
  margin-bottom: 20px;
}

.closing-sub {
  font-size: 18px;
  color: var(--fg-muted);
}

.closing-art {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 120px;
  margin-top: 40px;
}

.closing-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
}

.ring-outer {
  width: 120px;
  height: 120px;
  border-color: var(--teal);
  opacity: 0.3;
  animation: pulse-ring 3s ease-in-out infinite;
}

.ring-mid {
  width: 80px;
  height: 80px;
  border-color: var(--amber);
  opacity: 0.4;
  animation: pulse-ring 3s ease-in-out infinite 0.5s;
}

.ring-inner {
  width: 44px;
  height: 44px;
  border-color: var(--teal);
  opacity: 0.6;
  animation: pulse-ring 3s ease-in-out infinite 1s;
}

.closing-core {
  width: 16px;
  height: 16px;
  background: var(--amber);
  border-radius: 50%;
  position: relative;
  z-index: 1;
}

@keyframes pulse-ring {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.05); opacity: 0.5; }
}

/* FOOTER */
.site-footer {
  padding: 60px 40px 40px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand {
  margin-bottom: 40px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--fg-muted);
  margin-top: 8px;
}

.footer-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 32px;
}

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

.footer-copy {
  font-size: 13px;
  color: var(--fg-muted);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 100px;
  }

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

  .module-flow {
    flex-direction: column;
  }

  .flow-arrow {
    transform: rotate(90deg);
    padding: 8px 0;
    justify-content: center;
  }

  .approach-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
}

@media (max-width: 768px) {
  .site-header { padding: 0 24px; }
  .nav-links { display: none; }
  .hero { padding-top: 64px; }
  .hero-content { padding: 80px 24px 60px; }
  .hero-meta { flex-wrap: wrap; gap: 20px; }
  .features { padding: 80px 24px; }
  .modules { padding: 80px 24px; }
  .approach { padding: 80px 24px; }
  .closing { padding: 80px 24px; }
  .site-footer { padding: 40px 24px; }
  .feature-grid { grid-template-columns: 1fr; }
  .section-headline { margin-bottom: 40px; }
  .footer-bottom { flex-direction: column; gap: 16px; }
}
