:root {
  --bg: #FDF8F2;
  --surface: #FFFFFF;
  --surface-tint: #F7EFE4;
  --maple: #C8372D;
  --maple-hover: #AD2B22;
  --amber: #F59E0B;
  --amber-soft: #FEF3C7;
  --amber-text: #92400E;
  --text: #1C1917;
  --text-muted: #57534E;
  --border: #E7E0D6;
  --shadow: 0 8px 24px rgba(28, 25, 23, 0.06);
  --radius: 20px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #181411;
    --surface: #241E1A;
    --surface-tint: #2D2520;
    --maple: #E25046;
    --maple-hover: #EE665D;
    --amber: #FBBF24;
    --amber-soft: rgba(251, 191, 36, 0.16);
    --amber-text: #FCD34D;
    --text: #FAF5EE;
    --text-muted: #C7BDB1;
    --border: #382F29;
    --shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a:hover,
a:focus-visible {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background-color: var(--bg);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.brand:hover {
  text-decoration: none;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.95rem;
  font-weight: 600;
}

.site-nav a {
  color: var(--text-muted);
  padding: 4px 2px;
}

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

/* Main */
main {
  flex: 1;
  padding: 40px 0 64px;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 32px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 40px;
  box-shadow: var(--shadow);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--amber-soft);
  color: var(--amber-text);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.3);
  margin-bottom: 16px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--amber);
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(2.2rem, 4.5vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text);
}

.hero-subtitle {
  margin: 0 0 16px;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-weight: 700;
  color: var(--maple);
}

.hero-description {
  margin: 0 0 24px;
  color: var(--text-muted);
  font-size: 1.03rem;
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background-color: var(--maple);
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: var(--maple-hover);
  text-decoration: none;
}

.btn-secondary {
  background-color: var(--surface-tint);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--maple);
  text-decoration: none;
}

.hero-mascot {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-mascot img {
  width: 100%;
  max-width: 240px;
  height: auto;
  display: block;
}

/* Features */
.section-heading {
  margin: 48px 0 20px;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.card-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--maple);
  margin-bottom: 8px;
}

.card h2,
.card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  line-height: 1.3;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.96rem;
}

/* Subpages (Privacy & Support) */
.page-header {
  margin-bottom: 28px;
}

.page-header h1 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.page-meta {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.policy-list {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--text-muted);
}

.policy-list li {
  margin-bottom: 10px;
}

.policy-list strong {
  color: var(--text);
}

.faq-item h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.faq-item p {
  margin: 0;
  color: var(--text-muted);
}

.callout {
  background-color: var(--surface-tint);
  border: 1px solid var(--border);
  border-left: 4px solid var(--maple);
  border-radius: 14px;
  padding: 18px 20px;
}

.callout p {
  margin: 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--maple);
}

@media (max-width: 780px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 28px 22px;
    text-align: center;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-mascot {
    order: -1;
  }

  .hero-mascot img {
    max-width: 170px;
  }

  .features-grid,
  .bilingual-grid {
    grid-template-columns: 1fr;
  }
}
