/* ═══════════════════════════════════════════════════════════
   VOLLEY — Landing Page Styles  (landing.css)
   ═══════════════════════════════════════════════════════════ */

/* ── Page shell ─────────────────────────────────────────── */
.page-landing {
  min-height: 100vh;
  padding-top: var(--nav-height);
}

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px 64px;
  position: relative;
}

/* Background radial glows */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.hero-glow-1 {
  position: absolute;
  top: -20%; left: 40%;
  transform: translateX(-50%);
  width: 1100px; height: 1100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 241, 53, 0.10) 0%, rgba(200,241,53,0.04) 40%, transparent 70%);
  animation: float 4s ease-in-out infinite;
}
.hero-glow-2 {
  position: absolute;
  bottom: -25%; right: -5%;
  width: 800px; height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 241, 53, 0.06) 0%, transparent 65%);
  animation: float 6s ease-in-out infinite reverse;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 100% 100% at 50% 50%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 100% 100% at 50% 50%, black 20%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

/* Hero logo */
.hero-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeInDown 0.6s 0.05s both;
}
.hero-logo-img {
  width: 72px;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 18px rgba(200,241,53,0.35));
}

/* Eye-brow pill */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 16px;
  background: var(--lime-muted);
  border: 1px solid var(--lime-border);
  border-radius: var(--r-pill);
  color: var(--lime);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeInDown 0.6s 0.2s both;
}
.hero-eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--lime);
  animation: pulse 2s ease-in-out infinite;
}

/* Main headline */
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(64px, 11vw, 128px);
  font-weight: 900;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  line-height: 0.88;
  color: var(--ghost);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeInUp 0.8s 0.35s both;
}
.hero-headline-accent {
  color: var(--lime);
  display: inline-block;
  /* subtle text glow */
  text-shadow: 0 0 60px rgba(200, 241, 53, 0.35);
  animation: pulse 2s ease-in-out infinite;
  /* Pulse inherits after the entry animation completes */
  animation-delay:inherit;
}

/* Sub-headline */
.hero-sub {
  font-size: clamp(var(--text-lg), 2.5vw, var(--text-xl));
  font-weight: 300;
  color: var(--ghost-2);
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto 44px;
  opacity: 0;
  animation: fadeInUp 0.8s 0.5s both;
}

/* CTA buttons row */
.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 0.8s 0.65s both;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--grey);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeIn 0.8s 1.4s both;
}
.scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--grey), transparent);
  animation: shimmer 2s ease-in-out infinite;
}

/* ── FEATURES / HOW IT WORKS ─────────────────────────────── */
.section {
  padding: 120px 24px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 5vw, 60px);
  font-weight: 900;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  line-height: 0.92;
  color: var(--ghost);
  max-width: 540px;
  margin-bottom: 16px;
}

.section-desc {
  font-size: var(--text-lg);
  color: var(--ghost-2);
  font-weight: 300;
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: 64px;
}

/* Steps / process cards */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2px;
  background: var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}

.step-card {
  background: var(--surface-1);
  padding: 44px 36px;
  position: relative;
  transition: background 0.25s;
  cursor: default;
}
.step-card:hover { background: var(--surface-2); }

.step-card-num {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 900;
  color: var(--lime-bright);
  opacity: 0.5;
  line-height: 1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.step-card-icon {
  font-size: 32px;
  margin-bottom: 16px;
  display: block;
}

.step-card-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  color: var(--ghost);
  margin-bottom: 10px;
  line-height: 1;
}

.step-card-body {
  font-size: var(--text-base);
  color: var(--ghost-2);
  font-weight: 300;
  line-height: 1.6;
}

/* ── WHY VOLLEY ───────────────────────────────────────────── */
.features-section {
  padding: 100px 24px 120px;
  background: var(--surface-1);
  position: relative;
  z-index: 1;
}

.features-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 64px;
}

.feature-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 36px 32px;
  transition: border-color 0.25s, transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.feature-card:hover {
  border-color: var(--lime-border);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  background: var(--lime-muted);
  border: 1px solid var(--lime-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin-bottom: 20px;
}

.feature-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  color: var(--ghost);
  margin-bottom: 8px;
  line-height: 1;
}

.feature-body {
  font-size: var(--text-sm);
  color: var(--ghost-2);
  font-weight: 300;
  line-height: 1.65;
}

/* ── HERO DEMO / PREVIEW ─────────────────────────────────── */
.demo-section {
  padding: 80px 24px 120px;
  position: relative;
  z-index: 1;
}
.demo-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.demo-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 60px 48px;
  margin-top: 56px;
  position: relative;
  overflow: hidden;
}
.demo-card::before {
  content: '';
  position: absolute;
  top: -50px; left: 50%;
  transform: translateX(-50%);
  width: 400px; height: 200px;
  background: radial-gradient(ellipse, rgba(200,241,53,0.07) 0%, transparent 70%);
  pointer-events: none;
}

/* Topic sample display */
.demo-topic {
  font-family: var(--font-reel);
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  font-style: italic;
  color: var(--ghost);
  line-height: 1.3;
  margin-bottom: 32px;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s, transform 0.4s var(--ease-out);
}
.demo-topic.fade-out {
  opacity: 0;
  transform: translateY(-12px);
}
.demo-topic.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.demo-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.demo-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 14px;
  background: var(--lime-muted);
  border: 1px solid var(--lime-border);
  border-radius: var(--r-pill);
  color: var(--lime);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ── CTA BANNER ──────────────────────────────────────────── */
