:root {
  --bg: #f5f3f0;
  --surface: rgba(255, 251, 246, 0.5);
  --surface-strong: rgba(255, 251, 246, 0.9);
  --accent: #1a4d2e;
  --accent-2: #4f7942;
  --text: #1c1917;
  --muted: #57534e;
  --border: rgba(26, 77, 46, 0.12);
  --shadow: 0 18px 50px rgba(28, 25, 23, 0.1);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, var(--bg) 0%, #eef2ff 100%);
  min-height: 100vh;
}

body::before,
body::after {
  content: '';
  position: fixed;
  inset: auto;
  width: 32rem;
  height: 32rem;
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
  z-index: -1;
  animation: drift 16s ease-in-out infinite alternate;
}

body::before {
  top: -8rem;
  right: -8rem;
  background: rgba(99, 102, 241, 0.22);
}

body::after {
  bottom: -10rem;
  left: -8rem;
  background: rgba(139, 92, 246, 0.16);
  animation-duration: 20s;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button,
a {
  font: inherit;
}

.page-shell {
  position: relative;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

.glass-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.om-mantra {
  font-size: 1.4rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 0.75rem;
  color: var(--accent);
  letter-spacing: 1px;
}

/* Premium Glassmorphism Badge - "Om Shri Guruve Namah" */
.om-badge-mobile {
  display: block;
  text-align: center;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;

  /* Premium Glass Effect - Enhanced for Desktop */
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.35) 0%,
    rgba(255, 255, 255, 0.22) 100%
  );
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);

  /* Premium Border with Shimmer */
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  box-shadow: 
    0 8px 32px rgba(31, 38, 135, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 1px 0 rgba(255, 255, 255, 0.3);

  /* Typography */
  color: #5A3E2B;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  font-family: 'Georgia', 'Times New Roman', serif;

  /* Spacing */
  padding: 14px 32px;
  margin-bottom: 24px;

  /* Shape */
  border-radius: 50px;

  /* Smooth Transition */
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);

  /* Subtle Animation */
  position: relative;
  overflow: hidden;
}

/* Premium Shimmer Effect */
.om-badge-mobile::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.7s ease;
}

.om-badge-mobile:hover::before {
  left: 100%;
}

/* Hover State - Elevate and Glow */
.om-badge-mobile:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    0 12px 40px rgba(31, 38, 135, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 2px 0 rgba(255, 255, 255, 0.4);
  border-color: rgba(255, 255, 255, 0.5);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 20px 0 12px;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-radius: 999px;
}

.brand {
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.24em;
  font-size: 0.8rem;
}

.nav-toggle {
  display: none;
  position: relative;

  width: 42px;
  height: 42px;

  padding: 0;
  margin: 0;

  border: none;
  background: transparent;

  cursor: pointer;

  flex-shrink: 0;

  z-index: 100;
}

.nav-toggle span {
  position: absolute;

  left: 50%;
  width: 24px;
  height: 3px;

  background: var(--accent);

  border-radius: 999px;

  transform: translateX(-50%);

  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.nav-toggle span:nth-child(1) {
  top: 12px;
}

.nav-toggle span:nth-child(2) {
  top: 19px;
}

.nav-toggle span:nth-child(3) {
  top: 27px;
}


.nav-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 999px;
  transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.55);
  outline: none;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
  padding: 24px 0 48px;
}

.hero-copy {
  padding: 48px;
  border-radius: var(--radius-xl);
  max-width: 680px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.78rem;
  font-weight: 700;
  margin: 0 0 12px;
}

.hero h1,
.section-heading h2,
.book-copy h2,
.membership-copy h2,
.register-card h2 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero h1 {
  font-size: clamp(2.3rem, 4vw, 3.8rem);
  margin-bottom: 16px;
}

.hero-text,
.section-heading p,
.book-copy p,
.membership-copy li,
.register-card p,
.guide-card p,
.purpose-card p,
.timeline-card p,
.faq-answer p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 24px 0 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(99, 102, 241, 0.16);
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.48);
  color: var(--text);
  border: 1px solid rgba(99, 102, 241, 0.14);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-art {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-art img {
  width: min(100%, 460px);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  animation: float 8s ease-in-out infinite;
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  text-decoration: none;
}

.scroll-indicator span {
  width: 24px;
  height: 40px;
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 999px;
  position: relative;
}

.scroll-indicator span::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.6s infinite;
}

.section {
  padding: 56px 0 0;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading h2,
.book-copy h2,
.membership-copy h2,
.register-card h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.section-heading-inline {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
}

.why-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 24px;
}

.illustration-card,
.purpose-card,
.timeline,
.book-feature,
.faq-shell,
.membership-card,
.register-card,
.guide-card,
.book-tile {
  border-radius: var(--radius-lg);
}

.illustration-card {
  padding: 20px;
}

.illustration-card img {
  border-radius: 20px;
  object-fit: cover;
  min-height: 320px;
}

.purpose-stack {
  display: grid;
  gap: 14px;
}

.purpose-card {
  padding: 22px 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.purpose-card:hover,
.book-tile:hover,
.guide-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 44px rgba(15, 23, 42, 0.14);
}

.purpose-card h3,
.timeline-card h3,
.book-tile h3,
.guide-card h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
}

.timeline {
  padding: 24px;
  display: grid;
  gap: 16px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  align-items: start;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 172px;
  top: 28px;
  bottom: -16px;
  width: 2px;
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.4), rgba(99, 102, 241, 0));
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-time {
  font-weight: 700;
  color: var(--accent);
  background: rgba(99, 102, 241, 0.1);
  padding: 10px 14px;
  border-radius: 999px;
  text-align: center;
}

.timeline-card {
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.56);
}

