/* ==========================================================================
   Tithra — one brand, two products.
   Brand + Auto Edit wear gold on near-black; Panchangam wears the app's own
   maroon on cream. The shell (header, footer, buttons, cards) is shared so the
   two never look like two different websites.
   ========================================================================== */

:root {
  --ink-0: #0b0907;
  --ink-1: #121019;
  --ink-2: #1b1710;
  --ink-3: #272016;
  --gold: #e0a83e;
  --gold-2: #f7d27a;
  --gold-3: #9a6a1c;
  --cream: #fdf6ec;
  --maroon: #5e1526;
  --maroon-2: #7d2137;
  --fg: #f3ecdd;
  --fg-dim: #bdb2a1;
  --fg-mute: #8d8474;
  --line: rgba(243, 236, 221, 0.12);
  --line-2: rgba(243, 236, 221, 0.22);
  --page: var(--ink-0);
  --card: rgba(255, 255, 255, 0.04);
  --radius: 16px;
  --shadow-1: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 24px 60px -28px rgba(0, 0, 0, 0.8);
  --glow: 0 18px 50px -22px rgba(224, 168, 62, 0.55);
  --sans: 'Hanken Grotesk', 'Segoe UI', system-ui, sans-serif;
  --display: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --telugu: 'Noto Sans Telugu', 'Nirmala UI', 'Gautami', sans-serif;
  --maxw: 1220px;
}

/* Panchangam pages: the app's palette, on cream. */
[data-theme='panchangam'] {
  --page: var(--cream);
  --fg: #2b1a12;
  --fg-dim: #6c5545;
  --fg-mute: #8d7767;
  --line: rgba(94, 21, 38, 0.14);
  --line-2: rgba(94, 21, 38, 0.26);
  --card: #ffffff;
  --shadow-2: 0 20px 46px -26px rgba(94, 21, 38, 0.45);
  --glow: 0 18px 44px -24px rgba(94, 21, 38, 0.4);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body:lang(te),
[lang='te'] {
  font-family: var(--telugu);
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

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

p {
  margin: 0 0 1rem;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.6rem;
  font-family: var(--display);
  line-height: 1.15;
  text-wrap: balance;
  font-weight: 700;
}

:lang(te) h1,
:lang(te) h2,
:lang(te) h3 {
  font-family: var(--telugu);
  line-height: 1.3;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: #17110a;
  padding: 10px 16px;
  z-index: 100;
}

.skip:focus {
  left: 8px;
  top: 8px;
}

.wrap {
  width: min(100% - 40px, var(--maxw));
  margin-inline: auto;
}

/* ---------- header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--page) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.head-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 76px;
}

.brand img {
  height: 46px;
  width: auto;
}

[data-theme='panchangam'] .brand img {
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25));
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 600;
  color: var(--fg-dim);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--fg);
  background: var(--card);
}

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

[data-theme='panchangam'] .nav-link.is-active {
  color: var(--maroon);
}

.nav-ctas {
  display: flex;
  gap: 8px;
  margin-left: 10px;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 42px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--card);
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
}

.nav-toggle span+span {
  margin-top: 5px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 12px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-sm {
  padding: 9px 14px;
  font-size: 14px;
  border-radius: 9px;
}

.btn-gold {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #1c1305;
  box-shadow: var(--glow);
}

.btn-gold:hover {
  background: linear-gradient(180deg, #ffe09a, #eab654);
}

.btn-maroon {
  background: linear-gradient(180deg, var(--maroon-2), var(--maroon));
  color: var(--cream);
  box-shadow: var(--glow);
}

.btn-ghost {
  border-color: var(--line-2);
  color: var(--fg);
  background: var(--card);
}

.btn-ghost:hover {
  border-color: var(--gold);
}

[data-theme='panchangam'] .btn-ghost:hover {
  border-color: var(--maroon);
}

/* ---------- sections ---------- */
.section {
  padding: clamp(56px, 8vw, 110px) 0;
}

.section-head {
  max-width: 60ch;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

[data-theme='panchangam'] .eyebrow {
  color: var(--maroon);
}

/* Telugu is an abugida: tracking pulls the conjuncts apart and it reads badly. */
:lang(te) .eyebrow,
:lang(te) .btn,
:lang(te) .foot-col h3 {
  letter-spacing: 0;
}

.section h2 {
  font-size: clamp(28px, 3.4vw, 44px);
}

.lead {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--fg-dim);
}

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

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(70% 60% at 78% 18%, rgba(224, 168, 62, 0.16), transparent 70%),
    radial-gradient(60% 50% at 10% 90%, rgba(125, 33, 55, 0.22), transparent 70%),
    var(--ink-0);
  border-bottom: 1px solid var(--line);
}

.slide-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

/* ---------- cards ---------- */
.grid {
  display: grid;
  gap: 22px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  position: relative;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-1);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--line-2);
  box-shadow: var(--shadow-2);
}

.card h3 {
  font-size: 20px;
}

.card p {
  color: var(--fg-dim);
  margin: 0;
  font-size: 15.5px;
}

.card-ico {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  margin-bottom: 14px;
  font-size: 22px;
  background: linear-gradient(180deg, rgba(224, 168, 62, 0.28), rgba(224, 168, 62, 0.08));
  border: 1px solid rgba(224, 168, 62, 0.35);
}

[data-theme='panchangam'] .card-ico {
  background: linear-gradient(180deg, rgba(94, 21, 38, 0.14), rgba(94, 21, 38, 0.05));
  border-color: rgba(94, 21, 38, 0.2);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--line-2);
  background: var(--card);
  color: var(--fg-dim);
}

.badge-soon {
  color: var(--gold-2);
  border-color: rgba(224, 168, 62, 0.5);
}

.badge-live {
  color: #4fd08a;
  border-color: rgba(79, 208, 138, 0.5);
}

/* ---------- device frames ---------- */
.phone {
  width: min(300px, 78vw);
  border-radius: 34px;
  padding: 10px;
  background: linear-gradient(160deg, #2a2118, #0c0a08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(224, 168, 62, 0.18);
}

.phone img {
  border-radius: 26px;
  display: block;
  width: 100%;
}

/* In the hero the phone must fit the viewport, so the shot is cropped from the
   bottom rather than pushing the slide taller than the screen. */
.hero .phone {
  width: min(272px, 70vw);
}

.hero .phone img {
  max-height: min(560px, 58vh);
  object-fit: cover;
  object-position: top;
}

.phone-row {
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
}

.phone-row .phone {
  width: min(258px, 70vw);
}

.phone-tilt {
  transform: perspective(1200px) rotateY(-9deg) rotateX(3deg);
}

.phone-tilt-r {
  transform: perspective(1200px) rotateY(9deg) rotateX(3deg);
}

/* A printed document (the muhurtham patrika), shown as paper, not a phone. */
.paper {
  margin: 0 auto;
  width: min(430px, 88vw);
  background: #fbf3e0;
  padding: 8px;
  border-radius: 6px;
  box-shadow: 0 28px 60px -28px rgba(60, 20, 10, 0.55), 0 0 0 1px rgba(122, 20, 34, 0.12);
}

.paper img {
  display: block;
  width: 100%;
  border-radius: 3px;
}

.paper figcaption {
  margin-top: 10px;
  font-size: 14px;
  text-align: center;
  color: #6b5a48;
}

.patrika-row {
  display: flex;
  gap: clamp(18px, 3vw, 36px);
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.patrika-row .paper {
  width: min(330px, 88vw);
}

.patrika-row .phone {
  width: min(260px, 70vw);
}

.appwin {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: #0c0a08;
  box-shadow: var(--shadow-2);
}

.appwin-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  background: #15110c;
  border-bottom: 1px solid var(--line);
}

.appwin-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #3a3229;
  display: block;
}

