:root {
  color-scheme: light dark;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --text: #16191f;
  --muted: #616b7a;
  --border: #dfe4ec;
  --accent: #1467ff;
  --accent-strong: #0d4ec4;
  --shadow: 0 24px 70px rgba(25, 35, 55, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
}

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

.brand img {
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(20, 103, 255, 0.2);
}

nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

nav a {
  text-decoration: none;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 1fr);
  gap: 44px;
  align-items: center;
  min-height: 62vh;
  padding: 34px 0 64px;
}

.hero h1 {
  margin: 0;
  max-width: 640px;
  font-size: clamp(2.9rem, 5.8vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p,
.page > p,
.page li,
.details p {
  color: var(--muted);
  font-size: 1.05rem;
}

.hero p {
  max-width: 610px;
  margin: 22px 0 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 650;
  text-decoration: none;
}

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

.text-link {
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}

.text-link:hover {
  color: var(--text);
}

.preview {
  min-height: clamp(300px, 34vw, 390px);
  display: grid;
  place-items: center;
}

.screen {
  width: min(100%, 620px);
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 18px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.85), transparent 18%),
    linear-gradient(135deg, #1d2b53, #0b1020 44%, #255f8a);
  box-shadow: var(--shadow);
}

.video {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 72% 34%, rgba(42, 220, 255, 0.42), transparent 22%);
  background-size: 48px 48px, 48px 48px, auto;
}

.dock {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 38%;
  height: 28px;
  transform: translateX(-50%);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(16px);
}

.details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 32px 0 82px;
}

.details article,
.support-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  padding: 24px;
}

h2 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.page {
  max-width: 760px;
  padding: 56px 0 96px;
}

.page h1 {
  margin: 0 0 22px;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.page h2 {
  margin-top: 36px;
}

.support-card {
  margin: 28px 0;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--border);
  padding: 24px 0 32px;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 820px) {
  .site-header,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: auto;
    padding-top: 24px;
  }

  .preview {
    min-height: 280px;
  }

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

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #080a0f;
    --surface: #11161f;
    --text: #f7f8fb;
    --muted: #a4adbb;
    --border: #252c38;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.44);
  }
}
