/* Domain Alpha — landing-only rules (2026-10-13). Loaded by home.html together with futur.css
   (the shared theme: tokens, atmosphere, header pill, footer). Scoped to body.landing.
   Direction: deep-space dark, indigo/violet light, serif display headlines,
   glass surfaces, a glowing orb that reacts to scroll. Pure CSS (JS only sets
   --sy / --prog and adds .reveal / .in classes, see landing.js).
   Everything decorative is aria-hidden; no content is hidden without JS. */

html:has(body.landing) { scroll-behavior: smooth; }
/* Perf (visual-neutral): offscreen scenes are not rendered until they approach the viewport.
   The hero is excluded; the intrinsic size keeps the scrollbar stable. */
body.landing main > section:not(.hero):not(.facts-strip) { content-visibility: auto; contain-intrinsic-size: auto 760px; }

body.landing main { max-width: 1180px; padding: 0 1.5rem 2rem; }

/* ---- scroll furniture ---- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; }
.scroll-progress span { display: block; height: 100%; width: calc(var(--prog, 0) * 100%); background: linear-gradient(90deg, #6366f1, #8fd8ff); box-shadow: 0 0 14px rgba(99, 102, 241, 0.9); }
.scene-dots { position: fixed; right: 1.2rem; top: 50%; transform: translateY(-50%); z-index: 40; display: flex; flex-direction: column; gap: 1rem; }
.scene-dots a { position: relative; width: 10px; height: 10px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.45); transition: background 0.25s, box-shadow 0.25s, border-color 0.25s; }
.scene-dots a.active { background: var(--blue-strong); border-color: var(--blue-strong); box-shadow: 0 0 14px var(--blue-strong); }
.scene-dots a::after { content: attr(data-label); position: absolute; right: 1.5rem; top: 50%; transform: translateY(-50%); font: 0.72rem var(--font-mono); white-space: nowrap; color: var(--ink-soft); opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.scene-dots a:hover::after, .scene-dots a:focus-visible::after { opacity: 1; }
@media (max-width: 1100px) { .scene-dots { display: none; } }

/* ---- hero: centered, serif, lit by the orb ---- */
body.landing .hero {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  position: relative; min-height: min(100svh, 980px); padding: 8.5rem 0 4rem;
  clip-path: inset(0 -60vw 0 -60vw);
}
.orb {
  position: absolute; left: 50%; top: 0; width: min(1500px, 150vw); height: 100%; z-index: 0; pointer-events: none;
  transform: translate3d(-50%, calc(var(--sy, 0) * 90px), 0);
  will-change: transform;
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%); mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
}
.orb-ring {
  position: absolute; left: 0; right: 0; top: 16%; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(190, 180, 255, 0.28);
  background: radial-gradient(closest-side at 50% 60%, rgba(120, 110, 255, 0.2), rgba(60, 50, 160, 0.07) 60%, transparent 76%);
  box-shadow: inset 0 0 150px rgba(110, 100, 255, 0.24), 0 0 130px rgba(110, 100, 255, 0.14);
  transform: scale(calc(1 + var(--sy, 0) * 0.1)) rotate(calc(var(--sy, 0) * 5deg));
}
.orb-ring::after {
  content: ""; position: absolute; inset: 2.5%; border-radius: 50%; border: 1px solid transparent;
  border-top-color: rgba(255, 255, 255, 0.4); border-left-color: rgba(255, 255, 255, 0.14); border-right-color: rgba(143, 216, 255, 0.12);
  animation: orbSpin 40s linear infinite;
}
.orb-beam {
  position: absolute; left: 50%; top: 0; width: 34%; height: 64%; transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(150, 140, 255, 0.6), rgba(120, 110, 255, 0.18) 55%, transparent);
  clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%); filter: blur(22px); opacity: 0.8;
  animation: beamPulse 7s ease-in-out infinite;
}
.orb-floor {
  position: absolute; left: 50%; top: 52%; width: 46%; aspect-ratio: 3 / 1; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 150, 175, 0.34), rgba(140, 120, 255, 0.24) 52%, transparent);
  filter: blur(30px);
}
@keyframes orbSpin { to { transform: rotate(360deg); } }
@keyframes beamPulse { 0%, 100% { opacity: 0.65; } 50% { opacity: 0.95; } }

