:root {
  color-scheme: light;
  --ink: #17112b;
  --muted: #6a607f;
  --line: #eadffb;
  --bg: #fff7fc;
  --panel: #ffffff;
  --green: #7c3aed;
  --green-dark: #26115d;
  --mint: #ffd6f3;
  --lime: #ffe66d;
  --amber: #ffd166;
  --orange: #ff6b35;
  --blue: #2f80ed;
  --pink: #ff4ecd;
  --surface-glow:
    radial-gradient(circle at 8% 8%, rgba(255, 78, 205, 0.18), transparent 28%),
    radial-gradient(circle at 88% 10%, rgba(47, 128, 237, 0.16), transparent 30%),
    radial-gradient(circle at 50% 0%, rgba(255, 230, 109, 0.14), transparent 26%),
    var(--bg);
  --shadow: 0 24px 80px rgba(65, 28, 133, 0.16);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #fbf7ff;
  --muted: #cfc3df;
  --line: rgba(255, 255, 255, 0.16);
  --bg: #10081f;
  --panel: #1c1230;
  --green: #ff4ecd;
  --green-dark: #7c3aed;
  --mint: #ffd6f3;
  --lime: #ffe66d;
  --amber: #ffd166;
  --orange: #ff8a3d;
  --blue: #67b7ff;
  --pink: #ff4ecd;
  --surface-glow:
    radial-gradient(circle at 12% 8%, rgba(255, 78, 205, 0.24), transparent 30%),
    radial-gradient(circle at 86% 10%, rgba(47, 128, 237, 0.25), transparent 32%),
    radial-gradient(circle at 50% 0%, rgba(255, 230, 109, 0.12), transparent 30%),
    var(--bg);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--surface-glow);
  color: var(--ink);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--green-dark), var(--pink), var(--orange));
  color: white;
  font-size: 0.8rem;
}

.nav {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
}

.nav a:hover,
.footer a:hover {
  color: var(--green);
}

.nav-cta,
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 18px;
  font-weight: 800;
}

.nav-cta {
  background: linear-gradient(135deg, var(--green-dark), var(--pink));
  color: white;
}

.theme-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 8px 6px 12px;
  background: color-mix(in srgb, var(--panel) 78%, transparent);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.theme-select select {
  min-height: 32px;
  width: auto;
  border: 0;
  border-radius: 999px;
  padding: 0 28px 0 10px;
  background: var(--panel);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: clamp(54px, 8vw, 108px) clamp(18px, 5vw, 72px) 48px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
  line-height: 1.2;
}

.hero-text,
.section-heading p,
.planner-copy p,
.waitlist p {
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-text {
  max-width: 690px;
  margin-bottom: 28px;
}

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

.button.primary {
  border: 0;
  background: linear-gradient(135deg, var(--green-dark), var(--pink));
  color: white;
  cursor: pointer;
}

.button.secondary {
  border: 1px solid var(--line);
  background: var(--panel);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-proof span,
.module-grid span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 13px;
  background: color-mix(in srgb, var(--panel) 78%, transparent);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-panel img {
  width: 100%;
  height: min(620px, 62vw);
  min-height: 420px;
  object-fit: cover;
}

.floating-card {
  position: absolute;
  width: min(260px, 70%);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  box-shadow: 0 16px 48px rgba(65, 28, 133, 0.18);
}

.floating-card strong,
.floating-card span {
  display: block;
}

.floating-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

.top-card {
  top: 20px;
  right: 20px;
}

.bottom-card {
  bottom: 20px;
  left: 20px;
}

.section {
  padding: clamp(64px, 8vw, 108px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 780px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading.left {
  margin: 0;
  text-align: left;
}

.problem-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  gap: 28px;
  align-items: start;
}

.problem-grid,
.audience-grid,
.steps,
.exercise-grid,
.recipe-cards,
.module-grid {
  display: grid;
  gap: 16px;
}

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

.problem-grid article,
.audience-grid article,
.step,
.food-card,
.exercise-grid article,
.recipe-cards article {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  background: var(--panel);
}

.problem-grid span,
.step span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mint), var(--lime));
  color: #26115d;
  font-weight: 900;
}

.problem-grid p,
.audience-grid p,
.step p,
.food-card p,
.exercise-grid p,
.recipe-cards p,
.footer p {
  margin-bottom: 0;
  color: var(--muted);
}

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

.audience-section {
  background: color-mix(in srgb, var(--panel) 86%, var(--bg));
}

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

