@font-face {
  font-family: Manrope;
  src: url("fonts/manrope-variable.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f8faff;
  --ink: #162b50;
  --muted: #43536d;
  --blue: #2049dd;
  --blue-dark: #1636ac;
  --ice: #dbe8ff;
  --line: #d9ddea;
  --deep-blue: #173477;
  --mist: #eaf4ff;
  --shadow: 0 9px 16px #263d7619, 0 19px 37px #192f6c1c;
  font-family: Manrope, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue-dark); outline-offset: 4px; }
p { line-height: 1.55; }
h1, h2, h3 { margin: 0; font-weight: 800; overflow-wrap: anywhere; }
h1 { font-size: clamp(54px, 8.2vw, 113px); line-height: .91; letter-spacing: -.083em; }
h2 { font-size: clamp(35px, 5vw, 72px); line-height: .98; letter-spacing: -.068em; }
h3 { font-size: clamp(21px, 2.1vw, 28px); line-height: 1.12; letter-spacing: -.04em; }

.shell { width: min(1200px, calc(100% - 88px)); margin-inline: auto; }
.header, .footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.header { min-height: 82px; border-bottom: 1px solid var(--line); }
.footer { min-height: 92px; border-top: 1px solid var(--line); }
.footer > span { color: var(--muted); font-weight: 700; }

.wordmark {
  position: relative;
  display: block;
  flex: none;
  width: clamp(132px, 17vw, 205px);
  aspect-ratio: 1197 / 317;
  overflow: hidden;
}
.wordmark img {
  position: absolute;
  top: -26.8%;
  left: -2.34%;
  width: 106.94%;
  height: auto;
  mix-blend-mode: multiply;
}