.appwin img {
  width: 100%;
  display: block;
}

.shot-caption {
  margin-top: 12px;
  font-size: 14px;
  color: var(--fg-mute);
  text-align: center;
}

/* ---------- split ---------- */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.split.reverse> :first-child {
  order: 2;
}

/* ---------- feature list ---------- */
.ticks {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ticks li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  color: var(--fg-dim);
}

.ticks li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(224, 168, 62, 0.16);
}

[data-theme='panchangam'] .ticks li::before {
  background: var(--maroon);
  box-shadow: 0 0 0 4px rgba(94, 21, 38, 0.12);
}

.ticks b {
  color: var(--fg);
}

/* ---------- price ---------- */
.price-box {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 14px;
  border: 1px solid rgba(224, 168, 62, 0.45);
  background: linear-gradient(180deg, rgba(224, 168, 62, 0.16), rgba(224, 168, 62, 0.04));
  margin-bottom: 18px;
}

.price-box .amount {
  font-family: var(--display);
  font-size: 38px;
  font-weight: 800;
  color: var(--gold-2);
}

.price-box .unit {
  color: var(--fg-dim);
  font-size: 15px;
}

/* ---------- video ---------- */
.video-frame {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-2);
  background: #000;
}

.video-frame video {
  width: 100%;
  display: block;
}

.video-fallback {
  padding: 18px;
  text-align: center;
  color: var(--fg-dim);
  font-size: 15px;
}

/* ---------- faq ---------- */
.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 12px;
  background: var(--card);
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
}

.faq p {
  margin: 10px 0 0;
  color: var(--fg-dim);
}

/* ---------- status note ---------- */
.status-note {
  border: 1px solid rgba(224, 168, 62, 0.4);
  background: rgba(224, 168, 62, 0.08);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 15px;
  color: var(--fg-dim);
  margin: 0;
}

[data-theme='panchangam'] .status-note {
  border-color: rgba(94, 21, 38, 0.25);
  background: rgba(94, 21, 38, 0.06);
}

.status-note strong {
  color: var(--fg);
}

/* ---------- footer ---------- */
.site-foot {
  border-top: 1px solid var(--line);
  background: var(--ink-0);
  color: var(--fg-dim);
  padding: clamp(40px, 6vw, 72px) 0 26px;
}

[data-theme='panchangam'] .site-foot {
  color: #cdbfae;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.foot-brand img {
  height: 52px;
  width: auto;
}

.foot-tag {
  margin-top: 14px;
  font-size: 15px;
  color: #b6a894;
}

.foot-tag span {
  color: #877c6c;
}

