@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=DM+Sans:wght@400;500;600;700&display=swap");

:root {
  --ink: hsl(215 11% 22%);
  --muted: hsl(218 11% 40%);
  --border: hsl(200 30% 88%);
  --secondary: hsl(200 50% 93%);
  --background: hsl(200 60% 97%);
  --background-end: hsl(200 70% 98%);
  --accent-color: hsl(197 100% 40%);
  --accent-deep: var(--accent-color);
  --display: "DM Sans", Inter, system-ui, sans-serif;
  --nav-height: 4rem;
}

.modlin {
  --background: hsl(145 60% 92%);
  --background-end: hsl(145 55% 90%);
  --accent-color: hsl(155 55% 49%);
  --accent-deep: hsl(155 60% 30%);
}

.pocketgm {
  --background: hsl(260 40% 95%);
  --background-end: hsl(260 35% 93%);
  --accent-color: hsl(260 40% 68%);
  --accent-deep: hsl(260 40% 45%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }
body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
main { overflow: clip; }
p, h1, h2, h3, figure, blockquote, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 4px; }
img { display: block; max-width: 100%; object-fit: contain; }
h1, h2, h3, .brand { font-family: var(--display); }
h1, h2 { font-weight: 700; letter-spacing: -.025em; line-height: 1.05; }
h1, .display { font-size: 2.25rem; line-height: 2.5rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.125rem; font-weight: 600; }

