:root {
    --ccs-glow-primary: rgba(255, 140, 64, 0.95);
    --ccs-glow-secondary: rgba(255, 122, 38, 0.8);
    --ccs-glow-accent: rgba(255, 210, 150, 0.78);
    --ccs-card-shadow: 0 38px 90px -56px rgba(5, 7, 15, 0.9);
    --ccs-backdrop-gradient:
        radial-gradient(180% 140% at 50% -20%, rgba(255, 132, 64, 0.30), transparent 62%),
        radial-gradient(120% 160% at 12% 18%, rgba(255, 156, 82, 0.24), transparent 66%),
        linear-gradient(188deg, rgba(5, 7, 15, 0.98) 0%, rgba(10, 16, 32, 0.92) 46%, rgba(8, 12, 26, 0.96) 100%);
    --ccs-hero-veil: linear-gradient(185deg, rgba(6, 10, 22, 0.9) 0%, rgba(8, 12, 26, 0.92) 58%, rgba(5, 8, 20, 0.96) 100%);
    --ccs-legal-gradient: linear-gradient(160deg, rgba(255, 170, 100, 0.28) 0%, rgba(255, 132, 56, 0.26) 34%, rgba(6, 10, 22, 0.96) 100%);
    --ccs-ink-soft: rgba(248, 251, 255, 0.96);
    --ccs-ink-muted: rgba(186, 198, 216, 0.78);
    --ccs-surface-blur: blur(26px);
    --ccs-curve-soft: cubic-bezier(0.22, 1, 0.36, 1);
}

body {
    background-color: #0c1020;
    background-image:
        radial-gradient(circle at 18% 16%, rgba(255, 140, 64, 0.28), transparent 64%),
        radial-gradient(circle at 82% 20%, rgba(255, 128, 44, 0.22), transparent 68%),
        radial-gradient(circle at 42% 82%, rgba(255, 190, 140, 0.18), transparent 64%);
    background-attachment: initial;
    position: relative;
    min-height: 100vh;
    color: var(--ccs-ink-soft);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: var(--ccs-backdrop-gradient);
    opacity: 0.68;
    pointer-events: none;
    mix-blend-mode: screen;
    transition: opacity .8s ease;
    z-index: -2;
}

body::after {
    content: none;
}

@keyframes auroraFlow {
  0% {
    transform: translate3d(-1.5%, -0.6%, 0) scale(1);
    opacity: 0.45;
  }
  50% {
    transform: translate3d(1.5%, -1%, 0) scale(1.015);
    opacity: 0.68;
  }
  100% {
    transform: translate3d(-1%, 0.6%, 0) scale(1.01);
    opacity: 0.5;
  }
}
.glass-panel {
    position: relative;
    background: linear-gradient(158deg, rgba(255, 140, 82, 0.22), rgba(10, 16, 32, 0.9));
    border: 1px solid rgba(255, 180, 128, 0.32);
    backdrop-filter: var(--ccs-surface-blur);
    box-shadow: var(--ccs-card-shadow);
    overflow: hidden;
}
.glass-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 188, 140, 0.5);
    background: rgba(255, 140, 82, 0.18);
    padding: 0.45rem 0.9rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 225, 210, 0.92);
}
.prism-border {
    position: relative;
}
.prism-border::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(120deg, rgba(255, 138, 82, 0.55), rgba(255, 90, 142, 0.45), rgba(255, 214, 120, 0.4));
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}
.warp-title {
    display: grid;
    gap: 0.35rem;
}
.warp-title__line {
    transform-origin: center left;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    text-shadow: 0 25px 45px rgba(8, 11, 23, 0.55);
}
.warp-title__line:nth-child(2) {
    transform: translate3d(0, 0, 0);
}
.warp-title:hover .warp-title__line:nth-child(1) {
    transform: translate3d(0, -4px, 0) skewX(-1deg);
}
.warp-title:hover .warp-title__line:nth-child(2) {
    transform: translate3d(0, 4px, 0) skewX(1deg);
}
/* ===== Scroll Reveal & Stacked Illusions (Tailwind-friendly) ===== */
[data-reveal] {
  position: relative;
  isolation: isolate;
}
[data-reveal]::before {
  content: none;
  display: none;
}

