/* ============================================================
   UDIXIT Landing Page — style.css
   Design System v1 — Dark mode, Navy/Gold/Emerald
   ============================================================ */

/* --- Custom Properties --- */
:root {
  --navy: #0B1F3B;
  --navy-dark: #071428;
  --gold: #C9A227;
  --gold-hover: #A6851F;
  --emerald: #1F7A5C;
  --terracotta: #A74A3A;
  --cream: #F7F2E8;
  --cream-secondary: #B8A98E;
  --radius-btn: 8px;
  --radius-card: 12px;
  --radius-badge: 9999px;
  --max-w: 1280px;
  --transition: 300ms ease-out;
}

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

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--navy);
  color: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'DM Serif Display', serif;
  line-height: 1.2;
}

code, .mono {
  font-family: 'JetBrains Mono', monospace;
}

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

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

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

ul, ol {
  list-style: none;
}

/* --- Utilities --- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-btn);
  font-size: 1rem;
  font-weight: 600;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}

.btn-primary:hover {
  background: var(--gold-hover);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--navy);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* --- Scroll Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition), transform var(--transition);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   1. STICKY NAV
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 8px 0;
  transition: background var(--transition), backdrop-filter var(--transition);
}

.site-nav.scrolled {
  background: rgba(11, 31, 59, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 2px;
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 144px;
  width: auto;
  max-width: 432px;
}

.footer-logo-img {
  height: 115px;
  width: auto;
  max-width: 432px;
}

/* Login button */
.btn-login {
  background: transparent;
  border: 1px solid var(--cream-secondary);
  color: var(--cream);
}

.btn-login:hover {
  border-color: var(--cream);
  background: rgba(255, 255, 255, 0.05);
}

/* Mobile-only nav buttons (hidden on desktop) */
.nav-mobile-btn {
  display: none;
}

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

.nav-links a {
  font-size: 0.95rem;
  color: var(--cream-secondary);
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--cream);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: var(--radius-badge);
  border: 1px solid var(--cream-secondary);
  color: var(--cream-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  transition: border-color var(--transition), color var(--transition);
}

.lang-toggle:hover {
  border-color: var(--cream);
  color: var(--cream);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  transition: transform var(--transition), opacity var(--transition);
}

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

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

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

/* ============================================================
   2. HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 180px 0 80px;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(201, 162, 39, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(31, 122, 92, 0.05) 0%, transparent 50%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 100%);
}

.hero-container {
  position: relative;
}

.hero-illustration {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 400px;
  opacity: 0.2;
  pointer-events: none;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 24px;
  color: var(--cream);
}

.hero h1 .highlight {
  color: var(--gold);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--cream-secondary);
  margin-bottom: 40px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-badge);
  border: 1px solid rgba(201, 162, 39, 0.3);
  font-size: 0.85rem;
  color: var(--cream-secondary);
}

.badge svg {
  width: 16px;
  height: 16px;
  color: var(--gold);
}

/* ============================================================
   3. PROBLEM / SOLUTION
   ============================================================ */
.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--navy-dark);
}

.section-title {
  text-align: center;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 16px;
}

.section-subtitle {
  text-align: center;
  color: var(--cream-secondary);
  font-size: 1.1rem;
  margin-bottom: 60px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

.problem-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-card);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition);
}

.card-bg-pattern {
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  pointer-events: none;
}

.problem-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 162, 39, 0.2);
}

.problem-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  color: var(--terracotta);
}

.problem-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--terracotta);
}

.problem-card .solution {
  color: var(--emerald);
  font-size: 0.95rem;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.solution-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
  color: var(--emerald);
}

/* ============================================================
   4. HOW IT WORKS
   ============================================================ */
.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  position: relative;
}

.step {
  flex: 1;
  max-width: 320px;
  text-align: center;
  padding: 0 24px;
  position: relative;
}

.step-number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(201, 162, 39, 0.15);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  position: relative;
  z-index: 2;
}

.step-number svg {
  width: 28px;
  height: 28px;
  color: var(--gold);
}

.step h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.step p {
  color: var(--cream-secondary);
  font-size: 0.95rem;
}

/* Connecting line between steps — sits below the icon circles */
.steps::before {
  content: '';
  position: absolute;
  top: 68px;
  left: calc(50% / 3 + 32px);
  right: calc(50% / 3 + 32px);
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--emerald));
  z-index: 0;
}

/* Demo video placeholder */
.demo-video {
  max-width: 720px;
  margin: 48px auto 0;
  text-align: center;
}

.demo-video-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--navy-dark);
  border: 1px solid rgba(201, 162, 39, 0.2);
  border-radius: var(--radius-card);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  overflow: hidden;
}

