/* ==========================================================================
   GrahaMitra — High-End Luxury Editorial Design System
   Precision-Crafted, Responsive, Hardware-Accelerated 60fps Experience
   ========================================================================== */

/* Fonts are self-hosted, one file per script. Each face carries a
   unicode-range, so a page downloads only the scripts it actually shows:
   the English page never fetches Tamil or Telugu. The language switcher and
   the language chips are set in the phone's own fonts on purpose, so their
   few Tamil and Telugu words do not pull a whole font in. */
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/fonts/PlusJakartaSans-latin.woff2') format('woff2');
  font-weight: 300 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20B9, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Noto Sans Tamil';
  src: url('/fonts/NotoSansTamil.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0964-0965, U+0B82-0BFA, U+200C-200D, U+25CC;
}
@font-face {
  font-family: 'Noto Sans Telugu';
  src: url('/fonts/NotoSansTelugu.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0951-0952, U+0964-0965, U+0C00-0C7F, U+1CD5-1CD6, U+1CD8, U+1CDA, U+1CF2, U+200C-200D, U+25CC;
}

:root {
  /* Quiet Luxury Cosmic Palette */
  --bg-deep: #06080F;
  --bg-surface: #0A0D18;
  --bg-elevated: #0F1424;
  --bg-card: rgba(13, 17, 30, 0.72);
  --bg-card-hover: rgba(18, 24, 42, 0.88);
  --bg-glass: rgba(255, 255, 255, 0.035);

  /* Hairline Borders */
  --hairline: rgba(255, 255, 255, 0.07);
  --hairline-hover: rgba(255, 255, 255, 0.15);
  --border-gold: rgba(232, 195, 116, 0.28);
  --border-gold-glow: rgba(232, 195, 116, 0.6);

  /* Celestial Gold & Metallic Accents */
  --gold-champagne: #E8C374;
  --gold-light: #F7E5BD;
  --gold-deep: #C99B45;
  --gold-glow: rgba(232, 195, 116, 0.18);

  --accent-saffron: #E5822E;
  --accent-cyan: #38BDF8;
  --accent-emerald: #10B981;
  --accent-purple: #9D74FF;
  --accent-rose: #FB7185;

  /* Typography Colors */
  --text-white: #FFFFFF;
  --text-primary: #F1F4F9;
  --text-secondary: #94A0B8;
  --text-muted: #8590A6; /* 4.5:1+ on the darkest ground; #647087 was 3.9:1 */

  /* Typography Scales */
  --font-display: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-serif: 'Marcellus', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans Tamil', 'Noto Sans Telugu', sans-serif;

  /* Spacing & Radii */
  --max-w: 1220px;
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 9999px;

  /* Motion Curves */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.18s var(--ease-smooth);
  --transition-base: 0.32s var(--ease-spring);
  --transition-slow: 0.55s var(--ease-spring);
}

/* Base Reset & Core Document */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(120, 119, 198, 0.12), transparent),
    radial-gradient(circle at 85% 25%, rgba(232, 195, 116, 0.05) 0%, transparent 45%),
    radial-gradient(circle at 15% 65%, rgba(56, 189, 248, 0.04) 0%, transparent 40%);
  background-attachment: fixed;
  overflow-x: hidden;
  min-height: 100vh;
}

