:root {
  --bg: #ffffff;
  --paper: #ffffff;
  --paper-warm: rgba(132, 23, 44, 0.08);
  --ink: #3c281e;
  --muted: #3c281e;
  --line: #3c281e;
  --green: #84172c;
  --green-soft: rgba(132, 23, 44, 0.16);
  --blue: rgba(60, 40, 30, 0.12);
  --lavender: rgba(132, 23, 44, 0.1);
  --mint: rgba(60, 40, 30, 0.14);
  --yellow: rgba(60, 40, 30, 0.18);
  --shadow: 8px 10px 0 var(--line);
  --shadow-soft: 5px 7px 0 var(--line);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: linear-gradient(180deg, #FFF9F5 0 140px, #ffffff 140px);
  font-family: "Fredoka", sans-serif;
}

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

svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
}

.topbar,
main,
.footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 16px;
  padding: 16px 22px;
  border: 3px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-icon,
.icon {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 2px solid var(--line);
  border-radius: 14px;
  color: var(--line);
  font-size: 20px;
  font-weight: 900;
}

.brand-icon {
  border: 0;
  background: transparent;
  overflow: hidden;
}

.brand-icon .logo-mark {
  width: 56px;
  height: 56px;
}

.logo-cloud {
  fill: #ffffff;
  stroke: #000000;
  stroke-width: 6.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.logo-eye {
  fill: #000000;
}

.logo-highlight {
  fill: #ffffff;
}

.logo-smile {
  fill: none;
  stroke: #ff0000;
  stroke-width: 6;
  stroke-linecap: round;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 19px;
  white-space: nowrap;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  gap: 26px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}

.nav a:hover {
  color: var(--ink);
}

.nav-cta,
.button {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--line);
  border-radius: 18px;
  font-size: 16px;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.nav-cta {
  min-height: 54px;
  padding: 0 24px;
  color: #ffffff;
  background: var(--green);
  box-shadow: 5px 6px 0 var(--line);
}

.button {
  padding: 0 30px;
}

.button:hover,
.nav-cta:hover,
.module-card:hover,
.belief-card:hover,
.health-card:hover,
.quote-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 9px 11px 0 var(--line);
}

.primary {
  color: #ffffff;
  background: var(--green);
  box-shadow: var(--shadow-soft);
}

.secondary {
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.hero {
  position: relative;
  min-height: 690px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(430px, 0.95fr);
  align-items: center;
  gap: 70px;
  padding: 82px 0 96px;
}

.hero::before {
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -1;
  content: "";
  background: #FFF9F5;
}

.pill,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 24px;
  padding: 10px 16px;
  border: 2px solid var(--line);
  border-radius: 999px;
  color: #3c281e;
  background: var(--green-soft);
  font-size: 14px;
  font-weight: 900;
}

.pill span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

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

h1 {
  max-width: 760px;
  margin-bottom: 26px;
  font-size: 3.75rem;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 span {
  display: block;
}

.hero-copy p {
  max-width: 660px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.85;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

.hero-panel {
  position: relative;
  min-height: 500px;
}

.orb-card {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: min(78vw, 330px);
  aspect-ratio: 1;
  padding: 30px;
  border: 3px solid var(--line);
  border-radius: 42px;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.22), transparent 34%),
    #84172c;
  box-shadow: var(--shadow);
  text-align: center;
  transform: translate(-50%, -50%) rotate(-3deg);
}

.orb-card span {
  font-size: 22px;
  font-weight: 900;
  color: #ffffff;
}

.orb-card strong {
  display: block;
  max-width: 210px;
  margin-top: 14px;
  color: #ffffff;
  font-size: 17px;
  line-height: 1.6;
}

