@font-face {
  font-family: "Fredoka";
  src: url("/assets/fonts/fredoka-600.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 600;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans-400.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans-600.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 600;
}

:root {
  color-scheme: light;
  --rice: #fff7df;
  --paper: #fffdf4;
  --cacao: #56150f;
  --coral: #ff7e73;
  --honey: #ffca60;
  --muted: #8c6058;
  --line: rgba(86, 21, 15, 0.14);
  --shadow: 0 24px 70px rgba(86, 21, 15, 0.12);
  --font-display: "Fredoka", "Arial Rounded MT Bold", sans-serif;
  --font-body: "Instrument Sans", "Avenir Next", Avenir, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 84% 9%, rgba(125, 197, 228, 0.26), transparent 31rem),
    radial-gradient(circle at 9% 75%, rgba(255, 202, 96, 0.16), transparent 28rem),
    var(--rice);
  color: var(--cacao);
  font-family: var(--font-body);
  line-height: 1.55;
}

a {
  color: inherit;
}

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

.site-header {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--cacao);
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand img,
.footer-brand img {
  border-radius: 12px;
  box-shadow: 0 5px 14px rgba(86, 21, 15, 0.13);
}

.quiet-link {
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}

.quiet-link:hover,
footer a:hover {
  color: var(--cacao);
}

.hero {
  min-height: 690px;
  display: grid;
  grid-template-columns: minmax(0, 0.93fr) minmax(420px, 1.07fr);
  align-items: center;
  gap: clamp(34px, 5vw, 76px);
  padding: 48px 0 94px;
}

.eyebrow,
.skill-label,
.evolution-note span {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.75rem;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hero h1 {
  max-width: 650px;
  margin-bottom: 28px;
  font-size: clamp(4.4rem, 7.8vw, 7rem);
  line-height: 0.94;
}

.hero h1 span {
  color: var(--coral);
}

.hero-description {
  max-width: 600px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
  line-height: 1.6;
}

.store-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.store-badge {
  min-height: 63px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 24px 10px 20px;
  overflow: hidden;
  border-radius: 7.2px;
  background: #000;
  color: #fff;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.store-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
}

.store-badge:focus-visible,
.quiet-link:focus-visible,
footer a:focus-visible {
  outline: 3px solid var(--honey);
  outline-offset: 4px;
}

.store-icon {
  flex: 0 0 auto;
  height: 30px;
  object-fit: contain;
}

.store-icon-apple {
  width: 25px;
}

.store-badge-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  line-height: 1;
  white-space: nowrap;
}

.store-badge-copy span {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.store-badge-copy strong {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
}

.hero-evolution {
  position: relative;
  min-height: 570px;
  overflow: hidden;
  border: 1px solid rgba(86, 21, 15, 0.1);
  border-radius: 52px;
  background:
    radial-gradient(circle at 76% 18%, rgba(255, 253, 244, 0.92), transparent 26%),
    radial-gradient(circle at 24% 75%, rgba(255, 253, 244, 0.86), transparent 31%),
    linear-gradient(145deg, #dcecef, #e5f1f2 52%, #d9e9ec);
  box-shadow: var(--shadow);
}

.hero-evolution::before {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(86, 21, 15, 0.09) 1px, transparent 1.2px);
  background-size: 19px 19px;
  content: "";
  opacity: 0.14;
}

.evolution-path {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
}

.path-halo,
.path-line {
  fill: none;
  stroke-linecap: round;
}

.path-halo {
  stroke: rgba(255, 253, 244, 0.58);
  stroke-width: 34;
}

.path-line {
  stroke: rgba(86, 21, 15, 0.15);
  stroke-width: 4;
}

.elo-form {
  position: absolute;
  z-index: 2;
  height: auto;
  filter: drop-shadow(0 18px 18px rgba(37, 29, 19, 0.14));
}

.form-one {
  width: 42%;
  left: -5%;
  bottom: -4%;
  transform: rotate(-3deg);
}

.form-two {
  z-index: 3;
  width: 43%;
  top: 23%;
  left: 27%;
  transform: rotate(2deg);
}

.form-three {
  z-index: 4;
  width: 49%;
  top: -5%;
  right: -8%;
  transform: rotate(4deg);
}

.evolution-spark {
  position: absolute;
  z-index: 6;
  color: var(--honey);
  font-size: 2rem;
}

.spark-one {
  top: 12%;
  left: 43%;
}

.spark-two {
  right: 8%;
  bottom: 32%;
  color: #63b2ff;
  font-size: 1.4rem;
}

.evolution-note {
  position: absolute;
  z-index: 7;
  right: 20px;
  bottom: 20px;
  max-width: 250px;
  display: flex;
  flex-direction: column;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 244, 0.94);
  box-shadow: 0 10px 30px rgba(86, 21, 15, 0.09);
}

