/* ==========================================================================
   Sway — Design System & Stylesheet (Obsidian & Violet Glassmorphism)
   ========================================================================== */

:root {
  --bg: #000000;
  --text: #ffffff;
  --muted: #8e8e8e;
  --nav-text: #2e2e2e;
  --pill-dark: #1e1e24;
  --sign-in-text: #d0d0d8;
  --nav-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
  --trust-bg: #1c1c22;
  --trust-border: rgba(255, 255, 255, 0.15);
  --trust-text: #c4c2c8;
  
  /* Sway Obsidian & Violet Signature Accents */
  --accent-iris: #5e6ad2;
  --accent-iris-glow: rgba(94, 106, 210, 0.4);
  --accent-violet: #818cf8;
  --accent-cyan: #38bdf8;
  --card-bg: rgba(18, 18, 24, 0.72);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-border-hover: rgba(94, 106, 210, 0.45);
  
  --font-sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-display: "BubbledotICG-FinePos", "Geist Pixel Circle", monospace;
  --font-mono: "JetBrains Mono", monospace;
  --trust-size: clamp(36px, 4.5vw, 42px);
}

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

html, body {
  width: 100%;
  height: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Full-Viewport Background Video with Obsidian Vignette & Violet Ambient Glow
   ========================================================================== */

.bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background-color: var(--bg);
  z-index: 0;
  pointer-events: none;
}

.bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 50% 15%, rgba(94, 106, 210, 0.14) 0%, transparent 60%),
    radial-gradient(circle at 50% 90%, rgba(94, 106, 210, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.6) 100%);
  z-index: 1;
  pointer-events: none;
}

.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
  filter: contrast(1.06) brightness(0.92);
}

/* ==========================================================================
   Single Viewport Layout (3 Vertical Regions)
   ========================================================================== */

.page {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  padding: clamp(14px, 2vh, 24px) clamp(14px, 3vw, 32px);
  overflow: hidden;
}

/* ==========================================================================
   1) Header Region
   ========================================================================== */

.header {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 720px;
  gap: clamp(18px, 2.8vw, 28px);
  flex-shrink: 0;
  z-index: 20;
  animation: slideDown 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Logo Circular Button */
.logo-btn {
  display: grid;
  place-items: center;
  width: clamp(40px, 4.4vw, 46px);
  height: clamp(40px, 4.4vw, 46px);
  border-radius: 50%;
  background: #ffffff;
  box-shadow: var(--nav-shadow), 0 0 16px rgba(255, 255, 255, 0.2);
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
  flex-shrink: 0;
}

.logo-btn:hover {
  transform: scale(1.05);
  box-shadow: var(--nav-shadow), 0 0 24px rgba(94, 106, 210, 0.4);
}

.logo-img {
  width: 72%;
  height: 72%;
  object-fit: contain;
  display: block;
}

/* Desktop Nav Pill */
.nav-pill {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex: 1;
  max-width: 430px;
  height: clamp(44px, 5.2vw, 48px);
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 999px;
  box-shadow: var(--nav-shadow);
  backdrop-filter: blur(12px);
}

.nav-link {
  position: relative;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(13px, 1.4vw, 15px);
  letter-spacing: -0.01em;
  color: var(--nav-text);
  text-decoration: none;
  opacity: 0.55;
  padding: 8px 12px;
  cursor: pointer;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
  opacity: 0.85;
}

.nav-link.active {
  opacity: 1;
  font-weight: 600;
}

/* Three-dot active indicator under active link */
.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #000000;
  box-shadow: -5px 0 0 #000000, 5px 0 0 #000000;
}

/* Desktop Action Pill */
.action-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: clamp(44px, 5.2vw, 48px);
  padding: 0 20px;
  background: var(--pill-dark);
  color: var(--sign-in-text);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(13px, 1.4vw, 14.5px);
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  box-shadow: var(--nav-shadow);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}

.action-pill:hover {
  background: #252530;
  border-color: rgba(94, 106, 210, 0.5);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(94, 106, 210, 0.3);
}

/* Mobile Hamburger Button */
.burger-btn {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--pill-dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  box-shadow: var(--nav-shadow);
  transition: background 0.25s ease, transform 0.25s ease;
  z-index: 100;
}

.burger-bar {
  display: block;
  width: 18px;
  height: 1.5px;
  background: #ffffff;
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease, background 0.25s ease;
}

/* Burger Open State */
.burger-btn.open {
  background: #ffffff;
}

.burger-btn.open .burger-bar {
  background: #000000;
}

.burger-btn.open .burger-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.burger-btn.open .burger-bar:nth-child(2) {
  opacity: 0;
}

.burger-btn.open .burger-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile Overlay & Menu Sheet */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 80;
  animation: overlayIn 0.28s ease forwards;
}

