/* ══════════════════════════════════════════════════════════════════════════
   ENDER — Landing page
   Identity: near-black stage, pink + teal dual-glow, geometric display type.
══════════════════════════════════════════════════════════════════════════ */

/* norm.css locks html/body to 100% + overflow:hidden (needed by the chat app); the landing page must scroll */
html:has(body.landing), body.landing {
  height: auto;
  min-height: 100%;
  overflow-y: auto;
}

.landing {
  background: var(--brand-black-dark);
  color: var(--brand-white);
  overflow-x: hidden;
  font-family: var(--font);
}

.landing h1, .landing h2, .landing h3, .landing .display {
  font-family: 'Space Grotesk', var(--font);
  letter-spacing: -0.01em;
}

.mono { font-family: 'JetBrains Mono', monospace; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ── Nav ─────────────────────────────────────────────────────────────────── */
.l-nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; backdrop-filter: blur(10px);
  background: rgba(33,21,47,.7); border-bottom: 1px solid rgba(255,255,255,.06);
}
.l-nav .brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.15rem; }
.l-nav .brand .dot { width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(135deg, var(--brand-primary-base), var(--brand-secondary-base)); }
.l-nav .links { display: flex; align-items: center; gap: 28px; }
.l-nav a.navlink { color: var(--brand-white-dark); text-decoration: none; font-size: .9rem; }
.l-nav a.navlink:hover { color: var(--brand-white); }
.l-nav .cta-group { display: flex; gap: 10px; }

.l-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: 999px; font-weight: 600; font-size: .9rem;
  text-decoration: none; border: none; cursor: pointer; transition: transform .15s, filter .15s, background .15s;
  font-family: var(--font);
}
.l-btn-primary { background: var(--brand-primary-base); color: #21152F; }
.l-btn-primary:hover { transform: translateY(-1px); filter: brightness(1.05); }
.l-btn-ghost { background: transparent; color: var(--brand-white); border: 1.5px solid rgba(255,255,255,.18); }
.l-btn-ghost:hover { border-color: rgba(255,255,255,.4); }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative; padding: 90px 24px 60px;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center;
  max-width: 1120px; margin: 0 auto;
}
.hero-glow {
  position: absolute; inset: -200px 0 auto 0; height: 700px; z-index: 0; pointer-events: none;
  background:
    radial-gradient(480px 380px at 18% 20%, rgba(184,90,240,.20), transparent 65%),
    radial-gradient(520px 420px at 78% 30%, rgba(53,201,138,.16), transparent 65%);
  filter: blur(10px);
}
.hero-copy { position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px;
  border-radius: 999px; background: rgba(184,90,240,.1); border: 1px solid rgba(184,90,240,.25);
  color: var(--brand-primary-base); font-size: .78rem; font-weight: 600; margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700; line-height: 1.05; margin-bottom: 20px;
}
.hero h1 .accent { color: var(--brand-primary-base); }
.hero h1 .accent2 { color: var(--brand-secondary-base); }
.hero p.sub { font-size: 1.05rem; color: var(--brand-white-dark); max-width: 480px; margin-bottom: 32px; line-height: 1.6; }
.hero .cta-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.hero .cta-note { font-size: .8rem; color: var(--brand-white-dark); margin-top: 14px; }

/* ── Hero mock window (signature element) ──────────────────────────────── */
.hero-mock { position: relative; z-index: 1; }
.mock-window {
  background: var(--brand-black); border-radius: 16px; border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 20px 60px rgba(0,0,0,.5); overflow: hidden;
  transform: perspective(1000px) rotateY(-6deg) rotateX(2deg);
}
.mock-titlebar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--brand-black-dark); }
.mock-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.15); }
.mock-titlebar span { margin-left: 8px; font-size: .72rem; color: var(--brand-white-dark); }
.mock-body { padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; min-height: 260px; }

