:root {
  color-scheme: light;
  --bg: #f8fafc;
  --bg-strong: #ffffff;
  --text: #090d1f;
  --muted: #596176;
  --soft: #8790a5;
  --line: #dfe5ef;
  --line-strong: #cbd5e1;
  --blue: #1764e8;
  --blue-strong: #0f55da;
  --teal: #09a6ad;
  --green: #0c9f65;
  --violet: #6d5dfc;
  --shadow: 0 18px 70px rgba(20, 37, 72, 0.09);
  --radius: 8px;
  --max: 1180px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #070b14;
  --bg-strong: #0d1320;
  --text: #f8fbff;
  --muted: #aeb8cc;
  --soft: #8390aa;
  --line: #1f2a3e;
  --line-strong: #324159;
  --shadow: 0 18px 70px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.95)),
    radial-gradient(circle at 70% 14%, rgba(23, 100, 232, 0.08), transparent 27%),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

:root[data-theme="dark"] body {
  background:
    linear-gradient(180deg, rgba(7, 11, 20, 0.94), rgba(7, 11, 20, 0.98)),
    radial-gradient(circle at 72% 10%, rgba(23, 100, 232, 0.18), transparent 30%),
    var(--bg);
}

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

svg {
  display: block;
}

.section-shell {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max), calc(100% - 48px));
  height: 74px;
  margin: 0 auto;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(18px);
}

.brand,
.nav,
.header-actions,
.traits,
.hero-actions,
.section-heading,
.text-link,
.button,
.product-row,
.contact-grid a {
  display: flex;
  align-items: center;
}

.brand {
  gap: 14px;
  font-size: 18px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--teal);
  font-size: 20px;
  font-weight: 800;
}

.nav {
  gap: 42px;
  font-size: 14px;
  font-weight: 700;
}

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

.header-actions {
  gap: 12px;
}

.icon-button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.icon-button:hover {
  background: color-mix(in srgb, var(--line) 52%, transparent);
}

.icon-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(420px, 1.04fr);
  gap: 58px;
  align-items: center;
  min-height: calc(100vh - 74px);
  padding: 54px 0 62px;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  min-width: 0;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(64px, 7.1vw, 104px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 650px;
  margin: 30px 0 0;
  color: var(--text);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.18;
}

.hero-lead span {
  color: var(--blue);
}

.hero-subcopy {
  max-width: 520px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.7;
}

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

.button {
  justify-content: center;
  min-height: 54px;
  padding: 0 34px;
  border-radius: 7px;
  font-size: 15px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

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

.button svg,
.text-link svg {
  width: 20px;
  height: 20px;
  margin-left: 10px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.button.primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 14px 34px rgba(23, 100, 232, 0.25);
}

.button.primary:hover {
  background: var(--blue-strong);
}

.button.secondary {
  border: 1px solid var(--line-strong);
  background: var(--bg-strong);
  color: var(--text);
}

.traits {
  gap: 30px;
  margin-top: 38px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  flex-wrap: wrap;
}

.traits span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.traits svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.product-map {
  position: relative;
  min-height: 600px;
  isolation: isolate;
}

.map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at center, #000 0 54%, transparent 78%);
  opacity: 0.78;
}

.product-map::before,
.product-map::after {
  position: absolute;
  z-index: 0;
  display: block;
  color: var(--blue);
  font-weight: 700;
  opacity: 0.55;
  content: "+";
}

.product-map::before {
  top: 64px;
  right: 74px;
}

.product-map::after {
  bottom: 146px;
  left: 48px;
}

.map-tile {
  position: absolute;
  z-index: 1;
  display: grid;
  width: 148px;
  min-height: 136px;
  justify-items: center;
  padding: 18px 12px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg-strong) 94%, transparent);
  box-shadow: var(--shadow);
}

.map-tile::before,
.map-tile::after {
  position: absolute;
  background: color-mix(in srgb, var(--line-strong) 75%, transparent);
  content: "";
}

.map-tile::before {
  left: 50%;
  bottom: -58px;
  width: 1px;
  height: 58px;
}

.map-tile::after {
  top: 50%;
  right: -50px;
  width: 50px;
  height: 1px;
}

.map-tile:nth-of-type(3)::after,
.map-tile:nth-of-type(4)::after,
.map-tile:nth-of-type(6)::after {
  display: none;
}

.map-tile:nth-of-type(4)::before,
.map-tile:nth-of-type(5)::before,
.map-tile:nth-of-type(6)::before {
  display: none;
}

.map-tile:nth-of-type(1) {
  top: 92px;
  left: 6px;
}

.map-tile:nth-of-type(2) {
  top: 92px;
  left: calc(50% - 74px);
}

.map-tile:nth-of-type(3) {
  top: 92px;
  right: 6px;
}

.map-tile:nth-of-type(4) {
  top: 320px;
  left: 6px;
}

.map-tile:nth-of-type(5) {
  top: 320px;
  left: calc(50% - 74px);
}

.map-tile:nth-of-type(6) {
  top: 320px;
  right: 6px;
}

.product-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 7px;
  color: var(--blue);
}

.product-icon svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.icon-vocab,
.icon-cocoon,
.icon-jump {
  color: var(--teal);
  background: color-mix(in srgb, var(--teal) 10%, transparent);
}

.icon-puzzle,
.icon-lexi,
.icon-tools {
  color: var(--blue);
  background: color-mix(in srgb, var(--blue) 10%, transparent);
}

.map-tile strong {
  margin-top: 10px;
  font-size: 16px;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.map-tile small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: center;
}

.products,
.building,
.notes,
.about-contact {
  padding: 66px 0;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 24px;
}

