/* ------------------------------------------------------------------
 * Landing page — technical aesthetic scaffold
 * ------------------------------------------------------------------
 * Built on top of /styles.css so colour vars and typography stay
 * consistent with the app. Everything here is a placeholder layout —
 * replace with the designed version once the MVP copy and brand
 * direction are locked.
 * ------------------------------------------------------------------ */

:root {
  --mono: ui-monospace, SFMono-Regular, "SF Mono", "JetBrains Mono",
    Menlo, Consolas, monospace;
  --grid-line: rgba(255, 255, 255, 0.04);
  --stage-bg: #0a0a0b;
}

.landing-body {
  background: var(--stage-bg);
  color: var(--fg);
  font-family: var(--font);
  line-height: 1.5;
}

/* Reset the main section's max-width — landing is full-width. */
.landing-body main {
  display: none;
}

/* ---------- top nav ---------- */
.landing-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 48px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(10, 10, 11, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
}

.landing-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.landing-nav-mark {
  font-size: 18px;
}

.landing-nav-cta {
  color: var(--fg-dim);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.15s;
}

.landing-nav-cta:hover {
  color: var(--accent);
}

/* ---------- hero ---------- */
.landing-hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
  border-bottom: 1px solid var(--border);
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 80px 80px;
}

.landing-hero-inner {
  max-width: 900px;
  width: 100%;
}

.landing-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-dim);
  margin: 0 0 32px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
}

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

.landing-headline {
  font-size: clamp(44px, 7vw, 96px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.95;
  margin: 0 0 32px;
}

.landing-subhead {
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.55;
  color: var(--fg-dim);
  max-width: 600px;
  margin: 0 0 64px;
}

.landing-scroll-cue {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-dim);
  margin: 0;
}

.landing-scroll-arrow {
  display: inline-block;
  animation: landing-bounce 2s ease-in-out infinite;
}

@keyframes landing-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* ---------- scrolly section ---------- */
.scrolly {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 480px;
  border-bottom: 1px solid var(--border);
}

.scrolly-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  border-right: 1px solid var(--border);
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px;
}

.scrolly-stage-inner {
  position: absolute;
  inset: 0;
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.scrolly-grid {
  position: absolute;
  left: 20px;
  right: 20px;
  top: 50%;
  height: 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.scrolly-grid-y-label {
  position: absolute;
  left: 20px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--fg-dim);
  pointer-events: none;
}

.scrolly-grid-y-label--top { top: 80px; }
.scrolly-grid-y-label--mid { top: calc(50% - 6px); }
.scrolly-grid-y-label--bot { bottom: 80px; }

.scrolly-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.scrolly-center {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
  stroke-dasharray: 3 4;
}

.scrolly-wave {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(124, 92, 255, 0.35));
  transition: stroke-width 0.4s, opacity 0.4s;
}

.scrolly-highlight {
  fill: rgba(124, 92, 255, 0.08);
  stroke: var(--accent);
  stroke-width: 1;
  stroke-dasharray: 4 4;
  transition: x 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              width 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.4s;
}

.scrolly-dct-bins circle {
  fill: var(--accent);
  filter: drop-shadow(0 0 4px var(--accent));
}

.scrolly-bit-callout {
  transition: opacity 0.4s;
}

.scrolly-bit-line {
  stroke: #6cffae;
  stroke-width: 1;
  stroke-dasharray: 2 3;
}

.scrolly-bit-dot {
  fill: #6cffae;
  filter: drop-shadow(0 0 6px #6cffae);
}

.scrolly-bit-text {
  fill: #6cffae;
  font-family: var(--mono);
  font-size: 12px;
}

/* Spec readout — bottom left of stage. */
.scrolly-spec {
  position: absolute;
  bottom: 40px;
  left: 60px;
  right: 60px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px 24px;
  padding: 16px 20px;
  background: rgba(19, 19, 22, 0.8);
  border: 1px solid var(--border);
  border-radius: 8px;
  backdrop-filter: blur(4px);
}

.scrolly-spec-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.scrolly-spec-key {
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-dim);
}

.scrolly-spec-val {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--fg);
  font-feature-settings: "tnum";
  transition: color 0.3s;
}

/* ---------- narrative panels ---------- */
.scrolly-narrative {
  background: var(--stage-bg);
}

.scrolly-panel {
  min-height: 100vh;
  padding: 120px 56px 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid var(--grid-line);
}

.scrolly-panel-step {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin: 0 0 16px;
}

.scrolly-panel-title {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 24px;
}

.scrolly-panel-body {
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg-dim);
  margin: 0 0 36px;
  max-width: 42ch;
}

.scrolly-panel-facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px 24px;
  margin: 0;
  padding: 20px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 8px;
  max-width: 480px;
}

.scrolly-panel-facts dt {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-dim);
  padding-top: 2px;
}

.scrolly-panel-facts dd {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg);
  margin: 0;
  font-feature-settings: "tnum";
}

.scrolly-panel-facts--hex dd {
  color: #6cffae;
}

/* ---------- props grid ---------- */
.landing-props {
  padding: 120px 48px;
  border-bottom: 1px solid var(--border);
}

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

.landing-section-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0 0 64px;
}

.landing-props-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.landing-prop {
  padding: 32px 28px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 0.2s;
}

.landing-prop:hover {
  background: var(--bg-elev);
}

.landing-prop-num {
  font-family: var(--mono);
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--accent);
  margin: 0;
  font-feature-settings: "tnum";
}

.landing-prop-label {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-dim);
  margin: 0;
}

.landing-prop-body {
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-dim);
  margin: 0;
}

/* ---------- cta ---------- */
.landing-cta {
  padding: 140px 48px;
  text-align: center;
  background-image:
    radial-gradient(circle at 50% 50%, rgba(124, 92, 255, 0.08), transparent 60%);
}

.landing-cta-inner {
  max-width: 640px;
  margin: 0 auto;
}

.landing-cta-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1;
  margin: 0 0 20px;
}

.landing-cta-body {
  font-size: 17px;
  color: var(--fg-dim);
  margin: 0 0 40px;
}

.landing-cta-button {
  display: inline-block;
  padding: 18px 36px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  transition: background 0.15s, transform 0.05s;
}

.landing-cta-button:hover {
  background: var(--accent-hover);
}

.landing-cta-button:active {
  transform: scale(0.98);
}

/* ---------- footer ---------- */
.landing-footer {
  padding: 40px 48px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.landing-footer p {
  margin: 0;
  color: var(--fg-dim);
  font-size: 12px;
}

/* ---------- link in header of the app ---------- */
.app-header-link {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-dim);
  text-decoration: none;
  transition: color 0.15s;
}

.app-header-link:hover {
  color: var(--accent);
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .scrolly {
    grid-template-columns: 1fr;
  }

  .scrolly-stage {
    position: sticky;
    top: 0;
    height: 60vh;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .scrolly-panel {
    min-height: auto;
    padding: 80px 24px;
  }

  .landing-hero,
  .landing-props,
  .landing-cta {
    padding-left: 24px;
    padding-right: 24px;
  }

  .landing-nav {
    padding: 16px 24px;
  }

  .scrolly-spec {
    grid-template-columns: repeat(2, 1fr);
    left: 24px;
    right: 24px;
    bottom: 24px;
  }

  .scrolly-stage-inner {
    padding: 40px 24px;
  }
}
