/* ─── Tokens (from apps/nithya/src/styles/theme.ts) ────────────────────── */

:root {
  --bg: #0A0A0A;
  --surface: #141414;
  --surface-light: #1E1E1E;
  --text-primary: #FFFFFF;
  --text-secondary: #999999;
  --text-muted: #666666;
  --border: #2A2A2A;
  --divider: #1A1A1A;
  --accent: #E03131;

  --font-mono: 'Space Mono', monospace;
  --font-hindi: 'Noto Sans Devanagari', sans-serif;
}

/* ─── Reset ────────────────────────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

/* ─── Typography helpers ───────────────────────────────────────────────── */

.hindi {
  font-family: var(--font-hindi);
}

.english {
  font-family: var(--font-mono);
}

/* ─── Nav ──────────────────────────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__links a {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav__links a:hover {
  color: var(--text-primary);
}

.nav__cta {
  color: var(--accent) !important;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 20px;
  height: 1px;
  background: var(--text-primary);
  transition: transform 0.2s, opacity 0.2s;
}

.nav__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.nav__toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* ─── Hero (Antique Sepia Variation) ─────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
  padding: 120px 24px 80px;
  overflow: hidden;
  background: #e4d5b7;
  color: #2b2013;
  box-shadow: inset 0 0 150px rgba(43, 32, 19, 0.4);
}

.hero::before {
  display: none;
}

.v4-texture {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.15;
  background-image: radial-gradient(circle at center, transparent 30%, #2b2013 150%);
  pointer-events: none;
}

.chart-bg {
  position: absolute;
  top: 50%;
  right: -10%;
  transform: translateY(-50%);
  width: 800px;
  height: 800px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.v4-chart {
  border: 2px solid rgba(43, 32, 19, 0.1);
  opacity: 0.8;
  transform: translateY(-50%) rotate(15deg);
}

.hero__content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.v4-om {
  font-size: 56px;
  color: #8c3f2d;
  margin-bottom: 24px;
  font-family: var(--font-hindi);
}

.v4-title {
  font-family: 'Cinzel', serif;
  font-size: 72px;
  font-weight: 700;
  letter-spacing: 4px;
  margin-bottom: 24px;
  color: #2b2013;
}

/* Base load-in animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

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

.v4-hi-tag {
  font-family: var(--font-hindi);
  font-size: 28px;
  color: #5a4634;
  font-weight: 700;
  margin-bottom: 32px;
}

.v4-desc {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 20px;
  color: #5a4634;
  max-width: 450px;
  line-height: 1.8;
  margin-bottom: 56px;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.v4-btn {
  display: inline-block;
  background: transparent;
  color: #2b2013;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 1px solid #2b2013;
  border-radius: 40px;
  padding: 16px 40px;
  transition: all 0.2s;
  cursor: pointer;
}

.v4-btn:hover {
  background: #2b2013;
  color: #e4d5b7;
}

/* ─── Buttons ──────────────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 14px 32px;
  border-radius: 4px;
  transition: opacity 0.2s, transform 0.1s;
  cursor: pointer;
}

.btn--primary {
  background: var(--text-primary);
  color: var(--bg);
}

.btn--primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--muted {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  cursor: default;
  opacity: 0.6;
}

/* ─── Section Dividers (matching SectionDivider.tsx) ───────────────────── */