.book-feature {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  padding: 32px;
  align-items: center;
}

.author {
  font-weight: 700;
  color: var(--accent);
  margin: 6px 0 12px;
}

.book-visual img {
  border-radius: 24px;
  width: min(100%, 320px);
  margin-left: auto;
  box-shadow: var(--shadow);
}

.carousel-controls {
  display: flex;
  gap: 10px;
}

.carousel-btn {
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.books-carousel {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;

  /* Hide scrollbar */
  scrollbar-width: none;
  -ms-overflow-style: none;

  /* Smooth touch scrolling */
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
}

.books-carousel::-webkit-scrollbar {
  display: none;
}

.books-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 16px;
  padding: 6px 2px 4px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}

.book-tile {
  padding: 16px;
  min-width: 220px;
  scroll-snap-align: start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-tile img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 12px;
}

.faq-shell {
  padding: 28px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid rgba(99, 102, 241, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.46);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.faq-icon {
  font-size: 1.2rem;
  color: var(--accent);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding: 0 18px 16px;
  margin: 0;
}

.membership-card,
.register-card {
  padding: 32px;
  text-align: center;
}

.membership-copy ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 20px 0 24px;
  list-style: none;
}

.membership-copy li::before {
  content: '•';
  color: var(--accent);
  margin-right: 8px;
}

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

.guide-card {
  padding: 22px;
  text-align: center;
}

.guide-card img {
  width: 100%;
  max-width: 220px;
  margin: 0 auto 14px;
  border-radius: 20px;
}

.footer {
  padding: 44px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--muted);
}

.footer a {
  text-decoration: none;
  margin-left: 12px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float {

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

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

@keyframes pulse {
  0% {
    opacity: 0.2;
    transform: translateX(-50%) translateY(0);
  }

  50% {
    opacity: 1;
    transform: translateX(-50%) translateY(6px);
  }

  100% {
    opacity: 0.2;
    transform: translateX(-50%) translateY(12px);
  }
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(20px, 30px, 0) scale(1.08);
  }
}

@media (max-width: 980px) {

  .hero,
  .why-grid,
  .book-feature,
  .guidance-grid {
    grid-template-columns: 1fr;
  }

  .hero-art {
    order: -1;
  }

  .book-visual img {
    margin: 0 auto;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .timeline-item::before {
    display: none;
  }
}

@media (max-width: 760px) {

  .page-shell {
    padding: 0 16px 48px;
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 0 10px;
  }

  .nav {
    width: 100%;
    max-width: 100%;
    min-height: 58px;

    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;

    gap: 0;
    padding: 10px 14px;
    border-radius: 20px;

    position: relative;
  }

  .brand {
    font-size: 0.72rem;
    letter-spacing: 0.20em;
  }

  /* Hamburger */
  .nav-toggle {
    display: block;
    position: relative;

    width: 42px;
    height: 42px;

    flex-shrink: 0;

    padding: 0;
    margin: 0;

    border: none;
    background: transparent;

    cursor: pointer;
    z-index: 1001;
  }

  .nav-toggle span {
    position: absolute;

    left: 50%;

    width: 24px;
    height: 3px;

    background: var(--accent);
    border-radius: 999px;

    transform: translateX(-50%);

    transition:
      transform 0.3s ease,
      opacity 0.3s ease;
  }

  .nav-toggle span:nth-child(1) {
    top: 12px;
  }

  .nav-toggle span:nth-child(2) {
    top: 19px;
  }

  .nav-toggle span:nth-child(3) {
    top: 26px;
  }

  /* Mobile dropdown */
  .nav-links {
    display: none;

    position: absolute;

    top: calc(100% + 8px);
    left: 0;
    right: 0;

    width: 100%;

    flex-direction: column;
    align-items: stretch;

    gap: 6px;

    margin: 0;
    padding: 12px;

    background: rgba(255, 255, 255, 0.97);

    border: 1px solid var(--border);
    border-radius: 18px;

    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);

    z-index: 1000;
  }

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

  .nav-links a {
    width: 100%;

    text-align: center;

    margin: 0;
    padding: 12px 14px;

    border-radius: 12px;

    white-space: normal;
  }

  /* Hamburger → X */
  .nav.nav-open .nav-toggle span:nth-child(1) {
    transform: translateX(-50%) translateY(7px) rotate(45deg);
  }

  .nav.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .nav.nav-open .nav-toggle span:nth-child(3) {
    transform: translateX(-50%) translateY(-7px) rotate(-45deg);
  }

  .hero-copy {
    padding: 28px;
  }

  .om-mantra {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }

  /* Mobile: Enhanced Glassmorphism */
  .om-badge-mobile {
    display: block;
    text-align: center;

    /* Mobile Glass Effect */
    background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.3) 0%,
      rgba(255, 255, 255, 0.18) 100%
    );
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);

    /* Mobile Border & Shadow */
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    box-shadow: 
      0 10px 35px rgba(31, 38, 135, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.6),
      0 2px 0 rgba(255, 255, 255, 0.25);

    /* Mobile Typography */
    font-size: 1rem;
    font-weight: 600;
    color: #5A3E2B;
    letter-spacing: 1.2px;
    font-family: 'Georgia', 'Times New Roman', serif;

    /* Mobile Spacing */
    padding: 12px 28px;
    margin: 16px 24px 20px;

    /* Shape */
    border-radius: 50px;
  }

  .section {
    padding: 42px 0 0;
  }

  .section-heading-inline {
    flex-direction: column;
    align-items: start;
  }


  .books-track {
    grid-auto-columns: 80%;
    gap: 16px;
  }

  .books-carousel {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
  }

  .books-carousel::-webkit-scrollbar {
    display: none;
  }


  .footer {
    flex-direction: column;
    align-items: start;
  }
}
