/* Phoenix AI — /why/ (operator rail — distinct from /learn/) */
:root {
  --ink: #090909;
  --cream: #F8F4E9;
  --cream-muted: #c8c0b4;
  --purple: #6B4FC8;
  --purple-light: #E0D0FF;
  --sky: #5A9FD8;
  --wine: #A81830;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --pad-x: clamp(1.25rem, 3vw, 2.5rem);
  --shell-max: 58rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  background: var(--ink);
  color: var(--cream);
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Atmosphere — same world asset, cooler left bias + wine edge wash */
.why-world {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 42% 48% at 12% 28%, rgba(168, 24, 48, 0.18), transparent 60%),
    radial-gradient(ellipse 50% 46% at 88% 42%, rgba(107, 79, 200, 0.26), transparent 64%),
    url("../assets/world-bc-datacenter.jpg?v=1789147200") 78% 36% / cover no-repeat,
    #090909;
  filter: brightness(0.92) contrast(1.07) saturate(1.06);
}

.why-veil {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      105deg,
      rgba(9, 9, 9, 0.88) 0%,
      rgba(9, 9, 9, 0.78) 32%,
      rgba(9, 9, 9, 0.48) 58%,
      rgba(9, 9, 9, 0.28) 78%,
      rgba(9, 9, 9, 0.55) 100%
    ),
    linear-gradient(
      180deg,
      rgba(9, 9, 9, 0.5) 0%,
      rgba(9, 9, 9, 0.18) 12%,
      rgba(9, 9, 9, 0.3) 55%,
      rgba(9, 9, 9, 0.88) 100%
    );
}

.why-shell {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* Topbar — equal gutters */
.why-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  margin: 0;
  padding: 1rem var(--pad-x);
  box-sizing: border-box;
}

.why-top__brand {
  display: block;
  line-height: 0;
  --lockup-w: clamp(9.5rem, 22vw, 12.5rem);
  margin-left: calc(var(--lockup-w) * -37 / 623);
}

.why-top__brand img {
  display: block;
  width: var(--lockup-w);
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(74, 40, 160, 0.35));
}

.why-top__nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 1.1rem 1.35rem;
}

.why-top__nav a {
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--cream);
  border-bottom: 1px solid color-mix(in srgb, var(--sky) 45%, transparent);
  padding-bottom: 1px;
  transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}

.why-top__nav a:hover,
.why-top__nav a:focus-visible {
  color: var(--sky);
  border-bottom-color: var(--sky);
  outline: none;
}

.why-top__nav a[aria-current="page"] {
  color: var(--sky);
  border-bottom-color: var(--sky);
}

/* Main column — true center */
.why-main {
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0.5rem var(--pad-x) 3.5rem;
  flex: 1;
}

/* ——— Split hero ——— */
.why-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); /* left ~25% narrower desktop — Jon 2026-09-14 */
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: start;
  padding: clamp(1.25rem, 3vw, 2rem) 0 clamp(2rem, 4vw, 3rem);
}

.why-kicker {
  font-size: 0.8rem;
  font-weight: 550;
  color: color-mix(in srgb, var(--cream-muted) 75%, var(--sky));
  margin-bottom: 0.85rem;
}

.why-hero h1 {
  font-size: clamp(2.05rem, 4.6vw, 3.15rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin-bottom: 1.1rem;
  max-width: 18ch;
}

.why-lede {
  font-size: clamp(1.02rem, 1.6vw, 1.14rem);
  line-height: 1.55;
  color: color-mix(in srgb, var(--cream) 88%, var(--cream-muted));
  max-width: 38rem;
  margin-bottom: 1rem;
}

.why-lede strong {
  color: var(--cream);
  font-weight: 650;
}

.why-pull {
  margin: 1.35rem 0 1.6rem;
  padding: 0.85rem 0 0.85rem 1rem;
  border-left: 3px solid color-mix(in srgb, var(--wine) 75%, var(--purple));
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  font-weight: 550;
  line-height: 1.45;
  color: var(--purple-light);
  max-width: 34rem;
}

.why-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 0.9rem;
  margin-top: 0.35rem;
}

