@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Noto+Sans:wght@400;500;600;700&family=Noto+Sans+Devanagari:wght@400;600&display=swap');

:root {
  --saffron: #FF9933;
  --gold: #C8A830;
  --gold-dark: #A07820;
  --ivory: #FFF8F0;
  --card: #FFFDF5;
  --border: #E8D080;
  --text: #2E1800;
  --subtext: #7A5200;
  --subtext-light: #A07050;
  --bg: #FDF8EC;
  --dark-bg: #1A0E00;
  --dark-card: #2A1A00;
  --dark-border: #3A2A10;
  --dark-text: #F5E8C0;
  --dark-sub: #C8A060;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ── Nav ── */
nav {
  background: var(--ivory);
  border-bottom: 1.5px solid var(--border);
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  box-shadow: 0 2px 12px rgba(200,160,48,0.08);
}

.nav-logo {
  font-family: 'Cinzel', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 1px;
}

.nav-logo span { color: var(--saffron); }

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--subtext);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 20px;
  transition: all 0.2s;
}

.nav-links a:hover, .nav-links a.active {
  background: var(--border);
  color: var(--text);
}

.nav-cta {
  background: var(--saffron) !important;
  color: #fff !important;
  font-weight: 700 !important;
}

.nav-cta:hover { background: var(--gold) !important; }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--dark-bg) 0%, #2A1000 60%, #1A0E00 100%);
  color: var(--dark-text);
  text-align: center;
  padding: 80px 24px 96px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(255,153,51,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,153,51,0.15);
  border: 1px solid rgba(255,153,51,0.3);
  color: var(--saffron);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero h1 span { color: var(--saffron); }

.hero p {
  font-size: clamp(15px, 2.5vw, 18px);
  color: var(--dark-sub);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.hero-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--saffron);
  color: #fff;
}

.btn-primary:hover { background: #e8831a; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(255,153,51,0.4);
  color: var(--saffron);
}

.btn-outline:hover { border-color: var(--saffron); background: rgba(255,153,51,0.08); }

/* ── Section ── */
.section { padding: 72px 24px; }

.section-inner { max-width: 1100px; margin: 0 auto; }

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.section-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.section-sub {
  font-size: 15px;
  color: var(--subtext);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Feature Cards Grid ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 28px 24px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--saffron), var(--gold));
  opacity: 0;
  transition: opacity 0.25s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(200,160,48,0.15);
  border-color: var(--gold);
}

.feature-card:hover::before { opacity: 1; }

.feature-emoji { font-size: 36px; }

.feature-name {
  font-family: 'Cinzel', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.feature-desc {
  font-size: 13px;
  color: var(--subtext);
  line-height: 1.6;
}

.feature-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  margin-top: auto;
}

/* ── Page Header ── */
.page-header {
  background: linear-gradient(135deg, var(--dark-bg), #2A1000);
  padding: 48px 24px 56px;
  text-align: center;
}

.page-header-emoji { font-size: 48px; margin-bottom: 12px; display: block; }

.page-header h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(24px, 4vw, 36px);
  color: #fff;
  margin-bottom: 8px;
}

.page-header p {
  font-size: 15px;
  color: var(--dark-sub);
  max-width: 480px;
  margin: 0 auto;
}

/* ── Cards ── */
.card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 16px;
}

.card-title {
  font-family: 'Cinzel', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.card-sub {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--subtext);
  margin-bottom: 12px;
}

/* ── Mantra box ── */
.mantra-box {
  background: #FFF8E8;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin: 12px 0;
}

.devanagari {
  font-family: 'Noto Sans Devanagari', sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 6px;
}

.transliteration {
  font-size: 13px;
  font-style: italic;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 8px;
}

.copy-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--subtext);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.copy-btn:hover { background: var(--border); }

/* ── Bullet list ── */
.bullet-list { list-style: none; }

.bullet-list li {
  display: flex;
  gap: 8px;
  padding: 5px 0;
  font-size: 13px;
  color: var(--text);
  line-height: 1.6;
}

