:root {
  color-scheme: light;
  --ink: #18221f;
  --muted: #60706b;
  --line: #d8e0dc;
  --paper: #fbfcf8;
  --wash: #eef5f2;
  --panel: #ffffff;
  --panel-glass: rgba(255, 255, 255, 0.84);
  --teal: #0f766e;
  --coral: #b7463b;
  --gold: #c39b37;
  --charcoal: #24302d;
  --shadow: 0 24px 70px rgba(24, 34, 31, 0.14);
  --radius: 8px;
  --header-height: 72px;
  --content-max: 1200px;
  --page-x: clamp(18px, 5vw, 72px);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 88px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding: 14px max(var(--page-x), calc((100vw - var(--content-max)) / 2));
  background: rgba(251, 252, 248, 0.86);
  border-bottom: 1px solid rgba(216, 224, 220, 0.7);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.hero-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 750;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  background: var(--charcoal);
  border-radius: 8px;
}

.nav-links {
  gap: clamp(14px, 3vw, 30px);
  color: var(--muted);
  font-size: 0.95rem;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: min(74svh, 720px);
  padding-block: clamp(34px, 6vw, 78px) clamp(26px, 5vw, 54px);
  padding-inline: max(var(--page-x), calc((100vw - var(--content-max)) / 2));
  overflow: hidden;
}

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

.eyebrow {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  max-width: 680px;
  font-size: 5.1rem;
}

h2 {
  font-size: 2.75rem;
}

h3 {
  font-size: 1.15rem;
}

.hero-text {
  max-width: 580px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.18rem;
  line-height: 1.8;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

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

.button.secondary {
  color: var(--charcoal);
  background: #fff;
}

.hero-media {
  position: relative;
  min-height: 330px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(
    90deg,
    rgba(251, 252, 248, 0.36),
    rgba(251, 252, 248, 0.02)
  );
  pointer-events: none;
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
}

.section {
  padding-block: clamp(42px, 7vw, 92px);
  padding-inline: max(var(--page-x), calc((100vw - var(--content-max)) / 2));
}

.intro-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(22px, 5vw, 70px);
  align-items: start;
  background: var(--wash);
  border-block: 1px solid var(--line);
}

.section-heading {
  max-width: 620px;
}

.intro-text {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: 1.34rem;
  line-height: 1.85;
}

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

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

.feature-card {
  display: block;
  min-height: 220px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.app-card {
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.app-card:hover {
  border-color: rgba(15, 118, 110, 0.42);
  box-shadow: 0 18px 44px rgba(24, 34, 31, 0.1);
  transform: translateY(-3px);
}

.card-index {
  display: inline-block;
  margin-bottom: 44px;
  color: var(--coral);
  font-size: 0.82rem;
  font-weight: 850;
}

.feature-card p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.card-action {
  display: inline-block;
  margin-top: 22px;
  color: var(--teal);
  font-weight: 850;
}

.contact-band {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  margin: 0 max(var(--page-x), calc((100vw - var(--content-max)) / 2))
    clamp(28px, 5vw, 64px);
  padding: clamp(28px, 5vw, 46px);
  color: #fff;
  background: var(--charcoal);
  border-radius: 8px;
}

.blog-section {
  background: var(--wash);
  border-block: 1px solid var(--line);
}

.blog-copy {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.blog-copy .eyebrow {
  margin-bottom: 8px;
}

.blog-copy h2 {
  margin: 0;
}

.blog-copy .intro-text {
  margin: 18px auto 28px;
  font-size: 1.24rem;
}

.blog-copy code {
  padding: 2px 7px;
  color: var(--teal);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 0.92em;
}

.contact-band .eyebrow {
  color: var(--gold);
}

.contact-band h2 {
  max-width: 760px;
  font-size: 2.65rem;
}

.contact-button {
  flex: 0 0 auto;
  color: var(--charcoal);
  background: #fff;
  border-color: #fff;
}

@media (max-width: 860px) {
  .site-header {
    min-height: var(--header-height);
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-media {
    order: -1;
    min-height: 230px;
  }

  .hero-media img {
    min-height: 230px;
  }

  .intro-section,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 3.35rem;
  }

  h2,
  .contact-band h2 {
    font-size: 2.2rem;
  }

  .intro-text {
    font-size: 1.18rem;
  }

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

@media (min-width: 861px) and (max-width: 1120px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  section[id] {
    scroll-margin-top: 118px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .button {
    width: 100%;
  }

  .hero-actions {
    width: 100%;
  }

  h1 {
    font-size: 2.55rem;
  }

  h2,
  .contact-band h2 {
    font-size: 1.85rem;
  }
}

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

  .button,
  .app-card {
    transition: none;
  }

  .button:hover,
  .app-card:hover {
    transform: none;
  }
}