.foot-col h3 {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.foot-col a {
  display: block;
  padding: 5px 0;
  font-size: 15px;
  color: #c4b8a6;
}

.foot-col a:hover {
  color: var(--gold-2);
}

.foot-note {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 16px;
}

.foot-note .copy {
  margin: 0;
  font-size: 14px;
  color: #8d8474;
}

.site-foot .status-note {
  color: #cdbfae;
}

/* ---------- reveal ---------- */
.will-reveal {
  opacity: 0;
  transform: translateY(22px);
}

.revealed {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav-link {
    padding: 9px 9px;
    font-size: 14px;
  }

  .nav-ctas .btn {
    padding: 8px 11px;
    font-size: 13px;
  }
}

@media (max-width: 900px) {
  body {
    font-size: 16px;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .nav {
    position: fixed;
    inset: 76px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 16px 20px 26px;
    background: var(--page);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-2);
    transform: translateY(-14px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-open .nav {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .nav-link {
    padding: 13px 12px;
    font-size: 16px;
  }

  .nav-ctas {
    margin: 10px 0 0;
    flex-direction: column;
  }

  .nav-ctas .btn {
    justify-content: center;
    padding: 13px;
    font-size: 15px;
  }

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

  .phone-tilt,
  .phone-tilt-r {
    transform: none;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

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

  .split.reverse> :first-child {
    order: 0;
  }

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

@media (max-width: 560px) {
  .wrap {
    width: min(100% - 28px, var(--maxw));
  }

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

  .btn {
    width: 100%;
  }

  .slide-cta .btn {
    width: 100%;
  }

  .price-box {
    width: 100%;
    justify-content: center;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }

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

/* ==========================================================================
   v2 — tithra.com is the Panchangam site. Auto Edit is one link in the menu.
   ========================================================================== */

/* The other product's link: deliberately not gold, so it reads as a door out
   of the Panchangam site rather than another Panchangam button. */
.btn-other {
  background: #17120c;
  color: #f7d27a;
  border-color: rgba(224, 168, 62, 0.55);
}

.btn-other:hover {
  background: #221a11;
  border-color: var(--gold);
}

.btn-other.is-active {
  background: var(--gold);
  color: #1c1305;
}

/* ---------- panchangam hero ---------- */
.p-hero {
  position: relative;
  overflow: hidden;
  color: #fdf1e0;
  background:
    radial-gradient(120% 90% at 85% 10%, rgba(224, 168, 62, 0.35), transparent 60%),
    radial-gradient(90% 80% at 10% 100%, rgba(41, 8, 18, 0.9), transparent 70%),
    linear-gradient(160deg, #6d1a2c 0%, #4a1020 55%, #2d0a14 100%);
}

.p-hero::after {
  content: '';
  position: absolute;
  inset: auto 0 -1px;
  height: 90px;
  background: linear-gradient(180deg, transparent, var(--cream));
  pointer-events: none;
}

.p-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
  padding: clamp(46px, 6vw, 86px) 0 clamp(70px, 8vw, 120px);
}

.p-hero h1 {
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.22;
  color: #fff;
  margin-bottom: 18px;
}

.p-hero h1 .gold {
  background: linear-gradient(180deg, #ffe3a6, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.p-hero .lead {
  color: #f0dcc6;
}

.p-hero .eyebrow {
  color: var(--gold-2);
}

.p-hero .status-note {
  margin-top: 22px;
  border-color: rgba(255, 214, 122, 0.4);
  background: rgba(0, 0, 0, 0.25);
  color: #f0dcc6;
}

.p-hero .status-note strong {
  color: #fff;
}

/* the mandala watermark that gives the panel depth */
.mandala {
  position: absolute;
  z-index: 1;
  width: min(720px, 80vw);
  height: min(720px, 80vw);
  right: -180px;
  top: -220px;
  opacity: 0.13;
  fill: none;
  stroke: var(--gold-2);
  stroke-width: 0.6;
  pointer-events: none;
}

/* phone, floating chips */
.hero-device {
  position: relative;
  display: grid;
  place-items: center;
  perspective: 1200px;
}

.hero-device .phone {
  transform: rotateY(-12deg) rotateX(4deg) translateZ(0);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 214, 122, 0.25);
}

.float-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255, 248, 238, 0.92);
  color: #3a1b12;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.65);
  font-size: 14px;
  font-weight: 600;
  backdrop-filter: blur(6px);
  animation: floaty 6s ease-in-out infinite;
}

.float-card b {
  display: block;
  font-size: 16px;
  color: #6d1a2c;
}

.float-card.c1 {
  left: -6%;
  top: 16%;
}

.float-card.c2 {
  right: -4%;
  top: 46%;
  animation-delay: 1.6s;
}

.float-card.c3 {
  left: 2%;
  bottom: 10%;
  animation-delay: 3.1s;
}

@keyframes floaty {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 900px) {
  .p-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .p-hero .slide-cta,
  .p-hero .lead {
    justify-content: center;
    margin-inline: auto;
  }

  .hero-device .phone {
    transform: none;
  }

  .float-card {
    display: none;
  }

  .mandala {
    right: -40%;
    top: -10%;
  }
}

/* ---------- trust strip ---------- */
.trust {
  position: relative;
  z-index: 3;
  margin-top: -46px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.trust div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  box-shadow: 0 18px 40px -30px rgba(94, 21, 38, 0.7);
}

.trust b {
  display: block;
  font-size: 16px;
  color: var(--maroon);
  margin-bottom: 4px;
}

.trust span {
  font-size: 14px;
  color: var(--fg-dim);
}

@media (max-width: 900px) {
  .trust {
    grid-template-columns: 1fr 1fr;
    margin-top: -30px;
  }
}

/* ---------- steps ---------- */
.steps {
  counter-reset: step;
}

.steps .card::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 12px;
  border-radius: 50%;
  font-family: var(--display);
  font-weight: 700;
  color: var(--cream);
  background: linear-gradient(180deg, var(--maroon-2), var(--maroon));
}


/* ============================================================
   TOP SCROLL PROGRESS BAR
   ============================================================ */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #d4a03c, #e5b95f, #aa1e2e);
  z-index: 1001;
  pointer-events: none;
  transition: width 0.08s ease-out;
}

/* ============================================================
   GLOBAL MOTION SYSTEM (.tithra-reveal, .tithra-scale, etc.)
   ============================================================ */
.tithra-reveal {
  opacity: 0;
  transition-property: opacity, transform;
  transition-duration: 0.85s;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.tithra-reveal-up {
  transform: translateY(28px);
}

.tithra-reveal-down {
  transform: translateY(-28px);
}

.tithra-reveal-left {
  transform: translateX(-32px);
}

.tithra-reveal-right {
  transform: translateX(32px);
}

.tithra-scale {
  transform: scale(0.92);
}

.tithra-reveal.is-revealed {
  opacity: 1;
  transform: none;
}

/* Stagger delay utilities */
.tithra-reveal[data-reveal-delay="100"] {
  transition-delay: 0.1s;
}

.tithra-reveal[data-reveal-delay="150"] {
  transition-delay: 0.15s;
}

.tithra-reveal[data-reveal-delay="200"] {
  transition-delay: 0.2s;
}

.tithra-reveal[data-reveal-delay="250"] {
  transition-delay: 0.25s;
}

.tithra-reveal[data-reveal-delay="300"] {
  transition-delay: 0.3s;
}

.tithra-reveal[data-reveal-delay="400"] {
  transition-delay: 0.4s;
}

.tithra-reveal[data-reveal-delay="450"] {
  transition-delay: 0.45s;
}

.tithra-reveal[data-reveal-delay="550"] {
  transition-delay: 0.55s;
}

.tithra-reveal[data-reveal-delay="700"] {
  transition-delay: 0.7s;
}

/* ============================================================
   SECTION TRANSITION CURVES (SEAMLESS CONTINUITY)
   ============================================================ */
.scene-transition-curve {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  pointer-events: none;
  z-index: 15;
}

.scene-transition-curve svg {
  display: block;
  width: 100%;
  height: clamp(40px, 5vw, 75px);
}

.scene-transition-curve.to-cream {
  background: #0d0908;
  margin-top: -1px;
}

.scene-transition-curve.to-cosmic {
  background: #fdfbf7;
  margin-top: -1px;
}

.scene-transition-curve.from-cosmic {
  background: #090514;
  margin-top: -1px;
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
.site-head {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 248, 242, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(94, 21, 38, 0.12);
  transition: transform 0.28s ease, background 0.28s ease;
}

.head-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 74px;
}

.brand .brand-logo {
  height: 44px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease;
}

.brand .brand-logo:hover {
  transform: scale(1.03);
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  padding: 8px 11px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--fg-dim);
  white-space: nowrap;
  transition: color 0.18s ease, background 0.18s ease;
}

.nav-link:hover {
  color: var(--maroon);
  background: rgba(94, 21, 38, 0.06);
}

.nav-link.is-active {
  color: var(--maroon);
  font-weight: 700;
  background: rgba(94, 21, 38, 0.08);
}

.head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 10px;
  flex-shrink: 0;
}

.head-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(94, 21, 38, 0.15);
  background: rgba(255, 255, 255, 0.85);
  color: var(--maroon);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.head-search-btn:hover {
  background: #ffffff;
  border-color: var(--maroon);
  transform: scale(1.06);
}

.head-social {
  display: flex;
  align-items: center;
  gap: 6px;
}

.head-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(94, 21, 38, 0.14);
  background: rgba(255, 255, 255, 0.7);
  color: var(--fg-dim);
  transition: all 0.2s ease;
}

.head-social a:hover {
  background: var(--maroon);
  color: #ffffff;
  border-color: var(--maroon);
  transform: translateY(-1px);
}

.head-social svg {
  width: 15px;
  height: 15px;
  max-width: 15px;
  max-height: 15px;
}

.head-cta-app {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--maroon-2), var(--maroon));
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(94, 21, 38, 0.25);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}

