:root {
  --paper: #F5F3EF;
  --paper-soft: #ECE8E1;
  --ink: #3A3530;
  --muted: #6A6460;
  --quiet: #9A9690;
  --line: #D8D2C8;
  --white: #FFFDF9;
  --accent: #FF0642;
  --accent-deep: #C90032;
  --shadow: rgba(58, 53, 48, .12);
}

@font-face {
  font-family: "Loqer Handwriting Cyr";
  src: url("./fonts/HandWriting_1.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "Loqer Sprite Graffiti";
  src: url("./fonts/SpriteGraffiti-Regular.otf") format("opentype");
  font-display: swap;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Plus Jakarta Sans", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

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

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(130px, 1fr) auto minmax(130px, 1fr);
  align-items: center;
  gap: 24px;
  min-height: 78px;
  padding: 10px clamp(18px, 4vw, 54px);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  backdrop-filter: blur(18px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0;
  width: fit-content;
  color: var(--ink);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.brand-mark img {
  width: clamp(150px, 13vw, 220px);
  height: auto;
  border-radius: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 34px);
  color: var(--muted);
  font-size: 13px;
}

.site-nav a,
.secondary-action,
.site-footer a {
  transition: color .16s ease, border-color .16s ease;
}

.site-nav a:hover,
.secondary-action:hover,
.site-footer a:hover {
  color: var(--accent-deep);
}

.app-link,
.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: var(--accent);
  color: #FFFDF9;
  font-size: 13px;
  line-height: 1;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}

.app-link {
  justify-self: end;
}

.app-link:hover,
.primary-action:hover {
  transform: translateY(-1px);
  background: var(--accent-deep);
  border-color: var(--accent-deep);
}

.hero {
  overflow: hidden;
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-rows: auto auto auto auto;
  align-items: center;
  justify-items: center;
  padding: clamp(22px, 3vw, 42px) clamp(18px, 5vw, 70px) 36px;
  border-bottom: 1px solid var(--line);
}

.hero-meta {
  width: min(1120px, 100%);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--quiet);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .14em;
}

.hero-stage {
  position: relative;
  width: min(1320px, 98vw);
  min-height: clamp(880px, 68vw, 980px);
  display: grid;
  place-items: center;
  margin: clamp(12px, 2vw, 24px) auto 0;
  isolation: isolate;
}

