/* ==========================================================================
   ZodiacSignal — Official landing page
   Design system: dark, calm, premium (Apple / Linear / Stripe)
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Experiment / Weather theme */
  --bg: #05070b;
  --bg-elevated: #0a0e16;
  --card: #111318;
  --card-hover: #161a22;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.12);
  --glass: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);
  --text: #f5f7fa;
  --text-secondary: rgba(245, 247, 250, 0.62);
  --text-tertiary: rgba(245, 247, 250, 0.4);
  --blue: #5b8cff;
  --blue-deep: #3d6fe0;
  --blue-soft: #7ba3ff;
  --blue-tint: rgba(91, 140, 255, 0.14);
  --purple: #8b6cff;
  --purple-deep: #5c3fd4;
  --gold: #f5c26b;
  --gold-soft: #f5c26b;
  --gold-muted: rgba(245, 194, 107, 0.16);
  --amber: #f5c26b;
  --green: #5ce0a0;
  --rose: #ff7b9c;
  --gradient: linear-gradient(135deg, #3d6fe0 0%, #5b8cff 42%, #f5c26b 100%);
  --radius-sm: 14px;
  --radius: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-md: 20px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.28);
  --header-h: 72px;
  --max: 1120px;
  --narrow: 720px;
  --phone-w: 300px;
  --font: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Inter",
    "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --focus: 0 0 0 3px rgba(91, 140, 255, 0.45);
  --space-section: clamp(5rem, 10vw, 8rem);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

/* ---------- Utilities ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--text);
  color: var(--bg);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
  outline: none;
  box-shadow: var(--focus);
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.container.narrow {
  width: min(100% - 2.5rem, var(--narrow));
}

.center {
  text-align: center;
}

.text-accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Ambient (Experiment cosmos theme) ---------- */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 20% 10%, rgba(91, 140, 255, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 40% at 85% 20%, rgba(139, 108, 255, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 35% at 50% 90%, rgba(79, 209, 197, 0.06), transparent 55%),
    var(--bg);
}

.ambient-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}

.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}

.ambient-glow--a {
  width: 420px;
  height: 420px;
  top: 8%;
  left: -6%;
  background: rgba(91, 140, 255, 0.22);
  animation: float-slow 22s ease-in-out infinite;
}

.ambient-glow--b {
  width: 360px;
  height: 360px;
  top: 35%;
  right: -8%;
  background: rgba(139, 108, 255, 0.16);
  animation: float-slow 26s ease-in-out infinite reverse;
}

.ambient-glow--c {
  width: 480px;
  height: 480px;
  bottom: -12%;
  left: 30%;
  background: rgba(245, 194, 107, 0.06);
  animation: float-slow 30s ease-in-out infinite;
  animation-delay: -8s;
}

.ambient-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 15%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 15%, transparent 72%);
  opacity: 0.35;
}

@keyframes float-slow {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(24px, -30px, 0);
  }
}

@keyframes float-planet {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(12px, -18px, 0);
  }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), backdrop-filter 0.3s;
}

.site-header.is-scrolled {
  background: rgba(5, 6, 8, 0.72);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom-color: var(--border);
}

.nav-shell {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand-mark {
  border-radius: 9px;
}

.brand-name {
  font-size: 1.05rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}

.nav a:hover,
.nav a:focus-visible,
.nav a.is-active {
  color: var(--text);
}

.nav a.is-active {
  color: var(--gold-soft);
}

.nav-download {
  color: var(--text) !important;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  place-items: center;
  gap: 6px;
  flex-direction: column;
  padding: 0;
}

.nav-toggle-bar {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s,
    box-shadow 0.2s var(--ease), color 0.2s;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.btn:active {
  transform: scale(0.98);
}

.btn--sm {
  height: 40px;
  padding: 0 1.1rem;
  font-size: 0.875rem;
}

.btn--lg {
  height: 52px;
  padding: 0 1.5rem;
  font-size: 0.98rem;
}

.btn--primary {
  background: var(--text);
  color: #0a0b0e;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 8px 24px rgba(0, 0, 0, 0.25);
}

.btn--primary:hover {
  background: #f2f3f5;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-icon {
  flex-shrink: 0;
}

/* ---------- Glass ---------- */
.glass-card {
  background: rgba(17, 19, 24, 0.72);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease),
    background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(22, 26, 34, 0.82);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

/* ---------- Sections ---------- */
.section {
  padding: var(--space-section) 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--gold-soft);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-muted);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    box-shadow: 0 0 0 4px var(--gold-muted);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(201, 169, 98, 0.08);
  }
}