.head-cta-app:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(94, 21, 38, 0.35);
  background: linear-gradient(135deg, #8c263e, var(--maroon));
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 40px;
  border: 1px solid rgba(94, 21, 38, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 9px 8px;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--maroon);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ============================================================
   SEARCH MODAL
   ============================================================ */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: clamp(60px, 12vh, 120px);
  background: rgba(11, 9, 7, 0.68);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.search-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.search-dialog {
  position: relative;
  z-index: 2;
  width: min(620px, 92vw);
  background: #ffffff;
  border: 1px solid rgba(94, 21, 38, 0.22);
  border-radius: 20px;
  padding: 24px 28px;
  box-shadow: 0 28px 70px -15px rgba(0, 0, 0, 0.45);
}

.search-input-box {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 2px solid var(--maroon);
  padding-bottom: 10px;
}

.search-input-box svg {
  color: var(--maroon);
  flex-shrink: 0;
}

.search-input-box input[type="search"] {
  flex: 1;
  border: none;
  outline: none;
  font-size: 18px;
  font-family: var(--telugu);
  color: #2b1a12;
  background: transparent;
}

.search-input-box input::placeholder {
  color: #9c8a7e;
  font-size: 16px;
}

.search-close-btn {
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: #7b6658;
  cursor: pointer;
  padding: 4px;
  transition: color 0.15s ease;
}

.search-close-btn:hover {
  color: var(--maroon);
}

.search-quick-links {
  margin-top: 18px;
}

.quick-label {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #837265;
  margin-bottom: 10px;
}

.quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-tags a {
  display: inline-block;
  padding: 5px 12px;
  background: #fdf6ec;
  border: 1px solid rgba(94, 21, 38, 0.15);
  border-radius: 999px;
  font-size: 13px;
  font-family: var(--telugu);
  color: var(--maroon);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.quick-tags a:hover {
  background: #faeedb;
  border-color: var(--maroon);
}

/* ============================================================
   1. HERO — CLEAN CINEMATIC SPLIT (40% BRAND / 60% VISUAL)
   ============================================================ */
.hero-cinematic {
  position: relative;
  min-height: calc(100svh - 80px);
  padding: clamp(48px, 6vh, 84px) 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(circle at 70% 40%, #1f1410 0%, #0d0908 80%);
}

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(90deg, rgba(13, 9, 8, 0.98) 0%, rgba(13, 9, 8, 0.82) 42%, rgba(13, 9, 8, 0.4) 75%, rgba(13, 9, 8, 0.7) 100%),
    linear-gradient(0deg, rgba(13, 9, 8, 0.95) 0%, transparent 25%);
  pointer-events: none;
}

.hero-atmosphere-mist {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: radial-gradient(circle at 75% 25%, rgba(229, 185, 95, 0.08) 0%, transparent 60%);
  pointer-events: none;
  animation: heroMistPulse 8s ease-in-out infinite alternate;
}

@keyframes heroMistPulse {
  0% {
    opacity: 0.6;
    transform: scale(1);
  }

  100% {
    opacity: 1;
    transform: scale(1.05);
  }
}

.hero-content-wrap {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(0, 42%) minmax(0, 58%);
  gap: clamp(32px, 4.5vw, 64px);
  align-items: center;
  width: 100%;
  padding: clamp(10px, 2vh, 30px) 0;
}

.hero-brand-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: #ffffff;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(224, 168, 62, 0.16);
  border: 1px solid rgba(224, 168, 62, 0.35);
  color: var(--gold-2);
  align-self: flex-start;
  letter-spacing: 0.05em;
}

.badge-sparkle {
  color: var(--gold-2);
  font-size: 14px;
}

.hero-main-title {
  font-size: clamp(34px, 4.4vw, 58px);
  font-weight: 800;
  line-height: 1.24;
  color: #ffffff;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  margin: 0;
}

.title-line {
  display: block;
}

.gold-gradient {
  background: linear-gradient(180deg, #ffe5a3, #e5b95f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead-text {
  font-size: clamp(16px, 1.25vw, 19px);
  color: #ebdacf;
  line-height: 1.68;
  max-width: 52ch;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-actions-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  font-size: 15.5px;
  font-weight: 700;
  border-radius: 999px;
  background: linear-gradient(135deg, #e5b95f, #c79430) !important;
  color: #1a1205 !important;
  box-shadow: 0 6px 20px rgba(229, 185, 95, 0.35);
  border: 1px solid rgba(255, 235, 175, 0.4);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-cta-btn:hover {
  background: linear-gradient(135deg, #f0ca74, #d4a03c) !important;
  color: #120c02 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(229, 185, 95, 0.5);
}

.hero-app-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.35) !important;
  text-decoration: none;
  transition: all 0.2s ease;
}

.hero-app-btn svg {
  fill: currentColor !important;
  flex-shrink: 0;
}

.hero-app-btn:hover {
  background: rgba(255, 255, 255, 0.22) !important;
  border-color: #e5b95f !important;
  color: #ffe5a3 !important;
  transform: translateY(-2px);
}

.hero-slider-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.hero-nav-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 15px;
}

.hero-nav-arrow:hover {
  background: var(--gold);
  color: #1c1305;
  transform: scale(1.08);
}

.hero-nav-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 24px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
  padding: 0;
}

.hero-dot.is-active {
  width: 36px;
  background: var(--gold-2);
}

/* ============================================================
   HERO RIGHT: CINEMATIC VISUAL SHOWCASE STAGE
   ============================================================ */
.hero-visual-col {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.hero-visual-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 520px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 24px 60px -15px rgba(0, 0, 0, 0.75),
    0 0 45px rgba(224, 168, 62, 0.16);
  border: 1.5px solid rgba(224, 168, 62, 0.35);
  background: #140d0a;
}

.hero-visual-stage .hero-bg-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-visual-stage .hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.85s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.85s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  overflow: hidden;
}

.hero-visual-stage .hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero-visual-stage .hero-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.02);
  transition: transform 6s ease-out;
}

.hero-visual-stage .hero-slide.is-active .hero-slide-img {
  transform: scale(1.06);
}

.hero-slide-caption {
  position: absolute;
  bottom: 16px;
  left: 16px;
  padding: 6px 14px;
  background: rgba(12, 8, 7, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffe5a3;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid rgba(224, 168, 62, 0.3);
  letter-spacing: 0.02em;
  pointer-events: none;
  z-index: 5;
}

/* ============================================================
   PANCHANGAM DEDICATED SECTION (BELOW HERO)
   ============================================================ */
.today-panchangam-section {
  position: relative;
  background: #fdfbf7;
  padding: clamp(60px, 7vw, 95px) 0;
  scroll-margin-top: 80px;
  overflow: hidden;
  border-top: 1px solid rgba(224, 168, 62, 0.18);
}

.panchangam-section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto clamp(28px, 4vw, 44px);
}

.panchangam-section-head .section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--maroon);
  background: rgba(94, 21, 38, 0.06);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

.panchangam-section-head .eyebrow-sparkle {
  color: var(--gold);
}

.panchangam-section-head .section-title {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 800;
  color: var(--maroon);
  margin: 0 0 10px;
  line-height: 1.25;
}

.panchangam-section-head .section-lead {
  font-size: clamp(15px, 1.2vw, 17px);
  color: #5c4d42;
  line-height: 1.6;
  margin: 0;
}

.today-panchangam-card-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
}

.hero-panchangam-card,
.standalone-panchangam-card {
  width: 100%;
  max-width: 620px;
  background: #ffffff;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1.5px solid rgba(224, 168, 62, 0.45);
  border-radius: 22px;
  padding: clamp(20px, 3vw, 28px);
  box-shadow:
    0 16px 45px -10px rgba(94, 21, 38, 0.12),
    0 0 30px rgba(224, 168, 62, 0.08);
  color: #1a120c;
  animation: none;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(94, 21, 38, 0.1);
}

.header-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  background: rgba(30, 130, 60, 0.12);
  border: 1px solid rgba(30, 130, 60, 0.28);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  color: #166534;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 8px #16a34a;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(1.3);
  }
}

.city-select {
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid rgba(94, 21, 38, 0.2);
  background: #ffffff;
  color: #26160f;
  font-family: var(--telugu);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s ease;
}

.city-select:focus {
  border-color: var(--maroon);
}

.date-summary {
  background: #fdf8f0;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
  border: 1px solid rgba(224, 168, 62, 0.25);
}

.panch-card-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--maroon);
  margin: 0 0 2px;
}

.current-date-str {
  font-size: 14px;
  font-weight: 700;
  color: #42291d;
  margin: 0 0 2px;
}

.telugu-year-sub {
  font-size: 12px;
  color: #695242;
  margin: 0;
  line-height: 1.4;
}

.panchangam-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.grid-item {
  background: #faf4ec;
  border: 1px solid rgba(94, 21, 38, 0.06);
  border-radius: 9px;
  padding: 7px 11px;
}

.grid-item.highlight-item {
  background: #fff8ee;
  border-color: rgba(224, 168, 62, 0.35);
}

.grid-item.sun-item {
  background: #fbf5ea;
}

