/* ═══════════════════════════════════════════════════════════════
   style.css — Aera Website Design System + Layout + Components
   ═══════════════════════════════════════════════════════════════ */

/* ─── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ─── Design Tokens ───────────────────────────────────────────── */
:root {
  /* Brand Greens */
  --color-hero-bg:        #0D1F07;
  --color-brand-primary:  #2D5016;
  --color-brand-mid:      #3D6B1F;
  --color-brand-surface:  #F0F5EC;

  /* Brand Gold */
  --color-gold:           #C9A84C;
  --color-gold-dark:      #A88930;
  --color-gold-light:     #E8D08A;

  /* Neutrals */
  --color-white:          #FFFFFF;
  --color-off-white:      #F8F6F1;
  --color-text-dark:      #1C1C1E;
  --color-text-muted:     #6B7280;
  --color-border-light:   #E4EBE0;

  /* Dark section text */
  --color-text-on-dark:             #FFFFFF;
  --color-text-on-dark-secondary:   rgba(255, 255, 255, 0.72);

  /* Spacing */
  --space-xs:  8px;
  --space-sm:  16px;
  --space-md:  24px;
  --space-lg:  48px;
  --space-xl:  80px;
  --space-xxl: 120px;

  /* Border Radius */
  --radius-sm:   8px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-card:       0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-card-hover: 0 8px 32px rgba(0, 0, 0, 0.14);
  --shadow-phone:      0 32px 64px rgba(0, 0, 0, 0.35), 0 8px 24px rgba(0, 0, 0, 0.2);
  --shadow-glow:       0 0 80px rgba(45, 80, 22, 0.4);
}

/* ─── Base Typography ─────────────────────────────────────────── */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-dark);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.display-font { font-family: 'Playfair Display', Georgia, serif; }

/* ─── Layout Utilities ────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

@media (max-width: 768px) {
  .container,
  .container-narrow { padding: 0 var(--space-sm); }
}

/* ─── Gold Shimmer (shared class) ────────────────────────────── */
.gold-shimmer {
  background: linear-gradient(
    90deg,
    #C9A84C 0%,
    #E8D08A 40%,
    #C9A84C 60%,
    #A88930 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3.5s linear infinite;
}

/* ═══════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 64px;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  background: transparent;
  border-bottom: 1px solid transparent;
}

.site-nav.scrolled {
  background: rgba(13, 31, 7, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 768px) {
  .nav-inner { padding: 0 var(--space-sm); }
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo-img {
  height: 40px;
  width: auto;
  border-radius: 8px;
  display: block;
  flex-shrink: 0;
}

.nav-cta {
  background: var(--color-gold);
  color: var(--color-hero-bg);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.nav-cta:hover {
  background: var(--color-gold-dark);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .nav-cta { padding: 8px 16px; font-size: 13px; }
}

/* ═══════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--color-hero-bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Living mesh orbs */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  will-change: transform;
}

.orb-a {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #2D5016 0%, transparent 70%);
  top: -100px; left: -100px;
  animation: drift-a 14s ease-in-out infinite;
}

.orb-b {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #3D6B1F 0%, transparent 70%);
  top: 20%; right: -80px;
  animation: drift-b 18s ease-in-out infinite;
}

.orb-c {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #C9A84C 0%, transparent 70%);
  bottom: 10%; left: 30%;
  opacity: 0.15;
  animation: drift-c 12s ease-in-out infinite;
}

.orb-d {
  width: 350px; height: 350px;
  background: radial-gradient(circle, #1A3309 0%, transparent 70%);
  bottom: -80px; right: 20%;
  animation: drift-d 16s ease-in-out infinite;
}

/* Fine dot texture overlay */
.hero-texture {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

/* Hero content grid */
.hero-content {
  flex: 1;
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: var(--space-lg);
  align-items: center;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 120px var(--space-lg) var(--space-xl);
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    padding: 100px var(--space-sm) var(--space-lg);
    gap: var(--space-lg);
    text-align: center;
  }
}

/* ── Hero Left: text ── */
.hero-eyebrow {
  display: inline-flex;
  margin-bottom: 28px;
  animation: fade-up 0.7s ease both;
  animation-delay: 0.1s;
}

.hero-eyebrow span {
  background: rgba(201, 168, 76, 0.15);
  border: 1px solid rgba(201, 168, 76, 0.35);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-gold);
  letter-spacing: 0.01em;
}

@media (max-width: 768px) {
  .hero-eyebrow { display: flex; justify-content: center; }
}

.hero-h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 68px;
  font-weight: 700;
  color: var(--color-text-on-dark);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  animation: fade-up 0.7s ease both;
  animation-delay: 0.25s;
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "clig" 0, "dlig" 0, "calt" 0;
}

