:root {
  color-scheme: light;
  --logo-navy: #1B295B;
  --logo-teal: #4BA89E;
  --logo-blue: #3B6EC7;
  --logo-white: #F5F7FA;
  --bg-primary: #FFFFFF;
  --bg-secondary: #F7F8FA;
  --surface: rgba(255, 255, 255, 0.70);
  --surface-border: rgba(27, 41, 91, 0.06);
  --text-primary: #1B295B;
  --text-secondary: #4a5a7a;
  --legal-note-color: #8a92a8;
  --accent: #1B295B;
  --accent-contrast: #ffffff;
  --progress-track: rgba(27, 41, 91, 0.08);
  --progress-fill-start: #e8f4f2;
  --progress-fill-mid: #4BA89E;
  --progress-fill-sun: #3B6EC7;
  --progress-fill-end: #1B295B;
  --progress-glow: rgba(75, 168, 158, 0.30);
  --sunrise-opacity: 0.05;
  --sunrise-size: 22%;
  --sky-lift: 0%;
  --button-muted: rgba(27, 41, 91, 0.04);
  --shadow-color: rgba(27, 41, 91, 0.06);
  --shadow-sm: 0 2px 8px var(--shadow-color);
  --shadow-md: 0 8px 32px var(--shadow-color);
  --shadow-lg: 0 20px 60px var(--shadow-color);
  --glass-blur: blur(8px);
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --radius-full: 999px;
}

body[data-theme="dark"] {
  color-scheme: dark;
  --logo-navy: #1B295B;
  --logo-teal: #5fc4b8;
  --logo-blue: #5a8cd4;
  --logo-white: #F5F7FA;
  --bg-primary: #1B295B;
  --bg-secondary: #152047;
  --surface: rgba(22, 33, 72, 0.65);
  --surface-border: rgba(95, 196, 184, 0.10);
  --text-primary: #ffffff;
  --text-secondary: #b8c4d4;
  --legal-note-color: #7a8ba5;
  --accent: #4BA89E;
  --accent-contrast: #1B295B;
  --progress-track: rgba(95, 196, 184, 0.15);
  --progress-fill-start: rgba(95, 196, 184, 0.20);
  --progress-fill-mid: #5fc4b8;
  --progress-fill-sun: #5a8cd4;
  --progress-fill-end: #ffffff;
  --progress-glow: rgba(95, 196, 184, 0.35);
  --sunrise-opacity: 0.04;
  --sunrise-size: 20%;
  --sky-lift: 0%;
  --button-muted: rgba(95, 196, 184, 0.08);
  --shadow-color: rgba(0, 0, 0, 0.25);
  --shadow-sm: 0 2px 8px var(--shadow-color);
  --shadow-md: 0 8px 32px var(--shadow-color);
  --shadow-lg: 0 20px 60px var(--shadow-color);
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text-primary);
  background:
    radial-gradient(
      280% 200% at calc(-50% + var(--sky-lift)) calc(-55% + (var(--sky-lift) * 0.40)),
      rgba(255, 200, 90, calc(var(--sunrise-opacity) * 1.20)) 0%,
      rgba(255, 160, 60, calc(var(--sunrise-opacity) * 0.70)) 15%,
      rgba(255, 120, 45, calc(var(--sunrise-opacity) * 0.30)) 35%,
      rgba(255, 80, 50, calc(var(--sunrise-opacity) * 0.08)) 55%,
      transparent var(--sunrise-size)
    ),
    radial-gradient(
      200% 140% at calc(-15% + var(--sky-lift)) calc(-20% + (var(--sky-lift) * 0.32)),
      rgba(255, 180, 70, calc(var(--sunrise-opacity) * 0.55)) 0%,
      rgba(255, 140, 55, calc(var(--sunrise-opacity) * 0.25)) 28%,
      rgba(255, 100, 45, calc(var(--sunrise-opacity) * 0.06)) 48%,
      transparent calc(var(--sunrise-size) * 0.85)
    ),
    radial-gradient(
      220% 130% at calc(8% + (var(--sky-lift) * 0.6)) calc(-30% + (var(--sky-lift) * 0.42)),
      rgba(255, 210, 100, calc(var(--sunrise-opacity) * 0.30)) 0%,
      rgba(255, 170, 80, calc(var(--sunrise-opacity) * 0.12)) 22%,
      transparent calc(var(--sunrise-size) * 0.65)
    ),
    linear-gradient(
      165deg,
      var(--bg-primary) 0%,
      var(--bg-secondary) 100%
    );
  transition: background-color 300ms ease, color 300ms ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body[data-theme="dark"] {
  background:
    radial-gradient(
      280% 200% at calc(-50% + var(--sky-lift)) calc(-55% + (var(--sky-lift) * 0.40)),
      rgba(255, 180, 70, calc(var(--sunrise-opacity) * 1.00)) 0%,
      rgba(255, 130, 45, calc(var(--sunrise-opacity) * 0.55)) 15%,
      rgba(255, 90, 35, calc(var(--sunrise-opacity) * 0.20)) 35%,
      rgba(200, 60, 40, calc(var(--sunrise-opacity) * 0.05)) 55%,
      transparent var(--sunrise-size)
    ),
    radial-gradient(
      200% 140% at calc(-15% + var(--sky-lift)) calc(-20% + (var(--sky-lift) * 0.32)),
      rgba(255, 160, 60, calc(var(--sunrise-opacity) * 0.45)) 0%,
      rgba(255, 120, 45, calc(var(--sunrise-opacity) * 0.20)) 28%,
      rgba(200, 80, 35, calc(var(--sunrise-opacity) * 0.04)) 48%,
      transparent calc(var(--sunrise-size) * 0.85)
    ),
    radial-gradient(
      220% 130% at calc(8% + (var(--sky-lift) * 0.6)) calc(-30% + (var(--sky-lift) * 0.42)),
      rgba(255, 190, 80, calc(var(--sunrise-opacity) * 0.25)) 0%,
      rgba(255, 150, 65, calc(var(--sunrise-opacity) * 0.10)) 22%,
      transparent calc(var(--sunrise-size) * 0.65)
    ),
    linear-gradient(
      165deg,
      var(--bg-primary) 0%,
      var(--bg-secondary) 100%
    );
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.topbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: auto;
}

