@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap");

:root {
  --ink: #132338;
  --muted: #647083;
  --line: #dce6e8;
  --paper: #ffffff;
  --mist: #faf5f7;
  --brand: #94163d;
  --brand-dark: #6f0f2e;
  --brand-soft: #faeef2;
  --orange: #bb5700;
  --orange-soft: #fff0e3;
  --navy: #17395e;
  --shadow: 0 22px 60px rgba(27, 57, 72, 0.12);
  --radius: 22px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  line-height: 1.6;
}

body.menu-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }

.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.section { padding: 92px 0; }
.section--soft { background: var(--mist); }
.section--dark { color: white; background: var(--ink); }
.section--tight { padding: 64px 0; }

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand-dark);
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.eyebrow--light { color: #ffd6e3; }

h1, h2, h3 {
  margin: 0;
  font-family: "Bricolage Grotesque", sans-serif;
  line-height: 1.08;
  letter-spacing: -.035em;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.75rem); }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.65rem); }
h3 { font-size: 1.35rem; }

.lede {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.4vw, 1.22rem);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 42px;
}

.section-head > div:first-child { max-width: 790px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn--brand { color: white; background: var(--brand); }
.btn--brand:hover { background: var(--brand-dark); }
.btn--ghost { border-color: var(--line); background: white; }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-dark); }
.btn--light { color: var(--ink); background: white; }
.arrow { font-size: 1.1em; }

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid rgba(220,230,232,.85);
  background: rgba(255,255,255,.93);
  backdrop-filter: blur(16px);
}

.nav-shell {
  display: flex;
  align-items: center;
  min-height: 76px;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  margin-right: auto;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -.05em;
}

