:root {
  color-scheme: dark;
  --bg-primary: #05040f;
  --bg-secondary: rgba(255, 255, 255, 0.04);
  --bg-elevated: rgba(13, 16, 34, 0.6);
  --text-primary: #f1f5ff;
  --text-muted: #a7b1d4;
  --accent-start: #7f5af0;
  --accent-end: #2cb1ff;
  --accent-solid: #5d8bff;
  --danger: #ff5a7a;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-xl: 0 40px 120px rgba(14, 20, 49, 0.4);
  --shadow-md: 0 20px 60px rgba(10, 12, 25, 0.35);
  --backdrop: blur(28px);
  --transition: all 240ms ease;
  --gradient-accent: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  --gradient-surface: linear-gradient(145deg, rgba(37, 48, 91, 0.2), rgba(7, 9, 20, 0.65));
  --section-spacing: clamp(72px, 10vw, 128px);
  --text-max-width: 640px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top right, rgba(45, 87, 250, 0.22), transparent 60%),
    radial-gradient(circle at 10% 0%, rgba(129, 72, 255, 0.28), transparent 55%), var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.65;
}

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

p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

h1,
h2,
h3,
h4 {
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
}

h2 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
}

h3 {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
}

main {
  width: min(1240px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: var(--backdrop);
  background: rgba(5, 6, 15, 0.6);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.site-header.is-scrolled {
  background: rgba(5, 6, 15, 0.8);
  box-shadow: 0 18px 24px rgba(4, 6, 22, 0.45);
}

.site-header__inner {
  width: min(1240px, 92vw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 24px;
}

.site-header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-header__logo::before {
  content: "";
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--gradient-accent);
  box-shadow: var(--shadow-md);
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
}

.site-header__link {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  position: relative;
  transition: var(--transition);
}

.site-header__link:hover,
.site-header__link:focus {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.site-header__link--active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(40px, 8vw, 64px);
  padding: var(--section-spacing) 0;
  align-items: center;
}

.hero__content {
  max-width: var(--text-max-width);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  margin-bottom: 18px;
  backdrop-filter: var(--backdrop);
}

.hero__title span {
  display: block;
  background: var(--gradient-accent);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.lead {
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: var(--transition);
}

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

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

.btn--ghost {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.03);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.hero__visual {
  position: relative;
  border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 38px);
  background: var(--gradient-surface);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.hero__orb,
.hero__nodes {
  position: absolute;
  border-radius: 100%;
  filter: blur(0);
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero__orb {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(44, 177, 255, 0.45), transparent 68%);
  top: -220px;
  right: -220px;
  animation: float 12s ease-in-out infinite;
}

.hero__nodes {
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(127, 90, 240, 0.52), transparent 70%);
  bottom: -120px;
  left: -160px;
  animation: float 16s ease-in-out infinite reverse;
}

.hero__demo {
  position: relative;
  background: rgba(8, 13, 35, 0.92);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: var(--backdrop);
}

.hero__demo h3 {
  margin-top: 0;
}

.hero__demo-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  background: radial-gradient(circle at 30% 30%, rgba(127, 90, 240, 0.28), rgba(29, 34, 62, 0.9));
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(7, 12, 34, 0.4);
}

.hero__demo-video::after {
  content: "Autopilot Demo Playback";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(241, 245, 255, 0.85);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section {
  padding: var(--section-spacing) 0;
}

.section--alt {
  background: rgba(12, 14, 28, 0.6);
  margin: 0 calc((100vw - min(1240px, 92vw)) / -2);
  padding: var(--section-spacing) calc((100vw - min(1240px, 92vw)) / 2);
}

.section__subtitle {
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: var(--text-max-width);
}

.section--pillars {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: var(--section-spacing) clamp(24px, 4vw, 48px);
  background: linear-gradient(160deg, rgba(35, 45, 90, 0.48), rgba(4, 6, 18, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-md);
}

.pillars {
  display: grid;
  gap: clamp(28px, 4vw, 36px);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.pillar {
  position: relative;
  z-index: 1;
  background: rgba(10, 14, 36, 0.72);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3vw, 36px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  backdrop-filter: blur(22px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pillar:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 28px 80px rgba(11, 15, 38, 0.45);
}

.pillar__header {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pillar__badge {
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
}

.pillar__header h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
}

.pillar__footer {
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 12px;
  color: rgba(255, 255, 255, 0.75);
}

.pillar__footer span {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.pillar__footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.pillar__footer li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
}

.pillar__footer li::before {
  content: "◆";
  font-size: 0.6rem;
  color: rgba(127, 90, 240, 0.9);
}

.timeline {
  display: grid;
  gap: 20px;
}

.timeline__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
}

.timeline__step {
  font-weight: 700;
  color: rgba(124, 150, 255, 0.8);
  font-size: 1.2rem;
}

.timeline__card {
  background: rgba(255, 255, 255, 0.04);
  padding: 20px 26px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow-md);
}

.media {
  display: grid;
  gap: clamp(24px, 4vw, 48px);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.glass {
  background: rgba(10, 14, 36, 0.55);
  border-radius: var(--radius-lg);
  padding: clamp(30px, 4vw, 42px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow-md);
}

.list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.list--check li::before {
  content: "•";
  margin-right: 10px;
  color: var(--accent-solid);
}

.price-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.price-card {
  background: rgba(11, 14, 38, 0.7);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 40px 32px;
  position: relative;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.price-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.18);
}

.price-card--popular::after {
  content: "Most popular";
  position: absolute;
  top: 20px;
  right: 24px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.price {
  font-size: 2.4rem;
  font-weight: 700;
  margin: 18px 0;
}

.price-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  color: var(--text-muted);
}

.price-card li::before {
  content: "⟡";
  color: var(--accent-start);
  margin-right: 10px;
}

.cta-panel {
  text-align: center;
  padding: clamp(36px, 5vw, 52px);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: var(--shadow-md);
}

.chat-shell {
  display: grid;
  gap: clamp(24px, 4vw, 40px);
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: start;
}

.chat {
  background: rgba(10, 14, 36, 0.7);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: clamp(24px, 4vw, 32px);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 18px;
  backdrop-filter: blur(20px);
}

.chat__log {
  max-height: 460px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 6px;
}

.chat__bubble {
  padding: 14px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  width: fit-content;
  max-width: 92%;
  line-height: 1.55;
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 38px rgba(9, 9, 18, 0.3);
}

.chat__bubble--assistant {
  background: rgba(127, 90, 240, 0.28);
}

.chat__bubble--user {
  align-self: flex-end;
  background: rgba(44, 177, 255, 0.26);
}

.chat__form {
  display: flex;
  gap: 12px;
}

.chat__form input,
.chat__form textarea {
  flex: 1;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(5, 6, 16, 0.65);
  color: var(--text-primary);
  font-size: 0.95rem;
}

.chat__form input:focus,
.chat__form textarea:focus {
  outline: none;
  border-color: rgba(124, 150, 255, 0.9);
  box-shadow: 0 0 0 2px rgba(124, 150, 255, 0.35);
}

.chat__status {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.progress {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
  height: 10px;
  position: relative;
}

.progress__bar {
  position: absolute;
  inset: 0;
  width: 0;
  background: var(--gradient-accent);
  transition: width 180ms ease;
}

.status-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.status-list li.is-active {
  color: var(--text-primary);
}

.artifact-panel {
  background: rgba(11, 16, 36, 0.6);
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 12px;
}

.artifact-panel canvas {
  width: 100%;
  height: auto;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.artifact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.artifact-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  transition: var(--transition);
}

.artifact-list a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.12);
}

.contact-grid {
  display: grid;
  gap: clamp(24px, 4vw, 48px);
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.contact-form {
  display: grid;
  gap: 18px;
}

.form__group {
  display: grid;
  gap: 8px;
}

.form__group label {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

.form__group input,
.form__group textarea {
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(5, 6, 16, 0.65);
  color: var(--text-primary);
  font-size: 0.95rem;
}

.form__group textarea {
  min-height: 140px;
  resize: vertical;
}

.form__group input:focus,
.form__group textarea:focus {
  outline: none;
  border-color: rgba(124, 150, 255, 0.9);
  box-shadow: 0 0 0 2px rgba(124, 150, 255, 0.35);
}

.contact-info {
  display: grid;
  gap: 18px;
  color: var(--text-muted);
}

.contact-info a {
  color: var(--accent-end);
}

.footer {
  margin-top: var(--section-spacing);
  padding: 48px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.footer__links a {
  color: var(--text-muted);
  transition: var(--transition);
}

.footer__links a:hover {
  color: var(--text-primary);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -18px, 0);
  }
}

@media (max-width: 960px) {
  .site-header__inner {
    flex-wrap: wrap;
    justify-content: center;
  }

  .site-header__logo {
    order: -1;
  }
}

@media (max-width: 640px) {
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .chat__form {
    flex-direction: column;
  }

  .site-header__nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}
