/* SOLSTORM — production stylesheet
   Converted from the Claude Design (.dc) prototype into static HTML/CSS/JS. */

:root {
  --bg: #0a0906;
  --bg-deep: #060502;
  --ink: #c9c2b4;
  --ink-bright: #f4ede0;
  --amber: #f4a63d;
  --amber-soft: #ffcf87;
  --amber-dim: #e0b877;
  --danger: #ff6b52;
  --danger-dim: #e0563f;
  --muted: #7a7062;
  --muted-dim: #4a4238;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-mono);
  overflow-x: hidden;
}

a { color: var(--amber); text-decoration: none; }
a:hover { color: var(--amber-soft); }
::selection { background: var(--amber); color: var(--bg); }

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}
@keyframes flicker {
  0%, 97%, 100% { opacity: 1; }
  98% { opacity: 0.82; }
  99% { opacity: 0.9; }
}
@keyframes scanDrift {
  0% { background-position: 0 0; }
  100% { background-position: 0 40px; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUpCentered {
  from { opacity: 0; transform: translateX(-50%) translateY(14px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

.tone-danger { color: var(--danger); }
.cursor { animation: blink 1s step-end infinite; }

/* shared fx layers */
.fx-scanlines {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  opacity: 0.5;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,0.035) 0px, transparent 1px, transparent 3px);
  animation: scanDrift 6s linear infinite;
}
.fx-noise {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  opacity: 0.05;
  background-image: radial-gradient(rgba(255,255,255,0.4) 0.5px, transparent 0.5px);
  background-size: 3px 3px;
}

.scroll-arrow {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 2px solid rgba(244,166,61,0.6); border-radius: 50%;
  color: var(--amber); opacity: 0; animation: fadeUpCentered 0.8s ease-out 2.4s forwards; cursor: pointer;
}
/* ===== Section 1 — Hero ===== */
.hero {
  position: relative; min-height: 100vh; display: flex; flex-direction: column;
  justify-content: center; align-items: center; padding: 40px 24px;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: -4px; z-index: 0;
  background: url('../assets/section1-bg.webp') center/cover no-repeat;
  filter: blur(1px); pointer-events: none;
}
.hero-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(5,4,2,0.35) 10%, rgba(5,4,2,0.75) 100%);
}
.hero-glow {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(1000px, 90vw); height: 520px; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(4,3,1,0.65) 0%, rgba(4,3,1,0.35) 55%, transparent 80%);
}

.hero-topbar { position: absolute; top: 28px; left: 28px; right: 28px; z-index: 2; display: flex; justify-content: space-between; }
.sys-tag {
  font-size: 12px; letter-spacing: 0.08em; color: var(--ink);
  animation: flicker 6s infinite; text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}
.grid-tag { font-size: 12px; letter-spacing: 0.08em; color: var(--ink-bright); text-shadow: 0 2px 8px rgba(0,0,0,0.8); }

.hero-content { position: relative; z-index: 2; text-align: center; animation: fadeUp 1s ease-out; }
.eyebrow { font-size: 14px; letter-spacing: 0.35em; color: #d4c4a8; margin-bottom: 18px; text-shadow: 0 2px 10px rgba(0,0,0,0.8); }
.title {
  font-size: clamp(64px, 13vw, 160px); font-weight: 800; letter-spacing: 0.02em; margin: 0;
  color: var(--amber); text-shadow: 0 0 40px rgba(244,166,61,0.35), 0 0 90px rgba(244,166,61,0.15);
  line-height: 0.95;
}
.subtitle { font-size: clamp(16px, 2vw, 22px); color: var(--ink-bright); margin-top: 22px; letter-spacing: 0.05em; text-shadow: 0 2px 10px rgba(0,0,0,0.8); }
.status-line { margin-top: 34px; font-size: 14px; color: var(--ink); letter-spacing: 0.05em; text-shadow: 0 2px 8px rgba(0,0,0,0.8); }

/* ===== Section 2 — Carousel ===== */
.carousel-section {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: 100px 24px; background: var(--bg-deep); overflow: hidden;
}
.carousel-track {
  position: absolute; inset: 0; z-index: 0; display: flex; width: 100%; height: 100%;
  transform: translateX(0%); transition: transform 0.9s cubic-bezier(0.65,0,0.35,1);
}
.carousel-slide { width: 100%; height: 100%; flex: 0 0 100%; background-size: cover; background-position: center; filter: blur(1px); }
.carousel-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, rgba(6,5,3,0.94) 0%, rgba(6,5,3,0.62) 42%, rgba(6,5,3,0.25) 75%, rgba(6,5,3,0.55) 100%);
}

