:root {
  color-scheme: light;
  --ink: #171615;
  --ink-soft: #2c2924;
  --muted: #766f64;
  --cream: #f7f2ea;
  --paper: #fffaf2;
  --line: rgba(23, 22, 21, 0.14);
  --gold: #7d6106;
  --olive: #453814;
  --amber: #c96f3b;
  --shadow: 0 28px 90px rgba(23, 22, 21, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 78% 12%, rgba(201, 111, 59, 0.15), transparent 34rem),
    radial-gradient(circle at 10% 40%, rgba(69, 56, 20, 0.12), transparent 28rem),
    var(--cream);
  color: var(--ink);
}

a {
  color: inherit;
}

.nav,
main,
footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.nav {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 850;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand img,
.cta img {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  box-shadow: 0 10px 30px rgba(23, 22, 21, 0.16);
}

.nav nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav nav a {
  padding: 10px 13px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 720;
  text-decoration: none;
}

.nav nav a:hover,
.nav-cta {
  background: rgba(23, 22, 21, 0.07);
  color: var(--ink) !important;
}

.hero {
  position: relative;
  min-height: calc(100vh - 86px);
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(420px, 1.06fr);
  gap: 46px;
  align-items: center;
  padding: 40px 0 84px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
.section-heading h2,
.cta h2,
.document h1 {
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.075em;
}

h1 {
  max-width: 720px;
  font-size: clamp(58px, 8.6vw, 118px);
  line-height: 0.86;
}

.lead {
  max-width: 610px;
  margin: 28px 0 0;
  color: #3d3832;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.42;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: 15px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 850;
  text-decoration: none;
}

.button.ghost {
  background: transparent;
  color: var(--ink);
}

.hero-visual {
  position: relative;
  min-height: 720px;
  display: grid;
  place-items: center;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 6% 7% 7% 14%;
  border-radius: 42px;
  background: linear-gradient(140deg, var(--olive), #19150a);
  filter: blur(0.2px);
  transform: rotate(3deg);
  box-shadow: var(--shadow);
}

.hero-visual::after {
  content: "";
  position: absolute;
  width: 68%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 250, 242, 0.28);
  border-radius: 50%;
  transform: translate(11%, -4%);
}

.hero-visual img {
  position: absolute;
  display: block;
  height: auto;
  user-select: none;
}

.phone-main {
  width: min(72%, 440px);
  position: relative !important;
  z-index: 2;
  border-radius: 38px;
  box-shadow: var(--shadow);
  transform: rotate(-4deg);
  transition: transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-visual:hover .phone-main {
  transform: rotate(-1deg) translateY(-8px);
}

.hero-stamp {
  position: absolute;
  z-index: 3;
  right: 3%;
  bottom: 11%;
  padding: 12px 16px;
  border: 1px solid rgba(255, 250, 242, 0.4);
  border-radius: 999px;
  background: rgba(23, 22, 21, 0.82);
  color: var(--paper);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--line);
  box-shadow: 0 20px 70px rgba(23, 22, 21, 0.08);
}

.strip span {
  padding: 20px 18px;
  background: rgba(255, 250, 242, 0.78);
  color: var(--ink-soft);
  font-weight: 820;
  text-align: center;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 96px 0;
}

.features article,
.screen-card,
.cta,
.document {
  border: 1px solid var(--line);
  background: rgba(255, 250, 242, 0.76);
  box-shadow: 0 24px 70px rgba(23, 22, 21, 0.08);
}

.features article {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  border-radius: 30px;
}

.number {
  color: var(--amber);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.14em;
}

.features h2 {
  max-width: 310px;
  margin: 50px 0 10px;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.features p,
.screen-card figcaption,
.cta p,
.document p,
.document li {
  color: #504a42;
  line-height: 1.6;
}

.screens {
  padding: 16px 0 104px;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 30px;
  align-items: end;
  margin-bottom: 28px;
}

.section-heading h2,
.cta h2 {
  font-size: clamp(42px, 6vw, 84px);
  line-height: 0.92;
}

.screen-window {
  position: relative;
  margin-inline: calc((100vw - min(1180px, calc(100vw - 40px))) / -2);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 24px 0 80px;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
}

.screen-window::-webkit-scrollbar {
  display: none;
}

.screen-card {
  position: relative;
  scroll-snap-align: center;
  margin: 0;
  padding: 12px;
  border-radius: 30px;
  transform: rotate(-1.2deg);
  transform-origin: center bottom;
  transition:
    transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 420ms ease,
    border-color 420ms ease;
}

.screen-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(275px, 28vw, 365px);
  gap: clamp(18px, 2.4vw, 34px);
  width: max-content;
  min-width: 100%;
  padding: 26px max(24px, calc((100vw - 1180px) / 2));
}

.screen-card:nth-child(even) {
  transform: translateY(46px) rotate(1.2deg);
}

.screen-card:hover,
.screen-card:focus-within {
  z-index: 3;
  border-color: rgba(201, 111, 59, 0.48);
  box-shadow: 0 38px 90px rgba(23, 22, 21, 0.18);
  transform: translateY(-10px) rotate(0deg) scale(1.018);
}

.screen-card:nth-child(even):hover,
.screen-card:nth-child(even):focus-within {
  transform: translateY(24px) rotate(0deg) scale(1.018);
}

.screen-media {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: var(--paper);
}

.screen-card img {
  width: 100%;
  display: block;
  transition: transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 420ms ease;
}

.screen-card:hover img {
  filter: saturate(1.06) contrast(1.025);
  transform: scale(1.025);
}

.screen-index {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 250, 242, 0.38);
  border-radius: 50%;
  background: rgba(23, 22, 21, 0.82);
  color: var(--paper);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  backdrop-filter: blur(10px);
}

.screen-card figcaption {
  display: grid;
  gap: 4px;
  min-height: 80px;
  padding: 16px 8px 5px;
}

.screen-card figcaption strong {
  color: var(--ink);
  font-size: 18px;
  letter-spacing: -0.025em;
}

.screen-card figcaption span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.gallery-hint {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: -44px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gallery-hint span {
  color: var(--amber);
  font-size: 22px;
}

.cta {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 18px;
  padding: clamp(36px, 6vw, 70px);
  border-radius: 38px;
  margin-bottom: 72px;
}

.cta p {
  max-width: 620px;
  margin: 0;
  font-size: 18px;
}

.cta a {
  font-weight: 850;
}

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  align-items: center;
  justify-content: center;
  padding: 0 0 46px;
  color: var(--muted);
  font-size: 14px;
}

footer a {
  text-decoration: none;
}

.document {
  width: min(820px, calc(100% - 40px));
  margin: 44px auto;
  padding: clamp(28px, 5vw, 56px);
  border-radius: 32px;
}

.document h1 {
  font-size: clamp(40px, 7vw, 72px);
  line-height: 0.92;
}

.document h2 {
  margin-top: 34px;
  font-size: 20px;
}

.muted {
  color: var(--muted);
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}

.contact a {
  font-size: 22px;
  font-weight: 900;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 34px;
  }

  .hero-visual {
    min-height: 620px;
  }

  .strip,
  .features {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-heading {
    grid-template-columns: 1fr;
  }

  .screen-card,
  .screen-card:nth-child(even) {
    transform: none;
  }
}

@media (max-width: 680px) {
  .nav {
    width: min(100% - 28px, 1180px);
  }

  .nav nav a:not(.nav-cta) {
    display: none;
  }

  .hero-visual {
    min-height: 560px;
  }

  .phone-main {
    width: min(78%, 390px);
  }

  .strip,
  .features {
    grid-template-columns: 1fr;
  }

  .strip span {
    grid-column: auto;
  }

  .features {
    padding: 64px 0;
  }

  .features article {
    min-height: 220px;
  }

  .screen-window {
    margin-inline: -20px;
    padding-bottom: 44px;
  }

  .screen-rail {
    grid-auto-columns: min(82vw, 340px);
    padding-inline: 28px;
  }

  .gallery-hint {
    margin-top: -8px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .screen-card {
      animation: gallery-reveal both linear;
      animation-timeline: view(inline);
      animation-range: entry 10% cover 36%;
    }
  }
}

@keyframes gallery-reveal {
  from {
    opacity: 0.35;
    filter: blur(5px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}
