:root {
  --bg: #0a0a0c;
  --surface: rgba(24, 24, 27, 0.72);
  --border: rgba(228, 228, 231, 0.14);
  --text: #e4e4e7;
  --muted: #a1a1aa;
  --accent: #c4c4cc;
  --amber: #f5a623;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --gutter: 16px;
  --measure: 880px;
}

.theme-paper {
  --bg: #fafaf7;
  --surface: #ffffff;
  --border: rgba(10, 10, 12, 0.14);
  --text: #18181b;
  --muted: #52525b;
  --accent: #3f3f46;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  /* Static gradient: the fallback when WebGL or motion is unavailable; sits under the #mesh canvas. */
  background:
    radial-gradient(60% 50% at 20% 10%, rgba(161, 161, 170, 0.22), transparent 70%),
    radial-gradient(50% 45% at 85% 35%, rgba(63, 63, 70, 0.55), transparent 70%),
    radial-gradient(70% 60% at 50% 100%, rgba(228, 228, 231, 0.1), transparent 70%),
    var(--bg);
  background-attachment: fixed;

  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font: 400 1rem/1.6 var(--font);
  overflow-wrap: anywhere;
  /* Static gradient: the fallback when WebGL or motion is unavailable. */
  background: transparent;
}

html.theme-paper {
  background: var(--bg);
}

#mesh {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

a {
  color: var(--text);
  text-underline-offset: 3px;
}

a:hover,
a:focus-visible {
  color: var(--amber);
}

a:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 20px var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  letter-spacing: 0.01em;
  text-decoration: none;
}

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

.hero {
  padding: 56px 0 40px;
}

h1 {
  margin: 0;
  font-size: clamp(3.25rem, 2rem + 8vw, 6.5rem);
  line-height: 0.95;
  font-weight: 750;
  letter-spacing: -0.04em;
}

.subtitle {
  margin: 12px 0 0;
  color: var(--amber);
  font-size: clamp(1.1rem, 1rem + 1vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.promise {
  max-width: 34rem;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.125rem;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.badge,
.soon {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-weight: 600;
}

.badge {
  background: var(--text);
  color: #0a0a0c;
  text-decoration: none;
}

.badge:hover,
.badge:focus-visible {
  background: var(--amber);
  color: #0a0a0c;
}

.soon {
  background: var(--surface);
  color: var(--muted);
}

.cards {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  margin: 8px 0 56px;
}

.card {
  padding: 22px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  backdrop-filter: blur(6px);
}

.card:nth-child(2) {
  margin-top: 14px;
}

.card:nth-child(3) {
  margin-top: 28px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.features h2 {
  margin: 0 0 16px;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

.features ul {
  display: grid;
  gap: 10px 32px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.features li {
  padding-left: 22px;
  position: relative;
}

.features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
}

.note {
  margin: 48px 0;
  padding: 20px;
  border-left: 3px solid var(--amber);
  background: var(--surface);
  border-radius: 0 14px 14px 0;
}

.note p {
  margin: 0 0 8px;
}

.note p:last-child {
  margin: 0;
  color: var(--muted);
}

.foot {
  padding-top: 24px;
  padding-bottom: 40px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.foot .operator {
  margin: 16px 0 0;
}

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

.legal h1 {
  margin: 1.5rem 0 0.25rem;
}

.legal .updated {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.legal .lead {
  font-size: 1.1rem;
}

.legal .toc {
  margin: 1.5rem 0 2rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.legal .toc h2 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.legal section {
  margin: 2rem 0;
  scroll-margin-top: 1rem;
}

.legal h2 {
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
}

.legal li {
  margin: 0.4rem 0;
}