.grid-item.alert-item {
  background: #fdf2f2;
  border-color: rgba(194, 24, 43, 0.16);
}

.grid-item.alert-item .field-value {
  color: #aa1e2e;
}

.field-label {
  font-size: 11.5px;
  color: #796657;
  font-weight: 600;
  display: block;
  margin-bottom: 1px;
}

.field-value {
  font-size: 14px;
  font-weight: 700;
  color: #26160f;
  display: block;
}

.field-sub {
  font-size: 11px;
  color: #796657;
  display: block;
  margin-top: 1px;
}

.abhijit-banner {
  background: linear-gradient(90deg, #f4fbf6, #eaf6ee);
  border: 1px solid rgba(30, 130, 60, 0.25);
  border-radius: 9px;
  padding: 7px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: #1e3a24;
  margin-bottom: 12px;
}

.abhijit-label {
  font-weight: 600;
}

.abhijit-time {
  font-weight: 700;
  color: #15803d;
}

.panchangam-full-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 9px;
  background: var(--maroon);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  transition: background 0.18s ease, transform 0.15s ease;
}

.panchangam-full-link:hover {
  background: #7a1c32;
  transform: translateY(-1px);
}

/* HERO SCROLL CUE */
.hero-scroll-cue {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: rgba(229, 185, 95, 0.85);
  font-size: 12px;
  font-weight: 600;
  pointer-events: none;
  animation: cuePulse 2.8s ease-in-out infinite;
  transition: opacity 0.3s ease;
}

.cue-arrow {
  font-size: 15px;
}

@keyframes cuePulse {

  0%,
  100% {
    transform: translate(-50%, 0);
    opacity: 0.7;
  }

  50% {
    transform: translate(-50%, 6px);
    opacity: 1;
    color: var(--gold-2);
  }
}

/* ============================================================
   2. MAIN FEATURES — CINEMATIC SPOTLIGHT SHOWCASE
   ============================================================ */
.features-spotlight-section {
  position: relative;
  background: #fdfbf7;
  padding: clamp(60px, 8vw, 105px) 0;
  overflow: hidden;
  transition: background 0.5s ease;
  scroll-margin-top: 80px;
}

.features-ambient-glow {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(circle, rgba(212, 160, 60, 0.08) 0%, transparent 70%);
  pointer-events: none;
  transition: background 0.6s ease;
}

.section-head-split {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: clamp(28px, 4vw, 44px);
  flex-wrap: wrap;
}

.features-controls-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.feature-counter {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--maroon);
  background: rgba(94, 21, 38, 0.06);
  padding: 6px 14px;
  border-radius: 999px;
  display: inline-flex;
  gap: 4px;
}

.feature-counter .divider {
  color: #a89a8c;
}

.carousel-nav-arrows {
  display: none;
}

.features-carousel-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.2vw, 28px);
  width: 100%;
  padding: 8px 0 16px;
}

.feature-slide-card {
  width: 100%;
  background: #ffffff;
  border: 1px solid rgba(94, 21, 38, 0.12);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 24px -10px rgba(94, 21, 38, 0.1);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  display: flex;
  flex-direction: column;
}

@media (hover: hover) and (pointer: fine) {
  .feature-slide-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 16px 36px -10px rgba(94, 21, 38, 0.18), 0 0 20px rgba(224, 168, 62, 0.12);
    border-color: rgba(212, 160, 60, 0.5);
  }
  .feature-slide-card:hover .card-media-box img {
    transform: scale(1.02);
  }
}

.feature-slide-card:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 160, 60, 0.35);
}

.feature-slide-card.is-active {
  border-color: rgba(212, 160, 60, 0.5);
}

.card-media-box {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #fcf8f2;
}

.card-media-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 11px;
  background: rgba(94, 21, 38, 0.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 7px;
  letter-spacing: 0.03em;
}

.card-content-box {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-index-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 6px;
  display: block;
}

.card-content-box h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--maroon);
  margin-bottom: 8px;
}

.card-content-box p {
  font-size: 14.5px;
  color: #5d4a3e;
  line-height: 1.62;
  margin: 0 0 16px;
  flex: 1;
}

.card-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--maroon);
  transition: gap 0.2s ease, color 0.2s ease;
}

.card-cta-link:hover {
  gap: 10px;
  color: #8c263e;
}

/* ============================================================
   3. ASTROLOGY / COSMIC SECTION — IMMERSIVE CELESTIAL EXPERIENCE
   ============================================================ */
.cosmic-astrology-section {
  position: relative;
  background: radial-gradient(circle at 50% 20%, #160824 0%, #090514 65%, #05030a 100%);
  color: #ffffff;
  padding: clamp(65px, 9vw, 115px) 0;
  overflow: hidden;
}

.cosmic-starfield {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 15% 20%, rgba(255, 235, 175, 0.8) 50%, transparent 100%),
    radial-gradient(1px 1px at 45% 10%, rgba(255, 255, 255, 0.7) 50%, transparent 100%),
    radial-gradient(2px 2px at 70% 35%, rgba(224, 168, 62, 0.75) 50%, transparent 100%),
    radial-gradient(1px 1px at 85% 15%, rgba(255, 255, 255, 0.6) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 30% 70%, rgba(255, 235, 175, 0.7) 50%, transparent 100%),
    radial-gradient(1px 1px at 60% 85%, rgba(255, 255, 255, 0.5) 50%, transparent 100%),
    radial-gradient(2px 2px at 90% 75%, rgba(224, 168, 62, 0.8) 50%, transparent 100%);
  background-size: 600px 600px;
  opacity: 0.55;
  pointer-events: none;
}

.cosmic-nebula-glow {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -30%);
  width: 700px;
  height: 500px;
  background: radial-gradient(circle, rgba(140, 38, 62, 0.16) 0%, rgba(59, 29, 92, 0.12) 50%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}

.cosmic-container {
  position: relative;
  z-index: 5;
}

.text-gold {
  color: var(--gold-2) !important;
}

.text-cream {
  color: #e5d7c8 !important;
}

