@import url("/assets/odds-cafe-theme.css");

/* odds.cafe — neon gaming API marketing site */
:root {
  --espresso: var(--smoke);
  --cream: var(--text);
  --gold: var(--teal);
  --gold-soft: rgba(45, 212, 191, 0.15);
  --glow: var(--teal-glow);
  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.hidden { display: none !important; }

.noscript-banner {
  position: relative;
  z-index: 200;
  padding: 0.85rem 1.25rem;
  background: rgba(201, 162, 39, 0.12);
  border-bottom: 1px solid rgba(201, 162, 39, 0.35);
  color: var(--cream);
  font-size: 0.92rem;
  text-align: center;
}
.noscript-banner a { margin: 0 0.35rem; text-decoration: underline; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--night);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--cream); }

/* ── Nav ── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  background: rgba(6, 6, 8, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, box-shadow 0.3s;
}
.site-nav.scrolled { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45); }

.logo { text-decoration: none; }
.logo .brand-logo-img { width: 36px; height: 36px; }
.logo .brand-text { font-size: 0.95rem; }
.logo .brand-sub { display: none; }
@media (min-width: 900px) {
  .logo .brand-sub { display: block; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 2vw, 1.75rem);
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  background: var(--rainbow);
  background-size: 200% auto;
  color: #000;
  font-weight: 700;
  animation: oc-shimmer 5s linear infinite;
  box-shadow: 0 4px 24px var(--glow);
}
.btn-gold:hover { animation: oc-shimmer 2s linear infinite; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-lg { padding: 0.85rem 1.75rem; font-size: 0.95rem; }

/* ── Parallax layers ── */
.parallax-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.plx {
  position: absolute;
  will-change: transform;
  transition: transform 0.1s linear;
}
.plx-stars {
  inset: 0;
  background:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 60% 70%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 80% 10%, rgba(255,255,255,0.35), transparent),
    radial-gradient(1px 1px at 40% 80%, rgba(255,255,255,0.25), transparent),
    radial-gradient(1px 1px at 90% 50%, rgba(255,255,255,0.3), transparent);
  background-size: 100% 100%;
  opacity: 0.6;
}
.plx-moon {
  width: 120px; height: 120px;
  top: 12%; right: 15%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff8e7, #c9b896 60%, transparent 70%);
  box-shadow: 0 0 60px rgba(201, 180, 140, 0.25);
  opacity: 0.5;
}
.plx-glow {
  width: 600px; height: 400px;
  bottom: -100px; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(201, 162, 39, 0.12), transparent 70%);
}
.plx-stadium {
  bottom: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(62, 207, 142, 0.06), transparent);
  border-top: 1px solid rgba(62, 207, 142, 0.08);
}
.plx-steam {
  width: 80px; height: 120px;
  bottom: 25%; left: 12%;
  background: radial-gradient(ellipse at bottom, rgba(255,255,255,0.06), transparent);
  filter: blur(20px);
  animation: steam 6s ease-in-out infinite;
}
@keyframes steam {
  0%, 100% { opacity: 0.3; transform: translateY(0) scale(1); }
  50% { opacity: 0.6; transform: translateY(-20px) scale(1.1); }
}

/* ── Hero ── */
.page-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 3rem) clamp(1.5rem, 5vw, 3rem) 4rem;
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
}

.hero-hint {
  position: absolute;
  right: clamp(1rem, 4vw, 2rem);
  bottom: 18%;
  z-index: 3;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(6, 6, 8, 0.72);
  border: 1px solid rgba(201, 162, 39, 0.25);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  pointer-events: none;
  max-width: min(280px, 70vw);
}
.hero-hint.visible {
  opacity: 1;
  transform: translateY(0);
}