.signal-card {
  position: absolute;
  max-width: 245px;
  padding: 18px;
  border: 3px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.signal-card b,
.signal-card span {
  display: block;
}

.signal-card b {
  margin-bottom: 8px;
  font-size: 18px;
}

.signal-card span {
  color: inherit;
  line-height: 1.55;
}

.signal-one {
  top: 8px;
  left: 4px;
  color: var(--ink);
  background: #ffffff;
}

.signal-two {
  top: 82px;
  right: 0;
  color: var(--ink);
  background: #ffffff;
}

.signal-three {
  left: 58px;
  bottom: 16px;
  color: var(--ink);
  background: #ffffff;
}

.signal-card b {
  color: inherit;
}

.section {
  padding: 88px 0;
}

.section-title {
  max-width: 850px;
  margin: 0 auto 52px;
  text-align: center;
}

.section-title h2,
.feature-panel h2,
.method-panel h2,
.enroll h2 {
  margin-bottom: 20px;
  font-size: 2.25rem;
  line-height: 1.15;
  letter-spacing: 0;
}

.section-title p,
.feature-panel p,
.method-panel p,
.enroll p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.85;
}

.belief-grid,
.model-grid,
.future-grid {
  display: grid;
  gap: 24px;
}

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

.belief-card,
.module-card,
.health-card,
.quote-card {
  border: 3px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.belief-card {
  min-height: 270px;
  padding: 28px;
}

.belief-card:nth-child(1) {
  color: var(--ink);
  background: #ffffff;
}

.belief-card:nth-child(2) {
  color: var(--ink);
  background: #ffffff;
}

.belief-card:nth-child(3) {
  color: var(--ink);
  background: #ffffff;
}

.belief-card span {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 34px;
  border: 2px solid var(--line);
  border-radius: 14px;
  color: #ffffff;
  background: var(--green);
  font-weight: 900;
}

.belief-card:nth-child(2) span {
  background: var(--green);
}

.belief-card:nth-child(3) span {
  background: var(--green);
}

.belief-card h3,
.module-card h3,
.health-card h3 {
  margin-bottom: 12px;
  font-size: 23px;
  line-height: 1.35;
}

.belief-card p,
.module-card p,
.health-card p {
  color: var(--muted);
  line-height: 1.75;
}

.belief-card:nth-child(1) p,
.belief-card:nth-child(2) p,
.belief-card:nth-child(3) p,
.module-card:nth-child(1) p,
.module-card:nth-child(2) p,
.module-card:nth-child(3) p,
.module-card:nth-child(4) p,
.health-card:nth-child(2) p,
.health-card:nth-child(3) p,
.health-card:nth-child(4) p,
.health-card:nth-child(5) p,
.quote-card:nth-child(1) p,
.quote-card:nth-child(2) p,
.quote-card:nth-child(3) p {
  color: inherit;
}

.feature-panel,
.method-panel,
.enroll {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  align-items: center;
  gap: 42px;
  padding: 44px;
  border: 3px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(132, 23, 44, 0.06), #ffffff 52%, rgba(60, 40, 30, 0.05));
  box-shadow: var(--shadow);
}

.feature-panel .tag {
  color: #ffffff;
  background: #3c281e;
}

.ai-stack {
  display: grid;
  gap: 16px;
}

.ai-stack article,
.method-list article {
  padding: 22px;
  border: 3px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
}

.ai-stack article:nth-child(1),
.method-list article:nth-child(1) {
  color: var(--ink);
  background: #ffffff;
}

.ai-stack article:nth-child(2),
.method-list article:nth-child(2) {
  color: var(--ink);
  background: #ffffff;
}

.ai-stack article:nth-child(3),
.method-list article:nth-child(3) {
  color: var(--ink);
  background: #ffffff;
}

.ai-stack span,
.method-list span,
.quote-card span {
  color: inherit;
  font-weight: 900;
}

.ai-stack span {
  color: #3c281e;
}

.ai-stack strong,
.method-list strong {
  display: block;
  margin-top: 8px;
  font-size: 20px;
  line-height: 1.45;
}

.model-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 36px;
}

.module-card {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  padding: 24px;
}

.module-card:nth-child(1) {
  color: var(--ink);
  background: #ffffff;
}

.module-card:nth-child(2) {
  color: var(--ink);
  background: #ffffff;
}