::selection {
  background: rgba(232, 195, 116, 0.25);
  color: #FFF;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

button {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

/* ==========================================================================
   Space Canvas (60 FPS Hardware-Accelerated Constellations)
   ========================================================================== */
#space-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.75;
}

/* Accessibility Skip Link */
.skip {
  position: absolute;
  top: -60px;
  left: 24px;
  background: var(--gold-champagne);
  color: #07090E;
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top 0.2s ease;
}
.skip:focus {
  top: 20px;
}

/* ==========================================================================
   Cosmic Glass Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 160;
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  background: rgba(6, 8, 15, 0.78);
  border-bottom: 1px solid var(--hairline);
  transition: var(--transition-base);
}

.site-header.scrolled {
  background: rgba(6, 8, 15, 0.94);
  border-bottom-color: rgba(232, 195, 116, 0.16);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-white);
}

.brand svg {
  width: 30px;
  height: 30px;
  color: var(--gold-champagne);
  filter: drop-shadow(0 0 12px rgba(232, 195, 116, 0.45));
  transition: transform 0.4s var(--ease-spring);
}

.brand:hover svg {
  transform: scale(1.08) rotate(15deg);
}

.brand span {
  background: linear-gradient(180deg, #FFFFFF 30%, #CBD5E1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav[aria-label] {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-page {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
}

.nav-page:hover {
  color: var(--text-white);
}

/* Subtle language switcher pill */
.langs {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 2px;
}

.langs a {
  padding: 4px 11px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.langs a:hover {
  color: var(--text-white);
}

.langs a[aria-current="true"] {
  background: rgba(232, 195, 116, 0.16);
  color: var(--gold-light);
  border: 1px solid rgba(232, 195, 116, 0.35);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, rgba(232, 195, 116, 0.14) 0%, rgba(201, 155, 69, 0.08) 100%);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  transition: all 0.25s var(--ease-spring);
}

.header-cta:hover {
  background: linear-gradient(180deg, var(--gold-champagne) 0%, var(--gold-deep) 100%);
  color: #07090E;
  box-shadow: 0 4px 20px rgba(232, 195, 116, 0.35);
  transform: translateY(-1px);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  z-index: 1;
  padding: 72px 0 100px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  align-items: center;
  gap: 56px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(232, 195, 116, 0.06);
  border: 1px solid rgba(232, 195, 116, 0.2);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-champagne);
  margin-bottom: 22px;
}

.badge-spark {
  width: 14px;
  height: 14px;
  color: var(--gold-champagne);
  flex-shrink: 0;
}

.hero h1.display {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.2vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: var(--text-white);
  text-wrap: balance;
}

.hero h1.display .highlight {
  background: linear-gradient(180deg, #FFFFFF 15%, #E2E8F0 60%, var(--gold-champagne) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lede {
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.62;
  max-width: 530px;
  margin-bottom: 34px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 38px;
}

/* Primary High-End CTA */
.button-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(180deg, #F5D38A 0%, #E8C374 50%, #C99B45 100%);
  color: #07090E;
  font-size: 0.98rem;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 20px rgba(232, 195, 116, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  position: relative;
  overflow: hidden;
  transition: all 0.28s var(--ease-spring);
}

.button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(232, 195, 116, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.button-primary svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.button-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--hairline);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(10px);
  transition: all 0.25s var(--ease-spring);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(232, 195, 116, 0.35);
  color: var(--gold-light);
  transform: translateY(-1px);
}

/* Minimalist Proof List */
.proof {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
}

.proof li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.proof li::before {
  content: '✓';
  color: var(--gold-champagne);
  font-weight: 700;
  font-size: 0.82rem;
}

/* ==========================================================================
   Flagship Smartphone Device Hardware Simulation
   ========================================================================== */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1400px;
}

.phone-ambient-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 360px;
  height: 560px;
  background: radial-gradient(circle, rgba(232, 195, 116, 0.16) 0%, rgba(120, 119, 198, 0.12) 50%, transparent 70%);
  filter: blur(55px);
  z-index: 0;
  pointer-events: none;
}

.phone-shell {
  position: relative;
  z-index: 1;
  width: 318px;
  height: 630px;
  background: #080A12;
  border-radius: 46px;
  padding: 10px;
  box-shadow:
    0 0 0 1.5px rgba(255, 255, 255, 0.12),
    0 0 0 5px #141829,
    0 25px 75px -15px rgba(0, 0, 0, 0.85),
    0 0 45px -8px rgba(232, 195, 116, 0.15);
  transform: rotateY(-7deg) rotateX(3deg);
  transition: transform 0.45s var(--ease-spring), box-shadow 0.45s ease;
  will-change: transform;
}

.hero-visual:hover .phone-shell {
  transform: rotateY(0deg) rotateX(0deg) translateY(-6px);
  box-shadow:
    0 0 0 1.5px rgba(255, 255, 255, 0.18),
    0 0 0 5px #181E34,
    0 32px 85px -10px rgba(0, 0, 0, 0.95),
    0 0 60px -5px rgba(232, 195, 116, 0.28);
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #0B0E1B;
  border-radius: 37px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.phone-status-bar {
  height: 36px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-white);
  z-index: 5;
  background: #0B0E1B;
}

.phone-notch {
  width: 78px;
  height: 18px;
  background: #000;
  border-radius: 10px;
  margin: 0 auto;
}

