:root {
  color-scheme: dark;
  --background: #070a0f;
  --surface: #0b1018;
  --accent: #2f81f7;
  --text: #aebfd5;
  --text-strong: #e5edf7;
  --text-muted: #75869c;
  --line: #1b2736;
  font-family: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--background);
  color: var(--text);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  text-underline-offset: 0.24em;
  transition: color 140ms ease, text-decoration-color 140ms ease;
}

a:hover {
  color: var(--text-strong);
  text-decoration-color: currentColor;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

.page {
  width: min(100% - 56px, 1180px);
  min-height: 100dvh;
  margin-inline: auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.header,
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.header {
  min-height: 72px;
}

.brand {
  color: var(--text-strong);
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.navigation {
  display: flex;
  gap: 24px;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.navigation a {
  text-decoration: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  align-items: center;
  gap: clamp(56px, 10vw, 148px);
  padding-block: 52px 72px;
}

.copy {
  max-width: 680px;
}

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

h1 {
  max-width: 660px;
  margin-bottom: clamp(30px, 5vh, 48px);
  color: var(--text-strong);
  font-size: clamp(2.8rem, 6.2vw, 5.8rem);
  font-weight: 620;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.body-copy {
  max-width: 600px;
  margin-bottom: 36px;
  font-size: clamp(1.02rem, 1.6vw, 1.22rem);
  line-height: 1.65;
}

.body-copy p {
  margin-bottom: 0.9em;
}

.source-link {
  display: inline-block;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 600;
}

.source-link:active {
  transform: translateY(1px);
}

.product-mark {
  justify-self: end;
  width: min(100%, 390px);
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--surface);
}

.product-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer {
  min-height: 64px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.legal-page {
  min-height: 100dvh;
}

.legal-content {
  width: min(100%, 720px);
  padding-block: 80px 112px;
}

.legal-content h1 {
  margin-bottom: 64px;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
}

.legal-content section {
  margin-bottom: 48px;
}

.legal-content h2 {
  margin-bottom: 16px;
  color: var(--text-strong);
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.legal-content p {
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.75;
}

.legal-content a {
  color: var(--accent);
}

.legal-date {
  color: var(--text-muted);
  font-size: 0.875rem !important;
}

@media (max-width: 760px) {
  .page {
    width: min(100% - 36px, 640px);
  }

  .header {
    min-height: 64px;
  }

  .navigation {
    gap: 16px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 44px;
    padding-block: 64px 52px;
  }

  h1 {
    font-size: clamp(2.65rem, 13vw, 4.4rem);
  }

  .product-mark {
    grid-row: 1;
    justify-self: start;
    width: 88px;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    min-height: 84px;
  }

  .legal-content {
    padding-block: 64px 80px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