.evolution-note span {
  color: var(--muted);
  font-size: 0.6rem;
}

.evolution-note strong {
  font-size: 0.98rem;
}

.skills {
  padding: 100px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 52px;
}

.section-heading h2,
.progress-section h2 {
  margin-bottom: 0;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}

.skill-card {
  min-height: 280px;
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 32px;
  box-shadow: 0 14px 44px rgba(86, 21, 15, 0.07);
}

.skill-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.skill-label {
  margin-bottom: auto;
  color: var(--muted);
  font-size: 0.67rem;
}

.skill-card h3 {
  max-width: 320px;
  margin-bottom: 10px;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  line-height: 1.04;
}

.skill-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
}

.memory-card {
  background: linear-gradient(155deg, #fffdf7, #e9e2ff);
}

.focus-card {
  background: linear-gradient(155deg, #fffdf7, #ddefff);
}

.numbers-card {
  background: linear-gradient(155deg, #fffdf7, #fff0be);
}

.words-card {
  background: linear-gradient(155deg, #fffdf7, #ffe1c7);
}

.knowledge-card {
  background: linear-gradient(155deg, #fffdf7, #e7f1c9);
}

.progress-section {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(36px, 8vw, 100px);
  margin-bottom: 100px;
  padding: clamp(42px, 7vw, 82px);
  border-radius: 42px;
  background: var(--cacao);
  color: var(--rice);
}

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

.progress-section .eyebrow,
.progress-section p {
  color: #e9c5b7;
}

.progress-section h2 {
  margin-bottom: 24px;
}

.progress-section p:last-child {
  max-width: 690px;
  margin-bottom: 0;
  font-size: 1.08rem;
}

footer {
  min-height: 150px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
}

footer nav a {
  font-weight: 600;
  text-decoration: none;
}

footer > p {
  margin-bottom: 0;
  text-align: right;
}

.legal-page {
  background: var(--rice);
}

.legal-shell {
  min-height: 70vh;
  padding: 64px 0 90px;
}

.legal-heading {
  margin-bottom: 42px;
}

.legal-heading h1 {
  margin-bottom: 0;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1;
}

.policy-frame {
  min-height: 560px;
  padding: clamp(18px, 4vw, 50px);
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--paper);
  box-shadow: 0 16px 50px rgba(86, 21, 15, 0.07);
}

.policy-frame iframe {
  width: 100%;
  min-height: 70vh;
  border: 0;
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 32px;
  }

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

  .hero-evolution {
    min-height: 560px;
  }

  .skill-card {
    grid-column: span 3;
  }

  .skill-card:nth-child(4) {
    grid-column: span 3;
  }

  .skill-card:last-child {
    grid-column: 2 / span 4;
  }

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

  footer {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 36px 0;
  }

  footer > p {
    text-align: center;
  }
}

@media (max-width: 560px) {
  .site-header,
  main,
  footer {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    min-height: 76px;
  }

  .hero {
    min-height: auto;
    gap: 44px;
    padding-bottom: 66px;
  }

  .hero h1 {
    font-size: clamp(3.75rem, 18.5vw, 5rem);
  }

  .hero-description {
    font-size: 1.05rem;
  }

  .hero-evolution {
    min-height: 430px;
    border-radius: 34px;
  }

  .form-one {
    width: 48%;
    left: -7%;
  }

  .form-two {
    width: 49%;
    top: 22%;
    left: 25%;
  }

  .form-three {
    width: 56%;
    right: -13%;
  }

  .evolution-note {
    right: 12px;
    bottom: 12px;
    max-width: 205px;
    padding: 11px 13px;
  }

  .evolution-note strong {
    font-size: 0.84rem;
  }

  .skills {
    padding: 74px 0;
  }

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

  .section-heading h2,
  .progress-section h2 {
    font-size: clamp(2.75rem, 13vw, 4rem);
  }

  .skill-grid {
    grid-template-columns: 1fr;
  }

  .skill-card,
  .skill-card:nth-child(4),
  .skill-card:last-child {
    min-height: 240px;
    grid-column: 1;
  }

  .progress-section {
    margin-bottom: 70px;
    padding: 38px 28px;
    border-radius: 32px;
  }
}

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

  .store-badge {
    transition: none;
  }
}
