/* ---------- landing (always dark: the crystal is made for it) ---------- */
.landing {
  --l-bg: #07070b;
  --l-surface: rgba(255, 255, 255, .035);
  --l-surface-2: rgba(255, 255, 255, .06);
  --l-border: rgba(255, 255, 255, .09);
  --l-text: #f2f2f7;
  --l-muted: #9a9aae;
  --l-accent: #8b7dff;
  --l-accent-2: #c57bff;
  --l-accent-3: #7fd4ff;
  position: relative; min-height: 100dvh; overflow-x: clip;
  background: var(--l-bg); color: var(--l-text);
  font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
html.landing-mode, html.landing-mode body { background: #07070b; }
html.landing-mode #app { height: auto; }
.landing a { color: inherit; text-decoration: none; }
.landing h1, .landing h2, .landing h3 { margin: 0; letter-spacing: -.03em; }
/* :where() keeps this reset weaker than the component rules below. */
:where(.landing) p { margin: 0; }
.l-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* background */
.l-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.l-orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.l-orb.a { width: 620px; height: 620px; top: -180px; right: -120px; background: radial-gradient(circle, rgba(139, 125, 255, .55), transparent 65%); animation: drift 18s ease-in-out infinite alternate; }
.l-orb.b { width: 520px; height: 520px; top: 380px; left: -220px; background: radial-gradient(circle, rgba(197, 123, 255, .35), transparent 65%); animation: drift 22s ease-in-out infinite alternate-reverse; }
.l-grid {
  position: absolute; inset: 0 0 auto; height: 1100px;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 60% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 55% at 60% 30%, #000 30%, transparent 75%);
}
@keyframes drift { to { transform: translate(-60px, 80px) scale(1.08); } }

/* nav */
.l-nav {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px;
  max-width: 1200px; margin: 0 auto; padding: 16px 24px; transition: background .25s, border-color .25s, backdrop-filter .25s;
  border-bottom: 1px solid transparent;
}
.l-nav.scrolled {
  max-width: none; background: rgba(7, 7, 11, .72); border-bottom-color: var(--l-border);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  padding-inline: max(24px, calc((100vw - 1200px) / 2 + 24px));
}
.l-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.l-brand img { border-radius: 8px; }
.l-links { display: flex; gap: 6px; margin: 0 auto; }
.l-links a { padding: 8px 14px; border-radius: 999px; color: var(--l-muted); font-size: 14px; font-weight: 500; transition: color .15s, background .15s; }
.l-links a:hover { color: var(--l-text); background: var(--l-surface-2); }
.l-actions { display: flex; gap: 8px; }

.l-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--l-border);
  font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.2; color: var(--l-text); background: var(--l-surface); cursor: pointer;
  transition: transform .15s, background .15s, box-shadow .2s, border-color .15s;
}
.l-btn:hover { background: var(--l-surface-2); border-color: rgba(255, 255, 255, .18); }
.l-btn:active { transform: scale(.97); }
.l-btn.primary {
  border-color: transparent; color: #0b0b12;
  background: linear-gradient(135deg, #ffffff, #d9d4ff 55%, #f0d9ff);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .2), 0 8px 30px rgba(139, 125, 255, .35);
}
.l-btn.primary:hover { box-shadow: 0 0 0 1px rgba(255, 255, 255, .35), 0 10px 40px rgba(139, 125, 255, .55); background: linear-gradient(135deg, #ffffff, #e6e2ff 55%, #f6e6ff); }
.l-btn.lg { padding: 14px 24px; font-size: 15px; }
.l-btn.block { width: 100%; }
.l-btn .l-icon { width: 18px; height: 18px; transition: transform .15s; }
.l-btn:hover .l-icon { transform: translateX(3px); }
.landing :focus-visible { outline: 2px solid var(--l-accent); outline-offset: 3px; }

/* hero */
.l-hero {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 32px;
  max-width: 1200px; margin: 0 auto; padding: 56px 24px 40px; min-height: min(780px, calc(100dvh - 70px));
}
.l-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 10px; margin-bottom: 26px;
  border: 1px solid var(--l-border); border-radius: 999px; background: var(--l-surface); color: var(--l-muted); font-size: 13px; font-weight: 500;
}
.l-dot { width: 8px; height: 8px; border-radius: 50%; background: #3ccf8e; box-shadow: 0 0 0 4px rgba(60, 207, 142, .18); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(60, 207, 142, 0); } }
.l-hero h1 { font-size: clamp(48px, 7.4vw, 96px); line-height: 1.02; font-weight: 700; letter-spacing: -.045em; padding-bottom: .06em; }
.l-gradient {
  background: linear-gradient(100deg, #ffffff 0%, #c9c2ff 35%, var(--l-accent-2) 65%, var(--l-accent-3) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.l-lead { max-width: 520px; margin-top: 22px; color: var(--l-muted); font-size: 18px; line-height: 1.6; }
.l-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.l-cta.center { justify-content: center; }
.l-fine { margin-top: 16px; color: var(--l-muted); font-size: 13px; }

.l-hero-art { position: relative; aspect-ratio: 1; width: 100%; max-width: 560px; justify-self: center; }
.l-halo {
  position: absolute; inset: 12%; border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 125, 255, .45), rgba(197, 123, 255, .15) 45%, transparent 70%);
  filter: blur(30px); animation: breathe 6s ease-in-out infinite;
}
.l-halo::after {
  content: ""; position: absolute; inset: 8%; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: inset 0 0 60px rgba(139, 125, 255, .15);
}
@keyframes breathe { 50% { transform: scale(1.06); opacity: .8; } }
.l-crystal { position: absolute; inset: 0; cursor: grab; opacity: 0; transition: opacity 1s ease; touch-action: pan-y; }
.l-crystal.ready { opacity: 1; }
.l-crystal.grabbing { cursor: grabbing; }
.l-crystal canvas { width: 100% !important; height: 100% !important; display: block; }
.crystal-fallback { position: absolute; inset: 18%; width: 64%; height: 64%; object-fit: contain; border-radius: 28px; animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px) rotate(2deg); } }
.l-float {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
  border: 1px solid var(--l-border); border-radius: 999px; background: rgba(20, 20, 30, .6);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-size: 13px; font-weight: 600; box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  animation: float 7s ease-in-out infinite; pointer-events: none;
}
.l-float.f1 { top: 14%; left: 0; }
.l-float.f2 { top: 46%; right: -2%; animation-delay: -2s; }
.l-float.f3 { bottom: 12%; left: 8%; animation-delay: -4s; }
.l-chip-dot { width: 8px; height: 8px; border-radius: 50%; }

/* stats */
.l-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1152px; margin: 0 auto 40px;
  border: 1px solid var(--l-border); border-radius: 24px; background: var(--l-surface); overflow: hidden;
}
.l-stats > div { padding: 26px 24px; display: flex; flex-direction: column; gap: 4px; }
.l-stats > div + div { border-left: 1px solid var(--l-border); }
.l-stats strong { font-size: 34px; letter-spacing: -.03em; line-height: 1.1; }
.l-stats span { color: var(--l-muted); font-size: 14px; }

