:root {
  --bg: #1e1720;
  --bg-alt: #241c26;
  --surface: #2a2129;
  --surface-hover: #332830;
  --border: #40323a;
  --text: #f2e8d8;
  --text-dim: #b8a89a;
  --text-faint: #80716d;
  --accent: #c9643f;
  --accent-soft: rgba(201, 100, 63, 0.14);
  --accent-glow: rgba(201, 100, 63, 0.3);
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --max-w: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

#bg-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  opacity: 0.5;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }

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

/* HEADER */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(30, 23, 32, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo-stack {
  position: relative;
  display: inline-block;
  padding-bottom: 9px;
}

.logo-underline {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 9px;
  display: block;
}

.logo .tld { color: var(--text-faint); font-weight: 500; }

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

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

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

.nav-cta {
  padding: 8px 16px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--accent) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
}

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

.hero-watermark {
  position: absolute;
  top: 18%;
  right: -4%;
  width: min(60vw, 820px);
  height: auto;
  color: var(--accent);
  opacity: 0.06;
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 24px;
}

.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 24px;
  max-width: 820px;
}

.lede {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 600px;
  margin-bottom: 40px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-bottom: 72px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #2a150d;
}

.btn-primary:hover {
  box-shadow: 0 0 24px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
}

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

.hero-stats {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 32px;
}

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

.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

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

/* WAVE DIVIDER */
.wave-divider {
  width: 100%;
  height: 32px;
  color: var(--accent);
  opacity: 0.25;
  overflow: hidden;
  line-height: 0;
}

.wave-divider svg {
  width: 100%;
  height: 100%;
}

/* SECTIONS */
.section {
  padding: 120px 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 16px;
}

.section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 20px;
}

.section-intro {
  color: var(--text-dim);
  max-width: 640px;
  font-size: 1.05rem;
  margin-bottom: 56px;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px;
  transition: all 0.25s ease;
}

.card:hover {
  background: var(--surface-hover);
  border-color: var(--accent);
  transform: translateY(-3px);
}

.card-icon {
  color: var(--accent);
  margin-bottom: 20px;
}

.card-icon svg {
  width: 40px;
  height: 40px;
  display: block;
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.card p {
  color: var(--text-dim);
  font-size: 0.95rem;
}

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

.method-step {
  position: relative;
  padding-top: 8px;
  display: flex;
  flex-direction: column;
}

.method-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-faint);
  margin-bottom: 16px;
}

.method-icon {
  color: var(--accent);
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  justify-content: center;
}

.method-icon svg {
  width: 64px;
  height: 64px;
  display: block;
}

.method-step h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.method-step p {
  color: var(--text-dim);
  font-size: 0.95rem;
}

.method-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 8px;
  right: -12px;
  width: 1px;
  height: 100%;
  background: var(--border);
}

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

.result-card {
  padding: 28px;
  border-left: 2px solid var(--accent);
  background: var(--surface);
  border-radius: 0 12px 12px 0;
}

.result-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: var(--accent);
}

.result-card p {
  color: var(--text-dim);
  font-size: 0.92rem;
}

/* ABOUT */
.about-wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-text p {
  color: var(--text-dim);
  margin-bottom: 18px;
  font-size: 1rem;
}

.about-why {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
}

.about-why h3 {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.why-list { list-style: none; }

.why-list li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  color: var(--text-dim);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}

.why-list li:last-child { border-bottom: none; }

.why-mark { color: var(--accent); font-weight: 700; }

/* CONTACT */
.contact-section {
  text-align: center;
}

.contact-section .section-intro {
  margin-left: auto;
  margin-right: auto;
}

.contact-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* FOOTER */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-faint);
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 8px;
}

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

.footer-logo .logo-stack {
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
}

.footer-logo .logo-underline {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 8px;
}

.footer-copy {
  color: var(--text-faint);
  font-weight: 400;
  margin-left: 4px;
}

.footer-tag { font-family: var(--font-mono); }

/* REVEAL ANIMATION */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* RESPONSIVE */
@media (max-width: 880px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .method-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .results-grid { grid-template-columns: repeat(2, 1fr); }
  .about-wrap { grid-template-columns: 1fr; }
  .method-step::after { display: none; }
}

@media (max-width: 680px) {
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    gap: 20px;
    /* Park the closed menu fully above the header. -120% alone left its bottom
       edge and border line peeking in at ~20px, right above the logo. */
    transform: translateY(calc(-100% - 80px));
    visibility: hidden;
    transition: transform 0.25s ease, visibility 0s linear 0.25s;
  }
  .nav-links.open {
    transform: translateY(0);
    visibility: visible;
    transition: transform 0.25s ease, visibility 0s;
  }
  .nav-toggle { display: flex; }
  .card-grid { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: 1fr; }
  /* Decode Method icons: larger on phones, with each glyph optically centered
     in its 48x48 box (the drawings sit a few units off-center by design). */
  .method-icon { padding-top: 28px; }
  .method-icon svg { width: clamp(91px, 25.5vw + 9.6px, 112px); height: clamp(91px, 25.5vw + 9.6px, 112px); }
  .method-step:nth-child(1) .method-icon svg { transform: translate(-3.7%, -2.3%); }
  .method-step:nth-child(2) .method-icon svg { transform: translate(0, 3.1%); }
  .method-step:nth-child(3) .method-icon svg { transform: translate(2.5%, 6.3%); }
  .method-step:nth-child(4) .method-icon svg { transform: translate(-3.1%, -2.1%); }
  .results-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 32px; }
  .hero-watermark { opacity: 0.04; width: 80vw; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-logo { justify-content: center; }
}
