:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --accent: #0066cc;
  --accent-hover: #004499;
  --border: #e5e5e7;
  --radius: 14px;
  --max-width: 980px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0d0f;
    --surface: #1c1c1e;
    --text: #f5f5f7;
    --text-secondary: #98989d;
    --accent: #2997ff;
    --accent-hover: #64b5ff;
    --border: #2c2c2e;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}

.site-header .inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.brand:hover {
  text-decoration: none;
  color: var(--text);
}

.site-nav {
  display: flex;
  gap: 1.5rem;
}

.site-nav a {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

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

/* ---------- Layout ---------- */

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem 5rem;
}

.hero {
  padding: 5.5rem 0 4rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.hero p {
  margin: 1.25rem auto 0;
  max-width: 36rem;
  font-size: 1.2rem;
  color: var(--text-secondary);
}

.hero .actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

section {
  padding: 3rem 0;
}

h2 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 1.75rem 0 0.5rem;
}

p + p {
  margin-top: 1rem;
}

ul {
  padding-left: 1.25rem;
  margin: 0.75rem 0;
}

li + li {
  margin-top: 0.35rem;
}

.muted {
  color: var(--text-secondary);
}

.small {
  font-size: 0.875rem;
}

/* ---------- Components ---------- */

.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.65rem 1.4rem;
  border-radius: 980px;
  font-size: 0.95rem;
  font-weight: 500;
}

.button:hover {
  background: var(--accent-hover);
  color: #fff;
  text-decoration: none;
}

.button.secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.button.secondary:hover {
  background: var(--accent);
  color: #fff;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.card + .card {
  margin-top: 1.5rem;
}

.app-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.app-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  background: linear-gradient(145deg, #6f4e37, #3b2a24);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  flex-shrink: 0;
}

.app-card .body {
  flex: 1;
  min-width: 240px;
}

.app-card h3 {
  margin-top: 0;
  font-size: 1.35rem;
}

.badge-soon {
  display: inline-block;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  border-radius: 980px;
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  grid-auto-rows: 1fr;
}

.grid .card + .card {
  margin-top: 0;
}

.legal h2 {
  margin-top: 2.5rem;
  font-size: 1.35rem;
}

.legal h2:first-of-type {
  margin-top: 0;
}

.updated {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.page-title {
  padding: 3.5rem 0 1rem;
}

.page-title h1 {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.page-title p {
  margin-top: 0.5rem;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.25rem;
}

.site-footer .inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.site-footer nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.site-footer a:hover {
  color: var(--text);
}

.site-footer .legal-note {
  color: var(--text-secondary);
  font-size: 0.75rem;
  max-width: 48rem;
}

@media (max-width: 600px) {
  .site-nav {
    gap: 1rem;
  }

  .site-nav a {
    font-size: 0.8rem;
  }
}