.hero-greeting {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: clamp(4px, 1.2vw, 18px);
  width: min(1340px, 122vw);
  color: color-mix(in srgb, var(--ink) 92%, #fff);
  font-family: "Loqer Handwriting Cyr", "Loqer Sprite Graffiti", "Segoe Script", "Brush Script MT", cursive;
  opacity: .78;
  transform: translateX(-50%);
  text-align: center;
  text-transform: uppercase;
  pointer-events: none;
}

.hero-greeting span {
  display: block;
  max-width: min(1540px, 96vw);
  margin: 0 auto 1.6vw;
  color: var(--muted);
  font-size: clamp(62px, 7.6vw, 118px);
  font-style: normal;
  line-height: .9;
  text-transform: none;
  transform: rotate(-2deg);
}

.hero-greeting-top {
  white-space: nowrap;
  transform: translateY(0) rotate(-2deg) !important;
}

.hero-greeting strong {
  display: block;
  color: var(--accent);
  font-size: clamp(128px, 15vw, 230px);
  font-style: normal;
  line-height: .76;
  letter-spacing: 0;
  text-shadow: 0 28px 54px rgba(255, 6, 66, .1);
  margin-bottom: 0;
}

.hero-greeting strong span {
  max-width: none;
  margin: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.hero-greeting-start {
  transform: translateX(0) rotate(-2deg) !important;
}

.hero-greeting em {
  display: none;
}

.hero-greeting em span {
  max-width: none;
  margin: .7vw auto 0;
  font-size: inherit;
  line-height: inherit;
}

.hero-screens {
  position: relative;
  z-index: 1;
  width: min(760px, 61vw);
  aspect-ratio: 4 / 3;
  margin-top: clamp(196px, 15vw, 230px);
}

.hero-screen {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 100%;
  border: 1px solid color-mix(in srgb, var(--line) 78%, #fff);
  border-radius: 6px;
  background: var(--white);
  box-shadow: 0 26px 74px rgba(58, 53, 48, .18);
  object-fit: contain;
}

.hero-screen-back {
  opacity: .92;
  filter: saturate(.95);
  transform: translate(-84%, -45%) scale(.78) rotate(-6deg);
}

.hero-screen-mid {
  opacity: .92;
  filter: saturate(.95);
  transform: translate(-16%, -45%) scale(.78) rotate(6deg);
}

.hero-screen-front {
  transform: translate(-50%, -50%) rotate(1deg);
}

.hero-greeting-here {
  position: absolute;
  z-index: 2;
  left: 94%;
  top: clamp(535px, 43vw, 650px);
  color: var(--accent);
  font-family: "Loqer Handwriting Cyr", "Loqer Sprite Graffiti", "Segoe Script", "Brush Script MT", cursive;
  font-size: clamp(82px, 7vw, 122px);
  line-height: .76;
  opacity: .9;
  text-shadow: 0 24px 52px rgba(255, 6, 66, .12);
  transform: translateX(-50%) rotate(-4deg);
  white-space: nowrap;
  pointer-events: none;
}

.hero-greeting-bottom {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: clamp(735px, 55vw, 815px);
  width: min(1580px, 98vw);
  color: var(--muted);
  font-family: "Loqer Handwriting Cyr", "Loqer Sprite Graffiti", "Segoe Script", "Brush Script MT", cursive;
  font-size: clamp(56px, 6.2vw, 96px);
  line-height: .9;
  text-align: center;
  transform: translateX(-50%) rotate(-2deg);
  pointer-events: none;
}

.hero-greeting-bottom span {
  display: block;
  margin-top: .5vw;
  white-space: nowrap;
}

.hero-title-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.hero-copy {
  max-width: 960px;
  margin: clamp(44px, 4vw, 66px) auto 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.55;
  text-align: center;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.secondary-action {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  font-size: 13px;
}

.intro-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--paper-soft);
}

.intro-strip div {
  min-height: 118px;
  padding: 24px clamp(18px, 4vw, 48px);
  border-right: 1px solid var(--line);
}

.intro-strip div:last-child {
  border-right: 0;
}

.strip-value {
  display: block;
  color: var(--ink);
  font-size: clamp(28px, 5vw, 58px);
  line-height: 1;
}

.strip-label {
  display: block;
  max-width: 260px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.section {
  padding: clamp(68px, 10vw, 126px) clamp(18px, 5vw, 70px);
  border-bottom: 1px solid var(--line);
}

.section-kicker {
  margin-bottom: 16px;
  color: var(--accent-deep);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.section h2 {
  max-width: 860px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(34px, 6vw, 76px);
  line-height: .96;
  letter-spacing: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(36px, 6vw, 70px);
  background: var(--line);
  border: 1px solid var(--line);
}

.feature-card {
  min-height: 260px;
  padding: 24px;
  background: var(--paper);
}

.feature-index {
  color: var(--quiet);
  font-size: 12px;
}

.feature-card h3,
.workflow-list h3 {
  margin: 74px 0 12px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.05;
}

.feature-card p,
.workflow-list p,
.preview-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.workflow-section {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(320px, 1.1fr);
  gap: clamp(34px, 8vw, 100px);
  align-items: start;
  background: var(--ink);
  color: var(--white);
}

.workflow-section .section-kicker {
  color: #FF6E8D;
}

.workflow-section h2 {
  color: var(--white);
}

.workflow-list {
  display: grid;
  gap: 1px;
  background: color-mix(in srgb, var(--white) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--white) 16%, transparent);
}

.workflow-list article {
  padding: 28px;
  background: var(--ink);
}

.workflow-list h3 {
  margin: 0 0 12px;
  color: var(--white);
}

.workflow-list p {
  color: color-mix(in srgb, var(--white) 72%, transparent);
}

.product-section {
  background: var(--paper);
}

.product-head {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(280px, 520px);
  gap: clamp(26px, 6vw, 76px);
  align-items: end;
}

.product-head p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.55;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: clamp(38px, 6vw, 72px);
}

.product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 620px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #FFFDF9;
  box-shadow: 0 18px 54px rgba(58, 53, 48, .08);
}

.product-card-wide {
  grid-column: 1 / -1;
  min-height: 680px;
}

.product-text {
  display: grid;
  gap: 10px;
  padding: clamp(20px, 3vw, 34px);
  border-bottom: 1px solid var(--line);
}

.product-text span {
  color: var(--accent-deep);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.product-text h3 {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1;
}

.product-text p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.product-card img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: top center;
}

.product-card:not(.product-card-wide) img {
  min-height: 480px;
}

.preview-section {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(360px, 1.28fr);
  gap: clamp(30px, 6vw, 74px);
  align-items: start;
}

.preview-copy {
  position: sticky;
  top: 102px;
}

.preview-copy p {
  max-width: 420px;
  margin-top: 22px;
}

.preview-grid {
  display: grid;
  gap: 16px;
}

.preview-grid img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  box-shadow: 0 22px 70px var(--shadow);
}