body.hero-webgl .page-hero {
  background:
    radial-gradient(ellipse 55% 45% at 72% 38%, rgba(45, 212, 191, 0.07), transparent 60%),
    radial-gradient(ellipse 40% 35% at 18% 62%, rgba(201, 162, 39, 0.05), transparent 55%),
    linear-gradient(180deg, var(--night), var(--void));
}
body.hero-webgl .hero-canvas {
  opacity: 0.18;
  pointer-events: none;
  cursor: default;
}
body.hero-webgl .hero-hint { display: none; }
body.hero-webgl .parallax-scene { opacity: 0.55; }
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 680px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--rainbow);
}
.hero-inner h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6.5vw, 4rem);
  line-height: 1.08;
  font-weight: 400;
  margin-bottom: 1.25rem;
}
.hero-inner h1 em { font-style: italic; color: var(--cream); }
.hero-inner .lead {
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 480px;
}
.metric {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
}
.metric strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.35rem;
  color: var(--gold);
}
.metric span { font-size: 0.75rem; color: var(--muted); }

/* ── Ticker ── */
.live-ticker {
  position: relative;
  z-index: 5;
  background: var(--smoke);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid rgba(201, 162, 39, 0.2);
  overflow: hidden;
  height: 42px;
  display: flex;
  align-items: center;
}
.ticker-label {
  flex-shrink: 0;
  padding: 0 1.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--back);
  border-right: 1px solid var(--border);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--back);
  animation: pulse 1.5s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(62, 207, 142, 0.5); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(62, 207, 142, 0); }
}
.ticker-track {
  display: flex;
  gap: 2.5rem;
  white-space: nowrap;
  animation: scroll-ticker 45s linear infinite;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
}
@keyframes scroll-ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.odds-pill {
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-weight: 700;
  margin-left: 0.35rem;
}
.odds-pill.back { background: rgba(62, 207, 142, 0.15); color: var(--back); }
.odds-pill.lay { background: rgba(255, 107, 107, 0.12); color: var(--lay); }

/* ── Sections ── */
.section {
  position: relative;
  padding: clamp(4rem, 10vw, 7rem) clamp(1.5rem, 5vw, 3rem);
}
.section-dark { background: var(--void); }
.section-espresso { background: var(--espresso); }

.section-head {
  max-width: 640px;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.75rem;
  font-weight: 400;
}
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* Parallax band */
.parallax-band {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--espresso);
}
.parallax-band .bg {
  position: absolute;
  inset: -20% 0;
  background:
    url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 30h60M30 0v60' stroke='%23ffffff' stroke-opacity='0.03'/%3E%3C/svg%3E"),
    linear-gradient(180deg, var(--void), var(--espresso));
  background-size: 60px 60px, 100% 100%;
  will-change: transform;
}
.parallax-band .content {
  position: relative;
  z-index: 2;
  max-width: 560px;
  padding: 2rem;
}
.parallax-band blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-style: italic;
  color: var(--cream);
  line-height: 1.4;
}
.parallax-band cite {
  display: block;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  font-style: normal;
}

/* Cards grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}
.card {
  padding: 1.75rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(45, 212, 191, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), 0 0 24px var(--teal-glow);
}
.card-icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}
.card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--cream);
}
.card p { color: var(--muted); font-size: 0.92rem; }
.card code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--back);
  background: rgba(62, 207, 142, 0.08);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

/* Plans */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}
.plan {
  padding: 2rem 1.75rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  transition: transform 0.35s var(--ease);
}
.plan:hover { transform: translateY(-4px); }
.plan.featured {
  border-color: var(--teal);
  animation: oc-glow-pulse 3s ease-in-out infinite;
}
.plan-tag {
  position: absolute;
  top: -11px; right: 1.25rem;
  background: var(--gold);
  color: #0a0806;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  text-transform: uppercase;
}
.plan h3 { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 0.5rem; }
.plan .price {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0.75rem 0;
}
.plan .price small { font-size: 0.85rem; color: var(--muted); font-weight: 400; }
.plan ul { list-style: none; margin: 1.25rem 0; }
.plan li {
  color: var(--muted);
  font-size: 0.88rem;
  padding: 0.35rem 0 0.35rem 1.25rem;
  position: relative;
}
.plan li::before { content: "◆"; position: absolute; left: 0; color: var(--gold); font-size: 0.5rem; top: 0.55rem; }
.plan .btn { width: 100%; margin-top: 0.5rem; }