/* Elements to reveal */
.reveal {
  opacity: 0;
  transform: translate3d(0, 36px, -120px) scale(.96) rotateX(6deg);
  filter: saturate(.94) blur(8px);
  transition:
    opacity .9s var(--ccs-curve-soft),
    transform 1.1s var(--ccs-curve-soft),
    filter .9s ease;
  transform-style: preserve-3d;
  will-change: opacity, transform, filter;
}

/* When parent section enters viewport */
.in-view .reveal {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1) rotateX(0deg);
  filter: saturate(1) blur(0);
}

/* Directional variants */
.reveal.reveal-left {
  transform: translate3d(-46px, 0, -160px) scale(.94) rotateY(-6deg);
}
.reveal.reveal-right {
  transform: translate3d(46px, 0, -160px) scale(.94) rotateY(6deg);
}
.in-view .reveal.reveal-left,
.in-view .reveal.reveal-right {
  transform: translate3d(0, 0, 0) scale(1) rotateY(0deg);
}

/* Simple stagger helpers using data-i index (0..N) */
.in-view .reveal[data-i="1"] { transition-delay: .08s; }
.in-view .reveal[data-i="2"] { transition-delay: .16s; }
.in-view .reveal[data-i="3"] { transition-delay: .24s; }
.in-view .reveal[data-i="4"] { transition-delay: .32s; }
.in-view .reveal[data-i="5"] { transition-delay: .40s; }
.in-view .reveal[data-i="6"] { transition-delay: .48s; }
.in-view .reveal[data-i="7"] { transition-delay: .56s; }
.in-view .reveal[data-i="8"] { transition-delay: .64s; }
.in-view .reveal[data-i="9"] { transition-delay: .72s; }
.in-view .reveal[data-i="10"] { transition-delay: .80s; }

/* Improve glass readability site-wide */
.glass-panel::before {
  content: "";
  position: absolute;
  inset: -12%;
  background: radial-gradient(120% 90% at 20% 10%, rgba(255, 170, 118, 0.3), transparent 65%);
  opacity: 0.3;
  mix-blend-mode: screen;
  pointer-events: none;
}

/* Optional heading readability helper */
.text-clarity {
  text-shadow:
    0 10px 30px rgba(0, 0, 0, 0.55),
    0 2px 12px rgba(0, 0, 0, 0.35);
}

/* Scroll illusion scaffolding disabled for performance */
[data-scroll-illusion],
[data-scroll-illusion]::before,
[data-scroll-illusion]::after,
[data-scroll-illusion] .scene-backdrop,
[data-scroll-illusion] .parallax-layer {
  display: none !important;
}

/* CTA portal */
.cta-portal {
  position: relative;
  display: grid;
  gap: clamp(1.4rem, 3.6vw, 2rem);
  align-items: center;
  justify-items: center;
  padding: clamp(2rem, 4.8vw, 3rem);
  background: linear-gradient(165deg, rgba(6, 10, 22, 0.96), rgba(8, 12, 26, 0.9) 48%, rgba(10, 16, 32, 0.82) 100%);
  clip-path: polygon(6% 0%, 100% 0%, 94% 100%, 0% 100%);
  border: 1px solid rgba(255, 162, 92, 0.48);
  box-shadow: var(--ccs-card-shadow);
  isolation: isolate;
  text-align: center;
}

.cta-portal::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(150deg, rgba(255, 148, 74, 0.55), rgba(255, 184, 104, 0.38));
  opacity: 0.36;
  mix-blend-mode: screen;
  transition: opacity .6s ease;
  clip-path: inherit;
  z-index: -1;
}