h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 700;
}

h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 600;
}

h3 {
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.lede,
.section-lede {
  margin-top: 1.15rem;
  color: var(--text-secondary);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.65;
  max-width: 38rem;
}

.section-head.center .section-lede {
  margin-inline: auto;
}

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(2rem, 6vw, 4rem);
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-copy .lede {
  max-width: 34rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.center-cta {
  justify-content: center;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1.75rem;
  color: var(--text-tertiary);
  font-size: 0.875rem;
  font-weight: 500;
}

.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-trust li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
  opacity: 0.8;
}

/* Phone mockup — Experiment frame */
.phone-stack {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 640px;
}

.iphone {
  width: min(100%, var(--phone-w));
  filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.55));
}

.iphone--pro .iphone-bezel {
  border-radius: 48px;
  padding: 3px;
  background: #0c0f16;
  border: 0;
  box-shadow:
    var(--shadow),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.6);
  position: relative;
}

.iphone--pro .iphone-bezel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04) 40%, rgba(255, 255, 255, 0.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 20;
}

.iphone-bezel {
  border-radius: 42px;
  padding: 10px;
  background: linear-gradient(160deg, #2a2e38, #0c0e13 45%, #1a1e28);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  position: relative;
}

.iphone-dynamic {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 28px;
  border-radius: 20px;
  background: #000;
  z-index: 15;
}

.iphone-screen {
  border-radius: 45px;
  overflow: hidden;
  background: var(--bg);
  min-height: 640px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.iphone-screen--today {
  background:
    radial-gradient(ellipse 90% 40% at 50% 0%, rgba(91, 140, 255, 0.12), transparent 55%),
    var(--bg);
}

.ios-status {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 14px 24px 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  z-index: 12;
  min-height: 48px;
}

.ios-status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
  opacity: 0.85;
}

.ios-status-icons svg {
  display: block;
}

.screen-body {
  padding: 0.15rem 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.screen-body--exp {
  gap: 0;
  padding: 0 14px 10px;
}

.greeting {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-tertiary);
  margin-bottom: 0.15rem;
}

.screen-soft {
  color: var(--text-tertiary);
  font-size: 0.8rem;
}

.screen-title {
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

/* Live solar system stage */
.cosmos-stage {
  position: relative;
  height: 168px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 12px;
  background:
    radial-gradient(ellipse at 50% 80%, rgba(40, 80, 160, 0.35), transparent 60%),
    linear-gradient(180deg, #060a14 0%, #0a1020 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.cosmos-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cosmos-label {
  position: absolute;
  top: 10px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
  pointer-events: none;
}

.cosmos-label .loc {
  font-size: 0.68rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: 5px;
}

.cosmos-label .date {
  font-size: 0.68rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
}

.planet-legend {
  position: absolute;
  bottom: 8px;
  left: 10px;
  right: 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  z-index: 2;
  pointer-events: none;
}

.planet-chip {
  font-size: 0.62rem;
  font-weight: 500;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.planet-chip i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}

/* Experiment glass signal card */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
}

.exp-signal {
  padding: 14px 14px 12px;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
}

.exp-signal::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(91, 140, 255, 0.22), transparent 70%);
  pointer-events: none;
}

