:root {
  color-scheme: dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;

  --bg: #0b0d12;
  --surface: #12151d;
  --surface-strong: #191d28;
  --text: #f6f7fb;
  --muted: #9da5b4;
  --border: rgba(255, 255, 255, 0.09);
  --accent: #8f7cff;
  --accent-hover: #a394ff;
  --content-width: 1120px;
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 50% -20%, rgba(143, 124, 255, 0.18), transparent 38rem),
    var(--bg);
  color: var(--text);
}

a {
  color: inherit;
}

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

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

.brand {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 20px;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.94rem;
  text-decoration: none;
  transition: color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.hero {
  min-height: 640px;
  display: grid;
  place-items: center;
  padding: 80px 0;
}

.hero-content {
  text-align: center;
}

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

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

h1 {
  max-width: 900px;
  margin-inline: auto;
  margin-bottom: 24px;
  font-size: clamp(3.7rem, 12vw, 8.5rem);
  line-height: 0.92;
  letter-spacing: -0.07em;
}

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

h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.hero-text {
  max-width: 620px;
  margin-inline: auto;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
}

.hero-form {
  width: min(100%, 640px);
  margin-inline: auto;
  padding: 8px;
  display: flex;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(18, 21, 29, 0.82);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.hero-form:focus-within {
  border-color: rgba(143, 124, 255, 0.62);
  box-shadow:
    0 18px 60px rgba(0, 0, 0, 0.24),
    0 0 0 4px rgba(143, 124, 255, 0.12);
}

.hero-form input {
  min-width: 0;
  flex: 1;
  padding: 0 16px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
}

.hero-form input::placeholder {
  color: var(--muted);
}

.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;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--accent);
  color: #0b0d12;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  justify-content: center;
  white-space: nowrap;
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.button:hover,
.button:focus-visible {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.section {
  padding: 112px 0;
  border-top: 1px solid var(--border);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

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

.card {
  min-height: 210px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--surface-strong), var(--surface));
}

.card p,
.contact > p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.contact {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: end;
  gap: 64px;
}

.site-footer {
  min-height: 104px;
  display: flex;
  align-items: center;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

:focus-visible {
  outline: 3px solid rgba(143, 124, 255, 0.55);
  outline-offset: 4px;
}

@media (max-width: 760px) {
  .site-header {
    min-height: 64px;
  }

  .site-nav {
    gap: 14px;
  }

  .hero {
    min-height: 560px;
  }

  .section {
    padding: 80px 0;
  }

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

  .contact {
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .site-header,
  .site-footer,
  .section,
  .hero-content {
    width: min(calc(100% - 28px), var(--content-width));
  }

  .hero-form {
    padding: 10px;
    flex-direction: column;
    border-radius: var(--radius);
  }

  .hero-form input {
    min-height: 48px;
  }

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

  .site-nav a:first-child {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
