/* ==========================================================================
   AetherHUD Landing Page Stylesheet
   Grounded in Apple Human Interface Guidelines (HIG 2026) & Liquid Glass
   ========================================================================== */

:root {
  --bg-canvas: #07080a;
  --bg-surface: #0e1015;
  --bg-card: rgba(18, 20, 26, 0.7);
  --bg-card-hover: rgba(26, 29, 38, 0.85);

  /* Apple Liquid Glass tokens */
  --glass-fill: rgba(20, 22, 28, 0.65);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-rim: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  --glass-shadow: 0 24px 64px -12px rgba(0, 0, 0, 0.6);

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, monospace;

  /* Colors */
  --text-primary: #f5f5f7;
  --text-secondary: #a1a1a6;
  --text-tertiary: #6e6e73;
  --apple-blue: #2997ff;
  --apple-blue-hover: #0077ed;
  --emerald-healthy: #30d158;
  --amber-warning: #ffd60a;
  --rose-depleted: #ff453a;

  /* Model Accents */
  --accent-claude: #d97706;
  --accent-gemini: #38bdf8;
  --accent-grok: #c084fc;
  --accent-hermes: #34d399;
  --accent-openai: #10b981;

  --ease-apple-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-apple-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 0%, #151821 0%, #07080a 65%);
}

/* Ambient Radial Glows */
.ambient-glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
}
.glow-top {
  width: 600px;
  height: 380px;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(41, 151, 255, 0.15), rgba(168, 85, 247, 0.08) 60%, transparent 80%);
}
.glow-bottom {
  width: 750px;
  height: 450px;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08), rgba(41, 151, 255, 0.05) 70%, transparent 85%);
}

/* ==========================================================================
   Apple Liquid Glass Header
   ========================================================================== */
.apple-nav-wrap {
  position: sticky;
  top: 16px;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 0 20px;
}
.apple-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1080px;
  padding: 10px 22px;
  border-radius: 9999px;
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-rim), 0 16px 36px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(28px) saturate(1.4);
  -webkit-backdrop-filter: blur(28px) saturate(1.4);
  transition: all 0.3s var(--ease-apple-smooth);
}
.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-beacon {
  position: relative;
  width: 10px;
  height: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.beacon-core {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-healthy);
  box-shadow: 0 0 10px var(--emerald-healthy);
}
.beacon-sonar {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(48, 209, 88, 0.4);
  animation: sonarPulse 2.4s infinite;
}
@keyframes sonarPulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(3); opacity: 0; }
}
.nav-logo {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-link:hover {
  color: var(--text-primary);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.github-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  transition: all 0.2s ease;
}
.github-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}
.btn-apple-primary {
  padding: 7px 15px;
  border-radius: 9999px;
  background: var(--apple-blue);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(41, 151, 255, 0.35);
  transition: all 0.2s var(--ease-apple-spring);
}
.btn-apple-primary:hover {
  background: var(--apple-blue-hover);
  transform: translateY(-1px);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  z-index: 10;
  max-width: 1140px;
  margin: 0 auto;
  padding: 80px 24px 60px;
  text-align: center;
}
.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.sparkle {
  font-size: 0.95rem;
}
.hero-headline {
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}
.gradient-text {
  background: linear-gradient(135deg, #ffffff 30%, #a1a1a6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subhead {
  max-width: 680px;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 34px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
  flex-wrap: wrap;
  justify-content: center;
}
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 9999px;
  background: var(--apple-blue);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(41, 151, 255, 0.35);
  transition: all 0.25s var(--ease-apple-spring);
}
.btn-hero-primary:hover {
  background: var(--apple-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(41, 151, 255, 0.45);
}
.arrow {
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}
.btn-hero-primary:hover .arrow {
  transform: translateX(3px);
}
.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  backdrop-filter: blur(20px);
  transition: all 0.25s var(--ease-apple-smooth);
}
.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.social-proof-strip {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.82rem;
  color: var(--text-tertiary);
  margin-bottom: 50px;
  flex-wrap: wrap;
  justify-content: center;
}
.pill-check {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   MacBook Frame & Dynamic Island Interactive Preview
   ========================================================================== */
.demo-stage {
  width: 100%;
  max-width: 980px;
  margin: 0 auto 80px;
}
.macbook-window {
  border-radius: 20px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: visible;
  position: relative;
}
.macbook-menubar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.traffic-lights {
  display: flex;
  gap: 7px;
}
.traffic-lights span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }
.window-title {
  font-size: 0.76rem;
  color: var(--text-tertiary);
  font-weight: 500;
}
.dock-hint {
  font-size: 0.72rem;
  color: var(--text-tertiary);
}