.exp-signal::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(139, 108, 255, 0.15), transparent 70%);
  pointer-events: none;
}

.exp-signal__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.exp-signal__kicker {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-soft);
  margin-bottom: 4px;
}

/* Signal strength — bars, not stars */
.strength {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.2rem;
}

.strength-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 14px;
}

.strength-bars i {
  display: block;
  width: 4px;
  border-radius: 1.5px;
  background: rgba(255, 255, 255, 0.14);
}

.strength-bars i:nth-child(1) { height: 5px; }
.strength-bars i:nth-child(2) { height: 7px; }
.strength-bars i:nth-child(3) { height: 9px; }
.strength-bars i:nth-child(4) { height: 11px; }
.strength-bars i:nth-child(5) { height: 14px; }

.strength-bars i.on {
  background: linear-gradient(180deg, #7ba3ff, #5b8cff);
  box-shadow: 0 0 8px rgba(91, 140, 255, 0.45);
}

.strength-bars i.on.mid {
  background: linear-gradient(180deg, rgba(91, 140, 255, 0.55), rgba(91, 140, 255, 0.25));
  box-shadow: none;
}

.strength-score {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.strength-max {
  font-weight: 500;
  color: var(--text-tertiary);
  font-size: 0.85em;
}

.strength-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue-soft);
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(91, 140, 255, 0.12);
  border: 1px solid rgba(91, 140, 255, 0.2);
}

.strength--lg {
  gap: 0.65rem;
  margin-top: 0.45rem;
}

.strength--lg .strength-bars {
  height: 18px;
  gap: 4px;
}

.strength--lg .strength-bars i {
  width: 5px;
}

.strength--lg .strength-bars i:nth-child(1) { height: 6px; }
.strength--lg .strength-bars i:nth-child(2) { height: 9px; }
.strength--lg .strength-bars i:nth-child(3) { height: 12px; }
.strength--lg .strength-bars i:nth-child(4) { height: 15px; }
.strength--lg .strength-bars i:nth-child(5) { height: 18px; }

.strength--lg .strength-score {
  font-size: 1.15rem;
}

.lock-strength {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 28px;
  margin-bottom: 0.35rem;
}

.lock-strength i {
  display: block;
  width: 5px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.16);
}

.lock-strength i:nth-child(1) { height: 10px; }
.lock-strength i:nth-child(2) { height: 14px; }
.lock-strength i:nth-child(3) { height: 18px; }
.lock-strength i:nth-child(4) { height: 22px; }
.lock-strength i:nth-child(5) { height: 28px; }

.lock-strength i.on {
  background: linear-gradient(180deg, #7ba3ff, #5b8cff);
  box-shadow: 0 0 10px rgba(91, 140, 255, 0.4);
}

.exp-signal__title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
  position: relative;
  z-index: 1;
}

.exp-signal__sub {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.4;
  position: relative;
  z-index: 1;
}

.exp-signal__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.exp-signal__cell {
  padding: 10px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.exp-signal__cell .label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}

.exp-signal__cell .value {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.35;
}

.exp-signal__cell--best .value {
  color: var(--green);
}

.exp-signal__cell--caution .value {
  color: var(--rose);
}

.exp-mini-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.exp-mini {
  padding: 12px;
}

.exp-mini .label {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}

