:root {
  color-scheme: dark;
  --bg: #090a0d;
  --panel: #14161b;
  --panel-soft: #1a1d23;
  --line: #2b3038;
  --text: #f2f4f8;
  --muted: #a2a9b6;
  --soft: #737b89;
  --accent: #8a8f98;
  --accent-bright: #d8dce3;
  --success: #66d19e;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scrollbar-width: none;
  scroll-padding-top: 5.5rem;
  scroll-behavior: smooth;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(34px) scale(0.985);
    transition:
      opacity 720ms ease,
      transform 720ms cubic-bezier(0.2, 0.8, 0.2, 1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
  }

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

  .reveal.is-faded {
    opacity: 0.18;
    transform: translateY(-18px) scale(0.99);
  }

  .hero-copy.reveal {
    transform: translateX(-26px);
  }

  .bot-preview.reveal {
    transform: translateX(26px) scale(0.985);
  }

  .hero-copy.reveal.is-visible,
  .bot-preview.reveal.is-visible {
    transform: translateX(0) scale(1);
  }

  .hero-copy.reveal.is-faded {
    transform: translateX(-18px);
  }

  .bot-preview.reveal.is-faded {
    transform: translateX(18px) scale(0.99);
  }

  .card-interactive {
    transform-style: preserve-3d;
    transition:
      opacity 720ms ease,
      transform 260ms ease,
      border-color 260ms ease,
      box-shadow 260ms ease,
      background 260ms ease;
  }

  .card-interactive:hover,
  .card-interactive.is-hovered {
    transform:
      perspective(900px)
      translateY(-18px)
      scale(1.035)
      rotateX(var(--tilt-x, 0deg))
      rotateY(var(--tilt-y, 0deg));
    border-color: rgba(216, 220, 227, 0.52);
    background: rgba(32, 36, 44, 0.98);
    box-shadow:
      0 32px 78px rgba(0, 0, 0, 0.62),
      0 0 0 1px rgba(216, 220, 227, 0.18),
      0 0 34px rgba(216, 220, 227, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.14);
  }

  .card-interactive:hover .feature-icon,
  .card-interactive.is-hovered .feature-icon {
    transform: translateZ(22px);
    background: #d8dce3;
    color: #101217;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.is-visible,
  .reveal.is-faded {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .card-interactive:hover,
  .card-interactive.is-hovered {
    border-color: rgba(216, 220, 227, 0.45);
    background: rgba(32, 36, 44, 0.98);
    box-shadow:
      0 20px 48px rgba(0, 0, 0, 0.56),
      0 0 0 1px rgba(216, 220, 227, 0.12);
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(117, 126, 142, 0.18), transparent 32rem),
    linear-gradient(180deg, #090a0d 0%, #101217 48%, #08090b 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.card-interactive {
  position: relative;
  overflow: hidden;
  transform-origin: center;
}

.card-interactive::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(
      circle at var(--cursor-x, 50%) var(--cursor-y, 50%),
      rgba(216, 220, 227, 0.16),
      transparent 36%
    );
  transition: opacity 220ms ease;
}

.card-interactive > * {
  position: relative;
  z-index: 1;
}

.card-interactive:hover::after {
  opacity: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  background: rgba(9, 10, 13, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.75rem;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, #252a32, #101217);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nav-links {
  gap: clamp(0.8rem, 2vw, 1.8rem);
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--text);
}

.hero-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(19rem, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  min-height: calc(100vh - 4.5rem);
  padding: clamp(3rem, 8vw, 7rem) clamp(1rem, 6vw, 6rem) clamp(2rem, 5vw, 4rem);
  overflow: hidden;
  background: #07080a;
}

.hero-section::before,
.hero-section::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.hero-section::before {
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(7, 8, 10, 0.88) 0%, rgba(7, 8, 10, 0.62) 46%, rgba(7, 8, 10, 0.84) 100%),
    linear-gradient(180deg, rgba(7, 8, 10, 0.62) 0%, rgba(7, 8, 10, 0.28) 42%, rgba(7, 8, 10, 0.92) 100%);
}

.hero-section::after {
  z-index: 0;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.04) 0 12%, transparent 36%),
    radial-gradient(circle at 50% 45%, transparent 0 26%, rgba(7, 8, 10, 0.72) 72%);
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0.42;
  filter: brightness(0.5) saturate(0.82);
  transform: translateZ(0);
  pointer-events: none;
  will-change: opacity;
}

.hero-video-bg video,
.hero-video-bg iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-copy,
.bot-preview {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--accent-bright);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 1rem;
  font-size: clamp(4.5rem, 15vw, 11rem);
  line-height: 0.84;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0.9rem;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.1rem;
}

.hero-text {
  max-width: 41rem;
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.28rem);
  line-height: 1.8;
}

.hero-actions,
.command-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.primary-link,
.ghost-link,
.tab-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  border-radius: 8px;
  font-weight: 800;
}

