/* DataBye landing · Grok / xAI cinematic */
:root {
  --bg: #050505;
  --bg-soft: #0a0a0a;
  --cream: #f5f0e6;
  --cream-dim: rgba(245, 240, 230, 0.62);
  --cream-faint: rgba(245, 240, 230, 0.28);
  --line: rgba(245, 240, 230, 0.12);
  --glow: rgba(245, 240, 230, 0.08);
  --warn: #e8c94a;
  --accent: #6d5ef5;
  --accent-soft: rgba(109, 94, 245, 0.35);
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "IBM Plex Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --max: 1080px;
  --narrow: 640px;
  --gutter: clamp(1.25rem, 4vw, 2rem);
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.65;
  background: var(--bg);
  color: var(--cream);
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* film grain */
.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--cream);
  color: var(--bg);
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

a {
  color: var(--cream);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--cream-faint);
}
a:hover { text-decoration-color: var(--cream); }

code {
  font-family: var(--mono);
  font-size: 0.86em;
  color: var(--cream-dim);
}

.shell {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.shell.narrow,
.narrow {
  max-width: var(--narrow);
}

/* topbar: sparse */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(5, 5, 5, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--cream);
}
.brand-mark {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: block;
  filter: drop-shadow(0 0 6px var(--accent-soft));
}
.brand .mark,
.footer-brand .mark,
.mark {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.ver {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--cream-faint);
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  font-size: 0.82rem;
  font-family: var(--mono);
}
.nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--cream-dim);
  text-decoration: none;
}
.nav a:hover { color: var(--cream); }
.nav-ico,
.kicker-ico,
.card-ico {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.9;
}
.nav-cta .nav-ico { opacity: 1; }
.kicker-ico {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}
.card-ico {
  width: 15px;
  height: 15px;
  margin-right: 0.35rem;
  vertical-align: -0.15em;
  display: inline-block;
  opacity: 0.75;
}
.nav-cta {
  color: var(--cream) !important;
  border: 1px solid var(--cream-faint);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
}
.nav-cta:hover {
  background: var(--glow);
  border-color: var(--cream-dim);
}

/* hero */
.hero {
  position: relative;
  padding: clamp(3rem, 10vw, 6.5rem) 0 clamp(4rem, 12vw, 7rem);
  min-height: min(88vh, 820px);
  display: flex;
  align-items: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 10% 5% auto auto;
  width: min(52vw, 520px);
  height: min(52vw, 520px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(109, 94, 245, 0.16) 0%, transparent 68%);
  pointer-events: none;
  filter: blur(8px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 6vw, 4rem);
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-agent { order: -1; justify-self: center; margin-bottom: 0.5rem; }
  .nav { display: none; }
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin: 0 0 1rem;
}

h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.6rem, 8vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 0.35rem;
  color: var(--cream);
}

.tagline {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  color: var(--cream-dim);
  margin: 0 0 1.4rem;
}

.lede,
.lede-block {
  color: var(--cream-dim);
  font-size: 1.12rem;
  max-width: 36em;
  margin: 0 0 1.6rem;
}
.lede-block.warn {
  border-left: 2px solid var(--cream-faint);
  padding-left: 1rem;
}
.body-text {
  color: var(--cream-dim);
  margin: 0 0 2rem;
}
.section-lede {
  color: var(--cream-dim);
  margin: 0 0 2rem;
  max-width: 36em;
}

.hero-note {
  margin: 1.25rem 0 0;
  font-size: 0.88rem;
  color: var(--cream-faint);
  max-width: 40em;
}
.hero-note code { font-size: 0.8em; }

/* buttons */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0.5rem 0 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid var(--line);
  color: var(--cream);
  background: transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover {
  border-color: var(--cream-faint);
  background: var(--glow);
  text-decoration: none;
}
.btn-primary {
  background: var(--cream);
  color: #050505;
  border-color: var(--cream);
}
.btn-primary:hover {
  background: #fff;
  color: #050505;
  border-color: #fff;
}
.btn-ghost { background: transparent; }
.btn-lg { padding: 0.9rem 1.5rem; font-size: 1.02rem; }

/* calm geometric brand mark */
.hero-agent {
  position: relative;
  width: min(100%, 320px);
  margin-inline: auto;
  text-align: center;
}
.agent-glow {
  position: absolute;
  inset: 8% 4%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(109, 94, 245, 0.4) 0%, rgba(61, 46, 168, 0.14) 42%, transparent 72%);
  filter: blur(22px);
  animation: glowPulse 5s ease-in-out infinite;
}
.agent {
  width: 100%;
  height: auto;
  display: block;
  animation: agentFloat 6.5s ease-in-out infinite;
  filter: drop-shadow(0 0 32px rgba(109, 94, 245, 0.36));
}
.mark-body {
  transform-origin: 120px 128px;
  animation: markPulse 5.5s ease-in-out infinite;
}
.mark-ground {
  animation: groundPulse 6.5s ease-in-out infinite;
  transform-origin: 120px 210px;
}
.agent-caption {
  margin: 0.75rem 0 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-faint);
}

