:root {
  --bg: #05060a;
  --ink: #f9f3df;
  --muted: #9ba5b6;
  --soft: #dce5f2;
  --line: rgba(255, 255, 255, 0.12);
  --gold: #f7c95f;
  --gold-2: #fff0a8;
  --gold-3: #8c5b10;
  --cyan: #55f7ff;
  --green: #7dff9c;
  --radius: 8px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -4;
  background:
    radial-gradient(circle at 50% 18%, rgba(247, 201, 95, 0.18), transparent 30%),
    radial-gradient(circle at 18% 28%, rgba(85, 247, 255, 0.14), transparent 26%),
    radial-gradient(circle at 82% 72%, rgba(125, 255, 156, 0.10), transparent 32%),
    linear-gradient(180deg, #05060a 0%, #090d16 48%, #040508 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  transform: translateY(-160%);
  border-radius: var(--radius);
  background: var(--gold);
  color: #130e03;
  padding: 10px 14px;
  font-weight: 900;
}

.skip-link:focus {
  transform: translateY(0);
}

.ambient,
.ambient canvas,
.noise-layer,
.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.ambient {
  z-index: -2;
}

.noise-layer {
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(255,255,255,0.036) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 34%, #000 0 42%, transparent 78%);
}

.vignette {
  z-index: 1;
  background:
    radial-gradient(circle at center, transparent 0 42%, rgba(0, 0, 0, 0.62) 88%),
    linear-gradient(180deg, rgba(0,0,0,0.12), rgba(0,0,0,0.72));
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 30;
  display: flex;
  justify-content: center;
  width: auto;
  transform: translateX(-50%);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 280px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  background: rgba(6, 8, 14, 0.68);
  box-shadow: 0 18px 60px rgba(0,0,0,0.36);
  backdrop-filter: blur(22px);
  padding: 10px 18px 10px 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(247, 201, 95, 0.56);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 28%, var(--gold-2), var(--gold) 40%, var(--gold-3) 74%);
  color: #171004;
  font-size: 0.9rem;
  font-weight: 950;
  box-shadow: 0 0 30px rgba(247, 201, 95, 0.34);
}

.brand strong,
.brand small {
  display: block;
  text-align: left;
}

.brand strong {
  font-size: 1rem;
  line-height: 1.05;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-oracle {
  position: relative;
  display: grid;
  justify-items: center;
  width: min(1120px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 124px 0 56px;
  text-align: center;
}

.hero-center {
  position: relative;
  z-index: 3;
  display: grid;
  justify-items: center;
  max-width: 900px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 14px;
  color: var(--gold-2);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(4rem, 12vw, 10.5rem);
  line-height: 0.82;
  font-weight: 950;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-lede {
  max-width: 720px;
  margin: 0 auto;
  color: var(--soft);
  font-size: clamp(1rem, 1.7vw, 1.22rem);
  line-height: 1.68;
}

.oracle-wrap {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: min(100%, 760px);
  margin-top: clamp(26px, 5vw, 48px);
}

.oracle-aura {
  position: absolute;
  width: min(94vw, 760px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 52%, rgba(247, 201, 95, 0.22), transparent 24%),
    radial-gradient(circle at 50% 50%, rgba(85, 247, 255, 0.12), transparent 46%),
    radial-gradient(circle at 50% 50%, rgba(247, 201, 95, 0.06), transparent 68%);
  filter: blur(4px);
}

.oracle-vessel {
  position: relative;
  width: min(92vw, 650px);
  height: clamp(500px, 64vw, 690px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50% 50% 10% 10% / 8% 8% 10% 10%;
  background:
    radial-gradient(circle at 50% 46%, rgba(247,201,95,0.18), transparent 26%),
    linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.018));
  box-shadow:
    0 35px 120px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 0 -50px 110px rgba(0,0,0,0.42);
}

.oracle-vessel::before {
  content: "";
  position: absolute;
  inset: 58px 9% 78px;
  z-index: 2;
  clip-path: polygon(0 0, 100% 0, 58% 50%, 64% 100%, 36% 100%, 42% 50%);
  background:
    linear-gradient(180deg, rgba(85,247,255,0.08), rgba(247,201,95,0.16), rgba(247,201,95,0.04));
  border-top: 1px solid rgba(85,247,255,0.18);
  border-bottom: 1px solid rgba(247,201,95,0.22);
  pointer-events: none;
}

.oracle-vessel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.06),
    inset 42px 0 80px rgba(255,255,255,0.035),
    inset -42px 0 90px rgba(0,0,0,0.28);
  pointer-events: none;
}

