/* ==========================================================================
   ORBITAL — Responsive & Mobile-First High-Performance Stylesheet
   Compact Vertical Rhythms & Clean Multi-Device Adaptation
   ========================================================================== */

/* Hero Section — Compact Layout */
.hero-section {
  padding: 36px 0 20px 0;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 32px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  background: var(--gold-subtle);
  border: 1px solid var(--border-glow);
  padding: 3px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

html[data-theme="light"] .hero-badge {
  color: var(--gold-primary);
}

.hero-title {
  font-size: clamp(1.95rem, 3.8vw, 3rem);
  line-height: 1.12;
  margin-bottom: 12px;
  font-weight: 800;
}

.hero-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
  line-height: 1.55;
  max-width: 490px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Upgraded Live Ephemeris Telemetry Capsule */
.hero-ticker-capsule {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 14px 4px 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 16px -4px rgba(0, 0, 0, 0.25);
  max-width: 100%;
}

.ticker-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  background: var(--gold-subtle);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-full);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--gold-primary);
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker-data-stream {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
  overflow-x: auto;
}

.ticker-sep {
  color: var(--text-muted);
  opacity: 0.4;
}

/* ==========================================================================
   App Showcase Section — Authentic Native iPhone 16 Pro Showcase
   ========================================================================== */
.app-showcase-card {
  padding: 38px 42px;
  position: relative;
  overflow: hidden;
}

.app-showcase-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: center;
}

.app-showcase-info {
  display: flex;
  flex-direction: column;
}

.app-showcase-title {
  font-size: 2.15rem;
  margin-bottom: 12px;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.app-showcase-desc {
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.app-features-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 26px;
}

.app-feature-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.app-feature-card:hover {
  border-color: var(--gold-primary);
  transform: translateX(3px);
  box-shadow: 0 4px 16px -2px var(--gold-subtle);
}

.app-feature-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gold-subtle);
  border: 1px solid var(--border-glow);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.app-feature-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.app-feature-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.app-feature-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.app-showcase-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.app-social-proof {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.app-stars {
  color: #ffb800;
  font-size: 0.88rem;
  letter-spacing: 2px;
}

.app-rating-text {
  font-size: 0.74rem;
  color: var(--text-secondary);
}

.app-rating-text strong {
  color: var(--text-primary);
}

/* Phone Mockup Staging with Ambient Halo & Floating Badges */
.phone-mockup-wrapper {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-ambient-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 500px;
  background: radial-gradient(circle, var(--gold-glow) 0%, rgba(100, 210, 255, 0.08) 50%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

html[data-theme="light"] .phone-ambient-glow {
  background: radial-gradient(circle, rgba(201, 130, 12, 0.12) 0%, rgba(2, 132, 199, 0.06) 50%, transparent 75%);
}

.phone-floating-pill {
  position: absolute;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-full);
  box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.45);
  animation: floatSubtle 4s ease-in-out infinite alternate;
  pointer-events: none;
  white-space: nowrap;
}

html[data-theme="light"] .phone-floating-pill {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 12px 28px -6px rgba(15, 23, 42, 0.12);
}

.pill-horology {
  top: 36px;
  right: -20px;
}

.pill-transit {
  bottom: 60px;
  left: -24px;
  animation-delay: -2s;
}

@keyframes floatSubtle {
  0% { transform: translateY(0); }
  100% { transform: translateY(-7px); }
}

.pill-beacon-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-aura);
  box-shadow: 0 0 8px var(--emerald-aura);
}

.pill-glyph-icon {
  font-size: 0.88rem;
  color: #ff5e3a;
}

.pill-content {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.pill-kicker {
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--gold-primary);
  text-transform: uppercase;
}

.pill-val {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Authentic Titanium iPhone 16 Pro Chassis */
.showcase-phone-mockup {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 268px;
  margin: 0 auto;
  border-radius: 46px;
  padding: 9px;
  background: linear-gradient(145deg, #444a5a 0%, #1a1e29 45%, #2c3242 100%);
  box-shadow: 0 24px 60px -10px rgba(0, 0, 0, 0.75), 0 0 35px -6px var(--gold-glow);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

html[data-theme="light"] .showcase-phone-mockup {
  background: linear-gradient(145deg, #373c49 0%, #151821 50%, #242936 100%);
  box-shadow: 0 24px 50px -10px rgba(15, 23, 42, 0.28), 0 0 25px -4px rgba(201, 130, 12, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

/* Physical Hardware Buttons on Chassis */
.phone-action-btn {
  position: absolute;
  left: -3px;
  top: 90px;
  width: 3px;
  height: 20px;
  background: #3a4152;
  border-radius: 2px 0 0 2px;
}

.phone-vol-up {
  position: absolute;
  left: -3px;
  top: 124px;
  width: 3px;
  height: 38px;
  background: #3a4152;
  border-radius: 2px 0 0 2px;
}

.phone-vol-down {
  position: absolute;
  left: -3px;
  top: 172px;
  width: 3px;
  height: 38px;
  background: #3a4152;
  border-radius: 2px 0 0 2px;
}

.phone-power-btn {
  position: absolute;
  right: -3px;
  top: 136px;
  width: 3px;
  height: 48px;
  background: #3a4152;
  border-radius: 0 2px 2px 0;
}

.phone-screen {
  background: #000000;
  border-radius: 38px;
  overflow: hidden;
  border: 2px solid #000000;
  position: relative;
  aspect-ratio: 472 / 1024;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
}

.phone-screen-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 36px;
}

.phone-screen-glare {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.02) 30%, transparent 60%);
  pointer-events: none;
  border-radius: 36px;
}

/* Site Footer — Compact */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-canvas);
  padding: 36px 0 24px 0;
  margin-top: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: 32px;
  margin-bottom: 28px;
}

.footer-col h5 {
  font-family: var(--font-serif);
  font-size: 0.88rem;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: 0.06em;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col ul a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.82rem;
  transition: var(--transition);
}

.footer-col ul a:hover {
  color: var(--gold-primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Mobile Sticky Bar */
.mobile-app-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-glow);
  padding: 8px 16px;
  display: none;
  align-items: center;
  justify-content: space-between;
  z-index: 999;
}

/* Mobile Menu Hamburger */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px 8px;
}

