:root {
  color-scheme: light dark;
  --ink: #eef5ff;
  --muted: #b4bfd0;
  --panel: rgba(24, 35, 52, 0.82);
  --line: rgba(255, 255, 255, 0.13);
  --blue: #69a9ff;
  --orange: #ff9d54;
  --purple: #a998ff;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 86% 8%, rgba(105, 169, 255, 0.22), transparent 34rem),
    radial-gradient(circle at 8% 92%, rgba(169, 152, 255, 0.18), transparent 31rem),
    #0b111b;
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.3;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 34px 34px;
}

a { color: #8dc0ff; }
a:hover { color: #c3dcff; }

.wrap {
  position: relative;
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 17, 27, 0.78);
  backdrop-filter: blur(18px);
}

nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 850;
  letter-spacing: -.02em;
}

.brand img { width: 42px; height: 42px; border-radius: 11px; }
.nav-links { display: flex; gap: 22px; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 700; }
.nav-links a[aria-current="page"], .nav-links a:hover { color: var(--ink); }

main { position: relative; padding: 68px 0 90px; }
.hero { display: grid; grid-template-columns: 1.3fr .7fr; gap: 48px; align-items: center; min-height: 60vh; }
.eyebrow { color: var(--blue); font-size: .82rem; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; }
h1 { margin: 12px 0 20px; max-width: 850px; font-size: clamp(2.8rem, 8vw, 6.2rem); line-height: .96; letter-spacing: -.055em; }
h2 { margin: 0 0 14px; font-size: clamp(1.55rem, 4vw, 2.35rem); line-height: 1.12; }
h3 { margin: 0 0 8px; }
p { color: var(--muted); }
.lead { max-width: 700px; font-size: clamp(1.08rem, 2vw, 1.3rem); }

.app-icon {
  width: min(100%, 330px);
  justify-self: end;
  border-radius: 28%;
  box-shadow: 0 28px 90px rgba(105, 169, 255, .2), 0 18px 45px rgba(0,0,0,.45);
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: var(--panel);
  text-decoration: none;
  font-weight: 800;
}
.button.primary { border: 0; background: linear-gradient(120deg, var(--blue), #4589e8); color: #08111f; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 36px 0; }
.card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
}
.card p:last-child { margin-bottom: 0; }
.accent-blue { border-top: 3px solid var(--blue); }
.accent-orange { border-top: 3px solid var(--orange); }
.accent-purple { border-top: 3px solid var(--purple); }

.prose { max-width: 820px; }
.prose h1 { font-size: clamp(2.7rem, 7vw, 5.1rem); }
.prose h2 { margin-top: 48px; }
.prose h3 { margin-top: 28px; }
.prose li, .prose p { color: #ccd5e2; }
.notice { padding: 18px 20px; border-left: 4px solid var(--blue); border-radius: 8px; background: rgba(105,169,255,.1); }

details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { cursor: pointer; font-weight: 800; }

footer { position: relative; border-top: 1px solid var(--line); padding: 28px 0 46px; color: var(--muted); }
.footer-row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

@media (max-width: 760px) {
  .wrap { width: min(calc(100% - 28px), var(--max)); }
  nav { align-items: flex-start; padding: 15px 0; }
  .nav-links { gap: 13px; flex-wrap: wrap; justify-content: flex-end; font-size: .9rem; }
  main { padding-top: 44px; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .app-icon { width: 190px; justify-self: start; grid-row: 1; }
  .grid { grid-template-columns: 1fr; }
  .card { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media (prefers-color-scheme: light) {
  :root {
    --ink: #172034;
    --muted: #536176;
    --panel: rgba(255, 255, 255, 0.86);
    --line: rgba(23, 32, 52, 0.13);
  }

  body {
    background:
      radial-gradient(circle at 86% 8%, rgba(105, 169, 255, 0.2), transparent 34rem),
      radial-gradient(circle at 8% 92%, rgba(169, 152, 255, 0.16), transparent 31rem),
      #f3f7fd;
  }

  header { background: rgba(243, 247, 253, 0.82); }
  .prose li, .prose p { color: #48566c; }
  .button.primary { color: #08111f; }
}