/* Cosmic Tabs */
.cosmic-tabs-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.cosmic-tabs {
  display: inline-flex;
  padding: 5px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(224, 168, 62, 0.25);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.cosmic-tab {
  padding: 10px 24px;
  border-radius: 999px;
  background: none;
  border: none;
  color: #d1bfae;
  font-family: var(--telugu);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.cosmic-tab.is-active {
  background: linear-gradient(135deg, var(--maroon-2), var(--maroon));
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(94, 21, 38, 0.4);
}

/* Tab Panels */
.cosmic-panel {
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.cosmic-panel.is-active {
  display: block;
  opacity: 1;
}

/* ZODIAC ORBIT STAGE (DUAL COMPOSITION) */
.zodiac-orbit-stage {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  margin-bottom: 36px;
}

.zodiac-wheel-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.zodiac-wheel-disc {
  position: relative;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 15, 45, 0.8) 0%, rgba(9, 5, 20, 0.95) 80%);
  border: 1.5px solid rgba(224, 168, 62, 0.35);
  box-shadow: 0 0 40px rgba(224, 168, 62, 0.15);
  display: grid;
  place-items: center;
}

.zodiac-rings-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.zodiac-center-core {
  position: relative;
  z-index: 4;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: radial-gradient(circle, #e5b95f 0%, #aa7722 100%);
  box-shadow: 0 0 25px rgba(229, 185, 95, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #120902;
  font-weight: 800;
}

.core-symbol {
  font-size: 28px;
  line-height: 1;
}

.core-degree {
  font-size: 11px;
  font-family: var(--sans);
  letter-spacing: 0.05em;
  font-weight: 700;
  margin-top: 2px;
}

.zodiac-needle {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.needle-tip {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  color: #ffe5a3;
  font-size: 16px;
  text-shadow: 0 0 8px #ffe5a3;
}

/* RASHI DETAIL CARD */
.rashi-detail-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(224, 168, 62, 0.3);
  border-radius: 20px;
  padding: clamp(24px, 3.5vw, 36px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.rashi-card-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(224, 168, 62, 0.2);
}

.rashi-badge-orbit {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(224, 168, 62, 0.25), rgba(94, 21, 38, 0.4));
  border: 1.5px solid rgba(224, 168, 62, 0.5);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(224, 168, 62, 0.25);
}

.rashi-current-glyph {
  font-size: 28px;
  color: var(--gold-2);
}

.rashi-stage-name {
  font-size: 25px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px;
}

.rashi-stage-sub {
  font-size: 14px;
  color: #e5b95f;
  margin: 0;
}

.rashi-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.info-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 14px;
}

.pill-lbl {
  font-size: 11.5px;
  color: #c4b09e;
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}

.pill-val {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
}

.rashi-stage-desc {
  font-size: 15px;
  color: #ddcfc2;
  line-height: 1.68;
  margin: 0 0 24px;
}

.rashi-explore-btn {
  padding: 12px 26px;
  font-size: 15px;
}

/* 12 RASHI SELECTION STRIP */
.rashis-selector-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.rashis-selector-strip::-webkit-scrollbar {
  display: none;
}

.rashi-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(224, 168, 62, 0.2);
  color: #dfd1c3;
  font-family: var(--telugu);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rashi-chip:hover {
  background: rgba(224, 168, 62, 0.15);
  border-color: rgba(224, 168, 62, 0.4);
  color: #ffffff;
  transform: translateY(-2px);
}

.rashi-chip.is-active {
  background: linear-gradient(135deg, rgba(224, 168, 62, 0.3), rgba(94, 21, 38, 0.5));
  border-color: var(--gold-2);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 0 16px rgba(224, 168, 62, 0.3);
}

.chip-glyph {
  font-size: 18px;
  color: var(--gold-2);
}

/* NAVAGRAHAS GRID */
.navagrahas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.graha-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(224, 168, 62, 0.18);
  border-radius: 16px;
  padding: 22px 20px;
  transition: all 0.25s ease;
}

.graha-card:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(224, 168, 62, 0.4);
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.graha-symbol {
  font-size: 28px;
  margin-bottom: 8px;
}

.graha-card h4 {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px;
}

.graha-role {
  font-size: 12.5px;
  color: var(--gold-2);
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.graha-card p {
  font-size: 13.5px;
  color: #c7b8aa;
  line-height: 1.55;
  margin: 0;
}

/* COSMIC TOOLS BAR */
.cosmic-tools-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cosmic-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(224, 168, 62, 0.25);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.cosmic-tool-btn:hover {
  background: var(--maroon);
  border-color: var(--gold);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(94, 21, 38, 0.35);
}

/* ============================================================
   4. PANCHANGAM QUICK TOOLS — HORIZONTAL INTERACTIVE RAIL
   ============================================================ */
.quick-tools-section {
  background: #faf5ed;
  padding: clamp(38px, 5vw, 56px) 0;
  border-top: 1px solid rgba(94, 21, 38, 0.08);
  border-bottom: 1px solid rgba(94, 21, 38, 0.08);
}

.quick-tools-rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 4px 16px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.quick-tools-rail::-webkit-scrollbar {
  display: none;
}

.quick-tool-card {
  flex: 0 0 200px;
  scroll-snap-align: start;
  background: #ffffff;
  border: 1px solid rgba(94, 21, 38, 0.12);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(94, 21, 38, 0.04);
}

.quick-tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(94, 21, 38, 0.12);
  border-color: var(--maroon);
}

.quick-tool-card.is-active {
  border-color: rgba(224, 168, 62, 0.6);
  background: #fffdfa;
}

.tool-card-icon {
  font-size: 26px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.quick-tool-card:hover .tool-card-icon {
  transform: scale(1.15) rotate(6deg);
}

.tool-card-body h4 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--maroon);
  margin: 0 0 2px;
}

.tool-card-body p {
  font-size: 12px;
  color: #796657;
  margin: 0;
  white-space: nowrap;
}

/* ============================================================
   5. YOUTUBE — MEDIA PLATFORM EXPERIENCE
   ============================================================ */
.youtube-media-section {
  background: #ffffff;
  padding: clamp(60px, 8vw, 100px) 0;
}

.btn-youtube-subscribe {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: #cc0000;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(204, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-youtube-subscribe:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(204, 0, 0, 0.4);
  background: #e60000;
}

.yt-platform-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(24px, 4vw, 36px);
  align-items: stretch;
  margin-bottom: 36px;
}

.yt-featured-hero-card {
  background: #fdfbf7;
  border: 1px solid rgba(94, 21, 38, 0.14);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(94, 21, 38, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.yt-featured-hero-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 42px rgba(94, 21, 38, 0.16);
}

.yt-featured-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
  overflow: hidden;
}

.yt-featured-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.yt-featured-hero-card:hover .yt-featured-thumb img {
  transform: scale(1.05);
}

.yt-play-btn-large {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(204, 0, 0, 0.92);
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 0 25px rgba(204, 0, 0, 0.6);
  transition: transform 0.25s ease, background 0.25s ease;
}

.yt-featured-hero-card:hover .yt-play-btn-large {
  transform: translate(-50%, -50%) scale(1.12);
  background: #e60000;
}

.yt-featured-info {
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.yt-secondary-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.yt-video-card {
  background: #fdfbf7;
  border: 1px solid rgba(94, 21, 38, 0.12);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.yt-video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(94, 21, 38, 0.12);
}

.yt-thumb-box {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.yt-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.yt-video-card:hover .yt-thumb-box img {
  transform: scale(1.05);
}

.yt-play-trigger {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(204, 0, 0, 0.9);
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 0 18px rgba(204, 0, 0, 0.5);
  transition: transform 0.2s ease, background 0.2s ease;
}

.yt-video-card:hover .yt-play-trigger {
  transform: translate(-50%, -50%) scale(1.1);
  background: #e60000;
}

.yt-duration-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  padding: 3px 8px;
  background: rgba(0, 0, 0, 0.8);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 5px;
}

.yt-card-body {
  padding: 16px 18px;
}

.yt-date-tag {
  font-size: 12px;
  color: #8c7668;
  display: block;
  margin-bottom: 4px;
}

.yt-card-title {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--maroon);
  line-height: 1.4;
  margin: 0 0 6px;
}

.yt-card-desc {
  font-size: 13.5px;
  color: #615044;
  line-height: 1.55;
  margin: 0;
}

.center-cta-wrap {
  text-align: center;
  margin-top: 10px;
}

/* YOUTUBE MODAL PLAYER */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 8, 7, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.video-modal-dialog {
  position: relative;
  z-index: 5;
  width: min(880px, 92vw);
  background: #000000;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(224, 168, 62, 0.3);
}