.cta-portal:hover::before {
  opacity: 0.56;
}

.cta-portal__meta {
  font-size: clamp(0.82rem, 1.6vw, 0.95rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 203, 163, 0.7);
}

.cta-portal__headline {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: clamp(2.35rem, 4.8vw, 3.1rem);
  line-height: 1.08;
  color: rgba(255, 243, 232, 0.98);
  text-shadow: 0 30px 64px rgba(0, 0, 0, 0.46);
  max-width: 26ch;
}

.cta-portal__cta-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

.cta-portal__primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 2.2rem;
  font-weight: 600;
  font-size: 0.98rem;
  color: #210c02;
  background: linear-gradient(135deg, #ff7a1a, #ff9c40);
  clip-path: polygon(8% 0%, 100% 0%, 92% 100%, 0% 100%);
  box-shadow: 0 36px 90px -52px rgba(255, 132, 78, 0.58);
  transition: transform .45s var(--ccs-curve-soft), box-shadow .45s ease;
}

.cta-portal__primary::after {
  content: "";
  position: absolute;
  inset: -12%;
  background: radial-gradient(circle at 30% 10%, rgba(255, 226, 204, 0.72), transparent 55%);
  opacity: 0;
  transition: opacity .45s ease;
}

.cta-portal__primary:hover,
.cta-portal__primary:focus-visible {
  transform: translate3d(0, -4px, 0) scale(1.02);
  box-shadow: 0 44px 98px -50px rgba(255, 148, 92, 0.72);
}

.cta-portal__primary:hover::after,
.cta-portal__primary:focus-visible::after {
  opacity: 0.75;
}

.cta-portal__secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.9rem 1.9rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255, 224, 208, 0.9);
  border: 1px solid rgba(255, 184, 132, 0.5);
  clip-path: polygon(8% 0%, 100% 0%, 92% 100%, 0% 100%);
  background: rgba(14, 20, 42, 0.82);
  transition: border-color .4s ease, color .4s ease, transform .4s ease, background .4s ease;
}

.cta-portal__secondary:hover,
.cta-portal__secondary:focus-visible {
  transform: translate3d(0, -2px, 0);
  border-color: rgba(255, 198, 146, 0.72);
  background: rgba(18, 26, 52, 0.9);
  color: rgba(255, 236, 224, 0.98);
}

/* Gradient action buttons */
.button-glow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.95rem 2.3rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff7a1a, #ff9c40);
  color: #220c02;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 184, 132, 0.52);
  box-shadow: 0 26px 62px -34px rgba(255, 140, 84, 0.75);
  transition: transform .35s var(--ccs-curve-soft), box-shadow .35s ease, background .35s ease, color .35s ease;
}

.button-glow:hover,
.button-glow:focus-visible {
  transform: translate3d(0, -3px, 0) scale(1.015);
  background: linear-gradient(135deg, #ff8c32, #ffad4f);
  box-shadow: 0 34px 78px -38px rgba(255, 164, 112, 0.82);
  color: #190902;
}

.button-glow:focus-visible {
  outline: 2px solid rgba(255, 194, 140, 0.68);
  outline-offset: 3px;
}

.button-glow--inverse {
  background: rgba(10, 16, 32, 0.92);
  color: rgba(255, 232, 218, 0.94);
  border: 1px solid rgba(154, 78, 32, 0.5);
  box-shadow: 0 20px 45px -32px rgba(255, 148, 92, 0.6);
}

.button-glow--inverse:hover,
.button-glow--inverse:focus-visible {
  background: rgba(14, 20, 42, 0.96);
  color: #fff5ec;
  box-shadow: 0 26px 60px -34px rgba(255, 164, 112, 0.68);
}

/* CTA icon helpers */
.cta-portal__primary-icon,
.cta-portal__secondary-icon {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: rgba(12, 18, 36, 0.28);
  box-shadow: inset 0 0 0 1px rgba(12, 18, 36, 0.24);
  transition: transform .4s var(--ccs-curve-soft);
  color: rgba(255, 214, 196, 0.85);
}

.cta-portal__primary-icon svg,
.cta-portal__secondary-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cta-portal__primary:hover .cta-portal__primary-icon,
.cta-portal__primary:focus-visible .cta-portal__primary-icon,
.cta-portal__secondary:hover .cta-portal__secondary-icon,
.cta-portal__secondary:focus-visible .cta-portal__secondary-icon {
  transform: translate3d(2px, -2px, 0);
}

.cta-portal__body {
  max-width: 34ch;
  font-size: clamp(0.95rem, 1.9vw, 1.05rem);
  color: rgba(255, 228, 212, 0.85);
}

.stat-block {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1rem 1.4rem;
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(8, 12, 26, 0.88), rgba(10, 16, 32, 0.68));
  border: 1px solid rgba(255, 178, 128, 0.34);
}