.phone-status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.62rem;
  color: var(--text-secondary);
}

.phone-viewport {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px 14px;
  scrollbar-width: none;
}
.phone-viewport::-webkit-scrollbar { display: none; }

/* In-Phone Bottom Navigation Bar */
.phone-tab-bar {
  position: relative;
  height: 52px;
  background: rgba(11, 14, 27, 0.96);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 6px;
  z-index: 15;
}

.phone-tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  cursor: pointer;
}

.phone-tab-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

.phone-tab-btn.active {
  color: var(--gold-champagne);
  background: rgba(232, 195, 116, 0.08);
}

/* Phone View Panels */
.phone-panel {
  display: none;
  animation: panelFade 0.3s ease;
}
.phone-panel.active {
  display: block;
}

@keyframes panelFade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.app-screen-header {
  margin-bottom: 10px;
}
.app-screen-tag {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-champagne);
  font-weight: 700;
}
.app-screen-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: -0.01em;
}
.app-screen-date {
  font-size: 0.68rem;
  color: var(--text-secondary);
}

/* South Indian Chart in Phone */
.si-chart-box {
  background: rgba(17, 22, 42, 0.6);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 6px;
  margin-bottom: 10px;
}

.si-chart {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  aspect-ratio: 1;
  gap: 1.5px;
  background: rgba(232, 195, 116, 0.12);
  border: 1px solid rgba(232, 195, 116, 0.25);
  border-radius: 6px;
  overflow: hidden;
  font-size: 0.62rem;
}

.si-chart .c {
  background: #0D1123;
  padding: 3px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  line-height: 1.1;
  color: var(--text-secondary);
  position: relative;
}

.si-chart .c.moon {
  background: rgba(232, 195, 116, 0.12);
  border: 1px solid rgba(232, 195, 116, 0.35);
  color: var(--gold-light);
  font-weight: 700;
}

.si-chart .c.lit {
  background: rgba(56, 189, 248, 0.12);
  box-shadow: inset 0 0 8px rgba(56, 189, 248, 0.2);
}

.si-chart .c.lagna {
  background: rgba(157, 116, 255, 0.14);
  font-weight: 700;
  color: #DDD6FE;
}
.si-chart .c.lagna::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, transparent 48%, rgba(157, 116, 255, 0.5) 49%, rgba(157, 116, 255, 0.5) 51%, transparent 52%);
  pointer-events: none;
}

.si-chart .centre {
  grid-column: 2 / 4;
  grid-row: 2 / 4;
  background: #080A15;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--gold-champagne);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: center;
  border: 1px dashed rgba(232, 195, 116, 0.22);
}

.si-chart i {
  font-style: normal;
  color: var(--text-secondary);
  font-size: 0.56rem;
}
.si-chart sup {
  color: var(--accent-rose);
  font-weight: 700;
}

/* Today Metrics */
.app-facts {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 10px;
}
.app-fact-row {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 5px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.65rem;
}
.app-fact-row dt {
  color: var(--text-secondary);
  font-weight: 500;
}
.app-fact-row dd {
  color: var(--text-white);
  font-weight: 600;
  text-align: right;
  max-width: 62%;
  line-height: 1.3;
}

.app-verdict {
  background: linear-gradient(135deg, rgba(232, 195, 116, 0.08), rgba(16, 185, 129, 0.06));
  border: 1px solid rgba(232, 195, 116, 0.2);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.68rem;
  color: var(--gold-light);
  line-height: 1.4;
  margin-bottom: 8px;
}

.app-kalam {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(251, 113, 133, 0.08);
  border: 1px solid rgba(251, 113, 133, 0.2);
  border-radius: 8px;
  padding: 5px 8px;
  font-size: 0.65rem;
  color: #FECDD3;
}

/* Table in App Chart */
.planets-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.64rem;
  margin-bottom: 10px;
}
.planets-table th {
  text-align: left;
  color: var(--text-muted);
  font-weight: 600;
  padding: 3px 5px;
  border-bottom: 1px solid var(--hairline);
}
.planets-table td {
  padding: 4px 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
}
.planets-table td:first-child {
  color: var(--gold-champagne);
  font-weight: 600;
}

.app-dasha-badge {
  background: rgba(157, 116, 255, 0.1);
  border: 1px solid rgba(157, 116, 255, 0.22);
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 0.64rem;
  color: #DDD6FE;
  margin-bottom: 8px;
}