.mobile-menu {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 380px;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 28px;
  padding: 22px 18px 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(94, 106, 210, 0.25);
  z-index: 90;
  animation: menuIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.mobile-link {
  position: relative;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  color: #2e2e2e;
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 14px;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.mobile-link:hover {
  background: rgba(0, 0, 0, 0.04);
}

.mobile-link.active {
  font-weight: 600;
}

.mobile-link.active::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #000000;
  box-shadow: -5px 0 0 #000000, 5px 0 0 #000000;
}

.mobile-action-pill {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 20px;
  background: var(--pill-dark);
  color: #ffffff;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.mobile-action-pill:hover {
  background: #252530;
}

/* ==========================================================================
   2) Dynamic Viewport Container & Panels
   ========================================================================== */

.viewport-main {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 960px;
  flex: 1;
  position: relative;
  overflow: hidden;
}

.view-panel {
  display: none;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1), transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.view-panel.active {
  display: flex;
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ==========================================================================
   VIEW 1: Hero Panel
   ========================================================================== */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 900px;
  padding: 8px 0;
}

/* Trust Row with Overlapping Inner Logo Disks */
.trust-row {
  display: inline-flex;
  align-items: center;
  margin-bottom: clamp(14px, 2.2vh, 24px);
}

.trust-avatars {
  display: inline-flex;
  align-items: center;
  position: relative;
  z-index: 2;
}

.trust-avatar {
  width: var(--trust-size);
  height: var(--trust-size);
  border-radius: 50%;
  background: var(--trust-bg);
  border: 1px solid var(--trust-border);
  padding: 5px;
  display: grid;
  place-items: center;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: default;
}

.trust-avatar:not(:first-child) {
  margin-left: calc(var(--trust-size) * -0.42);
}

.avatar-1 { z-index: 1; }
.avatar-2 { z-index: 2; }
.avatar-3 { z-index: 3; }

.trust-avatar.avatar-1:hover { transform: translateY(-2px); }
.trust-avatar.avatar-2:hover { transform: translateY(-4px); }
.trust-avatar.avatar-3:hover { transform: translateY(-2px); }

.avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #ffffff;
  display: grid;
  place-items: center;
  color: #111111;
  font-size: calc(var(--trust-size) * 0.34);
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  height: var(--trust-size);
  background: var(--trust-bg);
  border: 1px solid var(--trust-border);
  border-radius: 999px;
  margin-left: calc(var(--trust-size) * -0.42);
  padding-left: calc(var(--trust-size) * 0.58);
  padding-right: 18px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(12px, 1.4vw, 13.5px);
  color: var(--trust-text);
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

/* Headline Display Typography */
.headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 6vw, 76px);
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: clamp(12px, 1.8vh, 20px);
  white-space: nowrap;
  overflow: hidden;
  text-shadow: 0 0 30px rgba(94, 106, 210, 0.2);
}

.headline-line {
  display: block;
}

.line-1 {
  animation: headlineFade 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.line-2 {
  animation: headlineFade 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.30s both;
}

/* Subhead Copy */
.subhead {
  max-width: min(500px, 92%);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(calc(13.5px + 2pt), calc(1.5vw + 2pt), calc(16.5px + 2pt));
  line-height: 1.55;
  color: #d6d6de;
  opacity: 0.85;
  margin-bottom: clamp(18px, 2.5vh, 28px);
}

/* CTA Pill Button with Violet Halo */
.cta-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(11px, 1.6vh, 13px) clamp(22px, 3vw, 28px);
  background: #ffffff;
  color: #000000;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(13.5px, 1.5vw, 14.5px);
  letter-spacing: -0.01em;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.2),
    0 0 24px rgba(94, 106, 210, 0.4),
    0 0 48px rgba(94, 106, 210, 0.2);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
}

.cta-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.3),
    0 0 32px rgba(94, 106, 210, 0.6),
    0 0 64px rgba(129, 140, 248, 0.35);
}

/* ==========================================================================
   Shared Content Panel Styles (Features & Architecture)
   ========================================================================== */

.content-panel {
  width: 100%;
  max-width: 920px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 4px 0;
}

.panel-header {
  margin-bottom: clamp(14px, 2vh, 20px);
}

