:root {
  color-scheme: dark;
  --bg: #02030a;
  --bg-alt: #050814;
  --fg: #f5f5f5;
  --muted: #8086a0;
  --accent: #e5ff5a;
  --accent-soft: rgba(229, 255, 90, 0.16);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --shadow-soft: 0 0 80px rgba(0, 0, 0, 0.9);
}

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

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Inter", sans-serif;
  background: radial-gradient(circle at top, #090a10 0, #02030a 55%, #000000 100%);
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#noise-overlay {
  position: fixed;
  inset: -40px;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1' numOctaves='3' stitchTiles='noStitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.18'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  z-index: 1;
}

.frame {
  position: relative;
  z-index: 2;
  width: min(960px, 94vw);
  height: min(540px, 78vh);
  padding: 32px 40px 26px;
  border-radius: 32px;
  background: radial-gradient(circle at top, #161929, #050814 55%, #02030a);
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  row-gap: 18px;
  overflow: hidden;
}

.frame::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 10% -10%, rgba(229, 255, 90, 0.03), transparent 55%),
    radial-gradient(circle at 90% 120%, rgba(130, 255, 245, 0.02), transparent 60%);
  opacity: 0.9;
  pointer-events: none;
}

.frame::after {
  content: "";
  position: absolute;
  inset: -1px;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.04) 0px,
    rgba(255, 255, 255, 0.04) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.18;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.brand {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-mark {
  display: flex;
  flex-direction: row;
  align-items: center;
  font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.84);
}

.brand-oracle-ascii {
  position: relative;
  padding-bottom: 3px;
}

.brand-oracle-line {
  position: relative;
}

.brand-oracle-line--small {
  font-size: 9px;
  opacity: 0.7;
}

.brand-oracle-line::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 18px;
  height: 1px;
  background: linear-gradient(90deg, rgba(229, 255, 90, 0.9), transparent);
  opacity: 0.7;
}

.ticker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  background: rgba(5, 10, 25, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 1px rgba(229, 255, 90, 0.12);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ticker-label {
  color: var(--muted);
}

.ticker-value {
  color: var(--accent);
}

.hero {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: 0;
  flex: 1;
}

.eye-orbit {
  position: relative;
  width: clamp(260px, 40vw, 360px);
  aspect-ratio: 1.5 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eye-glow {
  position: absolute;
  inset: 8%;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 20%, rgba(180, 220, 255, 0.35), transparent 60%),
    radial-gradient(circle at 0% 80%, rgba(0, 0, 0, 0.8), transparent 65%);
  opacity: 0.2;
  filter: blur(22px);
}

.eye-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 120px;
  border-radius: 999px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 20%, #05070c, #010103 70%, #000000);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 0 40px rgba(0, 0, 0, 0.9),
    0 0 26px rgba(0, 0, 0, 1);
  transform-style: preserve-3d;
}

.eye-fallback {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(ellipse 35% 25% at 50% 48%, rgba(80, 90, 110, 0.5) 0%, transparent 55%),
    radial-gradient(ellipse 55% 40% at 50% 50%, #0f1218 0%, #080a0f 50%, #030406 100%);
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.6);
}

.eye-fallback .eye-img {
  mix-blend-mode: luminosity;
  filter: contrast(1.1) grayscale(1);
}

.eye-container.canvas-ready .eye-fallback {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.eye-container.canvas-ready #eye-3d-root {
  z-index: 2;
}

#eye-3d-root {
  position: absolute;
  inset: 0;
  z-index: 1;
}

#eye-3d-root canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.tagline {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

.cursor-pulse {
  display: inline-block;
  width: 6px;
  height: 1.1em;
  margin-left: 4px;
  background: rgba(229, 255, 90, 0.8);
  border-radius: 1px;
  animation: cursorBlink 1.2s steps(1, end) infinite;
}

.links {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 0 12px;
}

.link-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(3, 6, 18, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--fg);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  overflow: hidden;
  transition:
    transform 0.16s ease-out,
    border-color 0.16s ease-out,
    box-shadow 0.16s ease-out,
    background 0.16s ease-out,
    color 0.16s ease-out;
}

.link-pill::before {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-soft), transparent);
  opacity: 0;
  transform: translateY(100%);
  transition:
    opacity 0.2s ease-out,
    transform 0.2s ease-out;
}

.link-pill span {
  position: relative;
  z-index: 1;
}

.link-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(229, 255, 90, 0.8);
  box-shadow: 0 0 24px rgba(229, 255, 90, 0.25);
  color: var(--accent);
  background: rgba(6, 10, 28, 1);
}

.link-pill:hover::before {
  opacity: 0.22;
  transform: translateY(0);
}

.link-pill.disabled {
  cursor: default;
  color: var(--muted);
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.16);
}

.link-pill.disabled:hover {
  transform: none;
  box-shadow: none;
  color: var(--muted);
  border-color: rgba(255, 255, 255, 0.16);
}

.footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(229, 255, 90, 0.7);
  animation: pulse 1.9s ease-out infinite;
}

@keyframes cursorBlink {
  0%,
  55% {
    opacity: 1;
  }
  56%,
  100% {
    opacity: 0;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  60% {
    transform: scale(1.4);
    opacity: 0;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

@media (max-width: 720px) {
  .frame {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    padding: 20px 18px 18px;
  }

  .brand-mark {
    height: 32px;
  }

  .eye-orbit {
    width: min(360px, 82vw);
  }

  .tagline {
    font-size: 11px;
  }

  .links {
    gap: 8px;
  }

  .link-pill {
    font-size: 10px;
    padding-inline: 12px;
  }
}