.app-saturn-card {
  background: rgba(56, 189, 248, 0.06);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 8px;
  padding: 8px;
  font-size: 0.64rem;
}
.app-saturn-title {
  color: #BAE6FD;
  font-weight: 700;
  margin-bottom: 2px;
}
.app-saturn-meta {
  color: var(--text-muted);
  font-size: 0.58rem;
  margin-bottom: 4px;
}
.app-saturn-body {
  color: var(--text-secondary);
  line-height: 1.35;
}

/* App Chat */
.app-chat-stream {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chat-bubble {
  max-width: 90%;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 0.65rem;
  line-height: 1.4;
}
.chat-bubble.user {
  align-self: flex-end;
  background: linear-gradient(135deg, #E8C374, #C99B45);
  color: #07090E;
  font-weight: 600;
  border-bottom-right-radius: 2px;
}
.chat-bubble.ai {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--hairline);
  color: var(--text-primary);
  border-bottom-left-radius: 2px;
}
.chat-bubble.ai b {
  color: var(--gold-champagne);
}

/* ==========================================================================
   Section Common Utilities
   ========================================================================== */
.section {
  position: relative;
  z-index: 1;
  padding: 96px 0;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-champagne);
  margin-bottom: 14px;
}
.section-tag::before {
  content: '';
  width: 16px;
  height: 2px;
  background: var(--gold-champagne);
  border-radius: 2px;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.025em;
  color: var(--text-white);
  margin-bottom: 16px;
  text-wrap: balance;
}

.section-desc {
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  color: var(--text-secondary);
  line-height: 1.62;
  max-width: 620px;
  margin-bottom: 48px;
}

/* ==========================================================================
   Interactive AI Astrologer Consultation Demo
   ========================================================================== */
.demo-consultation {
  background: linear-gradient(180deg, rgba(16, 21, 38, 0.8) 0%, rgba(10, 13, 24, 0.95) 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  padding: 44px 36px;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.8);
}

.demo-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 32px;
}

.demo-prompt-pills {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.prompt-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s var(--ease-spring);
}

.prompt-pill svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  opacity: 0.75;
}

.prompt-pill:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(232, 195, 116, 0.35);
  color: var(--text-white);
}

.prompt-pill.active {
  background: rgba(232, 195, 116, 0.12);
  border-color: var(--gold-champagne);
  color: var(--gold-light);
  box-shadow: 0 2px 14px rgba(232, 195, 116, 0.2);
}

.prompt-pill.active svg {
  stroke: var(--gold-champagne);
  opacity: 1;
}

.demo-chat-box {
  background: #080B16;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 24px;
  max-width: 760px;
  margin: 0 auto;
}

.demo-user-msg {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.chat-avatar-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--hairline);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-avatar-badge.ai {
  background: rgba(232, 195, 116, 0.14);
  border-color: rgba(232, 195, 116, 0.35);
  color: var(--gold-champagne);
}

.chat-bubble-desk {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 0.92rem;
  color: var(--text-primary);
  line-height: 1.55;
  flex: 1;
}

.chat-bubble-desk.ai {
  background: rgba(14, 18, 36, 0.7);
  border-color: rgba(232, 195, 116, 0.22);
}

.astrology-citation {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(232, 195, 116, 0.08);
  border: 1px solid rgba(232, 195, 116, 0.25);
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--gold-champagne);
  margin-top: 10px;
  transition: opacity 0.3s ease;
}

/* ==========================================================================
   Features 6-Card Grid
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  backdrop-filter: blur(14px);
  transition: all 0.35s var(--ease-spring);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-gold);
  background: var(--bg-card-hover);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6), 0 0 25px -5px rgba(232, 195, 116, 0.12);
}

.feature-icon-wrapper {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: rgba(232, 195, 116, 0.08);
  border: 1px solid rgba(232, 195, 116, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-champagne);
  margin-bottom: 20px;
  transition: transform 0.25s ease;
}

.feature-card:hover .feature-icon-wrapper {
  transform: scale(1.08);
  background: rgba(232, 195, 116, 0.16);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 12px;
  letter-spacing: -0.015em;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.62;
}

/* ==========================================================================
   Chart & Astronomical Rigor Deep Dive
   ========================================================================== */