/* Media Queries */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }
  .hero-content {
    align-items: center;
  }
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-ticker-capsule {
    margin-left: auto;
    margin-right: auto;
  }
  /* Cockpit 1024px Adaptation */
  .observatory-cockpit-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .cockpit-center {
    grid-column: 1 / -1;
    order: -1;
    margin-bottom: 10px;
  }
  /* Chart Engine 1024px Adaptation */
  .chart-compact-form {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .chart-compact-form .btn-col {
    grid-column: 1 / -1;
  }
  .chart-blueprint-body {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .hours-tool-grid,
  .app-showcase-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .synastry-cockpit-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .synastry-nexus-center {
    margin: -4px 0;
  }
  .synastry-lab-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .synastry-metrics-grid,
  .synastry-insights-grid {
    grid-template-columns: 1fr;
  }
  .oracle-cockpit-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .oracle-stage-wing,
  .oracle-dossier-wing {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .site-nav {
    width: calc(100% - 16px);
    margin: 6px auto 0 auto;
    top: 6px;
    border-radius: 999px;
    transition: border-radius 0.2s ease, background-color 0.2s ease;
  }
  .site-nav.drawer-open {
    border-radius: 20px;
  }
  .nav-inner {
    height: 44px;
    padding: 0 10px 0 12px;
  }
  .nav-links {
    display: none;
  }
  .nav-cta {
    display: flex;
    gap: 6px;
  }
  .nav-cta #nav-download-btn {
    display: none;
  }
  .theme-segment-switch {
    height: 26px;
    width: 52px;
  }
  .theme-segment-option {
    font-size: 0.7rem;
  }
  .sound-toggle-btn {
    width: 26px;
    height: 26px;
  }
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
  }
  .mobile-app-banner {
    display: flex;
  }
  /* Cockpit & Console Dock 768px Adaptation */
  .observatory-cockpit-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .nav-telemetry-badge {
    display: none;
  }
  .hero-astrolabe-wrapper {
    max-width: 320px;
  }
  .pro-console-dock-wrapper {
    top: 50px;
    margin: 6px 0 16px 0;
  }
  .pro-console-dock {
    width: 100%;
    justify-content: flex-start;
    padding: 3px;
  }
  .console-tab {
    padding: 5px 9px;
    gap: 5px;
  }
  .console-tab .tab-desc {
    display: none;
  }
  .cockpit-panel {
    padding: 16px 14px;
  }
  .chart-compact-form {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .chart-blueprint-body {
    padding: 14px 10px;
  }
  .wheel-stage-card {
    padding: 12px 8px;
  }
  .elements-grid-pills {
    grid-template-columns: 1fr;
  }
  .trio-signs-grid {
    grid-template-columns: 1fr;
  }
  .zodiac-attributes-grid {
    grid-template-columns: 1fr 1fr;
  }
  .oracle-card {
    width: 100px;
    height: 156px;
  }
  .card-mandala {
    width: 32px;
    height: 32px;
  }
  .card-front-glyph {
    font-size: 1.35rem;
  }
  .oracle-cards-summary-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  .site-footer {
    padding: 32px 0 76px 0;
  }
  .container {
    padding: 0 14px;
  }
  .hero-section {
    padding: 24px 0 16px 0;
  }
  .tool-section {
    padding: 24px 0 12px 0;
  }
}

/* Light Theme Precision for App Showcase & Footer */
html[data-theme="light"] .app-feature-card {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 2px 6px -1px rgba(15, 23, 42, 0.04);
}

html[data-theme="light"] .app-feature-card:hover {
  background: #ffffff;
  border-color: #b45309;
  box-shadow: 0 4px 16px -2px rgba(180, 83, 9, 0.15);
}

html[data-theme="light"] .app-feature-icon-box {
  background: #fffbeb;
  border-color: rgba(180, 83, 9, 0.3);
  color: #92400e;
}

html[data-theme="light"] .app-feature-title {
  color: #0f172a;
}

html[data-theme="light"] .app-feature-desc {
  color: #334155;
}

html[data-theme="light"] .app-stars {
  color: #d97706;
}

html[data-theme="light"] .app-rating-text {
  color: #475569;
}

html[data-theme="light"] .app-rating-text strong {
  color: #0f172a;
}

html[data-theme="light"] .site-footer {
  background: #f1f5f9;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .footer-col h5 {
  color: #0f172a;
}

html[data-theme="light"] .footer-col ul a {
  color: #475569;
}

html[data-theme="light"] .footer-col ul a:hover {
  color: #b45309;
}

html[data-theme="light"] .footer-bottom {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  color: #64748b;
}

