:root {
  color-scheme: light dark;
  --bg: #f6f2ea;
  --surface: #fffdf7;
  --surface-2: #ebe5d8;
  --text: #15171b;
  --muted: #5e6470;
  --line: rgba(18, 22, 30, 0.12);
  --accent: #10d77a;
  --accent-2: #39a9ff;
  --shadow: 0 24px 60px rgba(20, 22, 28, 0.14);
  --radius: 24px;
  --max: 1120px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #050609;
    --surface: #101218;
    --surface-2: #191c24;
    --text: #f4f6f8;
    --muted: #a3acb8;
    --line: rgba(255, 255, 255, 0.12);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 15% 0%, rgba(16, 215, 122, 0.14), transparent 28rem),
    radial-gradient(circle at 90% 18%, rgba(57, 169, 255, 0.13), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  background: var(--text);
  color: var(--bg);
  border-radius: 999px;
  transition: top 160ms ease;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.nav {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0;
}

.brand img,
.site-footer img {
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-links a {
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.active {
  color: var(--text);
  background: var(--surface-2);
  outline: none;
}

.section {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 5.5rem 0;
}

.hero {
  min-height: calc(100svh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.78fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  padding-top: 3.2rem;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.page-hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.4rem);
}

.lead {
  margin: 1.45rem 0 0;
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1.12rem, 2.2vw, 1.45rem);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid var(--line);
}

.button.primary {
  background: var(--accent);
  color: #071009;
  border-color: color-mix(in srgb, var(--accent) 75%, black);
}

.button.secondary {
  background: var(--surface);
  color: var(--text);
}

.button.disabled {
  cursor: default;
  opacity: 0.78;
}

.fine-print {
  max-width: 680px;
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.remote-card {
  justify-self: center;
  width: min(100%, 380px);
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 36px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--surface) 72%, transparent), color-mix(in srgb, var(--surface-2) 82%, transparent));
  box-shadow: var(--shadow);
}

.phone-shell {
  min-height: 650px;
  padding: 1.15rem;
  border-radius: 30px;
  background: #080a0f;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.phone-top {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.4rem 0.25rem 0.6rem;
}

.phone-top img {
  border-radius: 15px;
}

.phone-top strong,
.phone-top span {
  display: block;
}

.phone-top span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.86rem;
}

.remote-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.remote-buttons span {
  display: grid;
  place-items: center;
  min-height: 64px;
  border-radius: 22px;
  background: #181c24;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
  font-size: 0.9rem;
}

.dpad {
  position: relative;
  width: min(100%, 286px);
  aspect-ratio: 1;
  margin: 1.4rem auto;
  border-radius: 50%;
  background: radial-gradient(circle, #232936 0 28%, #171b24 29% 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 18px 38px rgba(0, 0, 0, 0.32);
}

.dpad span {
  position: absolute;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 900;
}

.dpad .ok {
  inset: 34%;
  border-radius: 50%;
  background: var(--accent);
  color: #061008;
}

.dpad .up {
  top: 8%;
  left: 35%;
  right: 35%;
}

.dpad .down {
  bottom: 8%;
  left: 35%;
  right: 35%;
}

.dpad .left {
  top: 45%;
  left: 7%;
}

.dpad .right {
  top: 45%;
  right: 7%;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 1.5rem;
}

.section h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

.section h3 {
  margin: 0 0 0.45rem;
  font-size: 1.17rem;
}

.section p {
  color: var(--muted);
}

.feature-grid,
.support-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature-grid article,
.support-card,
.contact-panel,
.notice,
.policy {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.06);
}

.feature-grid article {
  padding: 1.25rem;
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.check-list li,
.support-card li {
  margin: 0.35rem 0;
}

.check-list li {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 700;
}

.notice,
.contact-panel {
  padding: 2rem;
}

.narrow {
  max-width: 900px;
}

.support-layout {
  grid-template-columns: repeat(2, 1fr);
  padding-top: 1rem;
}

.support-card {
  padding: 1.4rem;
}

.support-card ol,
.support-card ul,
.policy ul {
  padding-left: 1.25rem;
  color: var(--muted);
}

.policy {
  max-width: 900px;
  padding: clamp(1.2rem, 4vw, 2.4rem);
}

.policy h2 {
  margin-top: 2rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.policy h2:first-child {
  margin-top: 0;
}

.policy a,
.support-card a,
.contact-panel a:not(.button) {
  color: color-mix(in srgb, var(--accent-2) 75%, var(--text));
  font-weight: 700;
}

.site-footer {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
}

.site-footer > div:first-child {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  max-width: 560px;
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.8rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}

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

@media (max-width: 840px) {
  .nav {
    min-height: 68px;
  }

  .nav-links a {
    padding: 0.55rem 0.65rem;
  }

  .hero,
  .split {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 3rem;
  }

  .remote-card {
    width: min(100%, 340px);
  }

  .phone-shell {
    min-height: 560px;
  }

  .feature-grid,
  .support-layout {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .nav {
    width: min(100% - 1rem, var(--max));
  }

  .brand span {
    display: none;
  }

  .nav-links {
    gap: 0.15rem;
  }

  .nav-links a {
    font-size: 0.86rem;
  }

  .section {
    width: min(100% - 1rem, var(--max));
    padding: 3.5rem 0;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2.65rem, 14vw, 4rem);
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .notice,
  .contact-panel,
  .support-card,
  .policy {
    border-radius: 20px;
  }
}