@keyframes agentFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes markPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}
@keyframes groundPulse {
  0%, 100% { transform: scaleX(1); opacity: 0.35; }
  50% { transform: scaleX(0.9); opacity: 0.22; }
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

/* sections: sparse, cinematic */
.section {
  padding: clamp(3.5rem, 9vw, 6rem) 0;
  border-top: 1px solid var(--line);
}
.section h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  line-height: 1.15;
}
.section h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.15rem;
  margin: 0 0 0.6rem;
}

.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 0.5rem;
}
@media (max-width: 560px) {
  .pair { grid-template-columns: 1fr; }
}
.bare {
  list-style: none;
  margin: 0;
  padding: 0;
}
.bare li {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--cream-dim);
  font-size: 0.98rem;
}
.muted-list li { color: var(--cream-faint); }

/* steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.steps li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}
.steps li:first-child { border-top: 1px solid var(--line); }
.steps span {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--cream-faint);
  padding-top: 0.15rem;
}
.steps strong {
  display: block;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}
.steps p {
  margin: 0;
  color: var(--cream-dim);
  font-size: 0.95rem;
}

/* categories */
.cats {
  margin: 0;
  padding: 0;
}
.cats > div {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}
.cats > div:first-child { border-top: 1px solid var(--line); }
.cats dt {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.15rem 0;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 500;
  margin: 0 0 0.35rem;
}
.cats dt em {
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--cream-faint);
  margin-left: 0.5rem;
  vertical-align: middle;
}
.cats dd {
  margin: 0;
  color: var(--cream-dim);
  font-size: 0.98rem;
}

/* wizard iframe */
.wizard-frame-wrap {
  margin-top: 2rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #0a0a0a;
  box-shadow: 0 0 80px rgba(245, 240, 230, 0.04);
}
.wizard-frame {
  display: block;
  width: 100%;
  height: min(78vh, 820px);
  border: 0;
  background: #0a0a0a;
}

/* flows + audit lists */
.flows,
.audit {
  list-style: none;
  margin: 0;
  padding: 0;
}
.flows li,
.audit li {
  display: grid;
  gap: 0.35rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}
.flows li:first-child,
.audit li:first-child { border-top: 1px solid var(--line); }
.flows strong,
.audit code {
  font-family: var(--display);
  font-size: 1.1rem;
  color: var(--cream);
}
.audit code {
  font-family: var(--mono);
  font-size: 0.95rem;
}
.flows span,
.audit span {
  color: var(--cream-dim);
  font-size: 0.95rem;
}
.flows a,
.audit a {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--cream-dim);
}

/* grok panel */
.section-grok {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(245,240,230,0.05), transparent 70%),
    var(--bg);
}
.grok-box {
  margin: 0 0 2rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.grok-box h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}
.placeholder-note {
  color: var(--cream-dim);
  font-size: 0.95rem;
  margin: 0 0 1.25rem;
  max-width: 38em;
}
.btn-sub {
  margin: 1rem 0 0;
  font-size: 0.88rem;
  color: var(--cream-faint);
  max-width: 38em;
}
.grok-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: grok;
}
.grok-steps li {
  counter-increment: grok;
  position: relative;
  padding: 1.1rem 0 1.1rem 2.75rem;
  border-bottom: 1px solid var(--line);
  color: var(--cream-dim);
  font-size: 0.98rem;
}
.grok-steps li::before {
  content: counter(grok, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.2rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--cream-faint);
}
.grok-steps strong {
  color: var(--cream);
  font-weight: 500;
}

/* footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 3.5rem;
}
.footer-inner {
  max-width: var(--narrow);
  color: var(--cream-faint);
  font-size: 0.9rem;
}
.footer-brand {
  color: var(--cream-dim);
  margin: 0 0 0.75rem;
}
.footer p { margin: 0.35rem 0; }
.footer-meta { font-family: var(--mono); font-size: 0.78rem; }
.footer a { color: var(--cream-dim); }

@media (prefers-reduced-motion: reduce) {
  .agent, .mark-body, .mark-ground, .agent-glow {
    animation: none !important;
  }
  html { scroll-behavior: auto; }
}