.bullet-list li::before {
  content: '•';
  color: var(--gold);
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Section label ── */
.label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--subtext);
  margin-bottom: 8px;
}

/* ── Hora table ── */
.hora-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.hora-row:last-child { border-bottom: none; }
.hora-row.venus { background: linear-gradient(90deg, rgba(255,153,51,0.1), transparent); }
.hora-row.today-hora { background: rgba(200,168,48,0.12); }

.hora-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.hora-num.venus { background: var(--saffron); color: #fff; }

.hora-time { font-size: 14px; font-weight: 600; color: var(--text); flex: 1; }
.hora-planet { font-size: 13px; color: var(--subtext); }
.hora-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
  background: var(--saffron);
  color: #fff;
}

/* ── City selector ── */
.city-selector {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  align-items: center;
}

.city-selector select {
  flex: 1;
  min-width: 200px;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
  font-size: 14px;
  font-family: 'Noto Sans', sans-serif;
  cursor: pointer;
}

.city-selector select:focus { outline: none; border-color: var(--gold); }

/* ── Verse card ── */
.verse-card {
  background: linear-gradient(135deg, var(--dark-bg), #2A1000);
  border-radius: 20px;
  padding: 32px;
  color: var(--dark-text);
  margin-bottom: 20px;
  text-align: center;
}

.verse-ref {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: 16px;
}

.verse-sanskrit {
  font-family: 'Noto Sans Devanagari', sans-serif;
  font-size: 20px;
  line-height: 1.8;
  color: #fff;
  margin-bottom: 20px;
}

.verse-translation {
  font-size: 16px;
  color: var(--dark-sub);
  font-style: italic;
  margin-bottom: 12px;
  line-height: 1.7;
}

.verse-meaning {
  font-size: 14px;
  color: #C8A060;
  line-height: 1.7;
}

.verse-nav {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}

/* ── Mantra grid ── */
.mantra-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.mantra-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.mantra-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(200,160,48,0.1);
}

.mantra-card .devanagari { font-size: 16px; }

.mantra-meaning {
  font-size: 12px;
  color: var(--subtext);
  line-height: 1.6;
  margin-top: 8px;
}

/* ── Planet card ── */
.planet-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 16px;
}

.planet-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.planet-emoji { font-size: 36px; }

.planet-title { font-family: 'Cinzel', serif; font-size: 17px; font-weight: 700; }
.planet-subtitle { font-size: 12px; color: var(--subtext); margin-top: 2px; }

.section-divider {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 8px;
  margin-bottom: 8px;
}

/* ── Disclaimer ── */
.disclaimer {
  background: #FFF8E8;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 12px;
  color: var(--subtext);
  line-height: 1.7;
  margin-top: 20px;
}

/* ── Form ── */
.form-group { margin-bottom: 16px; }

.form-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--subtext);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: #FDF8EC;
  color: var(--text);
  font-size: 15px;
  font-family: 'Noto Sans', sans-serif;
  transition: border-color 0.2s;
}

.form-input:focus { outline: none; border-color: var(--gold); }

.date-row { display: flex; gap: 8px; align-items: center; }
.date-sep { color: var(--subtext); font-weight: 700; font-size: 18px; }
.date-input { width: 64px; text-align: center; }
.year-input { width: 90px; text-align: center; }

/* ── App Download Banner ── */
.app-banner {
  background: linear-gradient(135deg, var(--dark-bg), #2A1000);
  border-radius: 20px;
  padding: 40px 32px;
  text-align: center;
  color: var(--dark-text);
  margin: 40px auto;
  max-width: 600px;
}

.app-banner h3 {
  font-family: 'Cinzel', serif;
  font-size: 22px;
  color: #fff;
  margin-bottom: 8px;
}

.app-banner p { color: var(--dark-sub); font-size: 14px; margin-bottom: 20px; }

/* ── Footer ── */
footer {
  background: var(--dark-bg);
  color: var(--dark-sub);
  text-align: center;
  padding: 32px 24px;
  font-size: 13px;
  border-top: 1px solid #2A1500;
}

footer a { color: var(--saffron); text-decoration: none; }
footer a:hover { text-decoration: underline; }

.footer-links { display: flex; gap: 20px; justify-content: center; margin-bottom: 12px; flex-wrap: wrap; }

/* ── Loading ── */
.loading {
  text-align: center;
  padding: 40px;
  color: var(--subtext);
  font-style: italic;
}

/* ── Tabs ── */
.tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px;
  gap: 4px;
}

