/* ──────────────────────────────────────────────
   landing.css: styles for the rebuilt Vector-first
   landing page (frontend/index.html).

   Lives alongside style.css (base + chrome + pages
   + auth) and reuses its design tokens: IBM Plex
   Mono, --bg-base / --bg-surface / --border /
   --text-primary, and the teal/blue brand gradient.
   Load after style.css so cascade overrides win.
   ────────────────────────────────────────────── */

/* ── Landing hero (dark, two-column) ── */
.landing-hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: #0c0f16;
  display: flex;
  align-items: center;
  padding: 160px 3.5% 6rem;
  overflow: hidden;
}

@keyframes heroPulse {
  0%, 100% { transform: scale(1);    opacity: 1; }
  50%      { transform: scale(1.15); opacity: 0.7; }
}

.landing-hero::before {
  content: "";
  position: absolute;
  top: -20%;
  left: 50%;
  margin-left: -900px;
  width: 1800px;
  height: 1800px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.13) 0%, rgba(56, 189, 248, 0.08) 40%, transparent 70%);
  pointer-events: none;
  animation: heroPulse 12s ease-in-out infinite;
  z-index: 0;
}

.landing-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1840px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 5rem;
  align-items: center;
}

.landing-hero-left {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.landing-hero-eyebrow {
  font-size: clamp(1.1rem, 1.4vw, 1.55rem);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: white;
  margin-bottom: 0.4rem;
}

.landing-hero h1 {
  font-size: clamp(2.6rem, 4.8vw, 5.75rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: white;
}

.landing-hero h1 .accent {
  background: linear-gradient(135deg, #2dd4bf, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.landing-hero-subtitle {
  font-size: clamp(1.05rem, 1.2vw, 1.4rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.62);
  max-width: 640px;
}

.landing-hero-actions {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 0.75rem;
}

.landing-hero-actions .btn-primary,
.landing-hero-actions .btn-ghost {
  margin: 0;
  padding: 1.05rem 2.4rem;
  font-size: clamp(0.95rem, 1vw, 1.1rem);
}

.landing-hero-actions .btn-primary {
  gap: 0.65rem;
}

.landing-hero-actions .btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ── macOS-style window frame holding the demo video ── */
.demo-window {
  border-radius: 12px;
  background: #14192244;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.demo-window-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.demo-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.demo-dot.r { background: #ff5f57; }
.demo-dot.y { background: #febc2e; }
.demo-dot.g { background: #28c840; }

.demo-window-body {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #000;
}

.demo-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Generic landing section primitives ── */
.lp-section {
  width: 100%;
  padding: 8rem 3.5%;
}

.lp-section.base    { background: var(--bg-base); }
.lp-section.surface { background: var(--bg-surface); }
.lp-section.dark    { background: #0c0f16; }

.lp-section-inner {
  max-width: 1840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.lp-section-inner.center {
  align-items: center;
  text-align: center;
}

.lp-eyebrow {
  font-size: clamp(0.75rem, 0.85vw, 0.95rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(31, 34, 48, 0.45);
}

.lp-section.dark .lp-eyebrow {
  color: rgba(255, 255, 255, 0.35);
}

.lp-h2 {
  font-size: clamp(2rem, 3.4vw, 3.75rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  max-width: 1000px;
}

.lp-section.dark .lp-h2 { color: white; }

.lp-h2 .accent {
  background: linear-gradient(135deg, #2dd4bf, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lp-lead {
  max-width: 880px;
  font-size: clamp(0.95rem, 1.1vw, 1.25rem);
  color: rgba(31, 34, 48, 0.7);
  line-height: 1.7;
}

.lp-section.dark .lp-lead {
  color: rgba(255, 255, 255, 0.55);
}

/* ── Light-bg ghost button override (matches .access-card spirit) ── */
.lp-section.base .btn-ghost,
.lp-section.surface .btn-ghost {
  color: rgba(31, 34, 48, 0.65);
  border-color: rgba(31, 34, 48, 0.2);
}

.lp-section.base .btn-ghost:hover,
.lp-section.surface .btn-ghost:hover {
  color: #1a1a1a;
  border-color: rgba(31, 34, 48, 0.5);
}

/* ── Value props (light, 3-column icon cards) ── */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  width: 100%;
}

.value-card {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--bg-base);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.value-card:hover {
  background: var(--bg-surface);
  border-color: rgba(31, 34, 48, 0.45);
}

.value-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.18), rgba(56, 189, 248, 0.12));
  border: 1px solid rgba(45, 212, 191, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2dd4bf;
}

.value-icon svg {
  width: 26px;
  height: 26px;
}

.value-card h3 {
  font-size: clamp(1.05rem, 1.15vw, 1.3rem);
  font-weight: 600;
  color: var(--text-primary);
}

.value-card p {
  font-size: clamp(0.9rem, 0.95vw, 1.1rem);
  color: rgba(31, 34, 48, 0.65);
  line-height: 1.65;
}

.value-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  justify-content: center;
}

.value-actions .btn-primary { margin: 0; }

/* ── Lens engine section (dark, 2-col + below cards) ── */
.lens-engine {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 5rem;
  align-items: center;
  width: 100%;
}

.lens-engine-left {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.lens-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0.5rem 0;
  padding: 0;
}

.lens-checklist li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(0.95rem, 1.05vw, 1.2rem);
  color: rgba(255, 255, 255, 0.72);
}

.lens-checklist li::before {
  content: "→";
  color: #2dd4bf;
  font-weight: 600;
}

.lens-screenshot-wrap {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.lens-screenshot-wrap img {
  width: 100%;
  display: block;
}

.lens-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  width: 100%;
  margin-top: 1rem;
}

.lens-card {
  padding: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.lens-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.16);
}

.lens-card h3 {
  font-size: clamp(1.05rem, 1.2vw, 1.35rem);
  font-weight: 600;
  color: white;
  margin-bottom: 0.6rem;
}

.lens-card p {
  font-size: clamp(0.9rem, 0.95vw, 1.1rem);
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.65;
}

/* ── Features grid (light, 3x2) ── */
.feature-grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  width: 100%;
}

.feature-card-lg {
  padding: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--bg-base);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.feature-card-lg:hover {
  background: var(--bg-surface);
  border-color: rgba(31, 34, 48, 0.45);
}

.feature-card-lg h3 {
  font-size: clamp(1.05rem, 1.2vw, 1.35rem);
  font-weight: 600;
  color: var(--text-primary);
}

.feature-card-lg p {
  font-size: clamp(0.9rem, 0.95vw, 1.1rem);
  color: rgba(31, 34, 48, 0.65);
  line-height: 1.65;
}

/* ── Pricing billing-interval toggle (Monthly / Annually) ── */
.pricing-toggle {
  display: flex;
  justify-content: center;
  width: 100%;
}

.pricing-toggle-group {
  position: relative;
  display: inline-flex;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
}

.pricing-toggle-thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: linear-gradient(135deg, #2dd4bf, #38bdf8);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
  pointer-events: none;
}

.pricing-toggle-group[data-interval="annual"] .pricing-toggle-thumb {
  transform: translateX(100%);
}

.pricing-toggle-option {
  position: relative;
  z-index: 1;
  flex: 1;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-weight: 600;
  font-size: clamp(0.85rem, 0.95vw, 1.05rem);
  color: rgba(31, 34, 48, 0.55);
  padding: 0.55rem 1.4rem;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.25s ease;
  white-space: nowrap;
}

.pricing-toggle-option:hover {
  color: var(--text-primary);
}

.pricing-toggle-group[data-interval="monthly"] .pricing-toggle-option[data-interval="monthly"],
.pricing-toggle-group[data-interval="annual"] .pricing-toggle-option[data-interval="annual"] {
  color: white;
}

.pricing-toggle-badge {
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
  margin-left: 0.85rem;
  font-size: clamp(0.7rem, 0.8vw, 0.85rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2a8a7a;
  white-space: nowrap;
  pointer-events: none;
}

/* ── Pricing (light, 2 cards) ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  max-width: 1120px;
  width: 100%;
}

.pricing-card {
  position: relative;
  padding: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--bg-base);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  transition: box-shadow 0.2s ease;
}

.pricing-card.featured {
  border: 1.5px solid #2dd4bf;
}

.pricing-card:hover {
  box-shadow: 0 0 24px rgba(120, 120, 120, 0.25);
}

.pricing-card.featured:hover {
  box-shadow: 0 0 28px rgba(45, 212, 191, 0.35), 0 0 52px rgba(56, 189, 248, 0.15);
}

.pricing-tier {
  font-size: clamp(1rem, 1.1vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(31, 34, 48, 0.5);
}

.pricing-tier.paid { color: #2dd4bf; }

.pricing-price {
  font-size: clamp(2rem, 2.4vw, 2.75rem);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1;
}

.pricing-price span {
  font-size: clamp(0.85rem, 0.95vw, 1.05rem);
  font-weight: 400;
  color: rgba(31, 34, 48, 0.45);
}

.pricing-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bg-base);
  border: 1px solid #2dd4bf;
  color: #2dd4bf;
  letter-spacing: 0.06em;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
}

.pricing-divider {
  border: none;
  border-top: 1px solid rgba(31, 34, 48, 0.08);
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  padding: 0;
}

.pricing-features li {
  font-size: clamp(0.88rem, 0.95vw, 1.1rem);
  color: rgba(31, 34, 48, 0.7);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.55;
  text-align: left;
}

.pricing-features li::before {
  content: "→";
  color: #2dd4bf;
  flex-shrink: 0;
}

.pricing-card .btn-primary,
.pricing-card .btn-ghost {
  margin: 0;
  width: 100%;
}

/* ── Steps (surface, 4-col flow) ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
  width: 100%;
}

.step-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.step-num {
  font-size: clamp(2rem, 2.4vw, 2.75rem);
  font-weight: 600;
  background: linear-gradient(135deg, #2dd4bf, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.step-card h3 {
  font-size: clamp(1.05rem, 1.2vw, 1.35rem);
  font-weight: 600;
  color: var(--text-primary);
}

.step-card p {
  font-size: clamp(0.88rem, 0.95vw, 1.1rem);
  color: rgba(31, 34, 48, 0.65);
  line-height: 1.6;
}

/* ── Final CTA ── */
.final-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

.final-cta h2 {
  font-size: clamp(2.2rem, 4vw, 4.25rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  max-width: 1100px;
}

.final-cta h2 .accent {
  background: linear-gradient(135deg, #2dd4bf, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.final-cta-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.final-cta-actions .btn-primary { margin: 0; }

/* ── Discovery (dark, vertical-stack numbered video walkthrough) ── */
.discovery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5rem;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.discovery-card {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: center;
  text-align: left;
}

.discovery-card .demo-window {
  width: 100%;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.discovery-card .demo-window-body {
  aspect-ratio: 16 / 9;
}

.discovery-text {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.discovery-step {
  display: flex;
  align-items: baseline;
  gap: 1.4rem;
}

.discovery-num {
  font-size: clamp(2.4rem, 3.6vw, 4.25rem);
  font-weight: 600;
  line-height: 1;
  background: linear-gradient(135deg, #2dd4bf, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
}

.discovery-title {
  font-size: clamp(2rem, 3.2vw, 3.5rem);
  font-weight: 600;
  color: white;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.discovery-caption {
  font-size: clamp(1rem, 1.15vw, 1.35rem);
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  max-width: 460px;
}


/* ── Trust strip (light, 3 inline privacy points) ── */
.lp-section.base.trust-strip {
  padding: 3rem 3.5%;
}

.trust-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3.5rem;
  flex-wrap: wrap;
  width: 100%;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 360px;
}

.trust-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  color: #2dd4bf;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.trust-icon svg {
  width: 100%;
  height: 100%;
}

.trust-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.trust-label {
  font-size: clamp(0.95rem, 1vw, 1.1rem);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

.trust-sub {
  font-size: clamp(0.82rem, 0.9vw, 1rem);
  color: rgba(31, 34, 48, 0.6);
  line-height: 1.5;
}

/* ── Scroll fade-in (toggled by IntersectionObserver in script.js) ── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .landing-hero-inner,
  .lens-engine {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .value-grid,
  .feature-grid-6 { grid-template-columns: repeat(2, 1fr); }
  .lens-cards,
  .pricing-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .discovery-grid { gap: 4rem; }
  .discovery-card {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    text-align: center;
  }
  .discovery-step { justify-content: center; }
  .discovery-caption { max-width: none; margin: 0 auto; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .trust-row { gap: 2rem; }
}

@media (max-width: 640px) {
  .landing-hero { padding: 120px 6% 4rem; }
  .lp-section { padding: 5rem 6%; }
  .lp-section.base.trust-strip { padding: 2.5rem 6%; }
  .value-grid,
  .feature-grid-6,
  .steps-grid { grid-template-columns: 1fr; }
  .landing-hero-actions { flex-direction: column; align-items: stretch; }
  .landing-hero-actions .btn-primary,
  .landing-hero-actions .btn-ghost { width: 100%; padding: 0.9rem 1.6rem; }
  .final-cta-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .final-cta-actions .btn-primary,
  .final-cta-actions .btn-ghost { width: 100%; }
  .pricing-toggle-badge { display: none; }
  .trust-row { flex-direction: column; gap: 1.5rem; align-items: flex-start; }
  .trust-item { width: 100%; max-width: none; }
}