.container { width: min(100%, 80rem); margin-inline: auto; padding-inline: 1.5rem; }
.servc, .modlin.product-section, .modlin.product-detail, .pocketgm.section {
  background: linear-gradient(var(--background), var(--background-end));
}
.section { padding-block: 8rem; }
.intro { max-width: 48rem; margin: 0 auto 4rem; text-align: center; }
.intro.wide { max-width: 56rem; }
.intro > p:not(.eyebrow, .tagline) {
  margin: 1.5rem auto 0;
  color: var(--muted);
  line-height: 1.625;
}
.lead { color: var(--muted); font-size: 1.125rem; font-weight: 300; line-height: 1.625; }
.eyebrow { color: var(--muted); font-size: .875rem; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; }
.modlin .eyebrow, .pocketgm .eyebrow, .accent { color: var(--accent-deep); }
.intro > .eyebrow { margin-bottom: 1.5rem; }
.narrow { max-width: 64rem; margin-inline: auto; }
.glass {
  border: 1px solid rgb(255 255 255 / .6);
  border-radius: 1rem;
  background: rgb(255 255 255 / .9);
  box-shadow: 0 14px 24px -9px rgb(27 43 54 / .19);
  backdrop-filter: blur(24px);
}
.icon {
  width: 1em;
  height: 1em;
  flex: none;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-tile {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1.25rem;
  border-radius: .75rem;
  background: color-mix(in srgb, var(--accent-color) 15%, transparent);
  color: var(--accent-deep);
  font-size: 1.25rem;
}
.card { padding: 1.5rem; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .875rem; line-height: 1.625; }
.three-column, .feature-grid { display: grid; gap: 1.5rem; }

.site-nav {
  position: fixed;
  z-index: 2;
  inset: 0 0 auto;
  background: rgb(255 255 255 / .7);
  backdrop-filter: blur(24px);
  box-shadow: 0 1px 2px rgb(27 43 54 / .06);
}
.nav-inner { display: flex; justify-content: space-between; align-items: center; height: var(--nav-height); }
.brand { display: flex; align-items: center; gap: .5rem; font-size: 1.25rem; font-weight: 700; letter-spacing: -.025em; }
.nav-links { display: none; align-items: center; gap: 2rem; color: var(--muted); font-size: .875rem; font-weight: 500; }
.nav-links > a:not(.button):hover, .nav-links > a:not(.button):focus-visible { color: var(--ink); }
.nav-links .button { padding: .625rem 1.5rem; font-size: inherit; }
body:not(:has(:target)) .nav-links a[href="#hero"],
body:has(#hero:target) .nav-links a[href="#hero"],
body:has(#modlin:target) .nav-links a[href="#modlin"],
body:has(#pocketgm:target) .nav-links a[href="#pocketgm"],
body:has(#platform:target) .nav-links a[href="#platform"] { color: var(--ink); }
.actions { display: flex; flex-direction: column; gap: 1rem; margin-top: 2.25rem; }
.intro .actions { justify-content: center; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 1rem 2rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 500;
  line-height: 1.5;
  transition: background-color .3s, opacity .3s;
}
.button.primary { background: var(--ink); color: var(--background); }
.button.secondary { border-color: rgb(255 255 255 / .4); background: rgb(255 255 255 / .6); }
.button.secondary:hover { background: rgb(255 255 255 / .8); }
.button.product-button { background: var(--accent-deep); color: white; }
.button.primary:hover, .button.product-button:hover { opacity: .9; }

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 100vh;
  padding-block: 6rem 8rem;
  background: radial-gradient(ellipse 400px 250px at 50% 48%, hsl(200 100% 75% / .3), transparent 70%),
    linear-gradient(var(--background), var(--background-end));
}
.hero .intro { margin-bottom: 5rem; }
.hero .eyebrow { letter-spacing: .1em; line-height: 1.25rem; }
.product-logo { width: 5rem; height: 5rem; margin: 0 auto 2rem; }
.hero .intro > .lead { max-width: 42rem; margin-top: 2rem; }
.hero .actions, .contact .actions { margin-top: 3rem; }
.hero-previews { max-width: 48rem; margin: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.preview { padding: clamp(.75rem, 3vw, 1.5rem); background: rgb(255 255 255 / .7); animation: float 6s ease-in-out infinite; }
.preview:nth-child(2) { animation-delay: 1s; }
.preview:nth-child(3) { animation-delay: 2s; }
.preview-label, .preview-line { display: block; border-radius: 99px; }
.preview-label { width: 2rem; height: .5rem; margin-bottom: .75rem; background: var(--accent-color); }
.preview-line { height: .375rem; margin-bottom: .375rem; background: rgb(49 55 62 / .1); }
.preview-line:nth-child(3) { width: 75%; }
.preview-line:nth-child(4) { width: 50%; }
.preview-block, .preview-bars, .preview-grid { height: 4rem; margin-top: 1rem; }
.preview-block { border-radius: .5rem; background: color-mix(in srgb, var(--accent-color) 10%, transparent); }
.preview-bars { display: flex; align-items: end; gap: .25rem; }
.preview-bars span { height: var(--height); flex: 1; border-radius: .25rem .25rem 0 0; background: color-mix(in srgb, var(--accent-color) 30%, transparent); }
.preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .25rem; }
.preview-grid span { border-radius: .25rem; background: color-mix(in srgb, var(--accent-color) 20%, transparent); }
.scroll-hint { position: absolute; inset: auto 0 2rem; display: grid; justify-items: center; gap: .5rem; color: var(--muted); font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; }
.scroll-hint .icon { width: 1rem; height: 1rem; }
@keyframes float { 50% { transform: translateY(-.75rem); } }

.capability-list { display: flex; justify-content: center; flex-wrap: wrap; gap: 1.5rem; }
.capability-list .card { flex: 0 0 100%; padding: 2rem; }
.portfolio-card {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--secondary);
  transition: box-shadow .3s;
}
a.portfolio-card {
  border-color: color-mix(in srgb, var(--accent-color) 20%, transparent);
  background: var(--background);
}
a.portfolio-card:hover { box-shadow: 0 10px 18px -8px rgb(27 43 54 / .2); }
.portfolio-card h3 { margin-bottom: .5rem; font-size: 1.5rem; font-weight: 700; }
.portfolio-card p { margin-bottom: 1.5rem; color: var(--muted); font-size: .875rem; }
.portfolio-card span { color: var(--accent-deep); font-size: .875rem; font-weight: 500; }
.portfolio-card:not(a) h3 { color: var(--muted); }

.product-section { padding-top: 8rem; }
#modlin { padding-bottom: 8rem; }
.product-feature { display: grid; align-items: center; gap: 3.5rem; margin-bottom: 5rem; }
.product-feature header { max-width: 36rem; }
.product-feature .eyebrow { display: flex; align-items: center; gap: .75rem; margin-bottom: 2rem; }
.product-feature .lead { margin-top: 1.5rem; }
.dashboard-image img { width: 100%; border: 1px solid rgb(255 255 255 / .8); border-radius: 1rem; box-shadow: 0 24px 50px -12px rgb(22 63 45 / .3); }
.product-detail { padding-bottom: 8rem; }
.detail-group { margin-bottom: 8rem; }
.workflow { padding: 0; counter-reset: step; }
.workflow li { list-style: none; counter-increment: step; padding: 1.75rem; border: 1px solid hsl(155 55% 49% / .2); border-radius: 1rem; background: rgb(255 255 255 / .65); }
.workflow li::before { content: counter(step); display: block; margin-bottom: 2rem; color: var(--accent-deep); font: 700 2.25rem/1 var(--display); opacity: .7; }
.testimonial { display: flex; flex-direction: column; padding: 1.75rem; font-size: .875rem; line-height: 1.625; }
.testimonial > .icon { margin-bottom: 1.25rem; color: var(--accent-color); font-size: 1.5rem; }
.testimonial blockquote { flex: 1; }
.testimonial figcaption { display: flex; align-items: center; gap: .75rem; margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid hsl(155 55% 49% / .15); }
.testimonial figcaption > span { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; flex: none; border-radius: 50%; background: hsl(155 55% 49% / .15); color: var(--accent-deep); font-weight: 700; }
.testimonial small { display: block; color: var(--muted); }
.product-cta {
  padding: 3.5rem 2rem;
  border-radius: 2rem;
  background: radial-gradient(ellipse at top right, hsl(155 55% 49% / .4), transparent 40%), var(--accent-deep);
  color: white;
  text-align: center;
  box-shadow: 0 24px 50px -12px rgb(22 63 45 / .3);
}
.product-cta .eyebrow { margin-bottom: 1.25rem; color: rgb(255 255 255 / .8); }
.product-cta > p:not(.eyebrow) { max-width: 48rem; margin: 1.25rem auto 2.25rem; color: rgb(255 255 255 / .85); line-height: 1.625; }
.product-cta .button { background: white; color: var(--accent-deep); }
.product-cta .button:hover { background: var(--background); }

#pocketgm { padding-block: 13rem 8rem; background: linear-gradient(hsl(145 55% 90%), var(--background) 5rem, var(--background-end)); }
#pocketgm .intro > p:not(.eyebrow, .tagline) { max-width: 42rem; }
.tagline { margin-top: 1rem; color: var(--accent-deep); font: 500 1.25rem/1.4 var(--display); }
.dashboard, .product-cards, .training-preview { max-width: 56rem; margin-inline: auto; }
.dashboard { margin-bottom: 5rem; padding: clamp(1rem, 4vw, 2rem); }
.dashboard h3 { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.5rem; color: var(--muted); font: 500 .875rem Inter, sans-serif; }
.dashboard h3::before { content: ""; width: .75rem; height: .75rem; border-radius: 50%; background: var(--accent-color); }
.dashboard-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.5rem, 2vw, 1rem); margin-bottom: 1.5rem; }
.dashboard-metrics > div, .training-path { padding: clamp(.5rem, 2vw, 1rem); border-radius: .75rem; background: color-mix(in srgb, var(--background) 55%, white); }
.dashboard-metrics dt, .dashboard-metrics dd:last-child { font-size: .75rem; }
.dashboard-metrics dt { color: var(--muted); }
.dashboard-metrics dd { margin-top: .25rem; font: 700 1.25rem/1.4 var(--display); }
.dashboard-metrics dd:last-child { color: var(--accent-deep); }
.chessboard-frame { padding: 1.5rem; border-radius: .75rem; background: color-mix(in srgb, var(--background) 50%, white); }
.chessboard {
  width: min(100%, 20rem);
  aspect-ratio: 1;
  margin-inline: auto;
  border-radius: .25rem;
  background:
    repeating-linear-gradient(to right, transparent 0 calc(12.5% - 2px), var(--background) calc(12.5% - 2px) 12.5%),
    repeating-linear-gradient(to bottom, transparent 0 calc(12.5% - 2px), var(--background) calc(12.5% - 2px) 12.5%),
    conic-gradient(hsl(260 40% 68% / .25) 25%, hsl(260 40% 68% / .1) 0 50%, hsl(260 40% 68% / .25) 0 75%, hsl(260 40% 68% / .1) 0) 0 0 / 25% 25%;
}
.training-preview { position: relative; }
.training-dashboard { display: grid; gap: 2rem; padding: clamp(1.25rem, 6vw, 3rem); }
.training-dashboard h3 { margin-bottom: 1rem; }
.training-path + .training-path { margin-top: .75rem; }
.training-path label { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem; margin-bottom: .5rem; font-size: .875rem; font-weight: 500; }
.training-path small, .stat small { color: var(--accent-deep); }
.training-path progress { display: block; width: 100%; height: .375rem; appearance: none; border: 0; border-radius: 999px; background: var(--background); color: var(--accent-color); }
.training-path progress::-webkit-progress-bar { border-radius: inherit; background: var(--background); }
.training-path progress::-webkit-progress-value { border-radius: inherit; background: var(--accent-color); }
.training-path progress::-moz-progress-bar { border-radius: inherit; background: var(--accent-color); }
.decision-analysis { display: flex; flex-direction: column; }
.decision-tree { flex: 1; display: grid; align-content: center; gap: 1rem; margin: 0; padding: 1.5rem; border-radius: .75rem; background: color-mix(in srgb, var(--background) 50%, white); }
.decision-tree li { display: flex; align-items: center; gap: .75rem; color: var(--accent-deep); font-size: .75rem; }
.decision-tree span:first-child { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: hsl(260 40% 68% / .2); font-weight: 700; }
.decision-tree li::before { content: ""; order: 1; flex: 1; height: .5rem; border-radius: 999px; background: hsl(260 40% 68% / .3); }
.decision-tree span:last-child { order: 2; }
.decision-tree .branch { padding-left: 1.5rem; }
.decision-tree .branch span:first-child { width: 1.5rem; height: 1.5rem; }
.stat { position: absolute; display: none; padding: 1rem; animation: float 8s ease-in-out infinite; }
.stat strong { display: block; margin-top: .25rem; font: 700 1.125rem var(--display); }
.stat.accuracy { top: -1.5rem; right: -1rem; }
.stat.puzzles { bottom: -1.5rem; left: -1rem; animation-delay: 3s; }

.platform { padding-top: 13rem; background: linear-gradient(hsl(260 35% 93%), var(--background) 5rem, var(--background-end)); }
.architecture { max-width: 48rem; margin-inline: auto; padding: clamp(1.25rem, 6vw, 3rem); text-align: center; }
.hub { display: grid; place-items: center; width: 6rem; height: 6rem; margin: 0 auto .5rem; border: 2px solid hsl(197 100% 40% / .3); border-radius: 1rem; background: hsl(197 100% 40% / .1); color: var(--accent-deep); font: 700 1.125rem var(--display); }
.architecture > p { margin-bottom: 2rem; color: var(--muted); font-size: .75rem; }
.architecture-layers, .architecture-products { margin: 0; padding: 0; list-style: none; }
.architecture-layers::before, .architecture-layers::after { content: ""; display: block; width: 1px; height: 2rem; margin: auto; background: var(--border); }
.architecture-layers li, .architecture-products li { padding: 1rem .375rem; border: 1px solid var(--border); border-radius: .75rem; background: color-mix(in srgb, var(--secondary) 50%, white); font-size: .875rem; }
.architecture-layers li { font-weight: 500; }
.architecture-layers li + li { margin-top: .75rem; }
.architecture-products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.architecture-products li { color: var(--muted); font-family: var(--display); font-weight: 700; }
.architecture-products li.modlin, .architecture-products li.pocketgm { background: var(--background); color: var(--accent-deep); }

.contact { padding-bottom: 8rem; }
.contact .intro { margin-bottom: 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 1rem; padding-block: 2rem; border-top: 1px solid var(--border); color: var(--muted); font-size: .875rem; }
.footer-inner strong { color: var(--ink); font-family: var(--display); }
.not-found { display: grid; min-height: 100vh; place-content: center; gap: 1rem; background: var(--secondary); text-align: center; }
.not-found p { color: var(--muted); font-size: 1.25rem; }
.not-found a { color: var(--accent-deep); text-decoration: underline; }

@media (min-width: 40rem) {
  h1, .display { font-size: 3rem; line-height: 1; }
  h2 { font-size: 2.25rem; }
  .lead { font-size: 1.25rem; }
  .actions, .footer-inner { flex-direction: row; }
  .footer-inner { justify-content: space-between; }
  .product-logo { width: 6rem; height: 6rem; }
  .capability-list .card { flex-basis: calc((100% - 1.5rem) / 2); }
  .early-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 48rem) {
  .container { padding-inline: 3rem; }
  h1, .display { font-size: 3.75rem; }
  h2 { font-size: 3rem; }
  .lead, .intro > p.lead { font-size: 1.5rem; line-height: 2rem; }
  .intro > p:not(.eyebrow, .tagline, .lead), .product-cta > p:not(.eyebrow) { font-size: 1.125rem; }
  .nav-links { display: flex; }
  .three-column { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feature-grid, .training-dashboard { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-cta { padding: 5rem 4rem; }
}

@media (min-width: 64rem) {
  .container { padding-inline: 5rem; }
  h1, .display { font-size: 4.5rem; }
  .section, .contact { padding-block: 10rem; }
  .product-section { padding-top: 10rem; }
  #modlin, .product-detail { padding-bottom: 10rem; }
  #pocketgm { padding-block: 15rem 10rem; }
  .platform { padding-top: 15rem; }
  .product-feature { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .capability-list .card { flex-basis: calc((100% - 3rem) / 3); }
  .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .preview, .stat { animation: none; }
  .button, .portfolio-card { transition: none; }
}