.exp-mini .value {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.exp-mini .hint {
  font-size: 0.68rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.exp-tabbar {
  display: flex;
  justify-content: space-around;
  margin: 0 12px 6px;
  padding: 10px 6px 8px;
  border-radius: 22px;
  background: rgba(12, 16, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--text-tertiary);
}

.exp-tabbar .active {
  color: var(--blue-soft);
}

.home-indicator {
  width: 120px;
  height: 4px;
  margin: 0 auto 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.35);
}

.screen-card {
  padding: 0.85rem 0.95rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
}

.screen-card--energy {
  background: linear-gradient(145deg, rgba(61, 111, 224, 0.14), rgba(201, 169, 98, 0.08));
  border-color: rgba(91, 140, 255, 0.18);
}

.screen-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.screen-meta {
  color: var(--text-tertiary);
  font-size: 0.72rem;
}

.screen-headline {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0.35rem 0 0.25rem;
}

.screen-copy {
  color: var(--text-secondary);
  font-size: 0.78rem;
  line-height: 1.45;
}

.energy-bar {
  margin-top: 0.7rem;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.energy-bar > span {
  display: block;
  height: 100%;
  width: var(--w, 70%);
  border-radius: inherit;
  background: var(--gradient);
}

/* ---------- Today's Signal card ---------- */
.screen-body--signal {
  gap: 0.45rem;
}

.signal-card {
  padding: 0.95rem 1rem 1.05rem;
  border-radius: 18px;
  background: linear-gradient(155deg, rgba(61, 111, 224, 0.16), rgba(17, 19, 24, 0.96) 48%, rgba(201, 169, 98, 0.1));
  border: 1px solid rgba(91, 140, 255, 0.2);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.signal-card--hero {
  margin-top: 0.15rem;
}

.signal-card--xl {
  padding: 1.75rem 1.85rem;
  border-radius: var(--radius-xl);
}

.signal-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.signal-card__kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}



.signal-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0.15rem 0 0.3rem;
}

.signal-card__title--xl {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-top: 0.35rem;
}

.signal-card__window {
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
}

.signal-card--xl .signal-card__window {
  font-size: 0.98rem;
}

.signal-card__rule {
  height: 1px;
  margin: 0.85rem 0;
  background: var(--border);
}

.signal-card__block {
  margin-bottom: 0.55rem;
}

.signal-card__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.signal-card__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 0.35rem;
}

.signal-card__label--go {
  color: #8fd0a8;
}

.signal-card__label--warn {
  color: #e8b86d;
}

.signal-card__list {
  display: grid;
  gap: 0.28rem;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.signal-card--xl .signal-card__list {
  font-size: 1rem;
  gap: 0.4rem;
}

.signal-card__list li {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
}

.signal-card__list li::before {
  content: "✓";
  color: #8fd0a8;
  font-size: 0.78em;
  flex-shrink: 0;
}

.signal-card__list--warn li::before {
  content: "⚠";
  color: #e8b86d;
  font-size: 0.72em;
}

.signal-card__why p:last-child {
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.5;
}

.signal-card--xl .signal-card__why p:last-child {
  font-size: 0.98rem;
  max-width: 42ch;
}

.rare-badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 0.6rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--amber);
  background: linear-gradient(135deg, rgba(245, 194, 107, 0.2), rgba(139, 108, 255, 0.15));
  border: 1px solid rgba(245, 194, 107, 0.35);
  box-shadow: none;
}

.rare-badge--glass {
  height: auto;
  padding: 6px 10px;
  font-size: 0.58rem;
}

.rare-badge--lg {
  height: 30px;
  padding: 0 0.85rem;
  font-size: 0.75rem;
}

/* Position quote */
.position-quote {
  margin: 2rem 0 0;
  padding: 1.75rem 1.85rem;
  max-width: 52rem;
}

.position-quote p {
  margin: 0;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: var(--text-secondary);
}

.position-quote strong {
  color: var(--text);
  font-weight: 600;
}

/* Signal showcase */
.signal-showcase {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
  align-items: start;
}

.signal-points {
  display: grid;
  gap: 0.85rem;
}

.point-card {
  padding: 1.2rem 1.3rem;
}

.point-card h3 {
  margin-bottom: 0.35rem;
}

.point-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

/* Rarity section */
.section--rarity {
  background: linear-gradient(180deg, transparent, rgba(61, 111, 224, 0.04), transparent);
}

.rarity-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.rarity-panel {
  padding: 1.85rem;
}