.demo-video-player::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(201, 162, 39, 0.04) 0%, transparent 70%);
}

.demo-play-btn {
  width: 64px;
  height: 64px;
  position: relative;
  z-index: 1;
  opacity: 0.8;
  transition: opacity var(--transition), transform var(--transition);
}

.demo-video-player:hover .demo-play-btn {
  opacity: 1;
  transform: scale(1.05);
}

.demo-video-label {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--cream-secondary);
  font-style: italic;
}

.steps-cta {
  text-align: center;
  margin-top: 48px;
}

/* ============================================================
   5. USE CASES / PERSONAS
   ============================================================ */
.personas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.persona-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-card);
  padding: 28px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.persona-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.persona-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 162, 39, 0.2);
}

.persona-card:hover::after {
  opacity: 1;
}

.persona-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  color: var(--gold);
}

.persona-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.persona-card p {
  color: var(--cream-secondary);
  font-size: 0.9rem;
}

.persona-story-link {
  display: inline-block;
  margin-top: auto;
  padding-top: 16px;
  font-size: 0.85rem;
  color: var(--gold);
  opacity: 0.4;
  cursor: default;
  position: relative;
  z-index: 1;
}

/* ============================================================
   6. PRICING
   ============================================================ */
.early-adopter {
  text-align: center;
  padding: 16px 24px;
  margin-bottom: 40px;
  background: rgba(201, 162, 39, 0.1);
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: var(--radius-card);
  color: var(--gold);
  font-weight: 600;
  font-size: 1.05rem;
}

.pricing-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
}

.pricing-toggle span {
  font-size: 0.95rem;
  color: var(--cream-secondary);
  transition: color var(--transition);
}

.pricing-toggle span.active {
  color: var(--cream);
  font-weight: 600;
}

.toggle-switch {
  width: 48px;
  height: 26px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.15);
  position: relative;
  cursor: pointer;
  transition: background var(--transition);
}

.toggle-switch.annual {
  background: var(--gold);
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--cream);
  transition: transform var(--transition);
}

.toggle-switch.annual::after {
  transform: translateX(22px);
}

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

.pricing-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-card);
  padding: 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--transition), border-color var(--transition);
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 162, 39, 0.2);
}

.pricing-card.popular {
  border-color: var(--gold);
  box-shadow: 0 0 30px rgba(201, 162, 39, 0.1);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--navy);
  padding: 4px 16px;
  border-radius: var(--radius-badge);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pricing-card h3 {
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.pricing-card .price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  margin: 16px 0 4px;
  font-family: 'DM Serif Display', serif;
}

.pricing-card .price-period {
  color: var(--cream-secondary);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.pricing-card .features {
  flex: 1;
  margin-bottom: 24px;
}

.pricing-card .features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: var(--cream-secondary);
}

.pricing-card .features li svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--emerald);
}

.pricing-card .features li.coming-soon {
  opacity: 0.5;
}

.pricing-card .features li.coming-soon svg {
  color: var(--cream-secondary);
}

.pricing-card .btn {
  width: 100%;
}

/* ============================================================
   7. FAQ
   ============================================================ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--cream);
  font-family: 'DM Sans', sans-serif;
}

.faq-question svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--gold);
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease-out;
}

.faq-answer-inner {
  padding: 0 0 20px;
  color: var(--cream-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============================================================
   8. FOOTER
   ============================================================ */
.site-footer {
  padding: 60px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--navy-dark);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .nav-logo {
  margin-bottom: 8px;
}

.footer-tagline {
  color: var(--cream-secondary);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--cream-secondary);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--cream);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-legal {
  color: var(--cream-secondary);
  font-size: 0.85rem;
}

.footer-badges {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-badge {
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: var(--radius-badge);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--cream-secondary);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .nav-logo-img {
    height: 115px;
    max-width: 336px;
  }

  .footer-logo-img {
    height: 115px;
    max-width: 336px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(11, 31, 59, 0.98);
    backdrop-filter: blur(12px);
    padding: 24px;
    gap: 16px;
  }

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

  .nav-links.open .nav-mobile-btn {
    display: inline-flex;
  }

  .nav-right .btn {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero-illustration {
    display: none;
  }

  .hero {
    padding: 150px 0 60px;
    min-height: auto;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

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

  .steps {
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding-left: 40px;
  }

  .steps::before {
    top: 32px;
    bottom: 32px;
    left: 52px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, var(--gold), var(--emerald));
  }

  .step {
    max-width: 100%;
    position: relative;
  }

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

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

  .footer-inner {
    flex-direction: column;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .section {
    padding: 60px 0;
  }

  .hero-badges {
    flex-direction: column;
    align-items: center;
  }
}