/* Code block */
.code-panel {
  max-width: 720px;
  margin: 0 auto;
  background: #0a0a0e;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.code-panel header {
  padding: 0.65rem 1rem;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--muted);
  display: flex;
  gap: 0.4rem;
}
.code-panel header span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border);
}
.code-panel pre {
  padding: 1.25rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--back);
}

/* Steps */
.steps {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
}
.step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
}
.step h3 { font-size: 1rem; margin-bottom: 0.25rem; color: var(--cream); }
.step p { color: var(--muted); font-size: 0.9rem; }

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Footer */
.site-footer {
  background: var(--night);
  border-top: 1px solid var(--border);
  padding: 3rem clamp(1.5rem, 5vw, 3rem) 2rem;
}
.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer-brand p { color: var(--muted); font-size: 0.9rem; margin-top: 0.75rem; max-width: 280px; }
.footer-col h4 {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  color: var(--text);
  font-size: 0.88rem;
  margin-bottom: 0.5rem;
  text-decoration: none;
  opacity: 0.75;
}
.footer-col a:hover { opacity: 1; color: var(--gold); }
.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Page header (inner pages) */
.page-title-block {
  padding: calc(var(--nav-h) + 4rem) clamp(1.5rem, 5vw, 3rem) 3rem;
  text-align: center;
  background: linear-gradient(180deg, var(--espresso), var(--void));
  border-bottom: 1px solid var(--border);
}
.page-title-block h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  margin-bottom: 0.75rem;
}
.page-title-block p { color: var(--muted); max-width: 520px; margin: 0 auto; }

/* Mobile */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(6, 6, 8, 0.96);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.35s var(--ease), opacity 0.35s;
    pointer-events: none;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .hero-metrics { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Signup form */
.signup-panel {
  max-width: 520px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--panel);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
}
.signup-panel h2 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}
.signup-panel .hint { color: var(--muted); font-size: 0.88rem; margin-bottom: 1.25rem; }
.signup-form { display: grid; gap: 0.85rem; }
.signup-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.signup-form input,
.signup-form select {
  background: var(--void);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  font: inherit;
}
.signup-form input:focus,
.signup-form select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 2px var(--teal-glow);
}
.signup-result {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(62, 207, 142, 0.08);
  border: 1px solid rgba(62, 207, 142, 0.25);
  border-radius: 8px;
  font-size: 0.88rem;
}
.signup-result code {
  font-family: var(--font-mono);
  color: var(--teal);
}
.signup-success-title { margin: 0 0 0.75rem; }
.signup-credential {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.5rem 0.75rem;
  align-items: center;
  margin-bottom: 0.65rem;
  padding: 0.65rem 0.75rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}
.signup-credential-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
}
.signup-credential-value {
  display: block;
  margin: 0;
  word-break: break-all;
  font-size: 0.82rem;
}
.signup-credential-hint {
  margin: 0.25rem 0 0.85rem;
  color: var(--muted);
  font-size: 0.8rem;
}
.signup-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.signup-slug { margin-top: 0.75rem; font-size: 0.8rem; }
.signup-error { color: var(--lay); font-size: 0.85rem; margin-top: 0.5rem; }
.signup-form .field-error {
  color: var(--lay);
  font-size: 0.78rem;
}
.signup-form .input-invalid {
  border-color: var(--lay);
  box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.15);
}
.signup-success-message {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.hero-brand-panel {
  margin-bottom: 2rem;
  display: inline-block;
  padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.5rem, 4vw, 2.25rem);
  background: radial-gradient(ellipse at 50% 40%, rgba(18, 18, 26, 0.92), rgba(6, 6, 8, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.45),
    0 0 60px rgba(45, 212, 191, 0.06);
}

.hero-logo {
  display: block;
  width: min(320px, 78vw);
  max-width: 100%;
  height: auto;
  object-fit: contain;
  animation: hero-logo-float 5.5s ease-in-out infinite;
  filter: drop-shadow(0 6px 28px rgba(45, 212, 191, 0.12));
}

@keyframes hero-logo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .plx { transform: none !important; }
  .hero-logo { animation: none; filter: none; }
  body.hero-webgl .hero-canvas { display: none; }
}