/* sections */
.l-section { max-width: 1200px; margin: 0 auto; padding: 96px 24px 24px; scroll-margin-top: 60px; }
.l-head { max-width: 860px; margin-bottom: 44px; }
.l-kicker { display: inline-block; margin-bottom: 14px; color: var(--l-accent); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.l-head h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.05; }
.l-head p { margin-top: 16px; color: var(--l-muted); font-size: 17px; }

/* bento */
.l-bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.l-card, .l-plan {
  --mx: 50%; --my: 50%;
  position: relative; overflow: hidden; border: 1px solid var(--l-border); border-radius: 22px; background: var(--l-surface);
  transition: border-color .2s, transform .2s;
}
.l-card::before, .l-plan::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .25s;
  background: radial-gradient(360px circle at var(--mx) var(--my), rgba(139, 125, 255, .16), transparent 60%);
}
.l-card:hover, .l-plan:hover { border-color: rgba(255, 255, 255, .18); }
.l-card:hover::before, .l-plan:hover::before { opacity: 1; }
.l-card { padding: 26px; display: flex; flex-direction: column; gap: 10px; min-height: 200px; }
.l-card.wide { grid-column: span 2; }
.l-card.accent { background: linear-gradient(140deg, rgba(139, 125, 255, .2), rgba(197, 123, 255, .06) 60%, var(--l-surface)); }
.l-card-icon {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 8px; border-radius: 13px;
  background: var(--l-surface-2); border: 1px solid var(--l-border); color: #d9d4ff;
}
.l-card h3 { font-size: 19px; }
.l-card p { color: var(--l-muted); font-size: 15px; }

/* models */
.l-marquee {
  position: relative; overflow: hidden; margin-bottom: 40px; padding: 6px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.l-marquee-track { display: flex; gap: 10px; width: max-content; animation: marquee 60s linear infinite; }
.l-marquee:hover .l-marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.l-model { padding: 10px 18px; border: 1px solid var(--l-border); border-radius: 999px; background: var(--l-surface); white-space: nowrap; font-size: 14px; font-weight: 500; }
.l-model-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.l-group { padding: 22px; border: 1px solid var(--l-border); border-radius: 20px; background: var(--l-surface); }
.l-group h3 { font-size: 15px; margin-bottom: 12px; }
.l-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.l-group li { color: var(--l-muted); font-size: 14px; }

/* steps */
.l-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: s; }
.l-steps li { position: relative; padding: 28px; border: 1px solid var(--l-border); border-radius: 22px; background: var(--l-surface); }
.l-steps span { display: inline-block; margin-bottom: 18px; font: 600 13px/1 "JetBrains Mono", monospace; color: var(--l-accent); padding: 6px 10px; border-radius: 8px; background: rgba(139, 125, 255, .12); }
.l-steps h3 { font-size: 19px; margin-bottom: 8px; }
.l-steps p { color: var(--l-muted); font-size: 15px; }

