:root {
  color-scheme: light dark;
  --neutral-0: #090a14;
  --neutral-1: #10141f;
  --neutral-2: #151d28;
  --neutral-4: #394a50;
  --neutral-5: #577277;
  --neutral-7: #a8b5b2;
  --neutral-8: #c7cfcc;
  --neutral-9: #ebede9;
  --ocean-2: #3c5e8b;
  --ocean-3: #4f8fba;
  --ocean-4: #73bed3;
  --forest-2: #468232;
  --ember-3: #be772b;
  --crimson-4: #cf573c;
  --violet-3: #a23e8c;
  --page: var(--neutral-9);
  --surface: #ffffff;
  --surface-soft: #f7f8f4;
  --text: var(--neutral-0);
  --muted: var(--neutral-4);
  --line: var(--neutral-8);
  --accent: var(--ocean-3);
  --accent-strong: var(--ocean-2);
  --radius: 8px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: var(--neutral-0);
    --surface: var(--neutral-1);
    --surface-soft: var(--neutral-2);
    --text: var(--neutral-9);
    --muted: var(--neutral-7);
    --line: var(--neutral-4);
    --accent: var(--ocean-4);
    --accent-strong: var(--ocean-4);
  }
}

* {
  box-sizing: border-box;
}

html {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--page);
  color: var(--text);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, var(--accent) 75%, transparent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

a:hover {
  color: var(--accent-strong);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  background: color-mix(in srgb, var(--page) 92%, transparent);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 760;
  letter-spacing: 0;
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
  color: var(--muted);
  font-size: 0.96rem;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a[aria-current="page"] {
  color: var(--text);
  font-weight: 650;
}

.hero {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: calc(100svh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  align-items: center;
  gap: 56px;
  padding: 64px 0 48px;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--accent-strong);
  font-weight: 700;
  letter-spacing: 0;
}

.eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
}

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: clamp(3.4rem, 9vw, 6.4rem);
  max-width: 10ch;
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
}

h3 {
  margin: 0 0 8px;
  font-size: 1.22rem;
}

.lead {
  margin: 24px 0 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 18px;
  font-weight: 700;
  text-decoration: none;
  background: var(--surface);
}

.button.primary {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
  color: #ffffff;
}

.device {
  position: relative;
  justify-self: center;
  width: min(100%, 360px);
  aspect-ratio: 9 / 18.2;
  border: 1px solid color-mix(in srgb, var(--neutral-0) 12%, var(--line));
  border-radius: 34px;
  padding: 16px;
  background: var(--neutral-0);
  box-shadow: 0 32px 70px color-mix(in srgb, var(--neutral-0) 28%, transparent);
}

.screen {
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: var(--neutral-9);
  color: var(--neutral-0);
  display: flex;
  flex-direction: column;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px;
  border-bottom: 1px solid var(--neutral-8);
}

.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.browser-dot:nth-child(1) { background: var(--crimson-4); }
.browser-dot:nth-child(2) { background: var(--ember-3); }
.browser-dot:nth-child(3) { background: var(--forest-2); }

.address {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--neutral-8);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--neutral-5);
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.screen-body {
  padding: 22px;
  display: grid;
  gap: 14px;
}

.logo-tile {
  width: 72px;
  height: 72px;
  border-radius: 14px;
}

.screen-title {
  font-size: 1.8rem;
  line-height: 1.05;
  font-weight: 800;
}

.rule-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.rule {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--neutral-8);
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
  font-weight: 650;
}

.switch {
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: var(--ocean-3);
  position: relative;
  flex: 0 0 auto;
}

.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
}

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

.section-inner,
.page-main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

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

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--surface);
}

.card p,
.legal p,
.legal li {
  color: var(--muted);
}

.support-band {
  background: var(--surface-soft);
}

.swatches {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.swatch {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--text) 18%, transparent);
}

.page-main {
  padding: 56px 0 88px;
}

.page-header {
  max-width: 760px;
  margin-bottom: 40px;
}

.page-header h1 {
  max-width: 12ch;
  font-size: clamp(2.8rem, 7vw, 5.2rem);
}

.legal {
  display: grid;
  gap: 28px;
  max-width: 820px;
}

.legal section {
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.legal ul {
  padding-left: 1.2rem;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
  color: var(--muted);
}

.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

@media (max-width: 840px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

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

  .device {
    width: min(100%, 320px);
  }

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

@media (max-width: 520px) {
  .nav-links {
    justify-content: flex-start;
    gap: 12px;
  }

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