:root {
  --bg: #030303;
  --bg-elevated: rgba(12, 12, 12, 0.72);
  --text: #f4f4f5;
  --muted: rgba(244, 244, 245, 0.62);
  --faint: rgba(244, 244, 245, 0.32);
  --gold: #d4af37;
  --gold-bright: #f0d78a;
  --gold-hot: #ffe9a8;
  --gold-dim: rgba(212, 175, 55, 0.18);
  --gold-glow: rgba(212, 175, 55, 0.35);
  --line: rgba(212, 175, 55, 0.18);
  --glass: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.1);
  --font: "Inter", system-ui, sans-serif;
  --display: "Space Grotesk", "Inter", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --header-h: 72px;
  --radius: 18px;
}

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

html {
  scroll-behavior: smooth;
}

body.oneai-landing {
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

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

img,
video {
  display: block;
  max-width: 100%;
}

.gradient-text {
  background: linear-gradient(120deg, var(--gold-hot) 0%, var(--gold) 45%, #fff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- Canvas + aurora background ---- */
#spark-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  animation: aurora-drift 18s ease-in-out infinite;
}

.aurora-a {
  width: 55vw;
  height: 55vw;
  top: -20%;
  left: -10%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.22), transparent 70%);
}

.aurora-b {
  width: 45vw;
  height: 45vw;
  top: 20%;
  right: -15%;
  background: radial-gradient(circle, rgba(255, 200, 80, 0.12), transparent 70%);
  animation-delay: -6s;
}

.aurora-c {
  width: 35vw;
  height: 35vw;
  bottom: -10%;
  left: 30%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.1), transparent 70%);
  animation-delay: -12s;
}

@keyframes aurora-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(3%, -2%) scale(1.06); }
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- Header ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 clamp(1rem, 4vw, 2rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(3, 3, 3, 0.55);
  backdrop-filter: blur(18px) saturate(1.4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 0 24px rgba(212, 175, 55, 0.25);
}

.brand-text {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  gap: clamp(0.75rem, 2vw, 1.5rem);
}

.site-nav a {
  font-size: 0.88rem;
  color: var(--muted);
  transition: color 0.2s;
}

.site-nav a:hover {
  color: var(--gold-bright);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-sm {
  min-height: 38px;
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
}

.btn-gold {
  color: #120f08;
  background: linear-gradient(135deg, var(--gold-hot), var(--gold));
  box-shadow: 0 8px 32px rgba(212, 175, 55, 0.28);
}

.btn-gold:hover {
  box-shadow: 0 12px 40px rgba(212, 175, 55, 0.4);
}

.btn-glass {
  color: var(--text);
  background: var(--glass);
  border-color: var(--glass-border);
  backdrop-filter: blur(12px);
}

.btn-glass:hover {
  border-color: var(--line);
  background: rgba(212, 175, 55, 0.08);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding:
    calc(var(--header-h) + 2rem)
    clamp(1rem, 4vw, 2rem)
    4rem;
}

.hero-inner {
  width: min(860px, 100%);
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.06);
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--gold-bright);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 12px var(--gold-glow);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); }
}

.hero-logo-wrap {
  position: relative;
  width: 128px;
  height: 128px;
  margin: 0 auto 1.5rem;
}

.logo-orbit {
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.2);
  animation: orbit-spin 12s linear infinite;
}

.logo-orbit::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 16px var(--gold-glow);
  transform: translateX(-50%);
}

@keyframes orbit-spin {
  to { transform: rotate(360deg); }
}

.hero-logo-img {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  object-fit: cover;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(212, 175, 55, 0.15);
}