.rarity-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.rarity-panel__label {
  color: var(--text-tertiary);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rarity-panel__score {
  font-size: clamp(3.5rem, 8vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rarity-panel__score span {
  font-size: 0.45em;
  margin-left: 0.05em;
}

.rarity-panel__caption {
  margin-top: 0.55rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.rarity-meter {
  position: relative;
  height: 8px;
  margin: 1.35rem 0 1.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: visible;
}

.rarity-meter__fill {
  display: block;
  height: 100%;
  width: var(--w, 90%);
  border-radius: inherit;
  background: var(--gradient);
}

.rarity-meter__mark {
  position: absolute;
  top: 50%;
  left: var(--x, 90%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold-soft);
  border: 2px solid var(--bg);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 4px rgba(201, 169, 98, 0.2);
}

.rarity-facts {
  display: grid;
  gap: 0.85rem;
}

.rarity-facts dt {
  color: var(--text-tertiary);
  font-size: 0.78rem;
  margin-bottom: 0.15rem;
}

.rarity-facts dd {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.rarity-copy h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.rarity-copy > p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  font-size: 1.02rem;
}

.rarity-bullets {
  display: grid;
  gap: 1rem;
}

.rarity-bullets li {
  padding-left: 1rem;
  border-left: 2px solid rgba(201, 169, 98, 0.35);
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.rarity-bullets strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.2rem;
  font-size: 0.98rem;
}

.rarity-note {
  margin-top: 1.35rem;
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.feature-card--priority {
  border-color: rgba(91, 140, 255, 0.22);
  background: linear-gradient(160deg, rgba(61, 111, 224, 0.1), rgba(17, 19, 24, 0.92));
}

.feature-icon--gold {
  background: var(--gold-muted);
  color: var(--gold-soft);
  border-color: rgba(201, 169, 98, 0.28);
}

.lede em,
.section-lede em,
.point-card em {
  font-style: normal;
  color: var(--text);
  font-weight: 500;
}

.ios-tabbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.25rem;
  padding: 0.7rem 0.5rem 1rem;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  font-size: 0.65rem;
  color: var(--text-tertiary);
  text-align: center;
}

.ios-tabbar .on {
  color: var(--gold-soft);
  font-weight: 600;
}

.chip {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.chip--gold {
  background: var(--gold-muted);
  color: var(--gold-soft);
  border-color: rgba(201, 169, 98, 0.28);
}

.chip--blue {
  background: var(--blue-tint);
  color: #a8c2ff;
  border-color: rgba(91, 140, 255, 0.28);
}

/* Floating cards */
.float-card {
  position: absolute;
  padding: 0.85rem 1rem;
  display: grid;
  gap: 0.15rem;
  min-width: 148px;
  animation: float-card 7s ease-in-out infinite;
}

.float-card strong {
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.float-card > span:last-child {
  color: var(--text-tertiary);
  font-size: 0.75rem;
}

.float-card--a {
  top: 12%;
  left: 0;
  animation-delay: 0s;
}

.float-card--b {
  top: 38%;
  right: 0;
  animation-delay: -2s;
}

.float-card--c {
  bottom: 12%;
  left: 4%;
  animation-delay: -4s;
}

@keyframes float-card {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ---------- Why / Compare ---------- */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.25rem;
  align-items: stretch;
  margin-bottom: 2rem;
}

.compare-card {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--border);
}

.compare-card--accent {
  background: linear-gradient(160deg, rgba(61, 111, 224, 0.12), rgba(17, 19, 24, 0.95) 50%, rgba(201, 169, 98, 0.08));
  border-color: rgba(91, 140, 255, 0.22);
  box-shadow: var(--shadow-soft);
}

.compare-label {
  color: var(--text-tertiary);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}

.compare-card h3 {
  font-size: 1.35rem;
  margin-bottom: 1.1rem;
}

.compare-list {
  display: grid;
  gap: 0.7rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.compare-list li {
  padding-left: 1.1rem;
  position: relative;
}

.compare-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-tertiary);
}

.compare-card--accent .compare-list li::before {
  background: var(--gold);
}

.compare-plus {
  align-self: center;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-weight: 500;
  background: var(--bg-elevated);
}

.formula {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
}

.formula-item {
  padding: 1rem 1.15rem;
  min-width: 150px;
  text-align: center;
}

.formula-item p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 0.35rem;
}

.formula-item--result {
  border-color: rgba(201, 169, 98, 0.28);
  background: linear-gradient(145deg, rgba(201, 169, 98, 0.1), rgba(17, 19, 24, 0.9));
}

.formula-item--result p {
  color: var(--text);
  font-weight: 600;
}

.formula-icon {
  color: var(--gold);
  font-size: 1.1rem;
}

.formula-op {
  color: var(--text-tertiary);
  font-weight: 500;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.step {
  padding: 1.75rem;
  list-style: none;
}

.step-visual {
  width: 88px;
  height: 88px;
  margin-bottom: 1.25rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
}

.step-svg {
  width: 72px;
  height: 72px;
}

.step-num {
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.step h3 {
  font-size: 1.2rem;
  margin-bottom: 0.55rem;
}

.step p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ---------- Features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature-card {
  padding: 1.5rem;
  min-height: 180px;
}

.feature-card--wide {
  grid-column: span 3;
  min-height: auto;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 1rem;
  align-items: start;
}

.feature-card--wide .feature-icon {
  grid-row: span 2;
}

.feature-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--blue-tint);
  color: #a8c2ff;
  margin-bottom: 1rem;
  font-size: 1rem;
  border: 1px solid rgba(91, 140, 255, 0.18);
}

.feature-card h3 {
  margin-bottom: 0.45rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ---------- Planet + Pulse ---------- */
.pulse-layout {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 2rem;
  align-items: start;
}

.topic-list {
  display: grid;
  gap: 0.85rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--border);
}

.topic-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.topic-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  flex-shrink: 0;
}

.topic-dot--gold {
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-muted);
}

.topic-dot--blue {
  background: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-tint);
}

