:root {
  color-scheme: light dark;
  --ink: #16363b;
  --muted: #5b7378;
  --paper: #f4fbf8;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: #ffffff;
  --line: rgba(22, 93, 98, 0.16);
  --teal: #087f83;
  --teal-dark: #075c63;
  --aqua: #a8e6df;
  --peach: #ffd8b6;
  --shadow: 0 24px 70px rgba(25, 83, 91, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 5% -5%, rgba(168, 230, 223, 0.65), transparent 29rem),
    radial-gradient(circle at 98% 10%, rgba(255, 216, 182, 0.52), transparent 28rem),
    var(--paper);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.3;
  background-image: linear-gradient(rgba(8, 127, 131, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(8, 127, 131, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

a { color: var(--teal-dark); }
a:hover { color: var(--teal); }

img { display: block; max-width: 100%; }

button, select { font: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid #f08d43;
  outline-offset: 3px;
}

.site-header,
.site-footer,
.section,
.hero,
.page-wrap {
  width: min(1160px, calc(100% - 36px));
  margin-right: auto;
  margin-left: auto;
}

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

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

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  box-shadow: 0 8px 20px rgba(8, 127, 131, 0.18);
}

.brand span { font-size: 1.05rem; }

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

.site-nav a {
  color: inherit;
  font-weight: 650;
  text-decoration: none;
}

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

.language-select {
  min-height: 38px;
  padding: 6px 30px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--surface-strong);
  cursor: pointer;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(32px, 7vw, 92px);
  min-height: 640px;
  padding: 64px 0 86px;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--teal-dark);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1, h2, h3, p { overflow-wrap: anywhere; }

h1, h2, h3 {
  margin-top: 0;
  line-height: 1.12;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 680px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 7vw, 6.2rem);
}

h2 { margin-bottom: 16px; font-size: clamp(2rem, 4vw, 3.35rem); }
h3 { margin-bottom: 10px; font-size: 1.2rem; letter-spacing: -0.025em; }
p { color: var(--muted); }

.lead {
  max-width: 620px;
  margin-bottom: 28px;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover { transform: translateY(-2px); }

.button-primary {
  color: #ffffff;
  background: var(--teal-dark);
  box-shadow: 0 9px 22px rgba(7, 92, 99, 0.2);
}

.button-primary:hover { color: #ffffff; background: var(--teal); }

.button-secondary {
  border-color: var(--line);
  color: var(--teal-dark);
  background: rgba(255, 255, 255, 0.58);
}

.button-disabled {
  color: var(--muted);
  background: rgba(91, 115, 120, 0.08);
  cursor: not-allowed;
}

.hero-note {
  max-width: 520px;
  margin: 20px 0 0;
  font-size: 0.9rem;
}

.hero-art {
  position: relative;
  overflow: hidden;
  padding: 14px;
  border: 1px solid rgba(8, 127, 131, 0.22);
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(223, 248, 243, 0.72));
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}

.hero-art img {
  width: 100%;
  border-radius: 20px;
}

.hero-art::after {
  position: absolute;
  right: -18px;
  bottom: -22px;
  width: 88px;
  height: 88px;
  border: 12px solid var(--peach);
  border-radius: 50%;
  content: "";
  opacity: 0.72;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--line);
}

.signal {
  padding: 22px;
  background: var(--surface);
}

.signal strong {
  display: block;
  margin-bottom: 5px;
  color: var(--teal-dark);
  font-size: 1.3rem;
}

.signal span { color: var(--muted); font-size: 0.9rem; }

.section { padding: 108px 0 0; }

.section-heading { max-width: 700px; margin-bottom: 34px; }
.section-heading p { max-width: 620px; font-size: 1.08rem; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.card {
  min-height: 190px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 14px 40px rgba(25, 83, 91, 0.05);
}

.card-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 18px;
  border-radius: 10px;
  color: var(--teal-dark);
  background: rgba(168, 230, 223, 0.58);
  font-weight: 850;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 42px;
  align-items: start;
}

.mode-list,
.faq-list,
.permission-list,
.timeline {
  display: grid;
  gap: 14px;
}

.mode,
.faq,
.permission,
.timeline-item {
  padding: 22px 24px;
  border-left: 4px solid var(--aqua);
  border-radius: 0 18px 18px 0;
  background: var(--surface);
}

.mode p,
.faq p,
.permission p,
.timeline-item p { margin-bottom: 0; }

.mode-label,
.timeline-version {
  display: block;
  margin-bottom: 5px;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gallery {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
}

.gallery figure { margin: 0; }

.gallery figure:first-child { grid-row: span 2; }

.gallery img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(25, 83, 91, 0.08);
}

.gallery figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.install-panel {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 30px;
  align-items: center;
  padding: clamp(26px, 5vw, 52px);
  border-radius: 30px;
  color: #eafffb;
  background: linear-gradient(135deg, #075c63, #087f83);
  box-shadow: 0 24px 55px rgba(7, 92, 99, 0.22);
}

.install-panel p,
.install-panel .eyebrow { color: rgba(234, 255, 251, 0.78); }
.install-panel h2 { color: #ffffff; }

.store-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.store-card {
  padding: 20px;
  border: 1px solid rgba(234, 255, 251, 0.24);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
}

.store-card h3 { margin-bottom: 5px; color: #ffffff; }
.store-card p { margin: 0 0 16px; color: rgba(234, 255, 251, 0.72); font-size: 0.9rem; }
.store-card .button { width: 100%; color: #075c63; background: #eafffb; }
.store-card .button-disabled { color: rgba(234, 255, 251, 0.76); background: rgba(234, 255, 251, 0.12); }

.callout {
  padding: 28px;
  border: 1px solid rgba(240, 141, 67, 0.34);
  border-radius: 22px;
  background: rgba(255, 216, 182, 0.32);
}

.callout h3 { color: #98521e; }
.callout p { margin-bottom: 0; }

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-top: 110px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
}

.site-footer p { margin: 0; font-size: 0.88rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-end; }
.footer-links a { font-size: 0.88rem; font-weight: 700; }

.page-wrap { padding: 70px 0 0; }
.page-hero { max-width: 800px; margin-bottom: 42px; }
.page-hero h1 { font-size: clamp(2.8rem, 6vw, 5.2rem); }
.page-hero .lead { font-size: 1.15rem; }

.content-panel {
  padding: clamp(25px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.content-panel section + section { margin-top: 42px; }
.content-panel h2 { font-size: 1.65rem; }
.content-panel h3 { margin-top: 28px; }
.content-panel p, .content-panel li { max-width: 850px; color: var(--muted); }
.content-panel ul, .content-panel ol { padding-left: 1.25rem; }
.content-panel li + li { margin-top: 8px; }
.content-panel code { padding: 0.12em 0.35em; border-radius: 0.35em; background: rgba(8, 127, 131, 0.1); }

.contact-box {
  padding: 20px 22px;
  border-radius: 17px;
  background: rgba(168, 230, 223, 0.28);
}

.contact-box p { margin: 0; }
.contact-box a { font-weight: 800; }

.timeline-item { border-left-color: var(--peach); }
.timeline-date { display: block; margin-top: 10px; color: var(--muted); font-size: 0.85rem; }

.not-found {
  display: grid;
  min-height: 56vh;
  place-items: center;
  text-align: center;
}

.not-found h1 { margin-right: auto; margin-left: auto; font-size: clamp(4rem, 12vw, 9rem); }
.not-found p { max-width: 560px; margin-right: auto; margin-left: auto; }

.noscript-card {
  width: min(700px, calc(100% - 36px));
  margin: 12vh auto;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e5ffff;
    --muted: #a5c3c4;
    --paper: #0b282d;
    --surface: rgba(15, 49, 54, 0.82);
    --surface-strong: #0f3136;
    --line: rgba(116, 228, 222, 0.18);
    --teal: #77ded8;
    --teal-dark: #9af0e8;
    --aqua: #2a8b8d;
    --peach: #bd7440;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
  }

  .hero-art { background: linear-gradient(135deg, rgba(15, 49, 54, 0.92), rgba(23, 76, 79, 0.72)); }
  .button-primary { color: #073d42; background: #9af0e8; }
  .button-primary:hover { color: #073d42; background: #77ded8; }
  .button-secondary { background: rgba(15, 49, 54, 0.72); }
  .callout { background: rgba(116, 67, 36, 0.25); }
  .callout h3 { color: #ffc28f; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 46px; }
  .hero-art { max-width: 760px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .signal-grid { grid-template-columns: repeat(2, 1fr); }
  .split-section, .install-panel { grid-template-columns: 1fr; }
}

@media (max-width: 650px) {
  .site-header { align-items: flex-start; flex-wrap: wrap; }
  .site-nav { width: 100%; justify-content: space-between; gap: 10px; }
  .site-nav a { font-size: 0.84rem; }
  .language-select { min-height: 34px; font-size: 0.84rem; }
  .hero, .page-wrap { padding-top: 32px; }
  h1 { font-size: clamp(2.7rem, 14vw, 4.4rem); }
  .section { padding-top: 76px; }
  .card-grid, .store-grid, .gallery { grid-template-columns: 1fr; }
  .gallery figure:first-child { grid-row: auto; }
  .signal-grid { grid-template-columns: 1fr 1fr; }
  .signal { padding: 17px; }
  .site-footer { flex-direction: column; margin-top: 78px; }
  .footer-links { justify-content: flex-start; }
}
