/* ── SameWave: Editorial Social Club Design ── */
@import 'player-tokens.css';

:root {
  /* Warm Editorial Palette */
  --land-bg: var(--bg); /* oklch(0.975 0.008 60) */
  --land-bg-elev: #ffffff;
  
  --land-text: var(--fg); /* oklch(0.2 0.03 340) */
  --land-text-muted: var(--fg-muted);
  
  --land-border: rgba(0, 0, 0, 0.08);
  --land-border-hover: rgba(0, 0, 0, 0.15);

  /* Fonts */
  --land-font-body: 'Inter', var(--f);
  --land-font-display: 'Playfair Display', Georgia, serif;
  
  /* Accents from Player App */
  --land-accent: var(--accent);
  --land-accent-bright: var(--accent-hover);
  --land-accent-glow: oklch(0.42 0.09 330 / 0.15);
  --land-accent-subtle: oklch(0.42 0.09 330 / 0.1);
  --land-accent-faint: oklch(0.42 0.09 330 / 0.05);
}

html, body.page-landing {
  min-height: 100%;
  height: auto;
  background-color: var(--land-bg);
}

body.page-landing {
  color: var(--land-text);
  overflow-x: hidden;
  scroll-behavior: smooth;
  font-family: var(--land-font-body);
}

.display {
  font-family: var(--land-font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.land-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Navigation ─── */
.land-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: rgba(251, 250, 248, 0.85); /* Slightly off-white */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--land-border);
  z-index: 100;
  transition: transform 0.3s ease;
}

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

.land-nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--land-text);
  font-family: var(--land-font-display);
  font-size: 1.75rem;
  font-weight: 400;
}

.land-nav-logo {
  width: 24px;
  height: 24px;
  color: var(--land-accent);
}

.land-nav-links {
  display: none;
  gap: 32px;
}

@media (min-width: 768px) { .land-nav-links { display: flex; } }