.pulse-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.insight-card {
  padding: 1.35rem;
}

.insight-card h3 {
  margin: 0.7rem 0 0.4rem;
}

.insight-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

/* ---------- Cosmic Twin ---------- */
.twin-roles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 2rem;
}

.role-pill {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.twin-showcase {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.25rem;
  margin-bottom: 2.25rem;
}

.twin-card {
  padding: 1.75rem;
}

.twin-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.twin-avatars {
  display: flex;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 0.9rem;
  border: 2px solid var(--bg);
}

.avatar--a {
  background: linear-gradient(145deg, #3d6fe0, #5b8cff);
  z-index: 1;
}

.avatar--b {
  background: linear-gradient(145deg, #8b7340, #c9a962);
  margin-left: -12px;
}

.twin-label {
  color: var(--text-tertiary);
  font-size: 0.8rem;
}

.twin-score {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.twin-score span {
  font-size: 1rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

.score-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 1.35rem;
}

.score-track > span {
  display: block;
  height: 100%;
  width: var(--w, 80%);
  background: var(--gradient);
  border-radius: inherit;
}

.twin-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.twin-metrics dt {
  color: var(--text-tertiary);
  font-size: 0.78rem;
  margin-bottom: 0.2rem;
}

.twin-metrics dd {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.twin-card--share h3 {
  margin: 0.85rem 0 0.5rem;
  font-size: 1.25rem;
}

.twin-card--share p:not(.chip) {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.mini-share {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.mini-share-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.mini-share-row span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(91, 140, 255, 0.5), rgba(201, 169, 98, 0.4));
}

.mini-share-row span:last-child {
  margin-left: -10px;
  opacity: 0.85;
}

.mini-share-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 0.45rem;
}

.mini-share-bar.short {
  width: 62%;
}

/* ---------- Widgets ---------- */
.widgets-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.widget-mock {
  padding: 1.25rem;
  text-align: center;
}

.widget-size {
  color: var(--text-tertiary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.widget-mock h3 {
  margin-top: 1rem;
  font-size: 0.98rem;
}

.widget {
  margin-inline: auto;
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(61, 111, 224, 0.16), rgba(17, 19, 24, 0.95) 55%, rgba(201, 169, 98, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
}

.widget--sm {
  width: 128px;
  height: 128px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.widget--sm strong {
  font-size: 2rem;
  letter-spacing: -0.03em;
}

.widget--md {
  width: 100%;
  max-width: 220px;
  min-height: 110px;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.widget--md strong {
  display: block;
  margin: 0.25rem 0;
  font-size: 1rem;
}

.widget-orb {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #e8d5a3, #c9a962 45%, #3d6fe0);
  flex-shrink: 0;
  box-shadow: 0 0 24px rgba(91, 140, 255, 0.25);
}

.widget--lg {
  width: 100%;
  min-height: 160px;
  padding: 1.1rem;
}

.widget--lg strong {
  display: block;
  margin: 0.35rem 0 0.45rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.widget--lg p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.widget-label {
  color: var(--text-tertiary);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.widget-sub {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.widget-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.widget-chips span {
  font-size: 0.72rem;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.widget--lock {
  width: 128px;
  height: 128px;
  display: grid;
  place-items: center;
  text-align: center;
  background: rgba(0, 0, 0, 0.35);
  gap: 0.35rem;
}

.widget--lock {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.widget--lock p {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

/* ---------- Daily loop ---------- */
.loop {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  max-width: 560px;
  margin-inline: auto;
}

.loop-item {
  padding: 1.25rem 1.4rem;
  list-style: none;
}

.loop-num {
  display: block;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}

.loop-item h3 {
  margin-bottom: 0.3rem;
}

.loop-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.loop-arrow {
  text-align: center;
  color: var(--text-tertiary);
  list-style: none;
  font-size: 1rem;
  line-height: 1;
}

/* ---------- Privacy ---------- */
.privacy-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}

.privacy-list {
  display: grid;
  gap: 0.85rem;
}

.privacy-item {
  padding: 1.15rem 1.25rem;
  display: grid;
  gap: 0.25rem;
}

.privacy-item strong {
  letter-spacing: -0.01em;
}

.privacy-item span {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

/* ---------- Testimonials ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.testimonial {
  margin: 0;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 240px;
}

.testimonial blockquote {
  margin: 0;
}

.testimonial blockquote p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: -0.01em;
}

.t-name {
  display: block;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.t-role {
  color: var(--text-tertiary);
  font-size: 0.85rem;
}

/* ---------- FAQ ---------- */
.faq-list {
  display: grid;
  gap: 0.65rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
}

.faq-item h3 {
  margin: 0;
  font-size: 1rem;
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  background: transparent;
  border: 0;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.faq-trigger:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(91, 140, 255, 0.55);
}

.faq-icon {
  width: 18px;
  height: 18px;
  position: relative;
  flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.faq-icon::before {
  inset: 8px 2px auto 2px;
  height: 1.5px;
}

.faq-icon::after {
  inset: 2px auto 2px 8px;
  width: 1.5px;
}

.faq-trigger[aria-expanded="true"] .faq-icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

.faq-panel {
  padding: 0 1.25rem 1.2rem;
}

.faq-panel[hidden] {
  display: none;
}

.faq-panel p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ---------- Waitlist ---------- */
.section--waitlist {
  padding-top: 2rem;
}

.waitlist-card {
  padding: clamp(2rem, 5vw, 3rem);
  text-align: center;
  background: linear-gradient(160deg, rgba(61, 111, 224, 0.12), rgba(17, 19, 24, 0.95) 45%, rgba(201, 169, 98, 0.08));
}

.waitlist-card .section-lede {
  margin-inline: auto;
  margin-bottom: 1.75rem;
}

.waitlist-form {
  max-width: 480px;
  margin-inline: auto;
}

.form-row {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.form-row input {
  flex: 1 1 220px;
  height: 52px;
  padding: 0 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-row input::placeholder {
  color: var(--text-tertiary);
}

.form-row input:focus {
  border-color: rgba(91, 140, 255, 0.55);
  box-shadow: var(--focus);
}

.form-row .btn {
  height: 52px;
  padding: 0 1.4rem;
}

.form-hint {
  margin-top: 0.85rem;
  color: var(--text-tertiary);
  font-size: 0.8rem;
}

.form-status {
  min-height: 1.4em;
  margin-top: 0.85rem;
  font-size: 0.92rem;
  font-weight: 500;
}

.form-status.is-success {
  color: #8fd0a8;
}

.form-status.is-error {
  color: #f0a8a8;
}

/* ---------- Final CTA ---------- */
.section--final {
  padding-bottom: clamp(5rem, 10vw, 7rem);
}

.section--final h2 {
  max-width: 16ch;
  margin-inline: auto;
}

.section--final .section-lede {
  margin-inline: auto;
  margin-bottom: 0.25rem;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 2rem;
  background: #06080f;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand p {
  margin-top: 1rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 28ch;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.footer-heading {
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.footer-nav ul {
  display: grid;
  gap: 0.55rem;
}

.footer-nav a {
  color: var(--text-secondary);
  font-size: 0.92rem;
  transition: color 0.2s;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-tertiary);
  font-size: 0.85rem;
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

/* ---------- Focus defaults ---------- */
:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 4px;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .glass-card:hover {
    transform: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid,
  .pulse-layout,
  .privacy-grid,
  .twin-showcase,
  .signal-showcase,
  .rarity-layout {
    grid-template-columns: 1fr;
  }

  .phone-stack {
    min-height: 520px;
    margin-top: 1rem;
  }

  .float-card--a {
    left: 2%;
  }

  .float-card--b {
    right: 2%;
  }

  .features-grid,
  .widgets-grid,
  .testimonials-grid,
  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .feature-card--wide {
    grid-column: span 2;
  }
}

@media (max-width: 820px) {
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1.25rem;
    background: rgba(5, 6, 8, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.9rem 0.25rem;
    border-bottom: 1px solid var(--border);
  }

  .nav a:last-child {
    border-bottom: 0;
  }

  .nav-toggle {
    display: grid;
  }

  .nav-actions .btn--sm {
    display: none;
  }

  .compare-grid {
    grid-template-columns: 1fr;
  }

  .compare-plus {
    justify-self: center;
    transform: rotate(90deg);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 64px;
  }

  .container,
  .container.narrow {
    width: min(100% - 1.5rem, var(--max));
  }

  .features-grid,
  .widgets-grid,
  .testimonials-grid,
  .steps,
  .pulse-cards,
  .twin-metrics,
  .footer-nav,
  .signal-card__cols {
    grid-template-columns: 1fr;
  }

  .iphone-screen {
    min-height: 600px;
  }

  .cosmos-stage {
    height: 150px;
  }

  .feature-card--wide {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }

  .float-card {
    display: none;
  }

  .iphone {
    width: min(100%, 280px);
  }

  .phone-stack {
    min-height: 580px;
  }

  .hero-cta,
  .form-row {
    flex-direction: column;
  }

  .hero-cta .btn,
  .form-row .btn,
  .form-row input {
    width: 100%;
  }

  .formula-op:nth-of-type(even) {
    display: none;
  }
}

/* High contrast support */
@media (prefers-contrast: more) {
  :root {
    --border: rgba(255, 255, 255, 0.28);
    --text-secondary: #c5ccd4;
  }

  .btn--primary {
    border: 2px solid #fff;
  }

  .btn--ghost {
    border-width: 2px;
  }
}