.cta-banner {
  padding: 100px 24px;
  text-align: center;
  background: var(--surface-1);
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 600px; height: 100%;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(200,241,53,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner-title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 6vw, 76px);
  font-weight: 900;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  line-height: 0.9;
  color: var(--ghost);
  margin-bottom: 20px;
}

.cta-banner-sub {
  font-size: var(--text-lg);
  color: var(--ghost-2);
  font-weight: 300;
  margin-bottom: 44px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
  padding: 36px 28px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-wordmark {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: lowercase;
  color: var(--ghost-2);
}

.footer-copy {
  font-size: var(--text-xs);
  color: var(--grey);
  font-weight: 400;
}

.footer-tagline {
  font-size: var(--text-xs);
  color: var(--grey);
  font-style: italic;
  letter-spacing: 0.04em;
}

/* ── HISTORY SECTION ─────────────────────────────────────── */
.history-section {
  padding: 96px 24px 120px;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.history-inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* Header row */
.hist-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.hist-clear-btn {
  flex-shrink: 0;
  align-self: flex-end;
  margin-bottom: 6px;
  color: var(--grey);
  border-color: rgba(255,255,255,0.08);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  display: none; /* shown via JS when data exists */
}
.hist-clear-btn:hover {
  color: var(--error);
  border-color: rgba(255,77,77,0.28);
  background: var(--error-muted);
  transform: none;
}

/* Stats bar */
.hist-stats {
  display: none; /* shown via JS */
  align-items: stretch;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-bottom: 48px;
}

.hist-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 26px 32px;
  flex: 1;
}

.hist-stat-val {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 900;
  color: var(--lime);
  line-height: 1;
  letter-spacing: 0.02em;
}

.hist-stat-lbl {
  font-size: var(--text-xs);
  color: var(--grey);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hist-stat-div {
  width: 1px;
  background: var(--border);
  align-self: stretch;
  margin: 18px 0;
  flex-shrink: 0;
}

/* Empty state */
.hist-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 24px;
  border: 1px dashed rgba(255,255,255,0.07);
  border-radius: var(--r-xl);
}

.hist-empty-icon {
  font-size: 40px;
  margin-bottom: 18px;
  opacity: 0.35;
  display: block;
}

.hist-empty-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 900;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  color: var(--ghost-2);
  margin-bottom: 8px;
}

.hist-empty-sub {
  font-size: var(--text-sm);
  color: var(--grey);
  font-weight: 300;
  line-height: 1.6;
  max-width: 300px;
}

/* Cards grid */
.hist-grid {
  display: none; /* shown via JS */
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

/* Individual session card */
.sess-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s var(--ease-out), box-shadow 0.2s;
  cursor: default;
  opacity: 0;
  transform: translateY(12px);
  animation: sessCardIn 0.4s var(--ease-out) both;
}
@keyframes sessCardIn { to { opacity: 1; transform: none; } }

.sess-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--lime);
  opacity: 0;
  transition: opacity 0.2s;
}
.sess-card:hover {
  border-color: var(--lime-border);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.sess-card:hover::after { opacity: 0.55; }

/* Card top: category badge + date */
.sess-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sess-cat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  background: var(--lime-muted);
  border: 1px solid var(--lime-border);
  border-radius: var(--r-pill);
  color: var(--lime);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.sess-date {
  font-size: var(--text-xs);
  color: var(--grey);
  white-space: nowrap;
}

/* Topic text */
.sess-topic {
  font-family: var(--font-reel);
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--ghost);
  line-height: 1.4;
  flex: 1;
}

/* Card bottom: diff + duration + stars */
.sess-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.sess-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sess-diff {
  font-size: var(--text-xs);
  color: var(--ghost-2);
  font-weight: 500;
}

.sess-dur {
  font-size: var(--text-xs);
  color: var(--grey);
}

.sess-dot {
  font-size: 9px;
  color: var(--border-strong);
  line-height: 1;
}

.sess-stars {
  display: flex;
  gap: 2px;
  line-height: 1;
}
.sess-star {
  font-size: 12px;
  color: var(--surface-4);
}
.sess-star.on { color: var(--lime); }

.sess-unrated {
  font-size: var(--text-xs);
  color: var(--grey-muted);
  font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
  .history-section { padding: 72px 20px 80px; }
  .hist-stat { padding: 18px 20px; }
  .hist-stat-val { font-size: var(--text-2xl); }
}
@media (max-width: 540px) {
  .hist-stats { flex-direction: column; }
  .hist-stat { flex-direction: row; justify-content: space-between; width: 100%; padding: 14px 20px; }
  .hist-stat-div { width: 100%; height: 1px; margin: 0; }
  .hist-grid { grid-template-columns: 1fr; }
  .hist-header { flex-direction: column; align-items: flex-start; }
}

/* ── Scroll-reveal utility ───────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .section  { padding: 80px 20px; }
  .hero     { padding: 64px 20px 56px; }
  .demo-card { padding: 40px 24px; }
  .features-section { padding: 72px 20px; }
  .cta-banner { padding: 72px 20px; }
}

@media (max-width: 480px) {
  .hero-headline { letter-spacing: 0; }
  .steps-grid { grid-template-columns: 1fr; gap: 1px; }
  .features-grid { grid-template-columns: 1fr; gap: 16px; }
  .footer { flex-direction: column; align-items: flex-start; }
}