body.landing .hero-copy {
  position: relative; z-index: 2; max-width: 58rem;
  transform: translateY(calc(var(--sy, 0) * -36px)); opacity: calc(1 - var(--sy, 0) * 0.75);
}
.hero-pill {
  display: inline-block; margin: 0 0 1.5rem; padding: 0.38rem 1rem; border: 1px solid var(--border-strong); border-radius: 999px;
  background: rgba(255, 255, 255, 0.045); backdrop-filter: blur(8px); font-size: 0.8rem; color: var(--ink-soft); letter-spacing: 0.01em;
}
body.landing .hero h1 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(2.7rem, 7.4vw, 6.1rem); line-height: 1.02; letter-spacing: -0.02em; margin: 0;
  background: linear-gradient(180deg, #ffffff 0%, #ece9ff 50%, #9d99ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
body.landing .hero-subtitle { font-size: 1.2rem; color: var(--ink-soft); margin: 1.6rem 0 0.4rem; font-weight: 500; }
body.landing .hero-lede { max-width: 38rem; margin: 0.6rem auto 0; color: var(--muted); }
body.landing .hero-actions { justify-content: center; margin-top: 2rem; }
body.landing .cta { background: linear-gradient(135deg, #6366f1, #4f46e5); border-radius: 12px; box-shadow: 0 8px 32px rgba(99, 102, 241, 0.45); }
body.landing .cta:hover, body.landing .cta:focus-visible { box-shadow: 0 10px 40px rgba(99, 102, 241, 0.7); }
body.landing .cta-secondary { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-strong); box-shadow: none; backdrop-filter: blur(8px); }
body.landing .cta-secondary:hover, body.landing .cta-secondary:focus-visible { background: var(--blue-soft); border-color: var(--blue-strong); box-shadow: none; }
body.landing .hero-search {
  position: relative; top: auto; z-index: 2; width: min(36rem, 100%); margin: 0.4rem auto 0; text-align: left;
  background: rgba(255, 255, 255, 0.045); border: 1px solid var(--border-strong); border-radius: 18px;
  backdrop-filter: blur(14px); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
body.landing .hero-search-label { color: var(--blue-strong); }
body.landing .search-input { background: rgba(0, 0, 0, 0.35); border-color: var(--border-strong); }
body.landing .search-input:focus { border-color: var(--blue-strong); box-shadow: 0 0 0 3px rgba(142, 140, 255, 0.25); outline: none; }

/* ---- ticker: real masked domains scrolling (replaces the template's client logos) ---- */
.ticker { position: relative; overflow: hidden; margin: 0.5rem 0 2.5rem; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.ticker-track { display: flex; width: max-content; animation: tick 60s linear infinite; }
.ticker-group { display: flex; gap: 2.6rem; padding-right: 2.6rem; }
.ticker-item { font-family: var(--font-mono); font-size: 0.95rem; color: var(--ink-soft); white-space: nowrap; opacity: 0.8; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---- key facts: the glowing grid pill ---- */
body.landing .facts-strip {
  grid-template-columns: repeat(3, 1fr); gap: 0; max-width: 58rem; margin: 0 auto 4rem; padding: 0.4rem 1rem; border-radius: 999px;
  border: 1px solid rgba(140, 130, 255, 0.38); overflow: hidden;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 30px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 30px),
    linear-gradient(180deg, rgba(80, 70, 200, 0.26), rgba(18, 16, 56, 0.4));
  box-shadow: 0 0 70px rgba(91, 91, 240, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
body.landing .fact { background: transparent; text-align: center; padding: 1.5rem 1rem; }
body.landing .fact-value {
  font-family: var(--serif); font-weight: 400; font-size: clamp(2.1rem, 4.4vw, 3.4rem); letter-spacing: -0.02em; line-height: 1.05;
  background: linear-gradient(180deg, #ffffff, #a9a5ff); -webkit-background-clip: text; background-clip: text; color: transparent;
}
body.landing .fact-label { color: var(--muted); }

/* ---- sections: serif titles, generous scenes ---- */
body.landing main > section { padding-block: clamp(3.5rem, 9vh, 6.5rem); border-top: none; }
body.landing .hero, body.landing .facts-strip { padding-block: initial; }
body.landing .hero { padding: 8.5rem 0 2.5rem; }
body.landing .facts-strip { padding: 0.4rem 1rem; }
body.landing .about-section h2, body.landing .proof-section h2, body.landing .two-ways h2,
body.landing .faq-section h2, body.landing .pricing-section h2 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(2.1rem, 4.8vw, 3.5rem); line-height: 1.04; letter-spacing: -0.015em;
}
body.landing .about-section h2::before, body.landing .proof-section h2::before, body.landing .two-ways h2::before,
body.landing .faq-section h2::before, body.landing .pricing-section h2::before { content: none; }
body.landing .about-section > .founder-credit { color: var(--blue-strong); }
body.landing .about-block h3 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; }
body.landing .about-block p, body.landing .about-block li { color: var(--ink-soft); }

/* ---- glass surfaces ---- */
body.landing .card, body.landing .price-card, body.landing .axis, body.landing .about-brief li, body.landing .proof-table-wrap,
body.landing .confidence-quote, body.landing .faq-list details, body.landing .about-figure {
  background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
body.landing .about-brief li { border-left: 1px solid var(--border); }
body.landing .card, body.landing .price-card, body.landing .axis, body.landing .about-brief li { transition: border-color 0.3s, box-shadow 0.3s; }
body.landing .card:hover, body.landing .price-card:hover, body.landing .axis:hover, body.landing .about-brief li:hover {
  border-color: rgba(142, 140, 255, 0.55); box-shadow: 0 14px 54px rgba(91, 91, 240, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
body.landing .not-measured { background: var(--accent-soft); border: 1px dashed rgba(201, 182, 255, 0.35); border-left: 3px solid var(--accent); }
body.landing .about-figure::before { background-color: rgba(255, 255, 255, 0.04); }
body.landing .proof-table th { background: transparent; }
body.landing .proof-table .score-cell { background: linear-gradient(180deg, #fff, #a9a5ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
body.landing .confidence-quote blockquote { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.25; font-weight: 400; }
body.landing .confidence-quote::before { color: var(--blue-strong); }
body.landing .price-card-featured {
  background: linear-gradient(180deg, rgba(91, 91, 240, 0.22), rgba(255, 255, 255, 0.03) 60%);
  border-color: var(--blue-strong); box-shadow: 0 0 0 1px var(--blue-strong), 0 20px 70px rgba(91, 91, 240, 0.35);
}
body.landing .price-card .price { font-family: var(--serif); font-weight: 400; font-size: 2.8rem; color: #fff; }
body.landing .result-cta { background: linear-gradient(135deg, #6366f1, #4f46e5); border-radius: 10px; }
body.landing .pricing-section { text-align: center; }
body.landing .pricing-cards { margin-inline: auto; }
body.landing .final-cta { justify-content: center; text-align: center; padding: 5rem 0 6rem; border-top: none; }

/* ---- scroll reveal (class added by landing.js; without JS everything stays visible) ---- */
.reveal-ready .reveal {
  opacity: 0; transform: translateY(38px) scale(0.985); filter: blur(8px);
  transition: opacity 0.95s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.95s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.95s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.reveal-ready .reveal.in { opacity: 1; transform: none; filter: none; }

/* ---- small screens: header becomes a bar, effects get lighter ---- */
@media (max-width: 760px) {
  body.landing .hero { padding: 3rem 0 3rem; min-height: auto; }
  .orb { width: 220vw; }
  body.landing .facts-strip { grid-template-columns: 1fr; border-radius: 28px; }
  body.landing .hero-subtitle { font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) {
  html:has(body.landing) { scroll-behavior: auto; }
  .reveal-ready .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .orb, .orb-ring, body.landing .hero-copy { transform: none !important; opacity: 1 !important; }
  .orb-ring::after, .orb-beam, .ticker-track { animation: none; }
}