.site-footer {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px clamp(18px, 4vw, 54px);
  color: var(--muted);
  font-size: 13px;
}

.site-footer span {
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: .12em;
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .intro-strip,
  .feature-grid,
  .product-head,
  .product-grid,
  .workflow-section,
  .preview-section {
    grid-template-columns: 1fr;
  }

  .intro-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .intro-strip div:last-child {
    border-bottom: 0;
  }

  .feature-card {
    min-height: 210px;
  }

  .feature-card h3 {
    margin-top: 48px;
  }

  .preview-copy {
    position: static;
  }

  .product-card,
  .product-card-wide {
    grid-column: auto;
    min-height: auto;
  }

  .product-card img,
  .product-card:not(.product-card-wide) img {
    min-height: 0;
    aspect-ratio: 16 / 11;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 64px;
    padding: 12px 14px;
  }

  .brand-mark img {
    width: 128px;
  }

  .app-link,
  .primary-action,
  .secondary-action {
    min-height: 40px;
    padding-inline: 14px;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-meta {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .hero-stage {
    width: 100%;
    min-height: 650px;
    margin-top: 14px;
  }

  .hero-greeting {
    width: 112vw;
    max-width: none;
    top: 8px;
    transform: translateX(-50%);
  }

  .hero-greeting span {
    font-size: clamp(30px, 9vw, 42px);
  }

  .hero-greeting-top {
    white-space: normal;
    transform: translateY(0) rotate(-2deg) !important;
  }

  .hero-greeting strong {
    font-size: clamp(58px, 17vw, 78px);
    margin-bottom: 0;
  }

  .hero-greeting-start {
    transform: translateX(0) rotate(-2deg) !important;
  }

  .hero-screens {
    width: min(370px, 94vw);
    aspect-ratio: 4 / 3;
    margin-top: 142px;
  }

  .hero-greeting-here {
    left: 70%;
    top: 272px;
    font-size: clamp(42px, 15vw, 66px);
  }

  .hero-greeting-bottom {
    top: 515px;
    width: 96vw;
    font-size: clamp(30px, 9vw, 40px);
  }

  .hero-greeting-bottom span {
    margin-top: 6px;
    white-space: normal;
  }

  .hero-copy {
    font-size: 15px;
  }

  .section {
    padding-block: 58px;
  }

  .section h2 {
    font-size: clamp(34px, 12vw, 54px);
  }

  .product-grid {
    gap: 14px;
  }

  .product-text h3 {
    font-size: 25px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