/* plans */
.l-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: stretch; }
.l-free {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 14px; padding: 20px 24px;
  border: 1px solid var(--l-border); border-radius: 20px; background: var(--l-surface);
}
.l-free > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.l-free strong { font-size: 20px; letter-spacing: -.02em; }
.l-free span { color: var(--l-muted); font-size: 15px; }
.l-plan { padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.l-plan.popular {
  border-color: transparent;
  background:
    linear-gradient(var(--l-bg), var(--l-bg)) padding-box,
    linear-gradient(140deg, var(--l-accent), var(--l-accent-2), var(--l-accent-3)) border-box;
  border: 1px solid transparent; box-shadow: 0 20px 60px rgba(139, 125, 255, .25);
}
.l-badge { position: absolute; top: 18px; right: 18px; padding: 4px 10px; border-radius: 999px; background: linear-gradient(135deg, var(--l-accent), var(--l-accent-2)); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.l-plan h3 { font-size: 22px; }
.l-plan-note { color: var(--l-muted); font-size: 14px; margin-top: -6px; }
.l-plan-num { display: flex; align-items: baseline; gap: 8px; }
.l-plan-num strong { font-size: 40px; letter-spacing: -.04em; line-height: 1; }
.l-plan-num span { color: var(--l-muted); font-size: 14px; }
.l-plan-num.small strong { font-size: 22px; }
.l-plan ul { list-style: none; margin: 6px 0 10px; padding: 0; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.l-plan li { position: relative; padding-left: 24px; font-size: 14px; color: #cfcfdc; }
.l-plan li::before { content: "✓"; position: absolute; left: 0; color: var(--l-accent); font-weight: 700; }
.l-plans-more { margin-top: 32px; color: var(--l-muted); font-size: 14px; text-align: center; }

/* faq */
.l-faq { display: flex; flex-direction: column; gap: 10px; max-width: 820px; }
.l-faq details { border: 1px solid var(--l-border); border-radius: 18px; background: var(--l-surface); transition: background .2s; }
.l-faq details[open] { background: var(--l-surface-2); }
.l-faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px;
  list-style: none; cursor: pointer; font-weight: 600; font-size: 16px;
}
.l-faq summary::-webkit-details-marker { display: none; }
.l-plus { position: relative; width: 14px; height: 14px; flex: none; }
.l-plus::before, .l-plus::after { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; border-radius: 2px; background: var(--l-muted); transition: transform .25s; }
.l-plus::after { transform: rotate(90deg); }
.l-faq details[open] .l-plus::after { transform: rotate(0); }
.l-faq details p { padding: 0 22px 22px; color: var(--l-muted); }

/* final */
.l-final {
  position: relative; max-width: 1152px; margin: 110px auto 0; padding: 72px 24px; text-align: center;
  border: 1px solid var(--l-border); border-radius: 32px; overflow: hidden;
  background: radial-gradient(600px 300px at 50% 0%, rgba(139, 125, 255, .3), transparent 70%), var(--l-surface);
}
.l-final img { border-radius: 18px; margin-bottom: 22px; box-shadow: 0 20px 60px rgba(139, 125, 255, .45); }
.l-final h2 { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.05; }
.l-final p { margin-top: 14px; color: var(--l-muted); font-size: 17px; }

.l-footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1200px; margin: 0 auto; padding: 48px 24px 40px; color: var(--l-muted); font-size: 14px;
}
.l-footer nav { display: flex; gap: 18px; }
.l-footer nav a:hover { color: var(--l-text); }
.l-footer .l-brand { color: var(--l-text); font-size: 16px; }

/* reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease var(--d, 0ms), transform .7s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .landing *, .landing *::before, .landing *::after { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* responsive */
@media (max-width: 1000px) {
  .l-bento { grid-template-columns: repeat(2, 1fr); }
  .l-plans { grid-template-columns: repeat(2, 1fr); }
  .l-links { display: none; }
  .l-actions { margin-left: auto; }
}
@media (max-width: 760px) {
  .l-nav { padding: 12px 16px; gap: 12px; }
  .l-nav.scrolled { padding-inline: 16px; }
  .l-btn { padding: 9px 14px; }
  .l-hero { grid-template-columns: 1fr; padding: 16px 16px 24px; gap: 8px; min-height: 0; text-align: center; }
  .l-hero-art { order: -1; max-width: 340px; }
  .l-eyebrow { margin-bottom: 18px; }
  .l-lead { margin-inline: auto; font-size: 16px; }
  .l-cta { justify-content: center; }
  .l-float { display: none; }
  .l-stats { grid-template-columns: repeat(2, 1fr); margin: 0 16px 24px; }
  .l-stats > div:nth-child(3) { border-left: 0; }
  .l-stats > div:nth-child(n + 3) { border-top: 1px solid var(--l-border); }
  .l-section { padding: 72px 16px 16px; }
  .l-bento, .l-plans, .l-steps { grid-template-columns: 1fr; }
  .l-free { flex-direction: column; align-items: flex-start; }
  .l-card.wide { grid-column: auto; }
  .l-final { margin: 80px 16px 0; padding: 56px 20px; }
  .l-footer { flex-direction: column; text-align: center; padding: 40px 16px; }
}