.section-label {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  font-size: clamp(32px, 3vw, 42px);
  line-height: 1.08;
  letter-spacing: 0;
}

.text-link {
  color: var(--blue);
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

.product-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-strong);
}

.product-row {
  display: grid;
  grid-template-columns: 64px minmax(130px, 0.8fr) 110px minmax(260px, 1.5fr) minmax(170px, 0.8fr) 36px;
  gap: 22px;
  align-items: center;
  min-height: 92px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}

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

.product-row:hover {
  background: color-mix(in srgb, var(--blue) 4%, var(--bg-strong));
}

.product-row .product-icon {
  width: 48px;
  height: 48px;
}

.product-row .product-icon svg {
  width: 32px;
  height: 32px;
}

.product-name {
  font-size: 19px;
  font-weight: 800;
}

.status {
  justify-self: start;
  padding: 5px 11px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
}

.status.active {
  color: var(--green);
  background: color-mix(in srgb, var(--green) 14%, transparent);
}

.status.beta {
  color: var(--blue);
  background: color-mix(in srgb, var(--blue) 12%, transparent);
}

.status.experiment {
  color: var(--violet);
  background: color-mix(in srgb, var(--violet) 13%, transparent);
}

.status.planned,
.status.archived {
  color: var(--soft);
  background: color-mix(in srgb, var(--soft) 13%, transparent);
}

.product-desc {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
}

.product-link {
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.row-arrow {
  width: 22px;
  height: 22px;
  color: var(--muted);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.building {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.building-intro p:not(.section-label) {
  margin: 18px 0 24px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.75;
}

.direction-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid var(--line);
}

.direction-grid article {
  min-height: 224px;
  padding: 10px 28px 0;
  border-right: 1px solid var(--line);
}

.direction-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: var(--teal);
}

.direction-icon svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.direction-grid h3 {
  margin: 28px 0 12px;
  font-size: 18px;
}

.direction-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.65;
}

.note-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.note-card {
  min-height: 178px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-strong);
  transition: transform 180ms ease, border-color 180ms ease;
}

.note-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.note-card p {
  margin: 0 0 18px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 800;
}

.note-card h3 {
  margin: 0 0 14px;
  font-size: 21px;
  line-height: 1.18;
}

.note-card span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
}

.about-contact {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(420px, 1fr);
  gap: 64px;
  align-items: center;
}

.contact-copy p {
  max-width: 460px;
  margin: 18px 0 28px;
  color: var(--muted);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.7;
}

.contact-copy .button {
  width: fit-content;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px 34px;
  padding-left: 54px;
  border-left: 1px solid var(--line-strong);
}

.contact-grid a {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 5px 16px;
  align-items: center;
}

.contact-grid svg {
  grid-row: span 2;
  width: 24px;
  height: 24px;
  color: var(--text);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.contact-grid span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.contact-grid strong {
  color: var(--blue);
  font-size: 15px;
  overflow-wrap: anywhere;
}

.footer {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 1050px) {
  .nav {
    gap: 22px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 40px;
  }

  .product-map {
    min-height: 490px;
  }

  .tile-vocab,
  .tile-lexi {
    left: 4%;
  }

  .tile-puzzle,
  .tile-jump {
    left: calc(50% - 74px);
  }

  .tile-cocoon,
  .tile-tools {
    right: 4%;
  }

  .product-row {
    grid-template-columns: 54px minmax(120px, 0.8fr) 100px minmax(220px, 1.2fr) 34px;
  }

  .product-link {
    display: none;
  }

  .building,
  .about-contact {
    grid-template-columns: 1fr;
  }

  .direction-grid {
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid var(--line);
  }

  .direction-grid article {
    padding: 24px;
    border-bottom: 1px solid var(--line);
  }

  .contact-grid {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 760px) {
  .section-shell,
  .site-header {
    width: min(calc(100% - 28px), var(--max));
  }

  .hero-copy,
  .hero-actions,
  .traits,
  .product-map,
  .products,
  .building,
  .notes,
  .about-contact,
  .footer {
    max-width: 362px;
  }

  .site-header {
    height: 64px;
  }

  .brand {
    gap: 8px;
    font-size: 15px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }

  .nav {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 38px 0 44px;
  }

  .hero h1 {
    font-size: clamp(54px, 18vw, 78px);
  }

  .hero-lead {
    margin-top: 24px;
    font-size: 27px;
    max-width: 100%;
  }

  .hero-subcopy {
    font-size: 16px;
  }

  .button {
    width: 100%;
  }

  .traits {
    gap: 16px;
  }

  .product-map {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    min-height: auto;
    margin-top: 12px;
    min-width: 0;
    max-width: 100%;
  }

  .map-grid,
  .product-map::before,
  .product-map::after,
  .map-tile::before,
  .map-tile::after {
    display: none;
  }

  .map-tile {
    position: static;
    width: auto;
    min-width: 0;
    min-height: 128px;
    box-shadow: 0 12px 34px rgba(20, 37, 72, 0.08);
  }

  .map-tile small {
    font-size: 9px;
  }

  .products,
  .building,
  .notes,
  .about-contact {
    padding: 48px 0;
  }

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

  .product-row {
    grid-template-columns: 48px 1fr auto;
    gap: 12px 14px;
    min-height: 0;
    padding: 18px;
    min-width: 0;
  }

  .product-name,
  .product-desc,
  .status {
    min-width: 0;
  }

  .product-row .status {
    grid-column: 3;
    grid-row: 1;
  }

  .product-row .product-desc {
    grid-column: 2 / -1;
  }

  .product-row .row-arrow {
    display: none;
  }

  .direction-grid,
  .note-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .direction-grid article {
    min-height: 0;
  }

  .contact-grid {
    gap: 22px;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 20px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
