/*
 * Landing page — atmospheric treatment
 * =====================================
 * Per Joe's direction: landing + demo pages get a more atmospheric look
 * than the functional/clean app + reader shells. Subtle gradients,
 * weather-themed imagery, more visual hierarchy.
 */

body.landing {
  background:
    radial-gradient(circle at 20% 10%, rgba(47, 129, 247, 0.15), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(248, 81, 73, 0.10), transparent 55%),
    linear-gradient(180deg, #0a1018 0%, #0d1117 100%);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
}

/* Slim transparent top nav over the hero */
.landing-nav {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-4) var(--space-6);
  position: sticky;
  top: 0;
  background: rgba(13, 17, 23, 0.5);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  z-index: var(--z-topbar);
}
.landing-nav-brand { display: flex; align-items: center; gap: var(--space-2); font-weight: 700; }
.landing-nav-brand img { height: 56px; width: auto; display: block; }
.landing-nav-links { display: flex; gap: var(--space-5); margin-left: var(--space-5); }
.landing-nav-links a { color: var(--text-2); font-size: var(--fs-base); }
.landing-nav-links a:hover { color: var(--text); text-decoration: none; }
.landing-nav-cta { margin-left: auto; display: flex; gap: var(--space-2); align-items: center; }
.landing-nav-cta .btn { padding: 8px var(--space-4); }

/* Hero */
.landing-hero {
  padding: var(--space-7) var(--space-6) var(--space-7);
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

/* Video-background variant — full-bleed satellite/storm video behind hero text */
.landing-hero-video {
  position: relative;
  min-height: 560px;
  height: calc(100vh - 72px); /* viewport minus topbar height */
  max-height: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0;
  padding: var(--space-6);
}
/* IMPORTANT: don't use negative z-index here. body.landing has a
   fixed-attachment radial+linear gradient background; a video at z-index:-2
   gets painted behind that gradient (because the body's painting layer is
   between negative-z descendants and the root). Stack the layers ABOVE
   the body bg by using positive z-index. */
.landing-hero-video .hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #050810;  /* visible during video load */
}
.landing-hero-video .hero-video-bg video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}
.landing-hero-video .hero-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Subtle uniform dim so the storm footage is clearly visible.
     Text legibility comes primarily from the text-shadow on .hero-content. */
  background: rgba(0, 0, 0, 0.25);
  pointer-events: none;
}
.landing-hero-video .hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
  color: white;
}
.landing-hero-video .hero-logo {
  width: clamp(180px, 22vw, 260px);
  height: auto;
  display: block;
  /* The Tropicaliconclear.png has ~16% transparent padding above the artwork
     and ~20% below the wordmark. Pull both edges in with negative margins
     so the visible gap to surrounding content reflects the artwork bounds,
     not the PNG bbox. Top -3vw, bottom -3.5vw scales with the logo's width. */
  margin: -3vw auto -3.5vw auto;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.5));
}
.landing-hero-video h1 {
  font-size: clamp(40px, 6.5vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 var(--space-4);
  color: white;
  /* Layered shadow: tight halo for legibility + wider glow for depth */
  text-shadow: 0 0 8px rgba(0,0,0,0.85), 0 2px 18px rgba(0,0,0,0.7);
  /* override the gradient-text from .landing-hero h1 — we want solid white here */
  -webkit-background-clip: initial;
  background-clip: initial;
  background: none;
}
.landing-hero-video .tagline {
  font-size: clamp(17px, 2vw, 21px);
  color: rgba(255,255,255,0.95);
  max-width: 720px;
  margin: 0 auto var(--space-5);
  line-height: 1.45;
  text-shadow: 0 0 6px rgba(0,0,0,0.8), 0 1px 12px rgba(0,0,0,0.6);
}
.landing-hero-video .hero-ctas {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}
.landing-hero-video .trust {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.7);
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}
.landing-hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 var(--space-4);
  background: linear-gradient(180deg, #ffffff 30%, #9da7b3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.landing-hero .tagline {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-2);
  max-width: 700px;
  margin: 0 auto var(--space-5);
  line-height: 1.5;
}
.landing-hero .hero-ctas {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-5);
}
.landing-hero .trust {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* Feature grid */
.landing-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--space-7) var(--space-6);
}
.landing-section h2 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  text-align: center;
  margin: 0 0 var(--space-2);
}
.landing-section .section-tagline {
  text-align: center;
  color: var(--text-2);
  margin-bottom: var(--space-6);
  font-size: var(--fs-md);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4);
}
.feature-card {
  background: rgba(22, 27, 34, 0.6);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  transition: border-color 0.15s, transform 0.15s;
}
.feature-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.feature-card .feature-icon {
  width: 48px; height: 48px;
  background: var(--accent-soft); color: var(--accent);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: var(--space-3);
}
.feature-card h3 { font-size: var(--fs-lg); margin: 0 0 var(--space-2); }
.feature-card p { color: var(--text-2); margin: 0; line-height: 1.55; }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-4);
  align-items: stretch;
}
.pricing-card {
  background: var(--surface-1);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  position: relative;
  display: flex;
  flex-direction: column;
}
.pricing-card.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(47,129,247,0.08) 0%, var(--surface-1) 100%);
}
.pricing-card.featured .pricing-tag {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: white;
  padding: 3px 12px; border-radius: var(--radius-pill);
  font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
}
.pricing-card .plan-name { font-size: var(--fs-lg); font-weight: 600; margin-bottom: var(--space-2); }
.pricing-card .price { font-size: 36px; font-weight: 700; line-height: 1; }
.pricing-card .price-period { font-size: var(--fs-sm); color: var(--text-muted); font-weight: 400; }
.pricing-card .price-alt { font-size: var(--fs-sm); color: var(--text-muted); margin-top: 4px; }
.pricing-card ul { list-style: none; padding: 0; margin: var(--space-4) 0; flex: 1; }
.pricing-card li { padding: 6px 0; color: var(--text-2); font-size: var(--fs-sm); display: flex; gap: var(--space-2); }
.pricing-card li::before { content: '✓'; color: var(--success); flex-shrink: 0; }
.pricing-card .btn { margin-top: auto; }

/* Footer */
.landing-footer {
  padding: var(--space-7) var(--space-6);
  border-top: 1px solid var(--border-soft);
  background: rgba(0,0,0,0.2);
  text-align: center;
  color: var(--text-muted);
  font-size: var(--fs-sm);
}
.landing-footer a { color: var(--text-2); margin: 0 var(--space-3); }