.controls {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-full);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-sm);
}

.language-switch {
  display: inline-flex;
  gap: 4px;
}

.control-button {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 200ms ease;
}

.control-button:hover {
  color: var(--logo-teal);
  background: var(--button-muted);
}

.control-button.is-active {
  background: var(--logo-navy);
  color: #ffffff;
}

body[data-theme="dark"] .control-button.is-active {
  background: var(--logo-teal);
  color: var(--logo-navy);
}

.theme-button {
  border-left: 1px solid var(--surface-border);
  margin-left: 4px;
  padding-left: 20px;
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

.hero-card {
  width: min(100%, 640px);
  padding: 60px 48px 56px;
  border-radius: var(--radius-lg);
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-lg);
}

.logo-wrapper {
  margin-bottom: 36px;
  animation: logoFloat 6s ease-in-out infinite;
}

.brand-logo {
  width: min(200px, 48vw);
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 6px 20px rgba(27, 41, 91, 0.12));
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.eyebrow-badge {
  display: inline-block;
  padding: 7px 18px;
  border-radius: var(--radius-full);
  background: var(--button-muted);
  border: 1px solid color-mix(in srgb, var(--logo-teal) 30%, transparent);
  color: var(--logo-teal);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.headline {
  margin: 0;
  font-size: clamp(2.25rem, 7vw, 3.75rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.headline-main {
  display: block;
  color: var(--logo-navy);
}

body[data-theme="dark"] .headline-main {
  color: #ffffff;
}

.headline-sub {
  display: block;
  margin-top: 14px;
  font-size: clamp(1.05rem, 2.6vw, 1.3rem);
  line-height: 1.45;
  font-weight: 500;
  color: var(--text-secondary);
}

.message {
  margin: 28px auto 0;
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.launch-progress {
  margin: 36px auto 0;
  width: min(100%, 30rem);
  padding: 28px;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface) 75%, var(--progress-fill-start) 25%);
  border: 1px solid color-mix(in srgb, var(--surface-border) 50%, var(--logo-teal) 50%);
  box-shadow: var(--shadow-sm);
}

.launch-progress-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.launch-progress-label,
.launch-progress-percent {
  margin: 0;
}

.launch-progress-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--logo-teal);
}

.launch-progress-percent {
  font-size: 1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}

.launch-progress-track {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 12px;
  border-radius: var(--radius-full);
  background: var(--progress-track);
  box-shadow: inset 0 1px 3px rgba(20, 25, 70, 0.08);
}

.launch-progress-fill {
  position: relative;
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--progress-fill-start) 0%, var(--progress-fill-mid) 42%, var(--progress-fill-sun) 74%, var(--progress-fill-end) 100%);
  box-shadow: 0 0 20px var(--progress-glow);
  transition: width 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.launch-progress-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 15%, rgba(255, 255, 255, 0.45) 45%, transparent 75%);
  transform: translateX(-100%);
  animation: progress-shimmer 3.2s linear infinite;
}

.progress-preview {
  display: none;
}

.access-panel {
  margin: 32px auto 0;
  max-width: 32rem;
  padding: 22px;
  border-radius: var(--radius-md);
  text-align: left;
  background: color-mix(in srgb, var(--surface) 60%, var(--logo-navy) 40%);
  border: 1px solid var(--surface-border);
}

.access-badge {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.access-message {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.access-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.access-link,
.access-reset {
  border-radius: var(--radius-full);
  padding: 11px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 180ms ease;
}

.access-link {
  border: 1px solid var(--logo-navy);
  background: var(--logo-navy);
  color: #ffffff;
}

.access-link:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.access-reset {
  border: 1px solid var(--surface-border);
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
}

.access-reset:hover {
  background: var(--button-muted);
  transform: translateY(-1px);
}

.access-link:focus-visible,
.access-reset:focus-visible {
  outline: 2px solid var(--logo-teal);
  outline-offset: 2px;
}

.legal-note {
  width: min(100%, 640px);
  margin: 0 auto;
  max-width: 38rem;
  padding: 0 12px;
  font-size: 0.72rem;
  line-height: 1.55;
  color: var(--legal-note-color);
  text-align: center;
  opacity: 0.70;
}

@keyframes progress-shimmer {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(100%);
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 16px;
  }

  .hero-card {
    padding: 44px 24px 40px;
    border-radius: var(--radius-md);
  }

  .brand-logo {
    width: min(170px, 42vw);
  }

  .launch-progress {
    padding: 20px 18px;
  }

  .launch-progress-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .access-actions {
    flex-direction: column;
  }

  .access-link,
  .access-reset {
    width: 100%;
    text-align: center;
  }
}