.tab {
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--subtext);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}

.tab.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ── Responsive ── */
@media (max-width: 640px) {
  nav { padding: 0 16px; }
  .nav-links { display: none; }
  .section { padding: 48px 16px; }
  .hero { padding: 56px 16px 72px; }
  .page-header { padding: 36px 16px 44px; }
}

/* ── App Promo Banner ── */
.app-promo-banner {
  background: linear-gradient(135deg, #1A0E00 0%, #2A1000 50%, #1f0d00 100%);
  border-bottom: 2px solid var(--saffron);
  padding: 36px 24px;
  position: relative;
  overflow: hidden;
}

.app-promo-banner::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(255,153,51,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.app-promo-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.app-promo-icon {
  font-size: 56px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 16px rgba(255,153,51,0.5));
}

.app-promo-content { flex: 1; min-width: 260px; }

.app-promo-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: 6px;
}

.app-promo-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  line-height: 1.25;
}

.app-promo-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.app-promo-features li {
  font-size: 13px;
  color: var(--dark-sub);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}

.app-promo-cta {
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--saffron), #e07820) !important;
  color: #fff !important;
  font-size: 14px !important;
  padding: 14px 24px !important;
  box-shadow: 0 4px 20px rgba(255,153,51,0.35);
  border-radius: 14px !important;
  white-space: nowrap;
  text-align: center;
}

.app-promo-cta:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 28px rgba(255,153,51,0.45) !important;
}

/* ── Video Section ── */
.video-section { padding: 72px 24px; background: var(--dark-bg); }

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.video-card {
  background: var(--dark-card);
  border: 1.5px solid var(--dark-border);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(255,153,51,0.2);
}

.video-card video {
  width: 100%;
  display: block;
  background: #000;
}

.video-card-info {
  padding: 16px 20px;
}

.video-card-title {
  font-family: 'Cinzel', serif;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.video-card-sub { font-size: 12px; color: var(--dark-sub); }

.video-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.video-tab {
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  border: 1.5px solid var(--dark-border);
  background: transparent;
  color: var(--dark-sub);
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Noto Sans', sans-serif;
}

.video-tab.active, .video-tab:hover {
  background: var(--saffron);
  border-color: var(--saffron);
  color: #fff;
}

/* ── Screenshots Gallery ── */
.screenshots-section { padding: 72px 24px; background: var(--bg); }

.screenshots-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 12px 4px 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  scroll-snap-type: x mandatory;
}

.screenshots-scroll::-webkit-scrollbar { height: 4px; }
.screenshots-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.screenshot-item {
  flex-shrink: 0;
  width: 180px;
  scroll-snap-align: start;
}

.screenshot-item img {
  width: 100%;
  border-radius: 20px;
  border: 2.5px solid var(--border);
  box-shadow: 0 8px 24px rgba(200,160,48,0.15);
  display: block;
  transition: transform 0.2s, box-shadow 0.2s;
}

.screenshot-item img:hover {
  transform: scale(1.04);
  box-shadow: 0 16px 40px rgba(255,153,51,0.2);
}

.screenshot-caption {
  font-size: 11px;
  color: var(--subtext);
  text-align: center;
  margin-top: 8px;
}

/* ── Utils ── */
.text-gold { color: var(--gold); }
.text-saffron { color: var(--saffron); }
.text-sub { color: var(--subtext); }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: 4px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mt-16 { margin-top: 16px; }
.center { text-align: center; }
.flex { display: flex; }
.gap-8 { gap: 8px; }
.align-center { align-items: center; }