.mac-desktop-screen {
  padding: 50px 20px 70px;
  min-height: 380px;
  background: radial-gradient(ellipse at 50% 20%, #151a24 0%, #050608 80%);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.desktop-wallpaper-text {
  text-align: center;
  margin-bottom: 30px;
}
.wallpaper-caption {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.wallpaper-sub {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  margin-top: 4px;
}

/* ==========================================================================
   Interactive Dynamic Island HUD (Mirroring the Desktop App)
   ========================================================================== */
.hud-island {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
  border-radius: 9999px;
  background: rgba(15, 17, 23, 0.85);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-rim), 0 20px 48px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(28px) saturate(1.4);
  -webkit-backdrop-filter: blur(28px) saturate(1.4);
  position: relative;
  z-index: 20;
}
.hud-drag-pip {
  display: flex;
  align-items: center;
  color: var(--text-tertiary);
  cursor: grab;
}

.island-model-cluster {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hud-model-chip {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.25s var(--ease-apple-spring);
}
.hud-model-chip:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px) scale(1.06);
  border-color: rgba(255, 255, 255, 0.25);
}
.model-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.badge-green {
  background: rgba(48, 209, 88, 0.2);
  color: #30d158;
  border: 1px solid rgba(48, 209, 88, 0.4);
}
.badge-amber {
  background: rgba(255, 214, 10, 0.2);
  color: #ffd60a;
  border: 1px solid rgba(255, 214, 10, 0.4);
}

.hud-gear-trigger {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.hud-gear-trigger:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  transform: rotate(45deg);
}

/* Popover for interactive model card on hover */
.island-popover {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 250px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(22, 25, 33, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(32px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.22s var(--ease-apple-spring);
  text-align: left;
}
.hud-model-chip:hover .island-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.popover-header h4 {
  font-size: 0.88rem;
  font-weight: 600;
}
.status-pill {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 9999px;
  text-transform: uppercase;
}
.status-pill.healthy {
  background: rgba(48, 209, 88, 0.15);
  color: #30d158;
}
.status-pill.warning {
  background: rgba(255, 214, 10, 0.15);
  color: #ffd60a;
}
.popover-metric {
  margin-bottom: 8px;
}
.metric-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--text-secondary);
  margin-bottom: 5px;
}
.metric-row strong {
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.progress-bar {
  width: 100%;
  height: 5px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 9999px;
  background: var(--apple-blue);
  transition: width 0.3s ease;
}
.popover-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-tertiary);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 8px;
}
.timer-val {
  color: var(--emerald-healthy);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

/* ==========================================================================
   Bento Grid Section (Features)
   ========================================================================== */
.section-features {
  max-width: 1140px;
  margin: 0 auto 100px;
  padding: 0 24px;
}
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-tag {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--apple-blue);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.section-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s var(--ease-apple-spring);
}
.bento-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
.bento-card.col-span-2 {
  grid-column: span 2;
}
.card-icon {
  font-size: 1.8rem;
  margin-bottom: 18px;
}
.bento-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.bento-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 20px;
}
.card-graphic {
  margin-top: auto;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Mini customizer preview in bento */
.mini-customizer {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.mini-switch {
  width: 36px;
  height: 20px;
  border-radius: 9999px;
  background: var(--apple-blue);
  position: relative;
  display: inline-block;
}
.mini-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}

/* ==========================================================================
   Pricing Section ($28 Lifetime)
   ========================================================================== */
.section-pricing {
  max-width: 900px;
  margin: 0 auto 100px;
  padding: 0 24px;
}
.pricing-card-wrap {
  position: relative;
}
.pricing-glow {
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, rgba(41, 151, 255, 0.4), rgba(168, 85, 247, 0.3));
  border-radius: 26px;
  filter: blur(20px);
  opacity: 0.5;
  z-index: 0;
}
.pricing-card {
  position: relative;
  z-index: 1;
  background: rgba(18, 20, 26, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  padding: 44px 40px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(30px);
}
.pricing-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 26px;
  flex-wrap: wrap;
  gap: 16px;
}
.plan-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(41, 151, 255, 0.15);
  color: var(--apple-blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.pricing-title {
  font-size: 1.8rem;
  font-weight: 800;
}
.price-display {
  text-align: right;
}
.currency {
  font-size: 1.6rem;
  font-weight: 700;
  vertical-align: top;
  color: var(--text-secondary);
}
.amount {
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}
.period {
  display: block;
  font-size: 0.82rem;
  color: var(--text-tertiary);
  margin-top: 4px;
}

.pricing-features {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 24px;
  margin-bottom: 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
}
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-primary);
}
.feature-check {
  color: var(--emerald-healthy);
  font-weight: 700;
}

.pricing-cta {
  display: block;
  width: 100%;
  padding: 16px 24px;
  border-radius: 9999px;
  background: var(--apple-blue);
  color: #fff;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(41, 151, 255, 0.4);
  transition: all 0.25s var(--ease-apple-spring);
}
.pricing-cta:hover {
  background: var(--apple-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(41, 151, 255, 0.5);
}
.pricing-subtext {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-tertiary);
  margin-top: 12px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.apple-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 40px 24px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-tertiary);
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 12px;
}
.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-links a:hover {
  color: var(--text-primary);
}

/* Responsive queries */
@media (max-width: 820px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-card.col-span-2 {
    grid-column: span 1;
  }
  .nav-links {
    display: none;
  }
  .pricing-features {
    grid-template-columns: 1fr;
  }
}