@media (max-width: 1024px) {
  .hero-h1 { font-size: 52px; }
}

@media (max-width: 768px) {
  .hero-h1 { font-size: 40px; }
}

.hero-subtext {
  font-size: 18px;
  color: var(--color-text-on-dark-secondary);
  line-height: 1.6;
  max-width: 520px;
  margin-bottom: 40px;
  animation: fade-up 0.7s ease both;
  animation-delay: 0.45s;
}

@media (max-width: 768px) {
  .hero-subtext { font-size: 16px; margin: 0 auto 32px; }
}

.play-badge-link {
  display: inline-block;
  margin-bottom: 16px;
  animation: fade-up 0.7s ease both;
  animation-delay: 0.65s;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.play-badge-link:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.play-badge-img {
  display: block;
  height: 52px;
  width: auto;
  max-width: 180px;
}

@media (max-width: 768px) {
  .play-badge-img { height: 46px; max-width: 160px; }
  .play-badge-link { margin: 0 auto 16px; }
}

.hero-subnote {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  animation: fade-up 0.7s ease both;
  animation-delay: 0.75s;
}

/* ── Hero Right: phone ── */
.hero-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: var(--space-md) 24px var(--space-md) 0;
  overflow: visible;
}

.phone-wrapper {
  position: relative;
  width: 250px;
  margin: 0 auto;
  animation: float 4s ease-in-out infinite;
}

@media (max-width: 768px) {
  .phone-wrapper { width: 215px; }
}

.phone-glow {
  position: absolute;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(45, 80, 22, 0.55) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  filter: blur(30px);
}

.phone-frame {
  width: 100%;
  height: 465px;
  background: #111;
  border-radius: 40px;
  border: 8px solid #2A2A2A;
  box-shadow: var(--shadow-phone);
  overflow: hidden;
  position: relative;
}

@media (max-width: 768px) {
  .phone-frame { height: 400px; border-radius: 34px; }
}

.screens-container {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Screen crossfade */
.screen {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  animation: screen-cycle 12s ease-in-out infinite;
}

.screen-1 { animation-delay: 0s; }
.screen-2 { animation-delay: 3s; }
.screen-3 { animation-delay: 6s; }
.screen-4 { animation-delay: 9s; }

/* Placeholder (when no screenshots) */
.phone-placeholder {
  width: 100%;
  height: 100%;
  background: #1A2E10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-placeholder-mark {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 72px;
  font-weight: 700;
  color: var(--color-gold);
  opacity: 0.35;
  user-select: none;
}

/* ── Wave Divider ── */
.wave-divider {
  line-height: 0;
  position: relative;
  z-index: 1;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: 80px;
}

/* ═══════════════════════════════════════════════════════════════
   FEATURES SECTION
   ═══════════════════════════════════════════════════════════════ */
.features {
  background: var(--color-off-white);
  padding: var(--space-xxl) 0;
}

@media (max-width: 768px) {
  .features { padding: var(--space-xl) 0; }
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--color-brand-primary);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 44px;
  font-weight: 700;
  color: var(--color-text-dark);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

@media (max-width: 768px) {
  .section-h2 { font-size: 32px; }
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 768px) {
  .features-grid { grid-template-columns: 1fr; }
}

.feature-card {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease;
  transform-style: preserve-3d;
  will-change: transform;
  cursor: default;
}

.feature-card:hover {
  box-shadow: var(--shadow-card-hover);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--color-brand-surface);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-brand-primary);
  fill: none;
}

.feature-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 10px;
  line-height: 1.3;
}

@media (max-width: 768px) {
  .feature-title { font-size: 18px; }
}