.video-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 24px;
  line-height: 1;
  transition: background 0.18s ease;
}

.video-modal-close:hover {
  background: var(--maroon);
}

.video-iframe-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.video-iframe-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================================
   6. BLOG / KNOWLEDGE MAGAZINE — తిథ్ర జ్ఞాన భాండాగారం
   ============================================================ */
.blog-magazine-section {
  background: #fdfbf7;
  padding: clamp(65px, 9vw, 110px) 0;
}

.blog-featured-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  background: #ffffff;
  border: 1px solid rgba(94, 21, 38, 0.12);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 36px -10px rgba(94, 21, 38, 0.1);
  margin-bottom: 38px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-featured-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px -12px rgba(94, 21, 38, 0.18);
}

.featured-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #fcf8f2;
}

.featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-featured-card:hover .featured-media img {
  transform: scale(1.05);
}

.featured-category-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 14px;
  background: var(--maroon);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
}

.featured-body {
  padding: clamp(24px, 3.5vw, 40px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #7b695d;
  margin-bottom: 12px;
}

.featured-title {
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 800;
  color: var(--maroon);
  line-height: 1.35;
  margin: 0 0 14px;
}

.featured-excerpt {
  font-size: 15px;
  color: #5c493d;
  line-height: 1.68;
  margin: 0 0 24px;
}

/* Category Filter Tabs */
.blog-category-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}

.cat-pill {
  padding: 8px 18px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(94, 21, 38, 0.15);
  color: var(--fg-dim);
  font-family: var(--telugu);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cat-pill:hover {
  border-color: var(--maroon);
  color: var(--maroon);
  background: #fdf5ea;
}

.cat-pill.is-active {
  background: var(--maroon);
  color: #ffffff;
  border-color: var(--maroon);
  font-weight: 700;
}

/* Horizontal Story Rail */
.blog-carousel-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 4px 24px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  max-width: 100%;
}

.blog-carousel-track::-webkit-scrollbar {
  display: none;
}

.blog-story-card {
  flex: 0 0 calc((100% - 72px) / 4);
  min-width: 270px;
  scroll-snap-align: start;
  background: #ffffff;
  border: 1px solid rgba(94, 21, 38, 0.12);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-story-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(94, 21, 38, 0.15);
}

.story-img-box {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #fbf5ee;
}

.story-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-story-card:hover .story-img-box img {
  transform: scale(1.06);
}

.story-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 9px;
  background: rgba(94, 21, 38, 0.88);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 6px;
}

.story-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.story-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #8c7667;
  margin-bottom: 8px;
}

.story-title {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--maroon);
  line-height: 1.4;
  margin: 0 0 8px;
}

.story-excerpt {
  font-size: 13.5px;
  color: #5d4a3e;
  line-height: 1.58;
  margin: 0 0 14px;
  flex: 1;
}

.story-link {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--maroon);
  transition: gap 0.2s ease;
}

/* ============================================================
   7. TITHRA APP SHOWCASE — PRODUCT MOMENT
   ============================================================ */
.app-showcase-section {
  position: relative;
  background: linear-gradient(135deg, #1c0e18 0%, #0d060e 100%);
  color: #ffffff;
  padding: clamp(65px, 9vw, 110px) 0;
  overflow: hidden;
}

.app-showcase-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(30px, 5vw, 60px);
  align-items: center;
}

.app-mockup-wrapper {
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.app-mockup-floater {
  position: relative;
  max-width: 440px;
  width: 100%;
  animation: appMockupFloat 6s ease-in-out infinite alternate;
  transform-style: preserve-3d;
  transition: transform 0.4s ease-out;
}

@keyframes appMockupFloat {
  0% {
    transform: translateY(0px) rotateY(-4deg);
  }

  100% {
    transform: translateY(-12px) rotateY(1deg);
  }
}

.app-mockup-floater img {
  width: 100%;
  height: auto;
  border-radius: 28px;
  display: block;
}

.mockup-ambient-shadow {
  position: absolute;
  bottom: -24px;
  left: 10%;
  right: 10%;
  height: 35px;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.6) 0%, transparent 75%);
  filter: blur(10px);
  pointer-events: none;
}

.app-content-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.app-feature-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.app-feature-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.app-feature-list .feat-ico {
  color: var(--gold-2);
  font-size: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}

.app-feature-list strong {
  font-size: 16px;
  color: #ffffff;
  display: block;
  margin-bottom: 2px;
}

.app-feature-list p {
  font-size: 14px;
  color: #cebeaf;
  line-height: 1.55;
  margin: 0;
}

.app-cta-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.btn-playstore {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: #ffffff;
  color: #120e0d !important;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-playstore:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  background: #fbf8f4;
}

.play-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.play-small {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #555555;
}

.play-big {
  font-size: 17px;
  font-weight: 800;
  font-family: var(--sans);
  color: #111111;
  line-height: 1.1;
}

.app-rating-pill {
  font-size: 13.5px;
  color: var(--gold-2);
  font-weight: 600;
}

.app-ai-disclaimer {
  margin-top: 14px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
}

.app-ai-disclaimer p {
  font-size: 12.5px;
  color: #a89a8c;
  line-height: 1.55;
  margin: 0;
}

/* ============================================================
   8. TITHRA PROJECTS — HORIZONTAL ECOSYSTEM SHOWCASE
   ============================================================ */
.projects-compact-section {
  background: #fdfbf7;
  padding: clamp(60px, 8vw, 95px) 0;
}

.projects-compact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.project-tile {
  background: #ffffff;
  border: 1px solid rgba(94, 21, 38, 0.12);
  border-radius: 16px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

.project-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(94, 21, 38, 0.12);
  border-color: rgba(224, 168, 62, 0.4);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.project-ico {
  font-size: 26px;
}

.project-badge {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(30, 130, 60, 0.12);
  color: #166534;
}

.yt-badge-color {
  background: rgba(204, 0, 0, 0.1);
  color: #cc0000;
}

.auto-badge-color {
  background: rgba(212, 160, 60, 0.15);
  color: #a06e12;
}

.project-name {
  font-size: 17.5px;
  font-weight: 700;
  color: var(--maroon);
  margin: 0 0 6px;
}

.project-desc {
  font-size: 13.5px;
  color: #615044;
  line-height: 1.55;
  margin: 0 0 16px;
  flex: 1;
}

.project-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--maroon);
}

.muted-link {
  color: #8c7667;
}

/* ============================================================
   9. FINAL SUNRISE CTA — CINEMATIC EMOTIONAL ENDING
   ============================================================ */
.final-cta-section {
  position: relative;
  background: #0f0907;
  padding: clamp(80px, 12vw, 140px) 0;
  color: #ffffff;
  text-align: center;
  overflow: hidden;
}

.cta-sunrise-atmosphere {
  position: absolute;
  inset: 0;
  background-image: url('/tithra-site/assets/images/footer-morning.webp');
  background-size: cover;
  background-position: center bottom;
  opacity: 0.32;
  transform: scale(1.04);
  transition: transform 0.5s ease-out;
  pointer-events: none;
}

.final-cta-section:hover .cta-sunrise-atmosphere {
  transform: scale(1.07);
}

.cta-content-wrap {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 720px;
}

.cta-brand-icon {
  margin-bottom: 20px;
}

.cta-brand-icon img {
  width: 76px;
  height: 76px;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(224, 168, 62, 0.3);
}