nav, .actions, .dialog-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.header nav { gap: clamp(12px, 2vw, 26px); }
.header nav a { font-weight: 750; }
.header nav a:hover, .examples-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.button, .nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  box-shadow: 0 4px 12px #18387318;
  font-weight: 800;
  text-align: center;
}
.primary { background: var(--blue); border-color: var(--blue); color: white; }
.primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.secondary:hover, .nav-button:hover { background: var(--ice); }
.eyebrow {
  margin: 0 0 14px;
  font-size: .875rem;
  line-height: 1.3;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 76px);
  padding-block: clamp(48px, 7vw, 94px);
}
.hero .eyebrow, .charms .eyebrow { color: var(--blue-dark); }
.hero h1 span {
  position: relative;
  display: inline-block;
  color: var(--blue);
}
.hero h1 span::after {
  position: absolute;
  inset: auto 2% -.09em 1%;
  height: .07em;
  content: "";
  background: var(--blue);
  transform: rotate(-2deg);
}
.intro { max-width: 42ch; margin: 27px 0 21px; font-size: 1.125rem; }
.hero-visual, .charms-gallery figure {
  margin: 0;
  background: white;
  box-shadow: var(--shadow);
}
.hero-visual { box-shadow: 7px 8px 0 #2049dd26, var(--shadow); }
.hero-visual img, .charms-gallery img {
  display: block;
  width: 100%;
  height: auto;
}
.hero-visual figcaption, .charms-gallery figcaption {
  padding: 12px 15px;
  font-weight: 750;
}

.chapter-nav {
  gap: 9px 18px;
  padding-block: 14px;
  border-block: 1px solid var(--line);
}
.chapter-nav a { padding: 5px 7px; font-size: .94rem; font-weight: 800; }
.chapter-nav a:hover, .chapter-nav a:focus-visible { background: var(--ice); }

.use-cases, .questions { padding-block: clamp(46px, 7vw, 90px); }
.with-glance { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand-glance {
  flex: 0 0 clamp(72px, 13vw, 155px);
  aspect-ratio: 223 / 145;
  background: url("brand/blizko-logo.png") 94% 53.8% / 574% auto no-repeat;
  mix-blend-mode: multiply;
  transform: rotate(-9deg);
}
.use-case-grid, .catalog {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.use-case-grid { margin-top: 27px; }
.use-case-grid article {
  padding: clamp(16px, 2.7vw, 30px);
  background: white;
  box-shadow: var(--shadow);
}
.use-case-grid article:nth-child(2) { background: var(--ice); }
.use-case-grid article:nth-child(3) { background: var(--mist); }
.use-case-grid p, .product-copy p, .questions-list p { margin: 8px 0 0; }

.demo, .how-inner, .questions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 6vw, 92px);
}
.demo {
  padding-block: clamp(46px, 7vw, 90px);
  border-top: 1px solid var(--line);
}
.demo > div > p, .how-inner > div > p { max-width: 44ch; }
.contact-demo {
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 295px;
  padding: 25px;
  background: linear-gradient(145deg, var(--ice), #f4f9ff 85%);
  box-shadow: 7px 8px 0 #2049dd23, var(--shadow);
  text-align: center;
}
.contact-demo p { margin: 7px 0; overflow-wrap: anywhere; max-width: 100%; }
.contact-demo h3 { max-width: 100%; }
.contact-demo .button { margin-top: 10px; }
.avatar {
  display: grid;
  place-items: center;
  width: 59px;
  height: 59px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  font-weight: 800;
  font-size: 1.25rem;
}

.formats {
  padding-block: clamp(47px, 8vw, 100px);
  background: radial-gradient(ellipse at 82% 15%, #275ac7 1%, transparent 56%), linear-gradient(125deg, #203eb7, #162f77 78%);
  color: white;
}
.formats :focus-visible { outline-color: white; }
.formats h2 { max-width: 14ch; }
.section-head { margin-bottom: 27px; }
.catalog article {
  overflow: hidden;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 10px 20px #10254d38, 0 26px 54px #132f6c40;
}
.product-view {
  position: relative;
  display: grid;
  place-items: center;
  height: clamp(168px, 20vw, 236px);
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(170deg, #dce9ff, #edf3ff 58%, white);
}
.product-view::after {
  position: absolute;
  z-index: -1;
  inset: 9% 8% 8%;
  content: "";
  background:
    radial-gradient(ellipse 36% 40% at 23% 60%, #fff 54%, transparent 96%),
    radial-gradient(ellipse 33% 48% at 49% 44%, #fff 55%, transparent 99%),
    radial-gradient(ellipse 36% 41% at 73% 57%, #fff 55%, transparent 99%);
  filter: blur(3px);
}
.view-stand { background: linear-gradient(170deg, #d4e7fb, #edf6ff 60%, white); }
.view-key { background: linear-gradient(170deg, #dbe9ff, #eaf3ff 58%, white); }
.product-card, .stand, .key {
  position: relative;
  border: 1px solid #93b3f2;
  background: linear-gradient(145deg, #c7deff, #77a9ff);
  color: var(--ink);
  box-shadow: 9px 13px 18px #162b5050;
}
.product-card {
  display: flex;
  justify-content: space-between;
  align-items: start;
  width: 62%;
  max-width: 218px;
  aspect-ratio: 1.61;
  padding: 6%;
  border-radius: 8%;
  transform: rotate(-14deg);
}
.view-card::before {
  content: "";
  position: absolute;
  width: 51%;
  max-width: 186px;
  aspect-ratio: 1.61;
  border-radius: 8%;
  background: var(--blue);
  transform: translate(21%, 25%) rotate(11deg);
}
.stand {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  width: 44%;
  max-width: 150px;
  height: 74%;
  border-radius: 8px;
  transform: rotate(-7deg);
}
.stand small { font-size: .52rem; letter-spacing: .06em; }
.key {
  display: grid;
  place-items: center;
  width: 82px;
  height: 101px;
  margin-top: 34px;
  border-radius: 48%;
  transform: rotate(24deg);
}
.key-ring {
  position: absolute;
  top: -27px;
  width: 38px;
  height: 38px;
  border: 5px solid #6f89b7;
  border-radius: 50%;
}
.signal { position: relative; display: block; width: 25px; height: 25px; }
.signal::before, .signal::after {
  content: "";
  position: absolute;
  inset: 1px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
}
.signal::after { inset: 7px 5px 0; }
.product-logo {
  position: relative;
  display: block;
  width: 74%;
  aspect-ratio: 1197 / 317;
  overflow: hidden;
}
.product-logo img {
  position: absolute;
  width: 106.94%;
  height: auto;
  top: -26.8%;
  left: -2.34%;
  mix-blend-mode: multiply;
}
.product-card .product-logo { align-self: center; }
.stand .product-logo { width: 78%; }
.key .product-logo { width: 71%; align-self: end; }
.key .signal { align-self: start; }
.product-copy { padding: 12px 18px 21px; }
.examples-link, .text-button { text-decoration: underline; text-underline-offset: 4px; font-weight: 800; }
.examples-link { display: inline-block; margin-top: 10px; color: var(--blue-dark); }

.charms {
  padding-block: clamp(48px, 8vw, 98px);
  background: linear-gradient(120deg, var(--ice), var(--mist));
}
.charms-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: end;
  gap: 16px 45px;
  margin-bottom: 28px;
}
.charms-head > p { max-width: 45ch; margin: 0; }
.charms-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.charms-gallery figcaption { display: grid; gap: 5px; }
.charms-gallery figcaption strong { font-size: 1.125rem; }
.charms-gallery figcaption span { color: var(--muted); font-weight: 600; }

.how { padding-block: clamp(47px, 8vw, 94px); background: var(--deep-blue); color: white; }
.how ol { margin: 0; padding-left: 24px; }
.how li { padding: 11px 0 11px 6px; border-bottom: 1px solid #8799be; }
.how li::marker { font-weight: 800; color: #a9c4ff; }
.how li p { margin: 4px 0 0; color: #e2ebff; }
.questions { align-items: start; }
.questions-list details { padding: 14px 0; border-bottom: 1px solid var(--line); }
.questions-list details:first-child { border-top: 1px solid var(--line); }
summary { padding-block: 3px; font-weight: 800; }
summary::marker { color: var(--blue-dark); }

dialog {
  width: min(670px, calc(100% - 24px));
  max-height: 90dvh;
  padding: 23px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 6px 7px 0 #2049dd33, var(--shadow);
}
dialog::backdrop { background: #162b50b8; }
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.dialog-head h2 { font-size: 35px; }
.dialog-note { color: var(--muted); }
.close {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  font-size: 1.4rem;
}
.edit-form { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin-block: 12px; }
.edit-form .button, .dialog-actions { grid-column: 1/-1; justify-self: start; }
label { display: grid; gap: 5px; font-size: .9rem; font-weight: 750; }
input, select {
  width: 100%;
  min-width: 0;
  min-height: 43px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: white;
  color: var(--ink);
}
.form-status { margin: 0; font-size: .9rem; color: var(--blue-dark); }
.form-status:empty { display: none; }
hr { margin: 18px 0; border: 0; border-top: 1px solid var(--line); }
.link-box {
  display: grid;
  justify-items: start;
  gap: 3px;
  padding: 11px;
  margin-block: 14px;
  border: 1px solid var(--ink);
  background: var(--ice);
  overflow-wrap: anywhere;
}
.text-button { border: 0; background: none; padding: 5px 0; color: var(--blue-dark); }

@media (max-width: 900px) {
  .shell { width: calc(100% - 48px); }
  .hero { gap: 22px; }
  h1 { font-size: clamp(49px, 8vw, 72px); }
}
@media (max-width: 680px) {
  .shell { width: calc(100% - 34px); }
  .header { min-height: 67px; }
  .header nav a { display: none; }
  .nav-button { padding-inline: 10px; }
  .hero, .use-case-grid, .demo, .catalog, .charms-head, .charms-gallery, .how-inner, .questions {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero { gap: 26px; padding-block: 35px 34px; }
  h1 { font-size: clamp(46px, 12vw, 75px); }
  .hero-visual, .contact-demo { box-shadow: 5px 6px 0 #2049dd22, var(--shadow); }
  .chapter-nav { gap: 3px 7px; }
  .chapter-nav a { padding: 5px 2px; }
  .with-glance { gap: 8px; }
  .product-view { height: 205px; }
  .footer { min-height: 76px; }
}
@media (max-width: 380px) {
  .actions .button { width: 100%; }
  .edit-form { grid-template-columns: minmax(0, 1fr); }
  .footer > span { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