.mock-bubble { display: flex; gap: 8px; max-width: 82%; }
.mock-bubble .mb-avatar { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; background: linear-gradient(135deg, var(--brand-secondary-base), var(--brand-secondary-dark)); }
.mock-bubble .mb-content { background: var(--brand-main); border-radius: 4px 12px 12px 12px; padding: 8px 12px; font-size: .82rem; color: #eee; }
.mock-bubble.own { align-self: flex-end; flex-direction: row-reverse; }
.mock-bubble.own .mb-content { background: var(--brand-primary-dark); color: #fff; border-radius: 12px 4px 12px 12px; }
.mock-bubble .mb-name { font-size: .68rem; color: var(--brand-secondary-base); margin-bottom: 2px; font-weight: 600; }

.floating-tag {
  position: absolute; padding: 6px 12px; border-radius: 999px; font-size: .72rem; font-weight: 600;
  backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.12); display: flex; align-items: center; gap: 6px;
}
.floating-tag.t1 { top: -14px; right: 30px; background: rgba(184,90,240,.15); color: var(--brand-primary-base); }
.floating-tag.t2 { bottom: -14px; left: 20px; background: rgba(53,201,138,.15); color: var(--brand-secondary-base); }

/* ── Style switcher section ─────────────────────────────────────────────── */
.section { padding: 90px 24px; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.section-head .tag { color: var(--brand-secondary-base); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; display: block; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 12px; }
.section-head p { color: var(--brand-white-dark); font-size: 1rem; line-height: 1.6; }

/* ── Feature grid ────────────────────────────────────────────────────────── */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card {
  background: var(--brand-black); border: 1px solid rgba(255,255,255,.07); border-radius: 14px;
  padding: 22px 20px; transition: border-color .15s, transform .15s;
}
.feature-card:hover { border-color: rgba(184,90,240,.3); transform: translateY(-2px); }
.feature-card .f-icon {
  width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px; font-size: 1.1rem;
}
.feature-card:nth-child(1) .f-icon { background: rgba(184,90,240,.14); }
.feature-card:nth-child(2) .f-icon { background: rgba(53,201,138,.14); }
.feature-card:nth-child(3) .f-icon { background: rgba(99,169,255,.14); }
.feature-card:nth-child(4) .f-icon { background: rgba(240,100,131,.14); }
.feature-card h3 { font-size: 1rem; margin-bottom: 6px; }
.feature-card p { font-size: .85rem; color: var(--brand-white-dark); line-height: 1.55; }

/* ── Device row (responsive callout) ────────────────────────────────────── */
.device-row { display: flex; align-items: flex-end; justify-content: center; gap: 40px; flex-wrap: wrap; }
.device { background: var(--brand-black); border-radius: 14px; border: 1px solid rgba(255,255,255,.08); overflow: hidden; box-shadow: 0 16px 40px rgba(0,0,0,.4); }
.device-desktop { width: 460px; }
.device-desktop .d-bar { height: 26px; background: var(--brand-black-dark); display: flex; align-items: center; gap: 5px; padding: 0 10px; }
.device-desktop .d-screen { display: flex; height: 180px; }
.device-desktop .d-rail { width: 44px; background: var(--brand-black-dark); }
.device-desktop .d-side { width: 90px; background: #2A1C3C; }
.device-desktop .d-main { flex: 1; background: var(--brand-black); }
.device-phone { width: 130px; border-radius: 22px; border-width: 4px; }
.device-phone .d-notch { height: 18px; display: flex; justify-content: center; align-items: flex-end; padding-bottom: 3px; }
.device-phone .d-notch::before { content: ''; width: 40px; height: 5px; border-radius: 3px; background: #4D3F58; }
.device-phone .d-screen { height: 240px; background: var(--brand-black); padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.device-phone .d-row { height: 10px; border-radius: 6px; background: #402E54; }
.device-phone .d-row.pink { background: var(--brand-primary-dark); width: 60%; align-self: flex-end; }

/* ── Footer CTA ──────────────────────────────────────────────────────────── */
.footer-cta {
  text-align: center; padding: 90px 24px; position: relative; overflow: hidden;
}
.footer-cta::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(600px 300px at 50% 100%, rgba(184,90,240,.12), transparent 70%);
}
.footer-cta h2 { position: relative; z-index: 1; font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 18px; }
.footer-cta p { position: relative; z-index: 1; color: var(--brand-white-dark); margin-bottom: 30px; }
.footer-cta .cta-row { position: relative; z-index: 1; display: flex; justify-content: center; gap: 12px; }

.l-footer {
  border-top: 1px solid rgba(255,255,255,.06); padding: 28px 24px; text-align: center;
  color: var(--brand-white-dark); font-size: .82rem;
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 60px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .mock-window { transform: none; }
  .device-desktop { display: none; }
  .l-nav .links { display: none; }
}