.land-nav-links a {
  text-decoration: none;
  color: var(--land-text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

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

.land-nav-actions { display: none; align-items: center; gap: 16px; }
@media (min-width: 768px) { .land-nav-actions { display: flex; } }

.land-nav-btn {
  background: transparent;
  border: none;
  color: var(--land-text-muted);
  font-family: var(--land-font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease;
}

.land-nav-btn:hover {
  color: var(--land-text);
}

/* ─── Typographic Mobile Menu Trigger ─── */
.land-nav-text-btn {
  background: none;
  border: none;
  font-family: var(--land-font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--land-text);
  cursor: pointer;
  padding: 8px;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

@media (min-width: 768px) { .land-nav-text-btn { display: none; } }

/* ─── Typographic Glass Mobile Menu ─── */
.land-mobile-glass {
  width: 100dvw;
  height: 100dvh;
  background: rgba(251, 250, 248, 0.75);
  border: none;
  padding: 0;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  margin: 0;
  transition: opacity 0.4s ease;
  opacity: 0;
  overflow-y: auto; /* Prevent cut-off on short mobile screens */
}
.land-mobile-glass:popover-open {
  opacity: 1;
}
.land-glass-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  font-family: var(--land-font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--land-text);
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  z-index: 10;
}
.land-glass-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 80px 24px; /* Space for close button and bottom safe area */
  gap: 40px;
}
.land-glass-content nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.land-glass-content a {
  font-family: var(--land-font-display);
  font-size: clamp(2.5rem, 8vw, 3.5rem);
  text-decoration: none;
  color: var(--land-text);
  letter-spacing: -1px;
  transition: opacity 0.2s;
}
.land-glass-content a:hover {
  opacity: 0.7;
}
.land-glass-lang {
  font-family: var(--land-font-body);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--land-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  margin-top: 20px;
  transition: color 0.2s;
}
.land-glass-lang:hover {
  color: var(--land-text);
}

/* ─── Buttons (Soft, Pill-shaped) ─── */
.land-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 100px; /* Pill shape */
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.land-btn--primary {
  background: var(--land-accent);
  color: #fff;
  border: 1px solid transparent;
  box-shadow: 0 8px 24px var(--land-accent-glow);
}

.land-btn--primary:hover {
  background: var(--land-accent-bright);
  box-shadow: 0 12px 32px var(--land-accent-glow);
  transform: translateY(-2px);
}

.land-btn--outline {
  background: #ffffff;
  color: var(--land-text);
  border: 1px solid var(--land-border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.land-btn--outline:hover {
  border-color: var(--land-border-hover);
  background: #fdfdfd;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

.land-btn--nav {
  background: var(--land-text);
  color: var(--land-bg-elev);
  padding: 8px 20px;
  border-radius: 100px;
  font-family: var(--land-font-body);
}
.land-btn--nav:hover {
  background: var(--land-accent);
  color: #fff;
}

/* ─── Hero ─── */
.land-hero {
  position: relative;
  padding-top: calc(var(--nav-h) + 60px);
  padding-bottom: 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh; /* Allow wave to fill space */
}

/* ─── Animated SVG Waves ─── */
.land-wave-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40vh; /* Cover the bottom half of the hero */
  min-height: 300px;
  overflow: hidden;
  z-index: 0;
}

.land-wave {
  width: 100%;
  height: 100%;
  position: absolute;
  bottom: 0;
  left: 0;
}

.land-wave-parallax > use {
  animation: move-forever 25s cubic-bezier(.55,.5,.45,.5) infinite;
}
.land-wave-parallax > use:nth-child(1) {
  animation-delay: -2s;
  animation-duration: 7s;
}
.land-wave-parallax > use:nth-child(2) {
  animation-delay: -3s;
  animation-duration: 10s;
}
.land-wave-parallax > use:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 13s;
}
.land-wave-parallax > use:nth-child(4) {
  animation-delay: -5s;
  animation-duration: 20s;
}
@keyframes move-forever {
  0% { transform: translate3d(-90px,0,0); }
  100% { transform: translate3d(85px,0,0); }
}

.land-hero-content {
  max-width: 800px;
  z-index: 1;
  position: relative;
  margin-top: -80px; /* Pull content up slightly */
}

.land-hero-badge {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--land-accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.land-hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;
  margin-bottom: 24px;
  color: var(--land-text);
}

.land-hero-sub {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--land-text-muted);
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

/* ─── Dividers & Alt Sections ─── */
.land-features--alt {
  background: rgba(0, 0, 0, 0.02);
  border-top: 1px solid rgba(0,0,0,0.03);
  border-bottom: 1px solid rgba(0,0,0,0.03);
}

/* ─── Soft Editorial Cards ─── */
.land-soft-card {
  background: var(--land-bg-elev);
  border-radius: 24px; /* Tighter corners */
  padding: 32px; /* Tighter padding */
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
  border: 1px solid rgba(0,0,0,0.03);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.land-soft-card:hover {
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}

/* ─── Value Props ─── */
.land-values {
  padding: 40px 0 60px;
}

.land-values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.land-val-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.land-val-icon {
  font-family: var(--land-font-display);
  font-size: 2.5rem;
  color: var(--land-accent);
  display: block;
  line-height: 1;
}

.land-soft-card h2 {
  font-family: var(--land-font-display);
  font-size: 1.75rem;
  color: var(--land-text);
  margin-bottom: 0;
  line-height: 1.1;
}

.land-soft-card p {
  color: var(--land-text-muted);
  line-height: 1.6;
  font-size: 1rem;
}

/* ─── Features Sections ─── */
.land-features {
  padding: 80px 0; /* Giving features a bit more breathing room top/bottom */
}

.land-section-header {
  margin-bottom: 60px;
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.land-section-badge {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--land-accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.land-section-header h2 {
  font-family: var(--land-font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 16px;
  line-height: 1.1;
  color: var(--land-text);
}

.land-section-header p {
  font-size: 1.1rem;
  color: var(--land-text-muted);
  line-height: 1.6;
}

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

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

.land-feat-num {
  font-family: var(--land-font-display);
  font-size: 1.5rem;
  color: var(--land-border-hover);
  margin-bottom: 24px;
  display: block;
}

.land-soft-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  font-weight: 600;
}

/* ─── How It Works ─── */
.land-how {
  padding: 80px 0;
}

.land-how-steps {
  max-width: 600px; /* Tighter width to reduce gigantic feel */
  margin: 0 auto;
}

.land-step {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
  align-items: flex-start;
  padding: 24px;
  background: var(--land-bg-elev);
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.02);
  border: 1px solid rgba(0,0,0,0.02);
}

.land-step:last-child {
  margin-bottom: 0;
}

.land-step-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--land-bg);
  color: var(--land-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--land-font-display);
  font-size: 1.35rem;
  border-radius: 50%;
}

.land-step-content h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
  margin-top: 8px;
  font-family: var(--land-font-display);
}

.land-step-content p {
  color: var(--land-text-muted);
  line-height: 1.5;
  font-size: 0.95rem;
}

@media (max-width: 600px) {
  .land-step {
    flex-direction: column;
    gap: 16px;
    padding: 20px;
  }
  .land-step-content h3 {
    margin-top: 0;
  }
}

/* ─── Final CTA ─── */
.land-final {
  padding: 100px 0 120px;
  text-align: center;
}

.land-final-title {
  font-family: var(--land-font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 24px;
  color: var(--land-text);
}

.land-final-sub {
  font-size: 1.15rem;
  color: var(--land-text-muted);
  margin-bottom: 40px;
}

/* ─── Footer ─── */
.land-footer {
  padding: 60px 0 40px;
  background: var(--land-bg-elev);
  border-top: 1px solid var(--land-border);
}

.land-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 80px;
}

.land-footer-brand {
  max-width: 320px;
}

.land-footer-name {
  font-family: var(--land-font-display);
  font-size: 2rem;
  display: block;
  margin: 16px 0 16px;
}

.land-footer-tagline {
  color: var(--land-text-muted);
  line-height: 1.7;
  font-size: 1.05rem;
}

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

.land-footer-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.land-footer-col h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--land-text);
  margin-bottom: 8px;
  font-weight: 600;
}

.land-footer-col a {
  color: var(--land-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 1rem;
}

.land-footer-col a:hover {
  color: var(--land-accent);
}

.land-footer-bottom {
  text-align: center;
  color: var(--land-text-muted);
  font-size: 0.95rem;
  padding-top: 40px;
  border-top: 1px solid var(--land-border);
}

/* ─── Robust Intersection Observer Reveals ─── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), 
              transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