.hero-title {
  font-family: var(--display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero-sub {
  max-width: 620px;
  margin: 1.25rem auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.12rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.metric {
  padding: 1rem 0.75rem;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(10px);
}

.metric strong {
  display: block;
  font-family: var(--display);
  font-size: 1.2rem;
  color: var(--gold-bright);
}

.metric span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ---- Terminal card ---- */
.terminal-card {
  margin-top: 2.5rem;
  text-align: left;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  background: rgba(8, 8, 8, 0.75);
  backdrop-filter: blur(16px);
  overflow: hidden;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(212, 175, 55, 0.06) inset;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.terminal-bar span:first-child { background: #ff5f57; }
.terminal-bar span:nth-child(2) { background: #febc2e; }
.terminal-bar span:nth-child(3) { background: #28c840; }

.terminal-bar p {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--faint);
}

.terminal-body {
  padding: 1.25rem 1.25rem 1.5rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.7;
  color: rgba(212, 175, 55, 0.85);
  min-height: 160px;
  white-space: pre-wrap;
}

.terminal-body .dim { color: var(--faint); }
.terminal-body .ok { color: #7dffb2; }
.terminal-body .cmd { color: var(--gold-hot); }

/* ---- Marquee ---- */
.marquee {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-block: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  padding: 0.85rem 0;
}

.marquee-track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: marquee 40s linear infinite;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

.marquee-track span {
  white-space: nowrap;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---- Showreel ---- */
.showreel {
  position: relative;
  z-index: 2;
  padding: clamp(4rem, 10vh, 6rem) clamp(1rem, 4vw, 2rem);
}

.showreel-head {
  max-width: 640px;
  margin: 0 auto 2rem;
  text-align: center;
}

.showreel-head h2 {
  margin-top: 0.5rem;
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -0.02em;
}

.showreel-frame {
  position: relative;
  width: min(960px, 100%);
  margin: 0 auto;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow:
    0 32px 100px rgba(0, 0, 0, 0.55),
    0 0 80px rgba(212, 175, 55, 0.08);
}

.showreel-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
}

.showreel-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.06) 50%, transparent 60%);
  animation: shine 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shine {
  0%, 100% { transform: translateX(-30%); opacity: 0; }
  50% { transform: translateX(30%); opacity: 1; }
}

/* ---- Sections ---- */
.section {
  position: relative;
  z-index: 2;
  padding: clamp(4rem, 10vh, 6rem) clamp(1rem, 4vw, 2rem);
}

.section-head {
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.lede {
  margin-top: 0.85rem;
  color: var(--muted);
  max-width: 52ch;
}

/* ---- Bento grid ---- */
.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
}

.bento-card {
  position: relative;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  backdrop-filter: blur(12px);
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.bento-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(212, 175, 55, 0.12), transparent 55%);
  opacity: 0;
  transition: opacity 0.25s;
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: var(--line);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.bento-card:hover::before {
  opacity: 1;
}

.bento-wide {
  grid-column: span 2;
}

.bento-icon {
  display: inline-flex;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: var(--gold-bright);
}

.bento-card h3 {
  margin-bottom: 0.45rem;
  font-family: var(--display);
  font-size: 1.1rem;
}

.bento-card p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---- Agent rail ---- */
.agent-rail {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.agent-rail::-webkit-scrollbar {
  height: 6px;
}

.agent-rail::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 999px;
}

.agent-pill {
  flex: 0 0 min(240px, 78vw);
  scroll-snap-align: start;
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(10px);
}

.agent-pill span {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--gold-bright);
}

.agent-pill h3 {
  margin: 0.5rem 0 0.25rem;
  font-family: var(--display);
}

.agent-pill p {
  color: var(--muted);
  font-size: 0.88rem;
}

/* ---- CTA ---- */
.cta {
  display: flex;
  justify-content: center;
}

.cta-card {
  width: min(720px, 100%);
  padding: clamp(2rem, 5vw, 3rem);
  text-align: center;
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.12), transparent 55%),
    rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

.cta-card h2 {
  margin-top: 0.5rem;
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.cta-actions {
  justify-content: center;
  margin-top: 1.75rem;
}

/* ---- Footer ---- */
.site-footer {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  padding: 2rem 1rem 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--faint);
}

.site-footer .dot {
  color: var(--gold-dim);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .site-nav {
    display: none;
  }

  .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .bento-wide {
    grid-column: span 1;
  }
}

@media (max-width: 640px) {
  .hero-title br {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aurora-blob,
  .logo-orbit,
  .marquee-track,
  .showreel-shine,
  .pulse-dot {
    animation: none !important;
  }
  .btn:hover,
  .bento-card:hover {
    transform: none;
  }
}