.chart-deep-split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 60px;
}

.chart-showcase-box {
  background: linear-gradient(180deg, rgba(16, 21, 40, 0.85) 0%, rgba(9, 12, 25, 0.95) 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: 0 25px 60px -20px rgba(0, 0, 0, 0.7);
}

.chart-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
}

.chart-header-row h4 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-white);
}

.swiss-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.22);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
}

.ticks-lux {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 26px 0;
}

.ticks-lux li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.96rem;
  color: var(--text-primary);
  line-height: 1.5;
}

.tick-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--accent-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==========================================================================
   Trust Cards
   ========================================================================== */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.trust-card {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

.trust-card:hover {
  border-color: var(--hairline-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
}

.trust-card h3 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 10px;
  letter-spacing: -0.015em;
}

.trust-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

.lang-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.lang-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--hairline);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  color: var(--gold-light);
  font-weight: 500;
}

/* ==========================================================================
   Pricing Section & Ledger
   ========================================================================== */
.pricing-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: flex-start;
}

.plus-card-lux {
  background: linear-gradient(180deg, rgba(22, 28, 56, 0.88) 0%, rgba(12, 15, 30, 0.95) 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  padding: 38px 32px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7);
  position: relative;
}

.recommended-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(232, 195, 116, 0.14);
  border: 1px solid rgba(232, 195, 116, 0.35);
  color: var(--gold-champagne);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.plus-card-lux h3 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: -0.02em;
}

.plus-price-tag {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--gold-champagne);
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 14px 0 10px;
  letter-spacing: -0.03em;
}

.plus-price-tag span {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}

.ledger-box {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ledger-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 22px;
  backdrop-filter: blur(12px);
}

.ledger-table-wrap h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hairline);
}

.lux-table {
  width: 100%;
  border-collapse: collapse;
}

.lux-table tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.lux-table tr:last-child {
  border-bottom: none;
}

.lux-table th {
  text-align: left;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  padding: 10px 0;
}

.lux-table td {
  text-align: right;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold-light);
  padding: 10px 0;
}

/* ==========================================================================
   Accordion FAQ
   ========================================================================== */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.25s ease;
}

.faq-item:hover, .faq-item.open {
  border-color: var(--border-gold);
  background: var(--bg-card-hover);
}

.faq-trigger {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-white);
  text-align: left;
  gap: 16px;
}

.faq-chevron {
  width: 18px;
  height: 18px;
  color: var(--gold-champagne);
  transition: transform 0.3s var(--ease-spring);
  flex-shrink: 0;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s var(--ease-spring);
}

.faq-item.open .faq-content {
  grid-template-rows: 1fr;
}

.faq-content-inner {
  overflow: hidden;
  min-height: 0;
  padding: 0 24px;
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.62;
}

/* ==========================================================================
   Closing Call to Action
   ========================================================================== */
.closing-cta {
  position: relative;
  z-index: 1;
  padding: 100px 0 120px;
  text-align: center;
  background: radial-gradient(ellipse 60% 40% at 50% 50%, rgba(232, 195, 116, 0.08) 0%, transparent 70%);
}

.closing-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 18px;
  letter-spacing: -0.025em;
}