#signalFunnelCanvas {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
}

.vessel-mouth {
  position: absolute;
  top: 48px;
  left: 50%;
  z-index: 4;
  width: 76%;
  height: 42px;
  border: 1px solid rgba(85,247,255,0.24);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(85,247,255,0.14), rgba(0,0,0,0.18) 62%, transparent 70%);
  transform: translateX(-50%);
  pointer-events: none;
}

.vessel-core {
  position: absolute;
  left: 50%;
  bottom: 78px;
  z-index: 4;
  width: 124px;
  height: 124px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 35%, #fff7bd 0 8%, #f7c95f 22%, #a66d12 48%, rgba(247,201,95,0.08) 70%);
  box-shadow:
    0 0 38px rgba(247,201,95,0.72),
    0 0 92px rgba(247,201,95,0.34);
  transform: translateX(-50%);
  pointer-events: none;
}

.vessel-base {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 4;
  width: 42%;
  height: 28px;
  border-radius: 50%;
  background: rgba(247,201,95,0.18);
  box-shadow: 0 0 54px rgba(247,201,95,0.36);
  transform: translateX(-50%);
  pointer-events: none;
}

.golden-signal {
  position: relative;
  z-index: 4;
  display: grid;
  justify-items: center;
  width: min(100%, 680px);
  margin-top: -18px;
  border: 1px solid rgba(247,201,95,0.26);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 0%, rgba(247,201,95,0.18), transparent 48%),
    rgba(7, 9, 15, 0.72);
  box-shadow: 0 24px 90px rgba(0,0,0,0.42);
  backdrop-filter: blur(18px);
  padding: 26px clamp(18px, 4vw, 42px) 30px;
}

.signal-crown {
  position: relative;
  width: 46px;
  height: 38px;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 16px rgba(247,201,95,0.55));
}

.signal-crown::after {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  bottom: 2px;
  height: 9px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
}

.signal-crown i {
  position: absolute;
  bottom: 8px;
  width: 16px;
  height: 25px;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.signal-crown i:nth-child(1) {
  left: 1px;
  transform: rotate(-18deg);
}

.signal-crown i:nth-child(2) {
  left: 15px;
  height: 32px;
}

.signal-crown i:nth-child(3) {
  right: 1px;
  transform: rotate(18deg);
}

.golden-signal p {
  margin-bottom: 8px;
  color: var(--gold-2);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.golden-signal h2 {
  max-width: 540px;
  margin-bottom: 22px;
  font-size: clamp(1.9rem, 5vw, 4rem);
  line-height: 0.98;
  font-weight: 950;
  text-wrap: balance;
}

.join-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  width: min(100%, 360px);
  border: 1px solid rgba(255, 240, 168, 0.72);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,0.34), transparent 38%),
    linear-gradient(135deg, #6f4308 0%, #f7c95f 36%, #fff0a8 52%, #9d650f 100%);
  color: #130d03;
  box-shadow:
    0 0 0 1px rgba(247,201,95,0.18),
    0 16px 52px rgba(247,201,95,0.28),
    inset 0 1px 0 rgba(255,255,255,0.54);
  font-size: 1rem;
  font-weight: 950;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.join-button:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(247,201,95,0.22),
    0 22px 64px rgba(247,201,95,0.34),
    inset 0 1px 0 rgba(255,255,255,0.58);
}

.signal-stack {
  width: min(980px, calc(100% - 32px));
  margin: 60px auto 0;
  padding: 30px 0 38px;
  text-align: center;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.stack-grid article {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.024));
  box-shadow: 0 18px 60px rgba(0,0,0,0.26);
  padding: 22px;
}

.stack-grid span {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 950;
}

.stack-grid h3 {
  margin: 36px 0 10px;
  font-size: 1.24rem;
}

.stack-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.site-footer {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 42px;
  color: #8e98a8;
  font-size: 0.82rem;
  line-height: 1.58;
  text-align: center;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 760px) {
  .site-header {
    top: 10px;
  }

  .brand {
    min-width: 0;
    padding-right: 14px;
  }

  .brand small {
    display: none;
  }

  .hero-oracle {
    width: min(100% - 20px, 1120px);
    padding-top: 104px;
  }

  h1 {
    font-size: clamp(3.3rem, 18vw, 6rem);
  }

  .oracle-vessel {
    height: clamp(470px, 120vw, 590px);
  }

  .golden-signal {
    margin-top: -10px;
  }

  .stack-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .ambient canvas,
  #signalFunnelCanvas {
    display: none;
  }
}