.stat-icon {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 16px;
  background: rgba(12, 18, 36, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 194, 138, 0.36);
  color: rgba(255, 232, 212, 0.95);
}

.stat-icon svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stat-title {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 1.02rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 234, 216, 0.94);
}

.stat-copy {
  font-size: 0.9rem;
  color: rgba(255, 214, 192, 0.8);
}

/* Cinematic surface polish */
.glass-panel {
  position: relative;
  overflow: hidden;
}

.glass-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 184, 138, 0.28), transparent 68%);
  mix-blend-mode: screen;
  opacity: 0.42;
  pointer-events: none;
}

/* Legal page layout */
.container {
  width: min(1100px, calc(100% - 3.5rem));
  margin-inline: auto;
}

.legal-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(140% 140% at 50% 0%, rgba(255, 142, 82, 0.16), transparent 55%), #080b15;
  color: var(--ccs-ink-soft);
  position: relative;
}

.legal-page::after {
  content: "";
  position: fixed;
  inset: 0;
  background: var(--ccs-legal-gradient);
  opacity: 0.68;
  pointer-events: none;
  z-index: -2;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(28px);
  background: rgba(12, 14, 28, 0.75);
  border-bottom: 1px solid rgba(255, 184, 128, 0.18);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 3vw, 2.4rem);
  padding-block: 1.4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  color: rgba(226, 232, 240, 0.92);
  text-decoration: none;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  background: linear-gradient(140deg, rgba(255, 136, 72, 0.42), rgba(255, 190, 120, 0.3));
  border: 1px solid rgba(255, 186, 128, 0.44);
  clip-path: polygon(20% 0%, 100% 0%, 80% 100%, 0% 100%);
  font-weight: 700;
  color: #ff8424;
  text-shadow: 0 14px 32px rgba(20, 8, 4, 0.8);
}

.brand-logo {
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  padding: 0;
  background: transparent;
  border: none;
  object-fit: contain;
  display: block;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 2.6vw, 1.6rem);
  font-size: 0.88rem;
}

.nav-link-inline {
  color: rgba(226, 232, 240, 0.75);
  text-decoration: none;
  transition: color .3s ease;
  letter-spacing: 0.08em;
}

.nav-link-inline:hover,
.nav-link-inline:focus-visible {
  color: var(--ccs-glow-primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.75rem 1.6rem;
  font-size: 0.8rem;
  border-radius: 999px;
  transition: transform .35s var(--ccs-curve-soft), box-shadow .35s ease;
}

.btn-outline {
  border: 1px solid rgba(255, 188, 130, 0.36);
  color: rgba(255, 228, 210, 0.9);
  background: rgba(36, 14, 4, 0.5);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -24px rgba(255, 176, 128, 0.8);
  color: var(--ccs-glow-primary);
}

.legal-frame {
  position: relative;
  flex: 1;
  display: grid;
  place-items: center;
  padding-block: clamp(4.5rem, 10vw, 7.5rem);
}

.legal-shell {
  position: relative;
  width: min(760px, calc(100% - 3rem));
  padding: clamp(2.6rem, 5vw, 3.8rem);
  border-radius: 28px;
  background: rgba(14, 16, 32, 0.78);
  backdrop-filter: var(--ccs-surface-blur);
  border: 1px solid rgba(255, 188, 140, 0.24);
  box-shadow: 0 32px 72px -48px rgba(8, 10, 26, 0.96);
}

.legal-article header {
  display: grid;
  gap: 0.65rem;
  margin-bottom: clamp(2rem, 4vw, 2.8rem);
}

.legal-article h1 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: clamp(2.2rem, 4vw, 2.8rem);
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.92);
  text-transform: uppercase;
}