.primary-link {
  padding: 0 1.1rem;
  background: var(--accent-bright);
  color: #101217;
}

.ghost-link {
  padding: 0 1.1rem;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.bot-preview {
  display: flex;
  justify-content: center;
}

.bot-window {
  width: min(100%, 30rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(160deg, rgba(34, 38, 46, 0.96), rgba(13, 15, 19, 0.98));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.window-top {
  display: flex;
  gap: 0.45rem;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}

.window-top span {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 999px;
  background: #5f6672;
}

.now-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1.1rem;
  margin: 1rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.pulse-disc {
  position: relative;
  display: grid;
  width: 5.5rem;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 999px;
  background:
    radial-gradient(circle, #15171c 0 20%, transparent 21%),
    conic-gradient(from 20deg, #e4e7ec, #737b89, #242832, #e4e7ec);
  animation: spin-disc 12s linear infinite;
}

.pulse-disc span {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  background: #090a0d;
  border: 2px solid #d8dce3;
}

.mini-label {
  margin-bottom: 0.25rem;
  color: var(--success);
  font-size: 0.8rem;
  font-weight: 800;
}

.now-card h2 {
  margin-bottom: 0.3rem;
  font-size: 1.55rem;
}

.now-card p:last-child,
.queue-line span,
.feature-card p,
.command-card p,
.flow-list p,
.developer-card p,
.site-footer {
  color: var(--muted);
}

.control-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  padding: 0 1rem 1rem;
}

.control-grid span,
.queue-line {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.control-grid span {
  display: grid;
  min-height: 2.4rem;
  place-items: center;
  border-radius: 8px;
  color: var(--accent-bright);
  font-size: 0.82rem;
  font-weight: 800;
}

.queue-line {
  display: flex;
  justify-content: space-between;
  margin: 0 1rem 0.8rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 0 clamp(1rem, 6vw, 6rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  overflow: hidden;
}

.stats-strip div {
  padding: 1.25rem;
  background: rgba(20, 22, 27, 0.96);
}

.stats-strip strong {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 1.65rem;
}

.stats-strip span {
  color: var(--muted);
}

.section,
.developer-section {
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 6vw, 6rem);
}

.section-heading {
  max-width: 50rem;
  margin-bottom: 2rem;
}

.feature-grid,
.command-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card,
.command-card,
.developer-card,
.flow-list div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(20, 22, 27, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.feature-card {
  min-height: 15rem;
  padding: 1.25rem;
}

.feature-icon {
  display: inline-grid;
  width: 2.45rem;
  height: 2.45rem;
  place-items: center;
  margin-bottom: 1.6rem;
  border-radius: 8px;
  background: #242832;
  color: var(--accent-bright);
  font-weight: 900;
  transition:
    transform 260ms ease,
    background 260ms ease,
    color 260ms ease;
}

.feature-card p,
.command-card p,
.flow-list p,
.developer-card p {
  line-height: 1.65;
}

.dark-band {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.flow-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.flow-list div {
  display: flex;
  gap: 1rem;
  padding: 1.2rem;
}

.flow-list span {
  display: grid;
  flex: 0 0 auto;
  width: 2.1rem;
  height: 2.1rem;
  place-items: center;
  border-radius: 8px;
  background: var(--accent-bright);
  color: #101217;
  font-weight: 900;
}

code {
  color: var(--accent-bright);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.94em;
}

.command-heading {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.tab-button {
  border: 1px solid var(--line);
  padding: 0 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  cursor: pointer;
}

.tab-button.active,
.tab-button:hover {
  background: var(--accent-bright);
  color: #101217;
}

.command-card {
  min-height: 9rem;
  padding: 1rem;
}

.command-card code {
  display: block;
  margin-bottom: 0.7rem;
  font-weight: 900;
}

.command-card.is-hidden {
  display: none;
}

.developer-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 24rem);
  gap: 2rem;
  padding: clamp(1.2rem, 4vw, 2rem);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    #14161b;
}

.contact-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  background: #0f1115;
}

.contact-box span {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-box strong {
  display: block;
  margin: 0.3rem 0 0.6rem;
  font-size: 1.45rem;
}

.contact-box .primary-link {
  width: 100%;
  margin-top: 0.4rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem clamp(1rem, 6vw, 6rem);
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

@keyframes spin-disc {
  to {
    rotate: 360deg;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pulse-disc {
    animation: none;
  }
}

@media (max-width: 920px) {
  .hero-section,
  .developer-card {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
  }

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

  .stats-strip,
  .flow-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .command-heading {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .hero-section {
    padding-top: 2.5rem;
  }

  h1 {
    font-size: clamp(4rem, 24vw, 6.8rem);
  }

  .feature-grid,
  .command-grid,
  .stats-strip,
  .flow-list {
    grid-template-columns: 1fr;
  }

  .control-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .now-card {
    grid-template-columns: 1fr;
  }
}
