@import url("app-atmosphere.css");

/* Product preview pages — editorial + depth */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --navy-950: #0a1628;
  --navy-900: #0f1d32;
  --navy-600: #1a365d;
  --blue-500: #3182ce;
  --blue-400: #4a9de6;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-100: #f1f5f9;
  --white: #ffffff;
  --font-display: "Syne", "Outfit", system-ui, sans-serif;
  --font-body: "Source Serif 4", Georgia, serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: var(--white);
  --surface: var(--slate-100);
  --text: #1a1a2e;
  --text-muted: var(--slate-500);
  --border: #e8e8e8;
  --accent: var(--blue-500);
  --accent-soft: rgba(49, 130, 206, 0.12);
  --nav: #555;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: var(--navy-950);
  --surface: var(--navy-900);
  --text: #f1f5f9;
  --text-muted: var(--slate-400);
  --border: rgba(255, 255, 255, 0.1);
  --accent: var(--blue-400);
  --accent-soft: rgba(74, 157, 230, 0.15);
  --nav: var(--slate-400);
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 100;
  padding: 0.65rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: #fff;
  background: var(--navy-600);
  border-radius: 0 0 6px 0;
  transform: translateY(-120%);
  transition: transform 0.2s ease;
}
.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--blue-500);
  outline-offset: 2px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.theme-switch {
  position: fixed;
  top: max(0.75rem, env(safe-area-inset-top));
  right: max(0.75rem, env(safe-area-inset-right));
  z-index: 50;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
[data-theme="light"] .theme-switch {
  background: rgba(255, 255, 255, 0.85);
}
.theme-switch button {
  padding: 0.5rem 0.95rem;
  border: none;
  cursor: pointer;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-weight: 500;
}
.theme-switch button[aria-pressed="true"] {
  background: linear-gradient(135deg, #4f46e5, #0891b2);
  color: #fff;
}

.shell {
  max-width: 48rem;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3rem) clamp(1rem, 3vw, 1.75rem) 3rem;
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}
[data-theme="light"] .topbar {
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06);
}

.wf-logo {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy-600);
  text-decoration: none;
}
span.wf-logo { cursor: default; }
[data-theme="dark"] .wf-logo { color: var(--text); }
.wf-logo span { color: var(--blue-500); }
[data-theme="dark"] .wf-logo span { color: var(--blue-400); }

.nav-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
}
.nav-mini a {
  color: var(--nav);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-mini a:hover { color: #06b6d4; }
[data-theme="dark"] .nav-mini a:hover { color: #67e8f9; }

.hero {
  margin-top: 1.75rem;
  padding: 1.85rem 1.5rem 1.5rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(16px);
  box-shadow:
    0 4px 0 rgba(99, 102, 241, 0.15),
    0 32px 80px rgba(0, 0, 0, 0.35);
}
[data-theme="light"] .hero {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.92));
  box-shadow:
    0 3px 0 rgba(99, 102, 241, 0.12),
    0 24px 64px rgba(15, 23, 42, 0.1);
}

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #a78bfa;
  margin-bottom: 0.75rem;
}
[data-theme="light"] .hero__eyebrow {
  color: #7c3aed;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: var(--text);
}

.hero h1 .accent {
  background: linear-gradient(120deg, #6366f1 0%, #a855f7 40%, #06b6d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
[data-theme="light"] .hero h1 .accent {
  background: linear-gradient(120deg, #4f46e5 0%, #9333ea 45%, #0d9488 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero__tagline {
  margin-top: 1rem;
  font-family: var(--font-body);
  font-size: 1.12rem;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 38ch;
}

.hype-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.55rem;
  list-style: none;
  margin: 1.15rem 0 0;
  padding: 0;
}
.hype-chips li {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(99, 102, 241, 0.08);
  color: var(--text-muted);
  transition: transform 0.2s ease, border-color 0.2s, box-shadow 0.2s;
}
[data-theme="light"] .hype-chips li {
  background: rgba(255, 255, 255, 0.85);
}
.hype-chips li:hover {
  transform: translateY(-2px);
  border-color: rgba(6, 182, 212, 0.45);
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.12);
}

.badge {
  display: inline-block;
  margin-top: 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--accent-soft);
  color: var(--navy-600);
}
[data-theme="dark"] .badge { color: var(--blue-400); border-color: rgba(74, 157, 230, 0.35); }

.badge--dev {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(234, 88, 12, 0.1));
  color: #d97706;
  border-color: rgba(245, 158, 11, 0.4);
}
[data-theme="dark"] .badge--dev {
  color: #fbbf24;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(234, 88, 12, 0.08));
  border-color: rgba(251, 191, 36, 0.35);
}

.section {
  margin-top: 1.5rem;
  padding: 1.35rem 1.3rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s, box-shadow 0.2s;
}
[data-theme="light"] .section {
  background: rgba(255, 255, 255, 0.65);
}
.section:hover {
  border-color: rgba(99, 102, 241, 0.22);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}
[data-theme="dark"] .section:hover {
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
}

.section h2 {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c084fc;
  margin-bottom: 0.65rem;
}
[data-theme="light"] .section h2 {
  color: #7c3aed;
}

.section p, .section li {
  font-size: 1.02rem;
  color: var(--text);
  opacity: 0.94;
}
.section p + p { margin-top: 0.65rem; }
.section ul { margin-top: 0.45rem; padding-left: 1.2rem; }
.section li { margin: 0.45rem 0; }
.section li::marker { color: #06b6d4; }

.status-callout {
  margin-top: 0.85rem;
  padding: 1.1rem 1.15rem;
  border-radius: 12px;
  border: 1px dashed rgba(6, 182, 212, 0.35);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.08), rgba(99, 102, 241, 0.06));
  font-size: 0.98rem;
  color: var(--text);
}
.status-callout strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #22d3ee;
  margin-bottom: 0.45rem;
}
[data-theme="light"] .status-callout strong {
  color: #0e7490;
}
.status-callout .link-rumble { white-space: nowrap; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-top: 1.1rem;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.72rem 1.35rem;
  border-radius: 11px;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #0891b2 100%);
  box-shadow: 0 10px 36px rgba(99, 102, 241, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s;
}
.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(99, 102, 241, 0.5);
}
.btn-cta:focus-visible {
  outline: 2px solid #67e8f9;
  outline-offset: 3px;
}

.btn-cta--ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border);
  box-shadow: none;
  font-weight: 600;
}
[data-theme="dark"] .btn-cta--ghost {
  color: #67e8f9;
}
.btn-cta--ghost:hover {
  border-color: rgba(6, 182, 212, 0.5);
  transform: translateY(-2px);
}

.link-rumble {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy-600);
  text-decoration: none;
  border-bottom: 1px solid rgba(26, 54, 93, 0.25);
}
[data-theme="dark"] .link-rumble {
  color: var(--blue-400);
  border-bottom-color: rgba(74, 157, 230, 0.35);
}
.link-rumble:hover { border-bottom-color: var(--accent); }

.foot {
  margin-top: 2.75rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.foot a { color: var(--text-muted); text-decoration: none; }
.foot a:hover { color: #a78bfa; }