.legal-meta {
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.62);
}

.legal-article section {
  display: grid;
  gap: 0.85rem;
  margin-bottom: clamp(1.8rem, 3vw, 2.4rem);
}

.legal-article h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.92);
}

.legal-article p,
.legal-article li {
  color: rgba(209, 213, 219, 0.86);
  line-height: 1.7;
  font-size: 0.98rem;
}

.legal-article ul {
  display: grid;
  gap: 0.55rem;
  padding-left: 1.4rem;
  list-style: none;
}

.legal-article ul li {
  position: relative;
}

.legal-article ul li::before {
  content: "";
  position: absolute;
  left: -1.3rem;
  top: 0.6rem;
  width: 8px;
  height: 8px;
  background: linear-gradient(145deg, rgba(255, 142, 82, 0.9), rgba(255, 210, 140, 0.72));
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(255, 142, 82, 0.18);
}

.legal-article a {
  color: rgba(255, 190, 140, 0.95);
  text-decoration: underline;
  text-decoration-color: rgba(255, 190, 140, 0.45);
  text-decoration-thickness: 1px;
  transition: color .3s ease;
}

.legal-article a:hover,
.legal-article a:focus-visible {
  color: #ffe2c0;
}

.site-footer {
  padding-block: clamp(3rem, 6vw, 4rem);
  border-top: 1px solid rgba(255, 172, 110, 0.28);
  background: linear-gradient(180deg, rgba(6, 10, 22, 0.94), rgba(8, 12, 26, 0.9) 65%);
  backdrop-filter: blur(26px);
  color: rgba(255, 220, 200, 0.82);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(194, 210, 244, 0.86);
}

.footer-nav {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: rgba(170, 186, 214, 0.72);
}

.footer-nav a {
  color: rgba(166, 186, 220, 0.78);
  text-decoration: none;
  transition: color .3s ease;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--ccs-glow-primary);
}

.footer-note {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 210, 184, 0.64);
}

.footer-cta {
  display: grid;
}

@media (max-width: 720px) {
  .cta-portal {
    clip-path: polygon(0% 0%, 100% 0%, 100% 94%, 0% 100%);
  }

  .cta-portal__cta-stack {
    flex-direction: column;
    align-items: stretch;
  }

  .primary-nav {
    display: none;
  }

  .header-content {
    padding-block: 1.1rem;
  }

  .legal-shell {
    padding: clamp(2.1rem, 6vw, 2.8rem);
  }

  .cta-portal__primary,
  .cta-portal__secondary {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before {
    opacity: 0.25;
  }

  .reveal,
  .in-view .reveal {
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
    transform: none !important;
    filter: none !important;
  }

  [data-scroll-illusion] {
    perspective: none;
    --scroll-illusion-progress: 0 !important;
    --scroll-illusion-intensity: 0 !important;
  }

  [data-scroll-illusion]::before,
  [data-scroll-illusion]::after,
  [data-scroll-illusion] .scene-backdrop,
  [data-scroll-illusion] .parallax-layer {
    transition: none !important;
    transform: none !important;
    opacity: 0 !important;
  }

  .cta-portal__primary,
  .cta-portal__secondary {
    transition: none;
  }
}