.why-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.72rem 1.2rem;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 2px;
  transition: border-color 0.2s var(--ease-out), background 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

.why-btn--primary {
  border: 1px solid color-mix(in srgb, var(--purple) 55%, transparent);
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--purple) 38%, transparent),
      color-mix(in srgb, var(--wine) 22%, transparent)
    );
  color: var(--cream);
}

.why-btn--primary:hover,
.why-btn--primary:focus-visible {
  border-color: color-mix(in srgb, var(--sky) 60%, transparent);
  outline: none;
}

.why-btn--ghost {
  border: 1px solid color-mix(in srgb, var(--cream) 22%, transparent);
  background: transparent;
  color: var(--cream);
}

.why-btn--ghost:hover,
.why-btn--ghost:focus-visible {
  border-color: color-mix(in srgb, var(--sky) 50%, transparent);
  color: var(--sky);
  outline: none;
}

/* Proof rail (right column) */
.why-rail {
  position: relative;
  padding: 1.15rem 1.2rem 1.25rem;
  border: 1px solid color-mix(in srgb, var(--purple) 32%, transparent);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, color-mix(in srgb, var(--purple) 18%, transparent), transparent 70%),
    color-mix(in srgb, var(--ink) 72%, rgba(20, 12, 40, 0.9));
  box-shadow: 0 0 48px color-mix(in srgb, var(--purple) 14%, transparent);
}

/* Single orchestrated motion — soft purple breath */
@keyframes why-rail-breathe {
  0%, 100% { box-shadow: 0 0 40px color-mix(in srgb, var(--purple) 12%, transparent); }
  50% { box-shadow: 0 0 56px color-mix(in srgb, var(--purple) 26%, transparent); }
}

@media (prefers-reduced-motion: no-preference) {
  .why-rail {
    animation: why-rail-breathe 7s var(--ease-out) infinite;
  }
}

.why-rail__label {
  margin: 0 0 1rem;
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--cream, #f8f4e9);
}

.why-rail__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.why-rail__list li {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.65rem;
  align-items: start;
}

.why-rail__year {
  font-size: 0.72rem;
  font-weight: 700;
  color: color-mix(in srgb, var(--wine) 70%, var(--cream));
  letter-spacing: 0.02em;
  padding-top: 0.12rem;
}

.why-rail__body {
  font-size: 0.86rem;
  line-height: 1.4;
  color: color-mix(in srgb, var(--cream) 86%, var(--cream-muted));
}

.why-rail__body strong {
  display: block;
  color: var(--cream);
  font-weight: 650;
  margin-bottom: 0.15rem;
}

/* ——— Contrast panels ——— */
.why-band {
  margin: clamp(1.5rem, 3vw, 2.5rem) 0;
}

.why-band h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 1rem;
  color: var(--cream);
}

.why-contrast {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid color-mix(in srgb, var(--purple) 28%, transparent);
  overflow: hidden;
}

.why-contrast__panel {
  padding: 1.25rem 1.3rem 1.35rem;
}

.why-contrast__panel--alone {
  background: color-mix(in srgb, var(--ink) 88%, #1a1a1a);
  border-right: 1px solid color-mix(in srgb, var(--cream) 10%, transparent);
}

.why-contrast__panel--with {
  background:
    linear-gradient(
      160deg,
      color-mix(in srgb, var(--purple) 16%, transparent),
      color-mix(in srgb, var(--wine) 10%, transparent)
    ),
    color-mix(in srgb, var(--ink) 70%, rgba(30, 16, 48, 0.95));
}

.why-contrast__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 650;
  color: var(--cream-muted);
  margin-bottom: 0.55rem;
}

.why-contrast__panel--with .why-contrast__tag {
  color: var(--sky);
}

.why-contrast__panel h3 {
  font-size: 1.05rem;
  font-weight: 650;
  margin-bottom: 0.55rem;
  color: var(--cream);
}

.why-contrast__panel p {
  font-size: 0.92rem;
  line-height: 1.5;
  color: color-mix(in srgb, var(--cream) 82%, var(--cream-muted));
}