.panel-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent-violet);
  background: rgba(94, 106, 210, 0.12);
  border: 1px solid rgba(94, 106, 210, 0.3);
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.panel-title {
  font-family: var(--font-sans);
  font-size: clamp(22px, 3.2vw, 34px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 6px;
  text-shadow: 0 0 24px rgba(94, 106, 210, 0.25);
}

.panel-desc {
  font-size: clamp(13px, 1.4vw, 14.5px);
  color: #b0b0b8;
  max-width: 580px;
  line-height: 1.45;
}

/* ==========================================================================
   VIEW 2: Features Grid
   ========================================================================== */

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(10px, 1.6vw, 16px);
  width: 100%;
  text-align: left;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 18px;
  padding: clamp(14px, 1.8vh, 18px) clamp(16px, 2vw, 22px);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(94, 106, 210, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: var(--card-border-hover);
  background: rgba(24, 24, 32, 0.85);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(94, 106, 210, 0.2);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.feature-index {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-violet);
}

.feature-tag {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(94, 106, 210, 0.15);
  border: 1px solid rgba(94, 106, 210, 0.3);
  color: #d8dbfc;
}

.feature-heading {
  font-size: clamp(14.5px, 1.6vw, 17px);
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
}

.feature-text {
  font-size: clamp(12px, 1.3vw, 13.5px);
  color: #a8a8b4;
  line-height: 1.5;
}

.code-pill {
  font-family: var(--font-mono);
  font-size: 11.5px;
  background: rgba(94, 106, 210, 0.18);
  border: 1px solid rgba(94, 106, 210, 0.35);
  padding: 2px 5px;
  border-radius: 4px;
  color: #e0e4ff;
}

kbd {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 6px;
  background: #282834;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   VIEW 3: Architecture Layout
   ========================================================================== */

.architecture-layout {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.arch-diagram-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 18px;
  padding: 16px 20px;
  text-align: left;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.arch-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
}

.arch-card-title {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}

.arch-card-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #34d399;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
  padding: 2px 8px;
  border-radius: 999px;
}

.signal-flow-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.flow-step {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px 10px;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.flow-step.active-step {
  border-color: rgba(94, 106, 210, 0.8);
  background: rgba(94, 106, 210, 0.16);
  box-shadow: 0 0 20px rgba(94, 106, 210, 0.25);
}

.step-badge {
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 2px;
}

.step-desc {
  font-size: 11px;
  color: #9a9ab0;
  line-height: 1.3;
}

.flow-arrow {
  color: rgba(94, 106, 210, 0.6);
  font-size: 16px;
  font-weight: bold;
}

.arch-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 12px;
  text-align: left;
}

.arch-spec-item {
  background: rgba(20, 20, 28, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: border-color 0.2s ease;
}

.arch-spec-item:hover {
  border-color: rgba(94, 106, 210, 0.35);
}

.spec-k {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--accent-violet);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.spec-v {
  font-size: 12.5px;
  color: #e2e2ec;
  font-weight: 500;
}

/* ==========================================================================
   3) Stats Footer Region (4 Real-Time Metrics)
   ========================================================================== */

.stats-footer {
  width: 100%;
  max-width: 920px;
  flex-shrink: 0;
  z-index: 10;
  padding-top: 6px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(10px, 2vw, 24px);
  width: 100%;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3px;
}

.stat-icon {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.8vw, 30px);
  color: #ffffff;
  line-height: 1;
  text-shadow: 0 0 16px rgba(94, 106, 210, 0.4);
}

.stat-value-group {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
}

.stat-num {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(17px, 2.1vw, 24px);
  letter-spacing: -0.025em;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.stat-label {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(10.5px, 1.1vw, 12px);
  color: var(--muted);
  white-space: nowrap;
}

/* ==========================================================================
   Shared Entrance Animations & Motion
   ========================================================================== */

.anim {
  opacity: 0;
  transform: translateY(22px) scale(0.98);
  filter: blur(6px);
  animation: reveal 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--d, 0s);
}

.cta-wrap.anim {
  animation-name: revealPulse;
}

.headline.anim {
  opacity: 1;
  transform: none;
  filter: none;
  animation: none;
}

@keyframes reveal {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
    filter: blur(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes revealPulse {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
    filter: blur(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes headlineFade {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  0% {
    opacity: 0;
    transform: translateY(-18px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes overlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes menuIn {
  from {
    opacity: 0;
    transform: translate(-50%, -10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 768px) {
  .header {
    justify-content: space-between;
    max-width: 100%;
  }

  .nav-pill,
  .action-pill {
    display: none;
  }

  .burger-btn {
    display: flex;
  }

  .headline {
    letter-spacing: -0.08em;
    line-height: 1.05;
    white-space: normal;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    max-height: 48vh;
    overflow-y: auto;
    padding-right: 4px;
  }

  .signal-flow-box {
    flex-direction: column;
    gap: 6px;
  }

  .flow-arrow {
    transform: rotate(90deg);
  }

  .arch-specs-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 16px;
  }
}

@media (max-width: 420px) {
  :root {
    --trust-size: 34px;
  }

  .trust-pill {
    font-size: 12px;
  }

  .headline {
    letter-spacing: -0.09em;
    line-height: 1.04;
    font-size: clamp(24px, 7.5vw, 36px);
  }

  .subhead {
    font-size: 14px;
  }
}

@media (max-height: 720px) {
  .page {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .trust-row {
    margin-bottom: 8px;
  }

  .subhead {
    margin-bottom: 14px;
  }

  .panel-header {
    margin-bottom: 8px;
  }
}

/* Reduced Motion Override */
@media (prefers-reduced-motion: reduce) {
  *, .anim, .line-1, .line-2, .header, .cta-wrap.anim, .view-panel {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}