.closing-cta p {
  font-size: 1.12rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 36px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--hairline);
  background: #04060B;
  padding: 44px 0 54px;
  color: var(--text-muted);
  font-size: 0.88rem;
  position: relative;
  z-index: 1;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-nav a:hover {
  color: var(--gold-light);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
  }
  .hero-lede {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .proof {
    justify-content: center;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .chart-deep-split, .pricing-split {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .trust-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .wrap {
    padding: 0 20px;
  }
  .site-header nav {
    display: none;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
  .header-cta {
    display: none;
  }
  .phone-shell {
    width: 290px;
    height: 590px;
  }
  .demo-prompt-pills {
    flex-direction: column;
  }

  /* ── Hamburger button ──────────────────────────────── */
  .nav-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    flex-shrink: 0;
  }
  .nav-burger:hover {
    background: rgba(232,195,116,0.1);
    border-color: rgba(232,195,116,0.35);
  }
  .nav-burger span {
    display: block;
    width: 100%;
    height: 1.5px;
    background: var(--text-secondary);
    border-radius: 2px;
    transform-origin: center;
    transition: transform 0.3s var(--ease-spring), opacity 0.2s ease, background 0.2s ease;
  }
  .nav-burger:hover span {
    background: var(--gold-champagne);
  }
  /* Animate to ✕ */
  .nav-burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-burger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .nav-burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  /* ── Drawer overlay backdrop ───────────────────────── */
  .drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 140;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  .drawer-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  /* ── Slide-down drawer panel ───────────────────────── */
  .mobile-drawer {
    position: fixed;
    top: 72px; /* matches .header-row height */
    left: 0;
    right: 0;
    z-index: 150;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: rgba(8, 11, 22, 0.98);
    backdrop-filter: blur(28px) saturate(1.4);
    -webkit-backdrop-filter: blur(28px) saturate(1.4);
    border-bottom: 1px solid var(--hairline);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.32s var(--ease-spring), opacity 0.25s ease;
  }
  .mobile-drawer.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .drawer-inner {
    padding: 24px 24px 32px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
  }

  /* Nav links inside drawer */
  .drawer-links {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 16px;
  }
  .drawer-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 4px;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    letter-spacing: -0.01em;
    text-decoration: none;
    transition: color 0.18s ease, padding-left 0.18s ease;
  }
  .drawer-link::after {
    content: "→";
    font-size: 0.92rem;
    opacity: 0.35;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .drawer-link:last-child {
    border-bottom: none;
  }
  .drawer-link:hover,
  .drawer-link:active {
    color: var(--gold-champagne);
    padding-left: 6px;
  }
  .drawer-link:hover::after,
  .drawer-link:active::after {
    opacity: 0.9;
    transform: translateX(4px);
  }

  /* Language pills inside drawer */
  .drawer-lang {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 6px 0;
  }
  .drawer-lang a {
    padding: 7px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-pill);
    border: 1px solid var(--hairline);
    color: var(--text-muted);
    transition: all 0.2s ease;
  }
  .drawer-lang a:hover,
  .drawer-lang a[aria-current="true"] {
    background: rgba(232, 195, 116, 0.16);
    border-color: rgba(232, 195, 116, 0.35);
    color: var(--gold-light);
  }

  /* Play Store CTA inside drawer */
  .drawer-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: linear-gradient(135deg, var(--gold-champagne) 0%, var(--gold-deep) 100%);
    color: #06080F;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(232, 195, 116, 0.2);
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.18s ease;
    box-sizing: border-box;
  }
  .drawer-cta:hover {
    opacity: 0.9;
    transform: translateY(-1px);
  }
}

/* Hide hamburger and drawer on desktop */
@media (min-width: 769px) {
  .nav-burger { display: none; }
  .mobile-drawer { display: none; }
  .drawer-overlay { display: none; }
}


/* The FAQ answer's spacing lives on the paragraph, inside the collapsing row. */
.faq-content-inner p { padding-bottom: 20px; }

/* Tamil and Telugu words outside their own page use the phone's fonts. */
.langs a[lang], .drawer-lang a[lang], .lang-chip { font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }

.demo-note { margin-top: 18px; text-align: center; font-size: 0.82rem; color: var(--text-secondary); }

/* Reduce motion: no starfield animation, no tilt, no reveal transitions. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Header: nav items never wrap. Tamil and Telugu words are longer, so those
   pages use tighter spacing and, on narrower laptops, an icon-only Play
   button in the header (the hero has the full one). */
.nav-page, .header-cta { white-space: nowrap; }
html[lang="ta"] nav[aria-label], html[lang="te"] nav[aria-label] { gap: 18px; }
html[lang="ta"] .nav-links, html[lang="te"] .nav-links { gap: 16px; }
html[lang="ta"] .nav-page, html[lang="te"] .nav-page { font-size: 0.84rem; }
@media (max-width: 1360px) {
  html[lang="ta"] .header-cta span, html[lang="te"] .header-cta span { display: none; }
  html[lang="ta"] .header-cta, html[lang="te"] .header-cta { padding: 9px 11px; }
}
/* Small laptops and tablets (769-1080px): the section links do not fit beside
   the language switcher and the Play button, so only those two stay. */
@media (min-width: 769px) and (max-width: 1080px) {
  .nav-links { display: none; }
}

/* The Moon cell's planets keep the cell's gold, for contrast on its tint. */
.si-chart .c.moon i { color: inherit; }
