/* ============================================
   pages.css — Page-specific styles
   ============================================ */

/* --- Home Hero — Cinematic --- */
.hero--home {
  background: var(--sky-dark);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: 0;
}

/* Background layers */
.hero__bg-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__bg-gradient {
  background:
    radial-gradient(ellipse 100% 80% at 50% 35%, rgba(27,73,101,0.95) 0%, transparent 65%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(232,119,46,0.08) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(58,125,68,0.06) 0%, transparent 45%),
    radial-gradient(ellipse 40% 35% at 50% 45%, rgba(45,106,138,0.5) 0%, transparent 60%),
    linear-gradient(178deg, #060e18 0%, #0c1f30 15%, #132f42 35%, #1B4965 55%, #1a3a54 75%, #0a1520 100%);
}

/* Subtle vignette */
.hero__bg-gradient::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 45%, transparent 0%, rgba(6,14,24,0.4) 100%);
}

.hero__bg-glow {
  background:
    radial-gradient(circle 500px at 50% 40%, rgba(232,119,46,0.1) 0%, transparent 65%),
    radial-gradient(circle 300px at 50% 38%, rgba(255,255,255,0.03) 0%, transparent 60%);
  animation: hero-glow-drift 12s ease-in-out infinite alternate;
}

@keyframes hero-glow-drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(15px, -10px) scale(1.05); }
}

.hero__bg-grain {
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px;
}

/* Floating particles */
.hero__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(232, 119, 46, 0.3);
  animation: particle-float 20s ease-in-out infinite;
}

.particle--1 { left: 15%; top: 20%; animation-duration: 22s; animation-delay: 0s; width: 2px; height: 2px; background: rgba(255,255,255,0.15); }
.particle--2 { left: 75%; top: 35%; animation-duration: 18s; animation-delay: -4s; width: 3px; height: 3px; }
.particle--3 { left: 40%; top: 70%; animation-duration: 25s; animation-delay: -8s; width: 2px; height: 2px; background: rgba(255,255,255,0.12); }
.particle--4 { left: 85%; top: 60%; animation-duration: 20s; animation-delay: -2s; width: 2px; height: 2px; background: rgba(232,119,46,0.2); }
.particle--5 { left: 25%; top: 80%; animation-duration: 28s; animation-delay: -6s; width: 4px; height: 4px; background: rgba(255,255,255,0.06); }
.particle--6 { left: 60%; top: 15%; animation-duration: 24s; animation-delay: -10s; width: 2px; height: 2px; background: rgba(232,119,46,0.15); }

@keyframes particle-float {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0; }
  10% { opacity: 1; }
  50% { transform: translate(30px, -40px) scale(1.5); opacity: 0.8; }
  90% { opacity: 1; }
}

/* Eye motif — large and atmospheric */
.hero__eye-wrapper {
  position: relative;
  width: 180px;
  height: 90px;
  margin: 0 auto var(--space-lg);
}

@media (min-width: 768px) {
  .hero__eye-wrapper {
    width: 240px;
    height: 120px;
    margin-bottom: var(--space-xl);
  }
}

.hero__eye-glow {
  position: absolute;
  inset: -40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,119,46,0.12) 0%, rgba(232,119,46,0.04) 40%, transparent 70%);
  filter: blur(20px);
  animation: eye-glow-pulse 4s ease-in-out infinite;
}

@keyframes eye-glow-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

.hero__eye-svg {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
}

/* Wordmark */
.hero__wordmark {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--white);
  line-height: 1;
  margin-bottom: var(--space-md);
  position: relative;
}

@media (min-width: 1024px) {
  .hero__wordmark {
    font-size: clamp(5rem, 8vw, 8rem);
  }
}

.hero__wordmark-dot {
  font-weight: 300;
  opacity: 0.45;
}

/* Tagline */
.hero__tagline {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 300;
  font-style: italic;
  color: var(--saffron-light);
  margin-bottom: var(--space-md);
  letter-spacing: 0.01em;
}

@media (min-width: 768px) {
  .hero__tagline {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    margin-bottom: var(--space-lg);
  }
}