.section-divider {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-divider__line {
  height: 1px;
  background: var(--border);
}

.section-divider--labeled {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.section-divider--labeled .section-divider__line {
  flex: 1;
}

.section-divider__label {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ─── Features ─────────────────────────────────────────────────────────── */

.features {
  margin: 0 auto;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px 24px;
  transition: border-color 0.2s;
}

.card:hover {
  border-color: var(--text-muted);
}

.card__icon {
  font-family: var(--font-hindi);
  font-weight: 700;
  font-size: 28px;
  color: var(--text-primary);
  margin-bottom: 16px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-light);
  border-radius: 8px;
}

.card__title-hi {
  font-family: var(--font-hindi);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.4;
  margin-bottom: 2px;
}

.card__title-en {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.card__desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-muted);
}

.card__desc .hindi {
  display: block;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

/* ─── Screenshots ──────────────────────────────────────────────────────── */

.screenshots {
  padding: 80px 0;
  max-width: 100%;
  overflow: hidden;
  position: relative;
}

.screenshots .section-divider--labeled {
  max-width: 960px;
  margin: 0 auto 48px;
  padding: 0 24px;
}

.screenshots__scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding: 20px 40px 40px;
  scrollbar-width: none;
}

.screenshots__scroll::-webkit-scrollbar {
  display: none;
}

/* Edge fade indicators */
.screenshots::before,
.screenshots::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}

.screenshots::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}

.screenshots::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}

.phone-frame {
  flex-shrink: 0;
  width: 280px;
  scroll-snap-align: center;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.phone-frame:hover {
  transform: translateY(-6px);
}

.phone-frame img {
  width: 100%;
  height: auto;
  display: block;
  margin-top: -12%;
}

/* ─── How it Works ─────────────────────────────────────────────────────── */

.how {
  max-width: 960px;
  margin: 0 auto;
  padding: 80px 24px;
}

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

.step {
  text-align: center;
}

.step__number {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 48px;
  color: var(--border);
  line-height: 1;
  margin-bottom: 16px;
}

.step__title-hi {
  font-family: var(--font-hindi);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 4px;
}

.step__title-en {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.step__desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ─── FAQ ──────────────────────────────────────────────────────────────── */

.faq {
  max-width: 960px;
  margin: 0 auto;
  padding: 80px 24px;
}

.faq__list {
  display: flex;
  flex-direction: column;
}

.faq__item {
  border-bottom: 1px solid var(--border);
}

.faq__item:first-child {
  border-top: 1px solid var(--border);
}

.faq__question {
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question .hindi {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.faq__slash {
  color: var(--text-muted);
  font-size: 14px;
}

.faq__question .english {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
}

.faq__item[open] .faq__question .hindi {
  color: var(--text-primary);
}

.faq__answer {
  padding-bottom: 24px;
}

.faq__answer p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.faq__answer .hindi {
  font-size: 15px;
  color: var(--text-secondary);
}

/* ─── Bottom CTA ───────────────────────────────────────────────────────── */

.cta-bottom {
  padding: 80px 24px;
  text-align: center;
}

.cta-bottom__content {
  max-width: 600px;
  margin: 48px auto 0;
}

.cta-bottom__text {
  font-size: 20px;
  margin-bottom: 4px;
}

.cta-bottom__text.hindi {
  font-weight: 700;
  font-size: 22px;
  color: var(--text-primary);
}

.cta-bottom__text.english {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* ─── Footer ───────────────────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
}

.footer__inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.footer__links {
  margin-bottom: 16px;
}

.footer__link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer__link:hover {
  color: var(--text-secondary);
}

.footer__sep {
  color: var(--border);
  margin: 0 12px;
}

.footer__credit {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.footer__copy {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--border);
}

/* ─── Mobile ───────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
  }

  .nav__links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }

  .nav__links.open {
    display: flex;
  }

  .hero__title {
    font-size: 36px;
  }

  .hero__om {
    font-size: 56px;
  }

  .hero__tagline {
    flex-direction: column;
    gap: 4px;
  }

  .divider-dot {
    display: none;
  }

  .features__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .phone-frame {
    width: 220px;
  }

  .phone-frame img {
    border-radius: 10px;
  }

  .screenshots__scroll {
    gap: 14px;
    padding: 16px 24px 32px;
  }

  .how__steps {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .faq__question {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .faq__slash {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 100px 20px 60px;
  }

  .hero__title {
    font-size: 28px;
  }

  .hero__om {
    font-size: 48px;
  }

  .hero__actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}