/* ══════════════════════════════════════════════════════════
   PRISM-Delta   —   Project Landing Page
   ══════════════════════════════════════════════════════════ */

/* ── reset & tokens ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:       #0a0a0f;
  --bg-card:  #14141e;
  --bg-term:  #0d0d14;
  --fg:       #e0ddd8;
  --fg-dim:   #8a8880;
  --accent:   #B5613C;
  --accent-l: #d4845e;
  --glow:     rgba(181, 97, 60, .15);
  --border:   rgba(255,255,255,.06);
  --radius:   12px;
  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'Space Mono', 'Menlo', monospace;
  --max-w:    1120px;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-l); text-decoration: none; transition: color .2s; }
a:hover { color: #e8a07a; }

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

/* ── section titles ── */
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 600;
  text-align: center;
  margin-bottom: 56px;
  letter-spacing: -.02em;
}
.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--accent);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* ══════ HERO ══════ */
#hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
}
#particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 24px;
}
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1;
  margin-bottom: 16px;
}
.delta { color: var(--accent); }
.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 500;
  color: var(--fg-dim);
  margin-bottom: 12px;
}
.hero-sub {
  font-size: .95rem;
  color: var(--fg-dim);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.6;
}
.hero-badges { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: .88rem;
  font-weight: 500;
  color: var(--fg);
  background: rgba(255,255,255,.03);
  backdrop-filter: blur(8px);
  transition: all .25s ease;
}
.badge:hover {
  border-color: var(--accent);
  background: var(--glow);
  color: var(--accent-l);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px var(--glow);
}

/* ══════ METHOD ══════ */
#method { padding: 100px 0; }
.method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.method-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: all .3s ease;
}
.method-card:hover {
  border-color: rgba(181, 97, 60, .3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--glow);
}
.card-icon {
  color: var(--accent);
  margin-bottom: 20px;
}
.method-card h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.method-card p {
  font-size: .9rem;
  color: var(--fg-dim);
  line-height: 1.65;
}

/* ══════ FIGURE ══════ */
#figure { padding: 40px 0 80px; }
.figure-wrapper {
  background: #f5f3f0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
}
.figure-wrapper img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* ══════ RESULTS ══════ */
#results { padding: 100px 0; }
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.result-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: all .3s ease;
}
.result-card:hover {
  border-color: rgba(181, 97, 60, .3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--glow);
}
.result-number {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}
.result-label {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.result-detail {
  font-size: .85rem;
  color: var(--fg-dim);
}

/* ══════ FOOTER ══════ */
footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 16px;
}
.footer-links a {
  font-family: var(--font-head);
  font-size: .9rem;
  font-weight: 500;
  color: var(--fg-dim);
}
.footer-links a:hover { color: var(--accent-l); }
.footer-ack {
  font-size: .8rem;
  color: var(--fg-dim);
}
.footer-ack a { color: var(--fg-dim); text-decoration: underline; }
.footer-ack a:hover { color: var(--accent-l); }

/* ══════ ANIMATIONS ══════ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════ RESPONSIVE ══════ */
@media (max-width: 640px) {
  .method-grid, .results-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.8rem; }
  .terminal-body { font-size: .75rem; padding: 16px; }
}