/* Heritage script */
.hero__heritage {
  font-size: clamp(1rem, 2vw, 1.375rem);
  color: rgba(255, 255, 255, 0.18);
  margin-bottom: var(--space-lg);
  letter-spacing: 0.15em;
}

@media (min-width: 768px) {
  .hero__heritage {
    margin-bottom: var(--space-xl);
  }
}

/* CTA */
.hero__cta {
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  border-color: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.hero__cta:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.08);
}

/* Scroll indicator */
.hero__scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scroll-line 2.5s ease-in-out infinite;
}

@keyframes scroll-line {
  0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  30% { opacity: 1; transform: scaleY(1); transform-origin: top; }
  60% { opacity: 1; transform: scaleY(1); transform-origin: bottom; }
  100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

/* --- Home: Problem Section --- */
.problem-stats {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.problem-stat {
  font-family: var(--font-serif);
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.5;
  color: var(--sky);
  padding-left: var(--space-sm);
  border-left: 3px solid var(--saffron);
}

.problem-narrative {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--slate);
  margin-top: var(--space-md);
}

/* --- Home: Insight (Cinematic) --- */
.insight-section {
  background: var(--sky);
  color: var(--white);
}

.insight-section .cinematic__text {
  color: var(--white);
}

/* --- Home: How It Works --- */
.steps-list {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
}

/* --- Home: World Map Section --- */
.world-map-section {
  text-align: center;
}

.world-map {
  max-width: 900px;
  margin: var(--space-md) auto;
}

.world-map svg {
  width: 100%;
  height: auto;
}

.map-dot {
  animation: dot-pulse 3s ease-in-out infinite;
}

.map-dot:nth-child(2) { animation-delay: 0.5s; }
.map-dot:nth-child(3) { animation-delay: 1s; }
.map-dot:nth-child(4) { animation-delay: 1.5s; }
.map-dot:nth-child(5) { animation-delay: 2s; }
.map-dot:nth-child(6) { animation-delay: 2.5s; }

/* --- Home: Patent Cards --- */
.patent-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
}

@media (min-width: 768px) {
  .patent-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- Home: CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--sky-dark) 0%, var(--sky) 100%);
  color: var(--white);
  text-align: center;
}

.cta-section h2 {
  margin-bottom: var(--space-md);
}

/* --- Technology Hero --- */
.hero--tech {
  background: linear-gradient(135deg, var(--sky-dark) 0%, var(--sky) 60%, #2d6a8a 100%);
  color: var(--white);
}

.hero--tech .hero__subtitle {
  color: rgba(255, 255, 255, 0.75);
}

/* --- Technology: Pillars Diagram --- */
.pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
}

@media (min-width: 768px) {
  .pillars {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .pillars {
    grid-template-columns: repeat(4, 1fr);
  }
}

.pillar {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  text-align: center;
  border-top: 4px solid var(--saffron);
  transition: transform var(--duration-fast) var(--ease-out);
}

.pillar:hover {
  transform: translateY(-4px);
}

.pillar__number {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--saffron);
  margin-bottom: var(--space-xs);
}

.pillar__title {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.pillar__desc {
  font-size: 0.875rem;
  color: var(--slate);
  line-height: 1.6;
}

/* --- Technology: Patent Deep Dive --- */
.patent-dive {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: var(--space-lg);
}

.patent-dive__header {
  margin-bottom: var(--space-md);
}

.patent-dive__full-title {
  font-size: 1rem;
  color: var(--slate);
  line-height: 1.6;
  margin-top: var(--space-xs);
}

.patent-dive__claims {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-top: var(--space-sm);
}

/* --- Device Hero --- */
.hero--device {
  background: linear-gradient(135deg, var(--earth) 0%, #5a4540 50%, var(--sky-dark) 100%);
  color: var(--white);
}

.hero--device .hero__subtitle {
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-sans);
  font-size: 1.125rem;
  letter-spacing: 0.05em;
}

/* --- Device: Exploded View --- */
.device-explorer {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.device-explorer__svg {
  width: 100%;
}

.device-annotation {
  display: none;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  box-shadow: var(--shadow-md);
  position: absolute;
  width: 250px;
  z-index: 10;
}

.device-annotation.is-active {
  display: block;
}

.device-annotation__title {
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: var(--space-2xs);
}

.device-annotation__desc {
  font-size: 0.8125rem;
  color: var(--slate);
  line-height: 1.6;
}

/* Mobile: annotations as stacked list */
@media (max-width: 767px) {
  .device-annotations-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-top: var(--space-md);
  }

  .device-annotation-item {
    padding: var(--space-sm);
    border-left: 3px solid var(--saffron);
    background: var(--cream);
    border-radius: var(--radius-sm);
  }
}

/* --- Device: Specs Table --- */
.specs-section .table {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
}

/* --- Story Hero --- */
.hero--story {
  background: linear-gradient(135deg, var(--ochre) 0%, var(--saffron) 40%, #f0944f 100%);
  color: var(--white);
}

.hero--story .hero__subtitle {
  color: rgba(255, 255, 255, 0.85);
}

/* --- Story: Editorial --- */
.editorial {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
}

.editorial p {
  margin-bottom: var(--space-sm);
}

.editorial h2 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.editorial h3 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

/* --- Story: Farmer Profiles --- */
.farmer-profile {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  border-left: 4px solid var(--leaf);
}

.farmer-profile__name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--earth);
  margin-bottom: var(--space-2xs);
}