.audience-grid article {
  background:
    radial-gradient(circle at top right, rgba(255, 78, 205, 0.16), transparent 42%),
    var(--panel);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(26px, 5vw, 70px);
  align-items: start;
  background: color-mix(in srgb, var(--panel) 86%, var(--bg));
}

.food-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.tag {
  display: inline-flex;
  margin-bottom: 18px;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 0.78rem;
  font-weight: 900;
}

.tag.muscle {
  background: var(--mint);
}

.tag.fiber {
  background: var(--lime);
}

.tag.recovery {
  background: #ffe2cf;
}

dl {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
}

dt {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

dd {
  margin: 0;
  color: var(--muted);
}

.local-section {
  background:
    radial-gradient(circle at top left, rgba(255, 78, 205, 0.18), transparent 30%),
    radial-gradient(circle at bottom right, rgba(47, 128, 237, 0.16), transparent 36%),
    color-mix(in srgb, var(--panel) 62%, var(--bg));
}

.country-board {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  scrollbar-width: thin;
}

.scrollable-countries {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

.country-tab {
  flex: 0 0 auto;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  background: var(--panel);
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.country-tab.active {
  background: linear-gradient(135deg, var(--green-dark), var(--pink));
  color: white;
}

.country-result {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  max-width: 980px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: clamp(22px, 4vw, 38px);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.country-result p,
.country-result li {
  color: var(--muted);
}

.exercise-section {
  background:
    radial-gradient(circle at top left, rgba(255, 78, 205, 0.26), transparent 36%),
    radial-gradient(circle at bottom right, rgba(47, 128, 237, 0.28), transparent 42%),
    #16082f;
  color: white;
}

.exercise-section .eyebrow,
.exercise-section .section-heading p {
  color: var(--mint);
}

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

.exercise-grid article {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
}

.exercise-grid p,
.exercise-grid span {
  color: rgba(255, 255, 255, 0.78);
}

.exercise-grid span {
  display: inline-block;
  margin-top: 18px;
  font-size: 0.9rem;
  font-weight: 800;
}

.repository-note {
  display: grid;
  gap: 6px;
  max-width: 760px;
  margin: 26px auto 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 22px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.08);
  text-align: center;
}

.repository-note strong {
  color: white;
}

.repository-note span {
  color: rgba(255, 255, 255, 0.78);
}

.planner-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}

.daily-plan {
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.plan-header,
.plan-row {
  display: grid;
  grid-template-columns: minmax(140px, 0.45fr) minmax(0, 1fr);
  gap: 18px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.plan-header {
  background: linear-gradient(135deg, var(--green-dark), var(--pink));
  color: white;
  font-weight: 900;
}

.plan-row:last-child {
  border-bottom: 0;
}

.plan-row span {
  color: var(--muted);
}

.recipe-section {
  background:
    radial-gradient(circle at top right, rgba(255, 209, 102, 0.25), transparent 32%),
    color-mix(in srgb, var(--panel) 74%, var(--bg));
}

.recipe-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.roadmap-section {
  background: color-mix(in srgb, var(--panel) 86%, var(--bg));
}

.module-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  max-width: 960px;
  margin: 0 auto;
}

.feature-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature-links a {
  display: grid;
  gap: 8px;
  min-height: 170px;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  background: var(--panel);
}

.feature-links strong {
  font-size: 1.15rem;
}

.feature-links span {
  color: var(--muted);
}

.page-hero {
  padding: clamp(58px, 8vw, 108px) clamp(18px, 5vw, 72px) 40px;
  background:
    radial-gradient(circle at top right, rgba(255, 78, 205, 0.2), transparent 34%),
    radial-gradient(circle at top left, rgba(47, 128, 237, 0.16), transparent 30%),
    var(--bg);
}

.page-hero.dark {
  background:
    radial-gradient(circle at top left, rgba(255, 78, 205, 0.28), transparent 36%),
    radial-gradient(circle at bottom right, rgba(47, 128, 237, 0.28), transparent 40%),
    #16082f;
  color: white;
}

.page-hero.dark .eyebrow,
.page-hero.dark p {
  color: var(--mint);
}

.page-hero h1 {
  max-width: 980px;
  margin-bottom: 18px;
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.1rem;
}

.tool-shell,
.planner-tool {
  padding: 28px clamp(18px, 5vw, 72px) clamp(64px, 8vw, 108px);
}

.database-preview {
  padding: clamp(46px, 7vw, 86px) clamp(18px, 5vw, 72px) 28px;
  background:
    radial-gradient(circle at top left, rgba(255, 78, 205, 0.14), transparent 30%),
    radial-gradient(circle at bottom right, rgba(47, 128, 237, 0.14), transparent 34%),
    color-mix(in srgb, var(--panel) 72%, var(--bg));
}

.compact-preview {
  padding-bottom: 34px;
}

.preview-alert {
  max-width: 980px;
  margin: 0 0 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--mint) 34%, var(--panel)), var(--panel));
  color: var(--muted);
}

