:root {
  color-scheme: dark;
  --bg: #070811;
  --surface: #10121e;
  --surface-light: #171a29;
  --text: #f7f7fb;
  --muted: #a7a9b8;
  --accent: #8b5cf6;
  --accent-light: #c4b5fd;
  --line: rgba(255, 255, 255, 0.1);
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 75% 5%, rgba(124, 58, 237, 0.14), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

.site-header,
main,
footer {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.site-header {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.brand-mark {
  width: 22px;
  height: 22px;
  border: 6px solid var(--accent);
  border-top-color: var(--accent-light);
  border-radius: 7px;
  transform: rotate(45deg);
}

nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.nav-cta {
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.hero {
  min-height: 700px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 80px;
  padding: 90px 0;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent-light);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-size: clamp(3.2rem, 7vw, 6.1rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

h1 span {
  display: block;
  color: transparent;
  background: linear-gradient(90deg, #a78bfa, #67e8f9);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-description {
  max-width: 620px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 50px;
  padding: 13px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-weight: 750;
  transition: transform 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

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

.button-primary:hover {
  background: #7c3aed;
}

.button-secondary {
  border: 1px solid var(--line);
  color: #d7d8e1;
}

.tech-list {
  margin-top: 54px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  color: #777a8c;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-visual {
  min-height: 500px;
  position: relative;
  display: grid;
  place-items: center;
}

.glow {
  width: 70%;
  aspect-ratio: 1;
  position: absolute;
  border-radius: 50%;
  background: rgba(109, 40, 217, 0.28);
  filter: blur(70px);
}

.terminal-card {
  width: min(100%, 470px);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(196, 181, 253, 0.25);
  border-radius: 20px;
  background: rgba(16, 18, 30, 0.82);
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(18px);
  transform: rotate(2deg);
}

.terminal-bar {
  height: 58px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
}

.terminal-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3a3d4c;
}

.terminal-bar small {
  margin-left: auto;
  color: #6f7283;
  font: 0.72rem ui-monospace, SFMono-Regular, Menlo, monospace;
}

.terminal-body {
  padding: 38px;
  font: 0.92rem ui-monospace, SFMono-Regular, Menlo, monospace;
}

.terminal-body p {
  margin-bottom: 28px;
  color: #d9d9e2;
}

.terminal-body em {
  margin-right: 18px;
  color: #676a7a;
  font-style: normal;
}

.status {
  margin-top: 36px;
  padding: 15px 18px;
  border: 1px solid rgba(103, 232, 249, 0.16);
  border-radius: 10px;
  background: rgba(103, 232, 249, 0.06);
  color: #a5f3fc;
}

.status i {
  width: 8px;
  height: 8px;
  margin-right: 10px;
  display: inline-block;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 14px #22d3ee;
}

.capabilities {
  padding: 110px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 650px;
  margin-bottom: 54px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.3rem, 5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.cards article {
  min-height: 280px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(145deg, var(--surface-light), var(--surface));
}

.cards article > span {
  color: #6d7080;
  font-size: 0.78rem;
  font-weight: 800;
}

.cards h3 {
  margin: 70px 0 12px;
  font-size: 1.3rem;
}

.cards p {
  margin-bottom: 0;
  color: var(--muted);
}

.contact {
  margin-bottom: 90px;
  padding: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  border-radius: 24px;
  background: linear-gradient(125deg, #6d28d9, #4338ca);
}

.contact h2 {
  max-width: 720px;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.contact .eyebrow {
  color: #ddd6fe;
}

.button-light {
  flex: 0 0 auto;
  background: white;
  color: #201448;
}

footer {
  min-height: 130px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
}

footer p {
  margin: 0;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 80px 0;
  }

  .hero-visual {
    min-height: 420px;
  }

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

  .cards article {
    min-height: 230px;
  }

  .cards h3 {
    margin-top: 48px;
  }

  .contact {
    padding: 48px 32px;
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .site-header,
  main,
  footer {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .site-header {
    height: 74px;
  }

  nav > a:first-child {
    display: none;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.4rem);
  }

  .hero {
    min-height: auto;
    padding-top: 70px;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-visual {
    min-height: 360px;
  }

  .terminal-body {
    padding: 28px 22px;
  }

  .capabilities {
    padding: 80px 0;
  }

  .contact {
    margin-bottom: 55px;
    padding: 40px 24px;
    border-radius: 18px;
  }

  footer {
    padding: 32px 0;
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  .button {
    transition: none;
  }
}