.brand span { margin-left: 6px; color: var(--brand); font-size: .68rem; letter-spacing: .02em; }
.nav-main { display: flex; align-items: stretch; gap: 5px; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-link, .nav-trigger {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  color: #465267;
  background: transparent;
  font-size: .91rem;
  font-weight: 600;
  cursor: pointer;
}

.nav-link:hover, .nav-trigger:hover, .nav-item:focus-within > .nav-trigger { color: var(--ink); background: var(--mist); }

.mega {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  width: 540px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}

.nav-item:hover .mega, .nav-item:focus-within .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

.mega a {
  display: block;
  padding: 13px;
  border-radius: 12px;
}

.mega a:hover { background: var(--mist); }
.mega strong { display: block; font-family: "Bricolage Grotesque", sans-serif; font-size: .98rem; }
.mega small { display: block; margin-top: 3px; color: var(--muted); line-height: 1.35; }
.mega .mega-feature { color: white; background: var(--ink); }
.mega .mega-feature:hover { background: var(--navy); }
.mega .mega-feature small { color: #cbd5df; }

.nav-cta { min-height: 44px; padding-inline: 19px; font-size: .9rem; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: white; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 86px;
  background:
    radial-gradient(circle at 78% 12%, rgb(148 22 61 / 13%), transparent 35%),
    radial-gradient(circle at 36% 86%, rgb(148 22 61 / 6%), transparent 28%),
    #fcf8fa;
}

.hero::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image: linear-gradient(rgba(19,35,56,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(19,35,56,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 92%);
}

.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.03fr .97fr; align-items: center; gap: 64px; }
.hero h1 { max-width: 820px; }
.hero h1 em { color: var(--brand); font-style: normal; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.proof-row { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 38px; color: #47566a; font-size: .88rem; font-weight: 600; }
.proof-row span::before { margin-right: 8px; color: var(--brand); content: "●"; font-size: .63em; }

.system-card {
  position: relative;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 28px;
  background: rgba(255,255,255,.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.system-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.system-core { padding: 24px; border-radius: 19px; color: white; background: linear-gradient(135deg, var(--brand-dark), var(--brand)); }
.system-core strong { display: block; margin-bottom: 8px; font-family: "Bricolage Grotesque", sans-serif; font-size: 1.45rem; line-height: 1.15; }
.system-core p { margin: 0; color: #ffe7ef; font-size: .93rem; }
.system-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 12px; }
.system-node { padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.system-node strong { display: block; margin-bottom: 4px; font-family: "Bricolage Grotesque", sans-serif; }
.system-node small { color: var(--muted); line-height: 1.35; }
.system-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.system-tags span, .tag { padding: 7px 10px; border-radius: 999px; color: #365267; background: #edf3f4; font-size: .74rem; font-weight: 700; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

a.card:hover { border-color: #dcb9c5; box-shadow: 0 16px 36px rgb(111 15 46 / 10%); transform: translateY(-4px); }
.card-icon { display: grid; width: 46px; height: 46px; margin-bottom: 28px; place-items: center; border-radius: 14px; color: var(--brand-dark); background: var(--brand-soft); font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; }
.card p { margin: 13px 0 0; color: var(--muted); }
.card .card-link { margin-top: auto; padding-top: 22px; color: var(--brand-dark); font-weight: 700; }
.card--accent { color: white; border-color: transparent; background: var(--ink); }
.card--accent p { color: #c8d2dd; }
.card--accent .card-link { color: #ffc5d7; }
.card--orange .card-icon { color: var(--orange); background: var(--orange-soft); }

.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 72px; }
.check-list { display: grid; gap: 13px; padding: 0; margin: 28px 0 0; list-style: none; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before { position: absolute; left: 0; color: var(--brand); content: "✓"; font-weight: 800; }

.screen-frame { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: var(--shadow); }
.screen-frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.screen-frame figcaption { padding: 18px 20px; color: var(--muted); font-size: .9rem; }
.screen-frame figcaption strong { display: block; margin-bottom: 4px; color: var(--ink); font-family: "Bricolage Grotesque", sans-serif; font-size: 1.05rem; }

.screen-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.screen-grid .screen-frame:first-child { grid-column: span 2; }

.band { padding: 38px; border-radius: 28px; color: white; background: linear-gradient(120deg, var(--brand-dark), var(--brand)); }
.band-grid { display: grid; grid-template-columns: 1.5fr 1fr; align-items: center; gap: 32px; }
.band p { margin: 14px 0 0; color: #ffe7ef; }
.band-actions { display: flex; justify-content: flex-end; gap: 10px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--line); }
.stat { padding: 30px; background: white; }
.stat strong { display: block; font-family: "Bricolage Grotesque", sans-serif; font-size: 2.25rem; line-height: 1; }
.stat span { display: block; margin-top: 8px; color: var(--muted); font-size: .86rem; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 30px; color: var(--muted); font-size: .82rem; }
.breadcrumb a:hover { color: var(--brand-dark); }
.page-hero { padding: 60px 0; background: radial-gradient(ellipse at 90% 5%, #f6e2ea 0, transparent 55%), #fcf8fa; }
.page-hero h1 { max-width: 900px; font-size: clamp(2.05rem, 4.3vw, 3.55rem); }
.page-hero .hero-grid h1 { font-size: clamp(2rem, 4.1vw, 3.5rem); line-height: 1.08; }
.page-hero__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 52px; align-items: end; }
.page-hero__aside { padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.8); }
.page-hero__aside strong { display: block; margin-bottom: 7px; font-family: "Bricolage Grotesque", sans-serif; }
.page-hero__aside p { margin: 0; color: var(--muted); }

.filter-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.filter-chip { padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; color: #526175; background: white; font-weight: 700; font-size: .82rem; cursor: pointer; }
.filter-chip.is-active, .filter-chip:hover { color: white; border-color: var(--brand); background: var(--brand); }
[data-filter-item][hidden] { display: none; }

.module-groups { display: grid; gap: 22px; }
.module-group { display: grid; grid-template-columns: 220px 1fr; gap: 30px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); }
.module-group__title span { display: block; margin-bottom: 9px; color: var(--brand); font-family: "Bricolage Grotesque", sans-serif; font-size: .78rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.module-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px 24px; margin: 0; padding: 0; list-style: none; }
.module-list li { position: relative; padding-left: 17px; color: #4d5a6d; font-size: .91rem; }
.module-list li::before { position: absolute; left: 0; color: var(--brand); content: "•"; }

.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: flow; }
.flow-step { position: relative; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: white; counter-increment: flow; }
.flow-step::before { display: block; margin-bottom: 30px; color: var(--brand); content: "0" counter(flow); font-family: "Bricolage Grotesque", sans-serif; font-size: .8rem; font-weight: 800; letter-spacing: .1em; }
.flow-step p { margin: 9px 0 0; color: var(--muted); font-size: .88rem; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: 22px 0; cursor: pointer; font-family: "Bricolage Grotesque", sans-serif; font-size: 1.08rem; font-weight: 700; }
.faq p { max-width: 840px; margin: -4px 0 22px; color: var(--muted); }

.site-footer { padding: 58px 0 26px; color: #d0d9e3; background: #101d2d; }
.footer-grid { display: grid; grid-template-columns: 1.25fr repeat(3, 1fr); gap: 42px; }
.site-footer .brand { color: white; }
.site-footer p { max-width: 310px; color: #9eabba; font-size: .9rem; }
.site-footer h3 { margin-bottom: 16px; color: white; font-size: .96rem; letter-spacing: 0; }
.site-footer ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; font-size: .86rem; }
.site-footer a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 44px; padding-top: 22px; border-top: 1px solid #273648; color: #8291a3; font-size: .78rem; }

@media (max-width: 980px) {
  .nav-main, .nav-cta { display: none; }
  .menu-toggle { display: grid; place-items: center; }
  .nav-main.is-open { position: fixed; inset: 76px 0 0; display: block; overflow-y: auto; padding: 20px; background: white; }
  .nav-main.is-open .nav-item { display: block; border-bottom: 1px solid var(--line); }
  .nav-main.is-open .nav-link, .nav-main.is-open .nav-trigger { width: 100%; min-height: 54px; justify-content: space-between; padding-inline: 5px; }
  .nav-main.is-open .mega { position: static; display: none; width: auto; padding: 0 0 18px; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .nav-main.is-open .nav-item.is-open .mega { display: grid; }
  .hero-grid, .page-hero__grid, .split, .band-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 42px; }
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .module-group { grid-template-columns: 1fr; }
  .module-list { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .band-actions { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .section { padding: 66px 0; }
  .hero { padding: 62px 0; }
  .hero h1 { font-size: clamp(2rem, 9vw, 2.65rem); }
  .section-head { display: block; }
  .section-head .btn { margin-top: 22px; }
  .cards, .cards--4, .flow, .stats, .screen-grid { grid-template-columns: 1fr; }
  .screen-grid .screen-frame:first-child { grid-column: auto; }
  .system-grid { grid-template-columns: 1fr; }
  .proof-row { display: grid; gap: 8px; }
  .module-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { display: block; }
  .page-hero { padding: 54px 0; }
  .band { padding: 28px; }
}