.feature-body {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ═══════════════════════════════════════════════════════════════
   BRAND STATEMENT STRIP
   ═══════════════════════════════════════════════════════════════ */
.brand-strip {
  background: #0D1F07;
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.brand-strip::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(45, 80, 22, 0.3) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(60px);
  animation: pulse-slow 8s ease-in-out infinite;
  pointer-events: none;
}

.brand-strip-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.brand-strip-line {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

@media (max-width: 768px) {
  .brand-strip { padding: var(--space-xl) var(--space-sm); }
  .brand-strip-line { font-size: 32px; }
}

/* ═══════════════════════════════════════════════════════════════
   DEEPER MESSAGE SECTION
   ═══════════════════════════════════════════════════════════════ */
.deeper-message {
  background: linear-gradient(160deg, #0D1F07 0%, #2D5016 100%);
  padding: var(--space-xxl) 0;
}

@media (max-width: 768px) {
  .deeper-message { padding: var(--space-xl) 0; }
}

.quote-mark {
  font-family: 'Playfair Display', serif;
  font-size: 140px;
  line-height: 0.8;
  color: var(--color-gold);
  opacity: 0.25;
  margin-bottom: -40px;
  user-select: none;
}

.deeper-para {
  font-size: 19px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.88);
  font-family: 'Inter', sans-serif;
}

@media (max-width: 768px) {
  .deeper-para { font-size: 17px; }
  .quote-mark { font-size: 100px; margin-bottom: -30px; }
}

.brand-footnote {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 40px;
  font-family: 'Inter', sans-serif;
}

/* ═══════════════════════════════════════════════════════════════
   AEO FAQ SECTION
   ═══════════════════════════════════════════════════════════════ */
.aeo-faq {
  background: var(--color-off-white);
  padding: var(--space-xl) 0;
}

.faq-heading {
  font-size: 22px;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 24px;
  font-family: 'Inter', sans-serif;
}

.faq-item {
  border-bottom: 1px solid var(--color-border-light);
}

.faq-item:first-of-type { border-top: 1px solid var(--color-border-light); }

.faq-item summary {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-dark);
  padding: 16px 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 18px;
  color: var(--color-text-muted);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item[open] > summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.65;
  padding-bottom: 16px;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.site-footer {
  background: #0D1F07;
  padding: 40px var(--space-lg);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

@media (max-width: 768px) {
  .site-footer { padding: 40px var(--space-sm); }
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-sm);
  }
}

.footer-brand {
  display: flex;
  align-items: center;
}

.footer-logo-img {
  height: 36px;
  width: auto;
  border-radius: 7px;
  display: block;
  flex-shrink: 0;
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  justify-content: flex-end;
}

@media (max-width: 768px) {
  .footer-links { justify-content: center; }
}

.footer-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.2s;
  padding: 2px 4px;
}

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

.footer-links span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.25);
}

.footer-copy {
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
  max-width: 1200px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════════
   COMING SOON — full-page lockdown
   Remove once app is registered on Google Play.
   ═══════════════════════════════════════════════════════════════ */
.cs-fullpage {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(160deg, #0D1F07 0%, #1A3509 60%, #2D5016 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-direction: column;
}

/* Centered content */
.cs-center {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.cs-logo {
  height: 96px;
  width: auto;
  border-radius: 20px;
  margin-bottom: 20px;
}

.cs-wordmark {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 52px;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .cs-logo { height: 72px; border-radius: 16px; }
  .cs-wordmark { font-size: 40px; }
}

.cs-tagline {
  font-size: 19px;
  color: rgba(255, 255, 255, 0.45);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
  margin-bottom: 40px;
}

.cs-contact {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.3);
  font-family: 'Inter', sans-serif;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.cs-contact:hover {
  color: rgba(255, 255, 255, 0.65);
  border-color: rgba(255, 255, 255, 0.35);
}

/* Ambient orbs — same technique as hero */
.cs-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cs-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}

.cs-orb-a {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #2D5016 0%, transparent 70%);
  top: -120px; left: -80px;
  opacity: 0.5;
  animation: drift-a 18s ease-in-out infinite;
}

.cs-orb-b {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #C9A84C 0%, transparent 70%);
  bottom: -80px; right: -60px;
  opacity: 0.12;
  animation: drift-b 22s ease-in-out infinite;
}

.cs-orb-c {
  width: 350px; height: 350px;
  background: radial-gradient(circle, #3D6B1F 0%, transparent 70%);
  top: 40%; right: 10%;
  opacity: 0.3;
  animation: drift-c 16s ease-in-out infinite;
}

.cs-inner {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 0 auto;
}

.cs-badge {
  display: inline-block;
  background: rgba(201, 168, 76, 0.15);
  border: 1px solid rgba(201, 168, 76, 0.4);
  border-radius: var(--radius-pill);
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-gold);
  letter-spacing: 0.04em;
  margin-bottom: 32px;
}

.cs-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 52px;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

@media (max-width: 768px) {
  .cs-heading { font-size: 36px; }
}

.cs-sub {
  font-size: 17px;
  color: var(--color-text-on-dark-secondary);
  line-height: 1.7;
  margin-bottom: 48px;
}

.cs-sub a {
  color: var(--color-gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 168, 76, 0.4);
  transition: border-color 0.2s;
}

.cs-sub a:hover { border-color: var(--color-gold); }

.cs-footnote {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
  font-family: 'Inter', sans-serif;
}

/* Lockdown footer — copyright only */
.cs-footer {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.18);
  font-family: 'Inter', sans-serif;
  z-index: 1;
}
