/* ========================================
   Indian Valley — App Landing Page
   ======================================== */

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

:root {
  /* Palette */
  --bg: #0f0e0c;
  --bg-card: #1a1815;
  --fg: #f5f0e8;
  --fg-muted: #9e9586;
  --primary: #d4a843;
  --primary-dim: rgba(212, 168, 67, 0.12);
  --accent: #c45e2c;
  --border: rgba(212, 168, 67, 0.15);

  /* Gradient */
  --gradient-ember: linear-gradient(135deg, #d4a843, #c45e2c, #8b2d1a);
  --gradient-gold: linear-gradient(180deg, #e0be6a, #c49032);

  /* Glow */
  --glow-ember: 0 30px 80px -20px rgba(196, 94, 44, 0.35);

  /* Type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Outfit', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--fg);
  background: var(--bg);
  background-image: radial-gradient(ellipse at top, #221e17 0%, var(--bg) 60%);
  background-attachment: fixed;
  min-height: 100vh;
}

/* ---- Layout ---- */
.view {
  display: none;
  position: relative;
  min-height: 100vh;
  flex-direction: column;
  overflow: hidden;
}

.view.active {
  display: flex;
}

.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
}

.hero-content {
  max-width: 560px;
  text-align: center;
  animation: fadeUp 0.8s ease-out both;
}

/* ---- Ambient glow blobs ---- */
.ambient-glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(140px);
}

.glow-top-center {
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: rgba(196, 94, 44, 0.15);
}

.glow-bottom-right {
  bottom: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: rgba(139, 45, 26, 0.2);
}

/* ---- Pill badge ---- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--primary-dim);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
}

.pill-live {
  border-color: rgba(76, 175, 80, 0.3);
  background: rgba(76, 175, 80, 0.08);
  color: #81c784;
}

/* Pulse dot */
.pulse-dot {
  position: relative;
  display: inline-flex;
  width: 8px;
  height: 8px;
}

.pulse-dot-core {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: currentColor;
}

.pulse-dot-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: currentColor;
  animation: pulse-ring 1.8s ease-out infinite;
}

/* ---- Typography ---- */
h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 8vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-top: 1.5rem;
}

.text-gradient {
  background: var(--gradient-ember);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  margin-top: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--fg-muted);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Features strip (coming soon) ---- */
.features-strip {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.feature {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--fg-muted);
}

.feature-icon {
  font-size: 1.1rem;
}

/* ---- Stores preview (coming soon) ---- */
.stores-preview {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.stores-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.stores-platforms {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- Store buttons (download) ---- */
.store-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.5rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--fg);
  text-decoration: none;
  transition: all 0.25s ease;
}

.store-btn:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--glow-ember);
}

.store-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  opacity: 0.9;
}

.store-btn-text {
  text-align: left;
  line-height: 1.2;
}

.store-btn-small {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.store-btn-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

/* ---- Redirect message ---- */
.redirect-msg {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--fg-muted);
  min-height: 1.2em;
}

/* ---- Footer ---- */
footer {
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* ---- Animations ---- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.9);
    opacity: 0.7;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* ========================================
   Legal Pages (Privacy Policy / Terms)
   ======================================== */

.legal-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.legal-nav {
  padding: 1.5rem;
  position: relative;
  z-index: 10;
}

.legal-nav-brand {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.legal-nav-brand:hover {
  opacity: 0.8;
}

.legal-content {
  flex: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem 1.5rem 4rem;
  position: relative;
  z-index: 1;
  animation: fadeUp 0.6s ease-out both;
}

.legal-header {
  margin-bottom: 3rem;
}

.legal-label {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.legal-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-top: 0.25rem;
}

.legal-effective {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--fg-muted);
}

.legal-content section {
  margin-bottom: 2.5rem;
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.75rem;
}

.legal-content h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--fg);
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.legal-content p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--fg-muted);
  margin-bottom: 0.75rem;
}

.legal-content ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 1rem;
}

.legal-content li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--fg-muted);
  margin-bottom: 0.35rem;
}

.legal-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.6;
}

.legal-content a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid rgba(212, 168, 67, 0.3);
  transition: border-color 0.2s ease;
}

.legal-content a:hover {
  border-color: var(--primary);
}

.contact-block {
  margin-top: 0.75rem;
  padding: 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.contact-block p {
  margin-bottom: 0.25rem;
}

/* ---- Footer links ---- */
.legal-footer-links {
  margin-bottom: 0.5rem;
}

.legal-footer-links a {
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.footer-sep {
  margin: 0 0.5rem;
  color: var(--fg-muted);
  opacity: 0.4;
}

.footer-links {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

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

/* ---- Responsive ---- */
@media (max-width: 480px) {
  .hero {
    padding: 3rem 1.25rem;
  }

  .features-strip {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .store-buttons {
    flex-direction: column;
    align-items: center;
  }

  .store-btn {
    width: 100%;
    max-width: 260px;
    justify-content: center;
  }

  .legal-content {
    padding: 1rem 1.25rem 3rem;
  }
}