.farmer-profile__location {
  font-size: 0.875rem;
  color: var(--saffron);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.farmer-profile__story {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--slate);
}

/* --- Story: Eye Heritage --- */
.heritage-block {
  text-align: center;
  padding: var(--space-xl) 0;
}

.heritage-block__sanskrit {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--saffron);
  margin-top: var(--space-sm);
  opacity: 0.6;
}

/* --- Impact Hero --- */
.hero--impact {
  background: linear-gradient(135deg, var(--leaf-dark) 0%, var(--leaf) 50%, #5ca468 100%);
  color: var(--white);
}

.hero--impact .hero__subtitle {
  color: rgba(255, 255, 255, 0.8);
}

/* --- Impact: Stats Grid --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* --- Investors Hero --- */
.hero--investors {
  background: linear-gradient(135deg, var(--sky-dark) 0%, #1a3a54 40%, var(--sky) 100%);
  color: var(--white);
}

.hero--investors .hero__subtitle {
  color: rgba(255, 255, 255, 0.75);
}

/* --- Investors: Market Regions --- */
.region-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
}

.region-card__name {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--earth);
  margin-bottom: var(--space-xs);
}

.region-card__stat {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--saffron);
  margin-bottom: var(--space-xs);
}

.region-card__desc {
  font-size: 0.9375rem;
  color: var(--slate);
  line-height: 1.6;
}

/* --- Contact Hero --- */
.hero--contact {
  background: var(--cream);
  min-height: 40vh;
}

.hero--contact .hero__subtitle {
  color: var(--slate);
}

/* --- Contact Form --- */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

/* --- Legal Pages --- */
.legal {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding-top: calc(var(--nav-height) + var(--space-lg));
}

.legal h1 {
  margin-bottom: var(--space-md);
}

.legal h2 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  font-size: 1.5rem;
}

.legal p {
  margin-bottom: var(--space-sm);
  color: var(--slate);
}

.legal ul {
  list-style: disc;
  padding-left: var(--space-md);
  margin-bottom: var(--space-sm);
  color: var(--slate);
}

.legal li {
  margin-bottom: var(--space-2xs);
}

/* --- Moat Cards --- */
.moat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  border-top: 4px solid var(--sky);
}

.moat-card__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--saffron);
  margin-bottom: var(--space-xs);
}

.moat-card__title {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.moat-card__body {
  font-size: 0.9375rem;
  color: var(--slate);
  line-height: 1.7;
}

/* --- Timeline --- */
.timeline {
  position: relative;
  padding-left: var(--space-md);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--saffron);
}

.timeline__item {
  position: relative;
  padding-bottom: var(--space-md);
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-md) - 5px);
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--saffron);
}

.timeline__date {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--saffron);
  margin-bottom: var(--space-2xs);
}

.timeline__content {
  font-size: 1rem;
  color: var(--slate);
}

/* --- Eye Divider --- */
.eye-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md) 0;
}

.eye-divider svg {
  width: 40px;
  height: 20px;
  color: var(--saffron);
  opacity: 0.4;
}
