:root {
  color-scheme: light;
  --bg: #f4f7ff;
  --bg-accent: #eef2ff;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #f8faff;
  --text: #182033;
  --muted: #5b6478;
  --line: rgba(79, 70, 229, 0.12);
  --accent: #4f46e5;
  --accent-strong: #3730a3;
  --macro-calories: #22c55e;
  --macro-protein: #ef4444;
  --macro-fat: #f59e0b;
  --macro-carbs: #3b82f6;
  --shadow: 0 16px 36px rgba(55, 48, 163, 0.08);
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --font-display: "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(79, 70, 229, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 24%),
    linear-gradient(180deg, #fcfdff 0%, var(--bg) 56%, #eef3ff 100%);
}

a {
  color: inherit;
}

.page-shell {
  width: min(920px, calc(100vw - 24px));
  margin: 0 auto;
  padding: 18px 0 36px;
}

.page-shell--narrow {
  width: min(760px, calc(100vw - 24px));
}

.hero,
.panel {
  backdrop-filter: blur(12px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 26px;
  margin-bottom: 14px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -80px -80px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.2), transparent 70%);
}

.hero--compact {
  padding-bottom: 28px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(79, 70, 229, 0.08);
  color: var(--accent-strong);
}

.hero h1,
.section-heading h2,
.locale-card h3,
.panel--document h2,
.panel--document h3 {
  font-family: var(--font-display);
}

.hero h1 {
  margin: 12px 0 4px;
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero__subtitle {
  margin: 0 0 8px;
  color: var(--accent-strong);
  font-size: 1rem;
  font-weight: 700;
}

.hero__copy,
.section-heading p,
.support-card span,
.locale-card p,
.metric-label,
.panel--document p,
.panel--document li {
  color: var(--muted);
  line-height: 1.6;
}

.hero__copy {
  max-width: 620px;
  font-size: 0.98rem;
  margin: 0;
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(79, 70, 229, 0.08);
}

.chip--calories {
  color: #166534;
  background: rgba(34, 197, 94, 0.14);
}

.chip--protein {
  color: #991b1b;
  background: rgba(239, 68, 68, 0.14);
}

.chip--fat {
  color: #92400e;
  background: rgba(245, 158, 11, 0.16);
}

.chip--carbs {
  color: #1d4ed8;
  background: rgba(59, 130, 246, 0.14);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid rgba(79, 70, 229, 0.16);
  background: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-weight: 700;
}

.button--primary {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

.panel {
  padding: 18px;
  margin-bottom: 12px;
}

.support-card,
.locale-card {
  padding: 14px;
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  border: 1px solid rgba(79, 70, 229, 0.08);
}

.section-heading {
  margin-bottom: 12px;
}

.section-heading h2 {
  margin: 0 0 4px;
  font-size: 1.32rem;
}

.section-heading p {
  margin: 0;
}

.support-grid,
.language-grid {
  display: grid;
  gap: 10px;
}

.support-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.language-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.support-card {
  display: grid;
  gap: 4px;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.support-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(55, 48, 163, 0.1);
}

.support-card__label,
.locale-card__locale {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-strong);
}

.locale-card__head {
  margin-bottom: 10px;
}

.locale-card__head h3 {
  margin: 6px 0 2px;
  font-size: 1.16rem;
}

.locale-card__head p {
  margin: 0;
  font-weight: 700;
}

.locale-card ul,
.panel--document ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.locale-card__promo {
  margin-top: 12px;
  font-weight: 700;
}

code {
  display: inline-block;
  overflow-wrap: anywhere;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(17, 79, 67, 0.08);
  color: var(--accent-strong);
}

.panel--document h2 {
  margin-top: 0;
}

.panel--document h3 {
  margin-bottom: 8px;
}

@media (max-width: 900px) {
  .support-grid,
  .language-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 20px;
  }
}

@media (max-width: 600px) {
  .page-shell {
    width: min(100vw - 20px, 100%);
    padding-top: 12px;
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .panel,
  .hero {
    border-radius: 18px;
  }
}
