:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --muted: #5c5c5c;
  --line: #e6e6e6;
  --accent: #e0004f;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0509;
    --text: #f2f2f2;
    --muted: #a8a8a8;
    --line: #2a2228;
    --accent: #ff2e74;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 40px 16px 64px; }
.brand { display: flex; align-items: center; gap: 16px; margin-bottom: 32px; }
.brand img { border-radius: 20px; }
h1 { font-size: 28px; margin: 0; }
h2 { font-size: 20px; margin: 36px 0 8px; padding-top: 16px; border-top: 1px solid var(--line); }
h3 { font-size: 17px; margin: 24px 0 6px; }
a { color: var(--accent); }
.apps { list-style: none; padding: 0; margin: 0; }
.apps li { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; }
.apps span, .muted, footer { color: var(--muted); }
footer { margin-top: 48px; font-size: 14px; }
nav.lang { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 8px 0 0; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 8px; border-bottom: 1px solid var(--line); }
section.policy { margin-top: 48px; }

/* ---------- Motion ---------- */
@keyframes sunrise {
  from { opacity: 0; transform: translateY(18px) scale(.94); }
  to   { opacity: 1; transform: none; }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
@keyframes reveal {
  from { opacity: .15; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
.brand img { animation: sunrise .9s cubic-bezier(.2, .7, .2, 1) both; }
.brand h1, .brand p { animation: fade-up .7s .25s cubic-bezier(.2, .7, .2, 1) both; }
nav.lang { animation: fade-up .7s .4s cubic-bezier(.2, .7, .2, 1) both; }

a {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent);
  transition: text-decoration-color .2s ease, color .2s ease;
}
a:hover, a:focus-visible { text-decoration-color: var(--accent); }

.apps li {
  margin: 0 -12px;
  padding: 12px;
  border-radius: 12px;
  transition: transform .25s ease, background-color .25s ease;
}
.apps li:hover {
  transform: translateY(-2px);
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}

/* Sections fade in while scrolling, only where scroll-driven animations are supported.
   Elsewhere the content is simply shown as is. */
@supports (animation-timeline: view()) {
  main > section {
    animation: reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 60%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