.cta-heading {
  font-size: clamp(34px, 4.5vw, 54px);
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin: 0 0 16px;
}

.cta-lead-text {
  font-size: clamp(16px, 1.35vw, 20px);
  color: #ecdcd0;
  line-height: 1.65;
  margin: 0 0 32px;
}

.cta-buttons-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 16px;
  border-radius: 999px;
  font-weight: 700;
}

.cta-web-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  font-size: 16px;
  border-radius: 999px;
  font-weight: 700;
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.35) !important;
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.cta-web-btn:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: var(--gold-2) !important;
  color: var(--gold-2) !important;
  transform: translateY(-2px);
}

/* ============================================================
   10. FOOTER — QUIET, ELEGANT DARK ENDING
   ============================================================ */
.site-foot {
  background: #0d0a09;
  color: #cdbfae;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.foot-morning-banner {
  position: relative;
  padding: clamp(34px, 5vw, 56px) 0;
  background-image: linear-gradient(0deg, rgba(13, 10, 9, 0.92) 0%, rgba(13, 10, 9, 0.6) 100%), url('/tithra-site/assets/images/footer-morning.webp');
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.morning-content {
  text-align: center;
}

.morning-greeting {
  font-size: 13px;
  color: var(--gold-2);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.morning-quote {
  font-size: clamp(17px, 1.8vw, 24px);
  font-family: var(--telugu);
  font-weight: 600;
  color: #f8e7cd;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.foot-grid {
  padding: clamp(40px, 5vw, 64px) 0 32px;
  display: grid;
  grid-template-columns: 1.35fr repeat(3, 1fr);
  gap: clamp(24px, 4vw, 40px);
}

.footer-brand-link {
  display: inline-block;
  margin-bottom: 16px;
}

.footer-logo {
  height: 44px;
  width: auto;
  max-width: 170px;
  display: block;
  object-fit: contain;
}

.foot-tag {
  font-size: 14px;
  color: #a89a8c;
  line-height: 1.65;
  max-width: 38ch;
  margin-bottom: 18px;
}

.foot-col h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--gold-2);
  margin-bottom: 14px;
}

.foot-col a {
  display: block;
  font-size: 14px;
  color: #a89a8c;
  margin-bottom: 10px;
  transition: color 0.18s ease;
}

.foot-col a:hover {
  color: #ffffff;
}

.foot-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: #837669;
}

.foot-bottom-bar .copy {
  margin: 0;
}

.foot-signature {
  margin: 0;
  color: #d1b490;
}

/* STRICT FOOTER SOCIAL SIZING — 38x38px button with 18x18px SVG */
.foot-social {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.foot-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #d8c8ba;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.foot-social a:hover {
  background: var(--maroon);
  color: #ffffff;
  border-color: var(--gold);
  transform: translateY(-2px);
}

.foot-social svg {
  width: 18px !important;
  height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  display: block;
}

/* ============================================================
   RESPONSIVE DESIGN (375px, 390px, 430px, 768px, 1024px, 1440px)
   Zero horizontal overflow guarantee
   ============================================================ */
@media (max-width: 1200px) {
  .quick-tools-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .projects-compact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1080px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 74px;
    left: 0;
    right: 0;
    background: rgba(253, 248, 242, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(94, 21, 38, 0.15);
    flex-direction: column;
    padding: 18px 20px;
    gap: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 90;
  }

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

  .head-actions .head-social {
    display: none;
  }

  .hero-cinematic {
    min-height: auto;
    height: auto;
    padding: clamp(28px, 5vw, 48px) 0 clamp(36px, 6vw, 56px);
  }

  .hero-content-wrap {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 0;
  }

  .hero-visual-stage {
    aspect-ratio: 16 / 10;
    max-height: 420px;
    border-radius: 20px;
  }

  .hero-floating-card-wrap {
    justify-content: center;
  }

  .hero-panchangam-card {
    width: 100%;
    max-width: 580px;
    animation: none;
  }

  .hero-scroll-cue {
    display: none;
  }

  .features-spotlight-section,
  .blog-magazine-section {
    overflow: hidden;
    max-width: 100vw;
  }

  .features-carousel-track {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .blog-carousel-track {
    scroll-snap-type: x mandatory;
    max-width: 100%;
  }

  .zodiac-orbit-stage {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .zodiac-wheel-wrapper {
    margin-bottom: 10px;
  }

  .navagrahas-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .yt-platform-layout {
    grid-template-columns: 1fr;
  }

  .blog-featured-card {
    grid-template-columns: 1fr;
  }

  .blog-story-card {
    flex: 0 0 calc((100% - 20px) / 2);
  }

  .app-showcase-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .app-mockup-wrapper {
    order: 2;
  }

  .app-content-col {
    order: 1;
    align-items: center;
  }

  .app-feature-list li {
    text-align: left;
  }

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

  .foot-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .features-carousel-track {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .rashi-info-grid {
    grid-template-columns: 1fr;
  }

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

  .blog-story-card {
    flex: 0 0 88%;
  }

  .projects-compact-grid {
    grid-template-columns: 1fr;
  }

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

@media (prefers-reduced-motion: reduce) {

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

  .hero-slide-img {
    transition: none !important;
    transform: none !important;
  }

  .hero-panchangam-card {
    animation: none !important;
  }
}
/* Shared official branding: preserve the supplied square aspect ratio. */
.brand-logo{width:44px;height:44px;object-fit:contain;border:1px solid #b28a48;border-radius:6px;filter:none}.brand{display:flex;align-items:center;gap:8px}.footer-logo{width:68px;height:68px;object-fit:contain;border:1px solid #b28a48;border-radius:9px;filter:none}.ref-brand-name{font-family:Georgia,serif;font-size:25px;color:#6c1321}.footer-brand-link{display:flex;align-items:center;gap:10px}.footer-brand-link .ref-brand-name{color:#efd29b}
.scroll-direction{position:fixed;z-index:45;right:18px;bottom:22px;display:grid;place-items:center;width:38px;height:38px;padding:0;background:#fff0d9e8;border:1px solid #bc9457;border-radius:50%;color:#6e2334;cursor:pointer;font-size:20px;box-shadow:0 2px 10px #27170c18}
.scroll-direction:focus-visible{outline:2px solid #ba8f43;outline-offset:3px}
/* Shared route regression fixes; homepage composition remains independently scoped. */
@media(max-width:1080px){.nav.is-open{opacity:1;pointer-events:auto;transform:none;max-height:calc(100svh - 74px);overflow:auto}}
@media(max-width:600px){
 body:not(.page-index) .head-inner{gap:10px;min-height:64px}
 body:not(.page-index) .brand .brand-logo{width:36px;height:36px}
 body:not(.page-index) .ref-brand-name{font-size:22px}
 body:not(.page-index) .head-actions{gap:8px;margin-left:auto}
 body:not(.page-index) .head-cta-app{font-size:12px;padding:8px 12px;gap:4px}
 body:not(.page-index) .head-cta-app svg{display:none}
 body:not(.page-index) .head-search-btn{width:32px;height:36px}
 body:not(.page-index) .nav-toggle{width:36px;min-width:36px;height:38px}
 body:not(.page-index) .nav{top:64px}
 body:not(.page-index) .split>div{min-width:0}
 body:not(.page-index) .phone{max-width:100%;margin-inline:auto}
 .search-input-box input[type=search]{min-width:0}
}

