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

:root {
  --bg: #0a0e17;
  --bg-elevated: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);
  --text: #e8edf5;
  --text-muted: #8b95a8;
  --accent: #4f7cff;
  --accent-hover: #6b92ff;
  --accent-glow: rgba(79, 124, 255, 0.35);
  --purple-glow: rgba(139, 92, 246, 0.2);
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 72px;
  --container: 1120px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg) 0%, #111827 100%);
  overflow-x: hidden;
}

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

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

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.container--narrow {
  width: min(100% - 2rem, 720px);
}

/* Background glows */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.bg-glow--1 {
  width: 600px;
  height: 600px;
  top: -200px;
  right: -100px;
  background: var(--accent-glow);
}

.bg-glow--2 {
  width: 500px;
  height: 500px;
  bottom: 20%;
  left: -150px;
  background: var(--purple-glow);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(10, 14, 23, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 100%;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-right: auto;
}

.nav__link {
  font-size: 0.9375rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav__link:hover {
  color: var(--text);
}

.header__cta {
  flex-shrink: 0;
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

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

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-hover);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn--ghost:hover {
  border-color: var(--border-hover);
  background: var(--bg-elevated);
}

.btn--sm {
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
}

.btn--lg {
  font-size: 1rem;
  padding: 0.875rem 1.5rem;
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  padding: calc(var(--header-h) + 5rem) 0 4rem;
}

.hero__inner {
  max-width: 720px;
}

.hero__eyebrow {
  display: inline-block;
  margin: 0 0 1.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero__title {
  margin: 0 0 1.5rem;
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero__subtitle {
  margin: 0 0 2.5rem;
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 540px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Marquee */
.marquee {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 1.25rem 0;
  border-block: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 40s linear infinite;
}

.marquee__track span {
  flex-shrink: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

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

/* Sections */
.section {
  position: relative;
  z-index: 1;
  padding: 5rem 0;
}

.section__title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
}

.section__lead {
  margin: 0 auto 3rem;
  max-width: 640px;
  text-align: center;
  font-size: 1.0625rem;
  color: var(--text-muted);
}

.section__cta {
  margin-top: 3rem;
  text-align: center;
}

/* Spotlight / LLM block */
.section--spotlight {
  padding-block: 4rem;
}

.spotlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(79, 124, 255, 0.12) 0%, rgba(139, 92, 246, 0.08) 50%, rgba(10, 14, 23, 0.6) 100%);
}

.spotlight__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.spotlight__title {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.spotlight__text {
  margin: 0 0 1.5rem;
  font-size: 1rem;
  color: var(--text-muted);
}

.spotlight__list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.spotlight__list li {
  margin-bottom: 0.5rem;
}

.spotlight__list li::marker {
  color: var(--accent);
}

.spotlight__visual {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chat-bubble {
  padding: 1rem 1.25rem;
  border-radius: 14px;
  font-size: 0.875rem;
  line-height: 1.5;
  max-width: 100%;
}

.chat-bubble--in {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

.chat-bubble--out {
  align-self: flex-end;
  background: rgba(79, 124, 255, 0.18);
  border: 1px solid rgba(79, 124, 255, 0.35);
  border-bottom-right-radius: 4px;
}

.chat-bubble__link {
  color: var(--accent);
  font-size: 0.8125rem;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
}

.cards .card:nth-child(1) { grid-column: span 3; }
.cards .card:nth-child(2) { grid-column: span 3; }
.cards .card:nth-child(3) { grid-column: span 2; }
.cards .card:nth-child(4) { grid-column: span 2; }
.cards .card:nth-child(5) { grid-column: span 2; }

.card {
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.card--accent {
  border-color: rgba(79, 124, 255, 0.35);
  background: linear-gradient(160deg, rgba(79, 124, 255, 0.14) 0%, var(--bg-elevated) 60%);
}

.card--accent:hover {
  border-color: rgba(79, 124, 255, 0.55);
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(79, 124, 255, 0.12);
  border-radius: 8px;
}

.card__title {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.card__text {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.card__tags span {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

/* Highlights */
.section--highlights {
  padding-block: 3rem;
}

.highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.highlight {
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(79, 124, 255, 0.08) 0%, rgba(139, 92, 246, 0.06) 100%);
}

.highlight__title {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.highlight__text {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.highlight__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.step {
  text-align: center;
}

.step__num {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.step__title {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.step__text {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* FAQ */
.faq {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq__item {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  overflow: hidden;
}

.faq__item[open] {
  border-color: var(--border-hover);
}

.faq__question {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::after {
  content: "+";
  float: right;
  font-weight: 400;
  color: var(--text-muted);
  transition: transform 0.2s;
}

.faq__item[open] .faq__question::after {
  content: "−";
}

.faq__answer {
  margin: 0;
  padding: 0 1.5rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.faq__answer a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* CTA block */
.section--cta {
  padding-bottom: 6rem;
}

.cta-block {
  text-align: center;
  padding: 4rem 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(79, 124, 255, 0.1) 0%, rgba(10, 14, 23, 0.5) 100%);
}

.cta-block__title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.cta-block__text {
  margin: 0 0 2rem;
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-inline: auto;
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__brand {
  font-weight: 600;
}

.footer__copy {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Mobile nav */
@media (max-width: 768px) {
  .burger {
    display: flex;
    margin-left: auto;
  }

  .header__cta {
    display: none;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem;
    background: rgba(10, 14, 23, 0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s, opacity 0.25s, visibility 0.25s;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav__link {
    padding: 0.875rem 0.5rem;
    border-bottom: 1px solid var(--border);
  }

  .nav__link:last-child {
    border-bottom: none;
  }

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

  .cards .card:nth-child(n) {
    grid-column: span 1;
  }

  .spotlight {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem;
  }

  .spotlight__visual {
    order: -1;
  }

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

  .steps {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero {
    padding-top: calc(var(--header-h) + 3rem);
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .marquee__track {
    animation: none;
  }

  .btn:hover,
  .card:hover {
    transform: none;
  }
}
