:root {
  --bg: #fcfcfc;
  --bg-soft: #f3f3f5;
  --surface: #ffffff;
  --text: #121212;
  --muted: #6f7074;
  --line: #e4e4e6;
  --accent: #e80b14;
  --accent-ink: #ffffff;
  --accent-soft: rgba(232, 11, 20, 0.08);
  --accent-mid: rgba(232, 11, 20, 0.16);
  --shadow: 0 1px 2px rgba(18, 18, 18, 0.04), 0 10px 28px rgba(18, 18, 18, 0.06);
  --radius: 16px;
  --radius-sm: 12px;
  --max: 1120px;
  --header-h: 64px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121214;
    --bg-soft: #1c1c20;
    --surface: #1c1c20;
    --text: #f3f3f5;
    --muted: #a8a8ae;
    --line: #34343a;
    --accent: #ff3b42;
    --accent-ink: #121214;
    --accent-soft: rgba(255, 59, 66, 0.14);
    --accent-mid: rgba(255, 59, 66, 0.22);
    --shadow: none;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 480px at 12% -10%, var(--accent-soft), transparent 60%),
    radial-gradient(900px 420px at 92% 8%, var(--accent-mid), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: "Segoe UI Variable", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
}

.skip-link:focus {
  top: 12px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand:hover {
  color: var(--text);
}

.brand__mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line);
}

.brand__name {
  font-size: 1.05rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav__list a:hover,
.nav__list a[aria-current="page"] {
  color: var(--text);
  background: var(--bg-soft);
}

.nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.nav__toggle-bars {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  color: inherit;
}

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn--primary:hover {
  filter: brightness(1.05);
  color: var(--accent-ink);
}

.btn--ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}

.hero {
  padding: 48px 0 36px;
}

.hero__grid {
  display: grid;
  gap: 36px;
  align-items: center;
}

.hero__eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__title {
  margin: 0 0 14px;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero__lead {
  margin: 0 0 24px;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__visual {
  position: relative;
  min-height: 280px;
  border-radius: calc(var(--radius) + 8px);
  background:
    linear-gradient(160deg, var(--accent-soft), transparent 55%),
    var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 28px;
}

.device-stack {
  display: grid;
  gap: 12px;
}

.device-card {
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 14px 16px;
}

.device-card__label {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.device-card__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.device-card__meta {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  padding: 40px 0;
}

.section__head {
  max-width: 40rem;
  margin-bottom: 24px;
}

.section__title {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
}

.section__lead {
  margin: 0;
  color: var(--muted);
}

.modules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.module {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.module__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  font-size: 0.95rem;
}

.module__title {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.module__text {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.panel {
  display: grid;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 24px;
  box-shadow: var(--shadow);
}

.panel__list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

.panel__list li + li {
  margin-top: 8px;
}

.site-footer {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 32px 0 40px;
}

.site-footer__inner {
  display: grid;
  gap: 20px;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.site-footer__links a:hover {
  color: var(--accent);
}

.site-footer__note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.legal {
  padding: 40px 0 64px;
  max-width: 720px;
}

.legal h1 {
  margin: 0 0 12px;
  font-size: 2rem;
}

.legal h2 {
  margin: 28px 0 8px;
  font-size: 1.25rem;
}

.legal p,
.legal li {
  color: var(--muted);
}

@media (max-width: 860px) {
  .nav__toggle {
    display: inline-flex;
  }

  .nav__list {
    position: absolute;
    top: calc(var(--header-h) + 1px);
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .nav.is-open .nav__list {
    display: flex;
  }

  .nav__list a {
    width: 100%;
  }

  .hero {
    padding-top: 28px;
  }
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .site-footer__inner {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }
}