.module-card:nth-child(3) {
  color: var(--ink);
  background: #ffffff;
}

.module-card:nth-child(4) {
  color: var(--ink);
  background: #ffffff;
}

.module-card .icon {
  align-self: center;
  margin-bottom: 28px;
}

.blue { background: #3c281e; color: #ffffff; }
.coral { background: #3c281e; color: #ffffff; }
.mint { background: #3c281e; color: #ffffff; }
.lavender { background: #3c281e; color: #ffffff; }

.health-layout {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.health-card {
  min-height: 230px;
  padding: 26px;
}

.health-card:nth-child(2) {
  color: var(--ink);
  background: #ffffff;
}

.health-card:nth-child(3) {
  color: var(--ink);
  background: #ffffff;
}

.health-card:nth-child(4) {
  color: var(--ink);
  background: #ffffff;
}

.health-card:nth-child(5) {
  color: var(--ink);
  background: #ffffff;
}

.health-card.large {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 484px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #ffffff;
  background: #3c281e;
}

.health-card.large h3 {
  font-size: clamp(32px, 4vw, 48px);
}

.health-card.large p {
  color: inherit;
  font-size: 19px;
}

.health-section .tag {
  color: #ffffff;
  background: #3c281e;
}

.method-panel {
  color: var(--ink);
  background: #ffffff;
}

.method-panel p,
.method-panel h2 {
  color: var(--muted);
}

.method-panel .tag {
  color: #3c281e;
  background: var(--green-soft);
}

.method-list {
  display: grid;
  gap: 16px;
}

.method-list p {
  margin: 10px 0 0;
  color: inherit;
  line-height: 1.7;
}

.method-list article {
  color: var(--ink);
}

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

.quote-card {
  min-height: 235px;
  padding: 30px;
  background: var(--paper);
}

.quote-card:nth-child(1) {
  color: var(--ink);
  background: #ffffff;
}

.quote-card:nth-child(2) {
  color: var(--ink);
  background: #ffffff;
}

.quote-card:nth-child(3) {
  color: var(--ink);
  background: #ffffff;
}

.quote-card p {
  min-height: 120px;
  font-size: 23px;
  line-height: 1.55;
}

.enroll {
  margin: 92px auto;
  grid-template-columns: minmax(0, 0.95fr) minmax(480px, 1.05fr);
  color: #ffffff;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.18), transparent 34%),
    #84172c;
}

.enroll h2,
.enroll p {
  color: inherit;
}

.enroll .tag {
  color: #84172c;
  background: #ffffff;
}

.footer {
  padding: 20px 0 48px;
  color: var(--muted);
}

.footer-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(340px, 0.8fr);
  gap: 32px;
  align-items: center;
  padding: 28px;
  border: 3px solid var(--line);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.footer strong,
.footer-brand strong {
  color: var(--ink);
}

.footer-panel p {
  max-width: 460px;
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.footer-links a {
  padding: 10px 14px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--paper-warm);
  color: var(--ink);
  font-weight: 600;
}

.footer-contact {
  padding: 20px;
  border: 3px solid var(--line);
  border-radius: 22px;
  color: var(--ink);
  background: linear-gradient(135deg, rgba(60, 40, 30, 0.14), #ffffff 74%);
}

.footer-contact span,
.footer-contact strong {
  display: block;
}

.footer-contact span {
  margin-bottom: 8px;
  color: inherit;
  font-weight: 600;
}

.footer-contact strong {
  white-space: nowrap;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.35;
}

.contact-card {
  padding: 24px;
  border: 3px solid var(--line);
  border-radius: 24px;
  color: var(--ink);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

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

.contact-card span {
  color: inherit;
  font-weight: 600;
}

.contact-card strong {
  margin-top: 8px;
  white-space: nowrap;
  color: inherit;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.25;
}

.contact-card .secondary {
  color: var(--line);
  background: #ffffff;
}

.contact-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 20px;
}

.contact-actions .button {
  min-height: 52px;
  padding: 0 20px;
}

.contact-card small {
  min-height: 20px;
  margin-top: 12px;
  color: inherit;
  font-weight: 600;
}

.contact-card button {
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .button,
  .module-card,
  .belief-card,
  .health-card,
  .quote-card,
  .nav-cta {
    transition: none;
  }
}

@media (max-width: 1040px) {
  .nav {
    display: none;
  }

  .hero,
  .feature-panel,
  .method-panel,
  .enroll {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 44px;
    padding-top: 60px;
  }

  .hero-panel {
    min-height: 470px;
  }

  .belief-grid,
  .model-grid,
  .future-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .health-layout {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-panel {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 1180px) {
  .footer-panel {
    grid-template-columns: 1fr;
  }

  .footer-contact strong,
  .contact-card strong {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 680px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .topbar,
  main,
  .footer {
    width: calc(100% - 36px) !important;
    max-width: 390px;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .topbar {
    top: 10px;
    padding: 12px;
    border-radius: 20px;
    box-shadow: 0 6px 0 var(--line);
  }

  .brand-icon {
    width: 50px;
    height: 50px;
  }

  .brand strong {
    font-size: 16px;
    white-space: normal;
    line-height: 1.25;
  }

  .brand small {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: auto;
    padding: 54px 0 70px;
  }

  h1 {
    width: 100%;
    max-width: 100%;
    font-size: 3.75rem;
    line-height: 1.14;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .hero-copy,
  .hero-panel,
  .orb-card,
  .signal-card,
  .feature-panel,
  .method-panel,
  .enroll,
  .module-card,
  .belief-card,
  .health-card,
  .quote-card {
    max-width: 100%;
    min-width: 0;
    box-shadow: 0 6px 0 var(--line);
  }

  .hero-copy,
  .hero-panel {
    box-shadow: none;
  }

  .belief-card {
    box-shadow: none;
  }

  .hero-copy p,
  .section-title p,
  .feature-panel p,
  .method-panel p,
  .enroll p {
    font-size: 16px;
    overflow-wrap: anywhere;
  }

  .actions {
    display: grid;
  }

  .button {
    width: 100%;
    padding-left: 18px;
    padding-right: 18px;
    box-shadow: 0 6px 0 var(--line);
  }

  .hero-panel {
    display: grid;
    gap: 18px;
    min-height: auto;
    box-shadow: none;
    overflow: visible;
  }

  .orb-card {
    position: static;
    width: calc(100% - 18px);
    aspect-ratio: auto;
    min-height: 245px;
    transform: rotate(-1deg);
    border-radius: 34px;
  }

  .signal-card {
    position: static;
    width: 100%;
    max-width: none;
  }

  .signal-one {
    order: -1;
  }

  .signal-two {
    order: 2;
  }

  .signal-three {
    order: 3;
  }

  .section {
    padding: 68px 0;
  }

  .section-title {
    text-align: left;
  }

  .section-title h2,
  .feature-panel h2,
  .method-panel h2,
  .enroll h2 {
    font-size: 2.25rem;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .belief-card h3,
  .belief-card p,
  .module-card h3,
  .module-card p,
  .health-card h3,
  .health-card p,
  .quote-card p {
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .belief-grid,
  .model-grid,
  .future-grid,
  .health-layout {
    width: 100%;
    max-width: 100%;
    grid-template-columns: 1fr;
  }

  .belief-card,
  .module-card,
  .health-card,
  .quote-card {
    width: 100%;
    overflow-wrap: anywhere;
  }

  .feature-panel,
  .method-panel,
  .enroll {
    padding: 24px;
    box-shadow: 0 6px 0 var(--line);
  }

  .health-card.large {
    grid-column: auto;
    grid-row: auto;
    min-height: 360px;
  }

  .quote-card p {
    min-height: auto;
    font-size: 21px;
  }

  .footer {
    flex-direction: column;
  }

  .footer-panel,
  .contact-card {
    padding: 22px;
    box-shadow: 0 6px 0 var(--line);
  }

  .contact-actions {
    display: grid;
    justify-content: stretch;
  }
}
