:root {
  --bg: #05070d;
  --bg-deep: #03040a;
  --surface: #0b111d;
  --surface-soft: #101827;
  --text: #f4f7fb;
  --muted: #a8b2c3;
  --faint: #647087;
  --line: rgba(151, 186, 255, 0.18);
  --line-strong: rgba(90, 170, 255, 0.42);
  --blue: #39a7ff;
  --blue-hot: #62c6ff;
  --violet: #8f62ff;
  --green: #8cd7b4;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
  --max: 1180px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(3, 4, 10, 0.2), var(--bg) 56%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.025) 0,
      rgba(255, 255, 255, 0.025) 1px,
      transparent 1px,
      transparent 128px
    ),
    var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
  text-rendering: geometricPrecision;
}

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

button,
a {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 22px 0;
  pointer-events: none;
}

.brand,
.header-action {
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
}

.brand-mark {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow:
    0 0 22px rgba(57, 167, 255, 0.95),
    12px 0 30px rgba(143, 98, 255, 0.62);
}

.header-action,
.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid rgba(130, 190, 255, 0.28);
  border-radius: 999px;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(57, 167, 255, 0.18), rgba(143, 98, 255, 0.16)),
    rgba(7, 12, 22, 0.64);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  cursor: not-allowed;
}

.header-action {
  min-width: 150px;
  padding: 0 18px;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 86svh;
  overflow: hidden;
  background: var(--bg-deep);
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("/assets/hero-ai-neural.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
  filter: saturate(1.05) contrast(1.05);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(3, 4, 10, 0.96) 0%, rgba(3, 4, 10, 0.78) 35%, rgba(3, 4, 10, 0.24) 73%),
    linear-gradient(180deg, rgba(3, 4, 10, 0.68) 0%, transparent 34%, var(--bg) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 116px 0 80px;
}

.hero-copy {
  max-width: 720px;
}

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

h1 {
  max-width: 11ch;
  color: var(--text);
  font-size: clamp(3.5rem, 8.5vw, 7.7rem);
  font-weight: 740;
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 620px;
  margin-top: 28px;
  color: rgba(244, 247, 251, 0.82);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  line-height: 1.65;
}

.primary-action {
  min-width: 178px;
  margin-top: 38px;
  padding: 0 24px;
  font-size: 0.92rem;
  font-weight: 800;
}

.section {
  position: relative;
  padding: 116px 0;
}

.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(var(--max), calc(100% - 48px));
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
  transform: translateX(-50%);
}

.section-inner {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.intro {
  background: linear-gradient(180deg, var(--bg), #070b13 58%, #060910);
}

.intro-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(48px, 7vw, 96px);
  align-items: center;
}

.section-number {
  margin-bottom: 18px;
  color: var(--blue-hot);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
}

h2 {
  color: var(--text);
  font-size: clamp(2.1rem, 4.8vw, 4.6rem);
  font-weight: 720;
  line-height: 1;
  letter-spacing: 0;
}

.intro-copy > p:last-child,
.feature p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.85;
}

.intro-copy > p:last-child {
  margin-top: 32px;
  max-width: 650px;
}

.intro-image-wrap {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.intro-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: inherit;
  pointer-events: none;
}

.intro-image-wrap img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.features {
  background:
    linear-gradient(180deg, #060910, #03050a),
    var(--bg-deep);
}

.features-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 54px;
}

.features-heading .section-number {
  margin-bottom: 12px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.feature {
  min-height: 320px;
  padding: clamp(30px, 5vw, 54px);
  background:
    linear-gradient(180deg, rgba(57, 167, 255, 0.045), transparent 56%),
    var(--surface);
}

.feature-line {
  display: block;
  width: 56px;
  height: 2px;
  margin-bottom: 34px;
  background: linear-gradient(90deg, var(--blue), var(--violet));
  box-shadow: 0 0 24px rgba(57, 167, 255, 0.45);
}

h3 {
  color: var(--text);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 680;
  line-height: 1.1;
  letter-spacing: 0;
}

.feature p {
  max-width: 520px;
  margin-top: 22px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #03050a;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 34px 0;
  color: var(--faint);
  font-size: 0.9rem;
}

@media (max-width: 820px) {
  .site-header {
    width: min(var(--max), calc(100% - 32px));
    padding: 18px 0;
  }

  .header-action {
    display: none;
  }

  .hero {
    min-height: 84svh;
  }

  .hero-media {
    background-position: 60% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(3, 4, 10, 0.96) 0%, rgba(3, 4, 10, 0.68) 62%, rgba(3, 4, 10, 0.3) 100%),
      linear-gradient(180deg, rgba(3, 4, 10, 0.76) 0%, transparent 44%, var(--bg) 100%);
  }

  .hero-inner,
  .section-inner,
  .footer-inner {
    width: min(var(--max), calc(100% - 32px));
  }

  .hero-inner {
    padding: 100px 0 64px;
  }

  h1 {
    max-width: 9ch;
  }

  .section {
    padding: 82px 0;
  }

  .intro-layout,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .intro-layout {
    gap: 42px;
  }

  .features-heading {
    display: block;
    margin-bottom: 38px;
  }

  .feature {
    min-height: 260px;
  }

  .footer-inner {
    display: block;
  }

  .footer-inner p + p {
    margin-top: 8px;
  }
}

@media (max-width: 480px) {
  .brand {
    font-size: 0.82rem;
  }

  h1 {
    font-size: clamp(3rem, 18vw, 4.6rem);
  }

  .hero-copy p,
  .intro-copy > p:last-child,
  .feature p {
    font-size: 0.98rem;
  }

  .primary-action {
    width: 100%;
  }
}

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