.preview-alert strong {
  color: var(--ink);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.filters input,
.filters select,
.planner-form select {
  border-color: var(--line);
  background: var(--panel);
}

.filters input {
  flex: 1 1 280px;
}

.filters select {
  flex: 0 1 220px;
}

.dynamic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.data-card,
.result-panel,
.planner-form {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 20px;
  background: var(--panel);
  box-shadow: 0 18px 50px rgba(65, 28, 133, 0.1);
}

.database-card {
  position: relative;
  overflow: hidden;
}

.database-card::after,
.locked-card::after {
  content: "";
  position: absolute;
  inset: auto 18px 18px auto;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 78, 205, 0.28), transparent 68%);
  pointer-events: none;
}

.locked-card {
  position: relative;
  border-style: dashed;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--mint) 25%, var(--panel)), var(--panel));
}

.simple-list {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.card-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card-topline span,
.benefit-list span {
  border-radius: 999px;
  padding: 6px 9px;
  background: color-mix(in srgb, var(--mint) 55%, var(--panel));
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
}

.macro-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0;
}

.macro-grid strong {
  display: grid;
  gap: 2px;
  border-radius: 14px;
  padding: 10px 8px;
  background: var(--bg);
  text-align: center;
  font-size: 0.95rem;
}

.macro-grid small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.benefit-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.planner-tool {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 1fr);
  gap: 20px;
}

.planner-form {
  align-self: start;
}

.planner-form label {
  color: var(--ink);
  margin-bottom: 12px;
}

.mini-link {
  display: inline-flex;
  margin-top: 16px;
  border-radius: 999px;
  padding: 10px 13px;
  background: linear-gradient(135deg, var(--green-dark), var(--pink));
  color: white;
  font-weight: 800;
}

.module-grid span {
  display: grid;
  min-height: 62px;
  place-items: center;
  text-align: center;
}

.waitlist {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.7fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  margin: clamp(20px, 4vw, 56px);
  border-radius: 34px;
  padding: clamp(30px, 6vw, 70px);
  background:
    radial-gradient(circle at top left, rgba(255, 230, 109, 0.22), transparent 32%),
    linear-gradient(135deg, #26115d, #7c3aed 52%, #ff4ecd);
  color: white;
}

.waitlist .eyebrow,
.waitlist p {
  color: var(--mint);
}

.waitlist-form {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
}

label {
  display: grid;
  gap: 7px;
  color: white;
  font-size: 0.92rem;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  padding: 0 12px;
  background: color-mix(in srgb, var(--panel) 96%, white);
  color: var(--ink);
  font: inherit;
}

.form-note {
  margin: 0;
  font-size: 0.9rem;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 32px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: var(--panel);
}

.footer p {
  margin-top: 4px;
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .hero,
  .problem-section,
  .split-section,
  .planner-section,
  .waitlist {
    grid-template-columns: 1fr;
  }

  .audience-grid,
  .steps,
  .food-grid,
  .exercise-grid,
  .recipe-cards,
  .module-grid,
  .feature-links,
  .dynamic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .planner-tool {
    grid-template-columns: 1fr;
  }

  .hero-panel img {
    height: 520px;
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
  }

  .nav {
    display: none;
  }

  .nav-cta {
    padding: 0 14px;
  }

  h1 {
    font-size: clamp(2.7rem, 16vw, 4.4rem);
  }

  .hero {
    padding-top: 38px;
  }

  .hero-panel img {
    height: 400px;
    min-height: 0;
  }

  .floating-card {
    position: static;
    width: auto;
    margin: 10px;
  }

  .problem-grid,
  .audience-grid,
  .steps,
  .food-grid,
  .exercise-grid,
  .recipe-cards,
  .module-grid,
  .feature-links,
  .dynamic-grid,
  .country-result {
    grid-template-columns: 1fr;
  }

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

  .plan-header,
  .plan-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .waitlist {
    margin: 18px;
    border-radius: 24px;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