.carousel-content { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; width: 100%; }
.label { font-size: 12px; letter-spacing: 0.15em; color: #a89d89; margin-bottom: 20px; }
.carousel-content > .label:first-child { margin-bottom: 28px; }
.question {
  font-size: clamp(28px, 4.2vw, 44px); font-weight: 700; color: var(--ink-bright);
  line-height: 1.3; margin: 0 0 48px; text-wrap: pretty; text-shadow: 0 2px 16px rgba(0,0,0,0.7);
}

.response-stack { display: grid; }
.response {
  grid-area: 1 / 1; opacity: 0; transition: opacity 0.6s ease; align-self: start;
}
.response.is-active { opacity: 1; }
.response-tag { font-size: 11px; letter-spacing: 0.15em; color: var(--amber-dim); margin-bottom: 14px; }
.response p { margin: 0; font-size: clamp(18px, 2.2vw, 24px); line-height: 1.5; color: var(--ink-bright); text-shadow: 0 2px 12px rgba(0,0,0,0.8); max-width: 480px; }

.dots { display: flex; gap: 10px; margin-top: 8px; }
.dot { width: 14px; height: 2px; background: var(--muted-dim); transition: all 0.3s; }
.dot.is-active { width: 28px; background: var(--amber); }

.threat-block {
  margin-top: 56px; padding-top: 32px; border-top: 1px solid rgba(244,166,61,0.2);
  display: flex; flex-direction: column; gap: 10px;
}
.threat-label { font-size: 12px; letter-spacing: 0.15em; color: var(--danger-dim); }
.threat-block p { margin: 0; font-size: 15px; color: var(--ink); line-height: 1.7; max-width: 600px; text-shadow: 0 2px 10px rgba(0,0,0,0.7); }
.threat-block p.highlight { margin-top: 8px; color: var(--amber); letter-spacing: 0.03em; }

/* ===== Section 3 — CTA ===== */
.cta {
  position: relative; min-height: 100vh; display: flex; flex-direction: column;
  justify-content: center; align-items: center; padding: 40px 24px;
  overflow: hidden;
}
.cta::before {
  content: ''; position: absolute; inset: -4px; z-index: 0;
  background: url('../assets/section3-bg.webp') center/cover no-repeat;
  filter: blur(1px); pointer-events: none;
}
.cta-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(5,4,2,0.6) 20%, rgba(5,4,2,0.92) 100%);
}
.cta-content { position: relative; z-index: 2; text-align: center; }
.cta-label { font-size: 13px; letter-spacing: 0.2em; color: #a89d89; margin-bottom: 22px; text-shadow: 0 2px 10px rgba(0,0,0,0.9); }
.cta-button {
  display: inline-flex; align-items: center; gap: 14px; padding: 22px 44px;
  border: 1px solid var(--amber); color: var(--amber);
  font-size: clamp(16px, 2vw, 20px); font-weight: 700; letter-spacing: 0.08em;
  background: rgba(244,166,61,0.06); box-shadow: 0 0 40px rgba(244,166,61,0.12);
  transition: background 0.2s, box-shadow 0.2s;
}
.cta-button:hover {
  color: var(--amber);
  background: rgba(244,166,61,0.16);
  box-shadow: 0 0 60px rgba(244,166,61,0.25);
}
.cta-footnote { margin-top: 26px; font-size: 12px; color: var(--ink); letter-spacing: 0.1em; text-shadow: 0 2px 10px rgba(0,0,0,0.9); }

/* ===== Footer ===== */
.site-footer {
  position: relative; padding: 28px 24px; text-align: center;
  font-size: 11px; letter-spacing: 0.1em; color: var(--muted-dim);
  background: var(--bg-deep); border-top: 1px solid rgba(244,166,61,0.08);
}
