@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url('fonts/dm-sans-latin-wght-normal.woff2') format('woff2');
}

:root {
  --paper: #fcf8ef;
  --ink: #211642;
  --muted: #554b68;
  --purple: #5128ca;
  --purple-light: #e9e0ff;
  --navy: #221647;
  --line: #ded5e7;
  --gutter: clamp(1.15rem, 4vw, 3.5rem);
  --radius: 1.5rem;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 5rem; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 'DM Sans', system-ui, sans-serif; }
img { display: block; max-width: 100%; height: auto; }
figure, p, h1, h2, h3 { margin: 0; }
a { color: inherit; text-underline-offset: .2em; }
:focus-visible { outline: .19rem solid #2070dc; outline-offset: .25rem; }
.wrap { width: min(100%, 86rem); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.75rem, 8vw, 7.75rem); }
.skip { position: fixed; z-index: 3; inset: .5rem auto auto .5rem; padding: .6rem 1rem; background: #fff; transform: translateY(-200%); }
.skip:focus { transform: none; }
h1, h2 { letter-spacing: -.055em; line-height: 1.02; text-wrap: balance; font-weight: 800; }
h1 { font-size: clamp(2.8rem, 5.15vw, 5.2rem); }
h2 { font-size: clamp(2.2rem, 4.4vw, 4.25rem); }
h3 { font-size: clamp(1.23rem, 2vw, 1.6rem); line-height: 1.16; letter-spacing: -.035em; }

.top { position: sticky; top: 0; z-index: 2; background: var(--paper); box-shadow: 0 1px var(--line); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-size: 1.04rem; text-decoration: none; font-weight: 800; white-space: nowrap; }
.brand strong { font-weight: 500; }
.mark { display: grid; place-items: center; position: relative; width: 2rem; height: 2rem; flex: none; background: var(--purple); border-radius: .65rem; transform: rotate(-5deg); }
.mark i { position: absolute; width: .75rem; height: .15rem; border-radius: .15rem; background: #fff; transform: rotate(-45deg); }
.mark i:first-child { translate: -.13rem -.28rem; }
.mark i:last-child { translate: .13rem .28rem; }
.nav, .foot nav { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem clamp(1rem, 2.8vw, 2.6rem); }
.nav a, .foot nav a { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: .95rem; font-weight: 650; text-decoration: none; }
.nav a:hover, .foot nav a:hover { text-decoration: underline; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; min-height: 3.3rem; padding: .65rem 1.22rem; border: 1px solid transparent; border-radius: .85rem; font-weight: 750; text-decoration: none; text-align: center; }
.button-primary { background: var(--purple); color: #fff; box-shadow: 0 .45rem 1rem #5128ca27; }
.button-primary:hover { background: #3f1ba9; }
.button-outline { border-color: #bcb0cf; }
.button-outline:hover { background: var(--purple-light); }
.button-small { min-height: 2.75rem; padding: .45rem .85rem; font-size: .9rem; }

.hero { display: grid; grid-template-columns: .93fr 1.07fr; align-items: center; gap: clamp(2.35rem, 6vw, 6.75rem); min-height: 39rem; padding-block: clamp(3rem, 6vw, 6.5rem); }
.hero-copy, .hero-visual { min-width: 0; }
.product-name { display: inline-flex; align-items: center; gap: .55rem; background: #e8ddff; color: #46239c; border-radius: 2rem; padding: .35rem .9rem; font-size: .97rem; font-weight: 780; margin-bottom: 1.2rem; }
.product-name span { background: #612dda; border-radius: 50%; width: .52rem; height: .52rem; }
.hero h1 em { font-style: normal; color: var(--purple); }
.lead { max-width: 36rem; font-size: clamp(1.1rem, 1.65vw, 1.3rem); margin-top: 1.45rem; color: var(--muted); }
.actions { display: flex; gap: .6rem 1.35rem; flex-wrap: wrap; align-items: center; margin-top: 1.8rem; }
.text-link { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; font-weight: 750; color: #4520a8; }
.hero-support { max-width: 27rem; margin-top: 1.5rem; font-size: .91rem; color: var(--muted); }
.hero-visual { position: relative; padding: clamp(.55rem, 1.2vw, 1rem); border-radius: clamp(1.35rem, 3vw, 2.7rem); background: linear-gradient(145deg, #ffc079 3%, #ff9c9a 42%, #9e77f4 94%); box-shadow: 0 1.3rem 3rem #2f184328; }
.hero-visual img { width: 100%; height: clamp(24rem, 41vw, 34rem); object-fit: cover; object-position: center; border-radius: calc(clamp(1.35rem, 3vw, 2.7rem) - .5rem); }
.hero-visual figcaption { position: absolute; inset: auto auto 1.25rem 1.2rem; padding: .33rem .72rem; border-radius: .45rem; background: #251940; color: white; font-size: .75rem; }

.features-section { background: #fffdf8; }
.section-heading { display: grid; grid-template-columns: 1.25fr .75fr; align-items: end; gap: .75rem 2rem; margin-bottom: clamp(1.6rem, 4vw, 3rem); }
.section-heading p { max-width: 31rem; color: var(--muted); font-size: 1.1rem; }
.features { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(.9rem, 2vw, 1.5rem); }
.feature { grid-column: span 2; min-width: 0; background: var(--card); color: var(--card-ink, var(--ink)); padding: clamp(1.3rem, 3vw, 2.45rem); border-radius: var(--radius); }
.feature p { margin-top: .65rem; max-width: 34ch; }
.feature-pos, .feature-stock { grid-column: span 3; }
.feature-pos { --card: #622de0; --card-ink: white; --icon-bg: #eee1ff; --icon-ink: #4520a8; }
.feature-stock { --card: #baf2da; --icon-bg: #e9fff6; --icon-ink: #14574a; }
.feature-catalogue { --card: #ffda87; --icon-bg: #fff1ce; --icon-ink: #673311; }
.feature-sales { --card: #ffc6bb; --icon-bg: #ffebe7; --icon-ink: #8c3025; }
.feature-people { --card: #dce6ff; --icon-bg: #eff5ff; --icon-ink: #2e4491; }
.icon { display: inline-grid; place-items: center; width: 3rem; height: 3rem; border-radius: .85rem; background: var(--icon-bg, var(--purple-light)); color: var(--icon-ink, var(--purple)); margin-bottom: 1.25rem; }
.icon svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.showcase { background: var(--navy); color: white; }
.showcase .section-heading p { color: #ded2f8; }
.screens { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); align-items: start; gap: 1rem; }
.screen { background: #352655; border: 1px solid #574779; padding: .65rem; border-radius: 1rem; }
.screen-main { grid-row: span 2; align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.screen a { display: block; background: #f3eeff; border-radius: .65rem; }
.screen a:hover { box-shadow: 0 0 0 .18rem #c6a4ff; }
.screen img { width: 100%; border-radius: inherit; }
.screen figcaption { display: grid; gap: .22rem; padding: .7rem .5rem .35rem; }
.screen figcaption span { color: #ded2f8; font-size: .92rem; }
.showcase :focus-visible { outline-color: #ffce8e; }

.demo { display: grid; grid-template-columns: 1.32fr .68fr; align-items: center; gap: clamp(1.65rem, 4vw, 3.5rem); padding: clamp(1.35rem, 5vw, 4.25rem); border-radius: clamp(1.4rem, 3vw, 2.5rem); background: #eadfff; }
.demo > div, .contact { min-width: 0; }
.demo h2 { font-size: clamp(2rem, 4vw, 3.55rem); }
.demo p { margin-top: 1rem; max-width: 40rem; color: var(--muted); }
.demo .button { margin-top: 1.45rem; }
.demo .demo-note { margin-top: .65rem; font-size: .86rem; }
.contact { padding: clamp(1.2rem, 3vw, 2rem); border-radius: var(--radius); background: #fffdf9; scroll-margin-top: 2rem; }
.contact p { margin-block: .65rem .8rem; }
.contact a { overflow-wrap: anywhere; font-weight: 750; color: #4520a8; }

.foot { background: #f2e9dd; }
.foot-inner { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1.2rem; padding-block: 1.5rem; }
.foot p { color: var(--muted); font-size: .9rem; }
.foot nav { margin-inline-start: auto; }

@media (max-width: 56rem) {
  .hero, .section-heading, .demo { grid-template-columns: 1fr; }
  .hero { min-height: auto; gap: 2rem; }
  .hero h1 { max-width: 14ch; }
  .hero-visual img { height: clamp(16rem, 62vw, 32rem); }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature { grid-column: auto; }
  .feature:last-child { grid-column: 1 / -1; }
  .screens { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .screen-main { grid-column: 1 / -1; grid-row: auto; }
}

@media (max-width: 40rem) {
  html { scroll-padding-top: 7.3rem; }
  .top-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 .45rem; padding-block: .5rem 0; }
  .top .brand { font-size: .9rem; gap: .42rem; }
  .top .mark { width: 1.65rem; height: 1.65rem; }
  .nav { grid-column: 1 / -1; grid-row: 2; gap: 0; justify-content: space-between; }
  .nav a { font-size: .8rem; }
  .button-small { font-size: .78rem; padding-inline: .48rem; gap: .28rem; }
  .features, .screens { grid-template-columns: 1fr; }
  .foot nav { width: 100%; margin-inline-start: 0; }
}

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