/*
 * Landing-page visual language on inner routes (homepage uses inline bundle).
 * Load after site-shell.css. Expects body.landing-unified and first main child .ilp-stage.
 */

:root {
  --accent: #f97316;
  --accent-dim: rgba(249, 115, 22, 0.12);
  --accent-border: rgba(249, 115, 22, 0.28);
  --bg: #0a0a0f;
  --bg-2: #0f0f16;
  --bg-card: #111118;
  --text-muted: rgba(255, 255, 255, 0.45);
  --text-dim: rgba(255, 255, 255, 0.2);
  --border: rgba(255, 255, 255, 0.08);
  --border-mid: rgba(255, 255, 255, 0.12);
  --font-display: "Syne", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --radius-pill: 999px;
}

body.landing-unified .site-nav span.highlight {
  color: var(--accent) !important;
}

/* ─── Hero-stage (matches homepage atmospheric grid + glow) ─── */
main#main > .ilp-stage {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-top: 112px !important;
  padding-bottom: 72px !important;
}

@media (max-width: 640px) {
  main#main > .ilp-stage {
    padding-top: 104px !important;
    padding-bottom: 52px !important;
  }
}

main#main > .ilp-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 92% 70% at 50% 18%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 92% 70% at 50% 18%, black, transparent);
}

main#main > .ilp-stage::after {
  content: "";
  position: absolute;
  width: min(720px, 90vw);
  height: min(560px, 70vh);
  background: radial-gradient(circle, rgba(249, 115, 22, 0.11) 0%, transparent 68%);
  top: -4%;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
}

/* Old blob overlays on inner heroes — superseded by layered grid glow */
main#main > .ilp-stage > .pointer-events-none.absolute.inset-0 {
  opacity: 0 !important;
  visibility: hidden !important;
}

main#main > .ilp-stage .relative.z-10 {
  position: relative;
  z-index: 2 !important;
}

main#main > .ilp-stage article,
main#main > .ilp-stage .max-w-3xl,
main#main > .ilp-stage .max-w-7xl {
  position: relative;
  z-index: 2;
}

/* Typography: Syne headings like homepage hero */
main#main > .ilp-stage h1 {
  font-family: var(--font-display) !important;
  font-size: clamp(2rem, 4vw, 3.25rem) !important;
  font-weight: 700 !important;
  letter-spacing: -0.04em !important;
  line-height: 1.05 !important;
  color: #fff !important;
}

main#main > .ilp-stage .gradient-text,
main#main > .ilp-stage span.gradient-text {
  background-image: linear-gradient(
    135deg,
    var(--accent),
    #fb923c,
    #ea580c,
    var(--accent)
  ) !important;
  background-size: 200% auto;
}

/* Eyebrow / small caps line */
main#main > .ilp-stage .text-primary-light.text-sm.uppercase,
main#main > .ilp-stage .text-sm.font-medium.uppercase.tracking-widest.text-primary-light,
main#main > .ilp-stage > .relative .text-sm.uppercase {
  letter-spacing: 2.5px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  color: var(--accent) !important;
}

/* Secondary rails */
body.landing-unified main#main > section:nth-of-type(odd):not(.ilp-stage):not(.cta-band) {
  background: var(--bg);
}

body.landing-unified main#main > section:nth-of-type(even):not(.cta-band),
body.landing-unified main#main > article:nth-of-type(even):not(.ilp-stage) {
  background: var(--bg-2);
}

body.landing-unified main#main > section:not(.ilp-stage):not(.cta-band) {
  border-top: 0.5px solid var(--border);
}

body.landing-unified main#main h2:not(.cta-band *):not(footer *) {
  font-family: var(--font-display) !important;
  letter-spacing: -0.03em !important;
}

body.landing-unified main#main h3:not(footer *) {
  font-family: var(--font-display) !important;
}

body.landing-unified main#main .rounded-full.border.bg-surface-glass,
body.landing-unified main#main .rounded-full.border.border-border-glass,
body.landing-unified main#main a.rounded-full.border[class*="border-primary"] {
  border-color: rgba(255, 255, 255, 0.12) !important;
  background: rgba(17, 17, 24, 0.55) !important;
}

/* ─── CTA band — same rhythm as homepage ─── */

.cta-band {
  background: var(--accent) !important;
  padding: 88px 24px !important;
  text-align: center !important;
  border-top: none !important;
}

.cta-band h2 {
  font-family: var(--font-display) !important;
  font-size: clamp(28px, 5vw, 52px) !important;
  font-weight: 700 !important;
  letter-spacing: -2px !important;
  color: #fff !important;
  margin-bottom: 14px !important;
}

.cta-band p {
  font-size: 16px !important;
  color: rgba(255, 255, 255, 0.75) !important;
  margin-bottom: 36px !important;
}

.cta-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--accent) !important;
  border: none;
  border-radius: var(--radius-pill);
  padding: 14px 36px;
  font-size: 15px;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition:
    opacity 0.2s,
    transform 0.15s;
}

.btn-white:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-white-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #fff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-pill);
  padding: 14px 36px;
  font-size: 15px;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition:
    border-color 0.2s,
    transform 0.15s;
}

.btn-white-outline:hover {
  border-color: #fff;
  transform: translateY(-1px);
}

@media (max-width: 480px) {
  .cta-actions {
    flex-direction: column;
    width: 100%;
  }
  .btn-white,
  .btn-white-outline {
    width: 100%;
    justify-content: center;
  }
}