/* ——— Bio section ——— */
.why-bio {
  margin: clamp(2rem, 4vw, 3rem) 0;
  padding: 1.35rem 0 0;
  border-top: 1px solid color-mix(in srgb, var(--cream) 9%, transparent);
}

.why-bio h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 0.85rem;
}

.why-bio__lede {
  font-size: 1.02rem;
  line-height: 1.55;
  color: color-mix(in srgb, var(--cream) 88%, var(--cream-muted));
  max-width: 42rem;
  margin-bottom: 1.35rem;
}

.why-beats {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 2px solid color-mix(in srgb, var(--wine) 55%, var(--purple));
  margin-left: 0.35rem;
}

.why-beats li {
  position: relative;
  padding: 0.85rem 0 0.85rem 1.25rem;
}

.why-beats li::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 1.15rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--wine) 65%, var(--purple));
  box-shadow: 0 0 10px color-mix(in srgb, var(--purple) 40%, transparent);
}

.why-beats__when {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--sky);
  margin-bottom: 0.2rem;
}

.why-beats__what {
  font-size: 0.94rem;
  line-height: 1.45;
  color: color-mix(in srgb, var(--cream) 88%, var(--cream-muted));
}

.why-beats__what strong {
  color: var(--cream);
  font-weight: 650;
}

.why-ops {
  margin-top: 1.35rem;
  padding: 1rem 1.15rem;
  border-left: 3px solid color-mix(in srgb, var(--sky) 55%, var(--purple));
  background: color-mix(in srgb, var(--purple) 8%, rgba(9, 9, 9, 0.4));
  font-size: 0.94rem;
  line-height: 1.5;
  color: color-mix(in srgb, var(--cream) 86%, var(--cream-muted));
  max-width: 42rem;
}

/* ——— Closing CTA ——— */
.why-cta {
  margin: clamp(2rem, 4vw, 3.25rem) 0 1rem;
  padding: 1.5rem 1.35rem 1.6rem;
  border: 1px solid color-mix(in srgb, var(--purple) 32%, transparent);
  background:
    radial-gradient(ellipse 70% 80% at 8% 0%, color-mix(in srgb, var(--wine) 20%, transparent), transparent 55%),
    radial-gradient(ellipse 55% 70% at 100% 100%, color-mix(in srgb, var(--purple) 22%, transparent), transparent 50%),
    color-mix(in srgb, var(--ink) 75%, rgba(18, 10, 32, 0.95));
}

.why-cta h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.55rem);
  font-weight: 700;
  margin-bottom: 0.55rem;
}

.why-cta p {
  font-size: 0.98rem;
  line-height: 1.5;
  color: color-mix(in srgb, var(--cream) 86%, var(--cream-muted));
  max-width: 36rem;
  margin-bottom: 1.1rem;
}

/* Footer */
.why-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 var(--pad-x) 2.25rem;
  font-size: 0.78rem;
  color: var(--cream-muted);
}

.why-foot__pipe {
  opacity: 0.55;
  letter-spacing: 0;
  text-transform: none;
}
.why-foot a {
  color: var(--cream-muted);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--cream-muted) 35%, transparent);
  transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}

.why-foot a:hover,
.why-foot a:focus-visible {
  color: var(--sky);
  border-bottom-color: var(--sky);
  outline: none;
}

.why-foot__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--cream-muted) 50%, transparent);
}

/* ——— Mobile ——— */
@media (max-width: 820px) {
  .why-hero {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .why-hero h1 {
    max-width: none;
  }

  .why-contrast {
    grid-template-columns: 1fr;
  }

  .why-contrast__panel--alone {
    border-right: none;
    border-bottom: 1px solid color-mix(in srgb, var(--cream) 10%, transparent);
  }

  .why-rail__list li {
    grid-template-columns: 3.75rem 1fr;
  }
}

@media (max-width: 480px) {
  .why-top__nav {
    gap: 0.85rem;
  }

  .why-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .why-btn {
    width: 100%;
  }
}
