:root {
  color-scheme: light;
  --paper: #fffaf3;
  --paper-strong: #f7efe3;
  --ink: #182238;
  --muted: #566071;
  --red: #f1493f;
  --red-dark: #d9362f;
  --sage: #73876a;
  --forest: #60765d;
  --orange: #f49a33;
  --line: rgba(24, 34, 56, 0.16);
  --shadow: 0 13px 30px rgba(24, 34, 56, 0.14);
  --sans: Inter, Avenir Next, Avenir, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Iowan Old Style, Baskerville, "Times New Roman", ui-serif, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.5; }
body::before {
  position: fixed; inset: 0; z-index: -1; content: ""; pointer-events: none; opacity: .34;
  background-image: linear-gradient(28deg, transparent 47%, rgba(241,73,63,.09) 48%, rgba(241,73,63,.09) 49%, transparent 50%), radial-gradient(circle, transparent 7px, rgba(24,34,56,.05) 7.5px, rgba(24,34,56,.05) 8.5px, transparent 9px);
  background-size: 150px 150px, 46px 46px;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 12px 16px; background: var(--ink); color: white; border-radius: 8px; }
.skip-link:focus { top: 16px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.site-header {
  position: sticky; top: 0; z-index: 30; min-height: 76px; padding: 12px clamp(24px, 5vw, 78px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px;
  background: rgba(255,250,243,.93); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px);
}
.brand { min-height: 44px; display: inline-flex; align-items: center; gap: 12px; width: max-content; text-decoration: none; font-weight: 850; letter-spacing: -.035em; font-size: 22px; }
.brand img { flex: 0 0 auto; }
.site-header nav { display: flex; align-items: center; gap: 38px; }
.site-header nav a, .footer-links a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 700; text-decoration: none; text-underline-offset: 5px; }
.site-header nav a:hover, .site-header nav a:focus-visible, .footer-links a:hover, .footer-links a:focus-visible { text-decoration: underline; }
.site-header > .button { justify-self: end; }

.button { min-height: 52px; padding: 0 25px; display: inline-flex; justify-content: center; align-items: center; border: 2px solid var(--red); border-radius: 10px; background: var(--red); color: white; text-decoration: none; font-weight: 800; box-shadow: 4px 4px 0 rgba(24,34,56,.12); transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover, .button:focus-visible { background: var(--red-dark); transform: translateY(-2px); box-shadow: 6px 7px 0 rgba(24,34,56,.12); }
.button:focus-visible, a:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.button-small { min-height: 44px; padding-inline: 20px; }
.text-link { display: inline-flex; min-height: 44px; align-items: center; gap: 8px; font-weight: 800; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.text-link.red { color: var(--red-dark); }

.hero { min-height: 650px; padding: clamp(58px, 8vw, 112px) clamp(24px, 7vw, 104px) 46px; display: grid; grid-template-columns: minmax(340px, .8fr) minmax(520px, 1.2fr); align-items: center; gap: clamp(34px, 5vw, 80px); overflow: hidden; }
.hero-copy { position: relative; z-index: 2; }
h1, h2 { font-family: var(--serif); letter-spacing: -.045em; }
h1 { margin: 0; font-size: clamp(64px, 7.2vw, 112px); line-height: .84; font-weight: 760; }
.hero-copy > p { max-width: 570px; margin: 30px 0 0; color: var(--ink); font-size: clamp(19px, 1.6vw, 25px); line-height: 1.38; }
.hero-actions { margin-top: 34px; display: flex; align-items: center; gap: 30px; }
.hero-devices { position: relative; min-height: 505px; align-self: end; }

.laptop { position: relative; }
.laptop-screen { overflow: hidden; border: 8px solid #171a1d; border-bottom-width: 12px; border-radius: 16px 16px 5px 5px; background: #fff; box-shadow: var(--shadow); }
.laptop-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.laptop-camera { position: absolute; left: 50%; top: 4px; z-index: 2; width: 5px; height: 5px; border-radius: 50%; background: #484b50; transform: translateX(-50%); }
.laptop-base { width: 108%; height: 14px; margin-left: -4%; border-radius: 2px 2px 50% 50%; background: linear-gradient(#d8d8d7, #8f9194); box-shadow: 0 8px 12px rgba(24,34,56,.18); }
.hero-laptop { position: absolute; inset: 4% 1% auto 0; }
.hero-laptop .laptop-screen { height: 410px; }
.phone { overflow: hidden; padding: 10px 7px; border: 6px solid #181a1e; border-radius: 32px; background: #181a1e; box-shadow: var(--shadow); }
.phone img { width: 100%; height: 100%; border-radius: 21px; object-fit: cover; object-position: top; }
.phone-speaker { position: absolute; z-index: 2; left: 50%; top: 7px; width: 38%; height: 10px; border-radius: 10px; background: #181a1e; transform: translateX(-50%); }
.hero-phone { position: absolute; z-index: 3; right: -1%; bottom: -4px; width: 190px; height: 390px; }

.gestures { margin: 0; padding: clamp(44px, 6vw, 80px) clamp(24px, 7vw, 104px); display: grid; grid-template-columns: minmax(340px, .75fr) minmax(560px, 1.25fr); gap: clamp(48px, 7vw, 110px); align-items: center; background: var(--forest); color: white; border-radius: 0 22px 22px 0; }
.gestures::before, .final-cta::before { position: absolute; content: ""; width: 170px; height: 170px; opacity: .16; background: radial-gradient(circle, transparent 7px, #fff 7.5px, #fff 8.5px, transparent 9px); background-size: 36px 36px; transform: rotate(24deg); }
.gestures { position: relative; overflow: hidden; }
.gestures::before { right: -28px; bottom: -34px; }
.tablet { position: relative; overflow: hidden; padding: 9px; border: 6px solid #202226; border-radius: 24px; background: #202226; box-shadow: var(--shadow); }
.tablet img { width: 100%; height: 100%; border-radius: 13px; object-fit: cover; object-position: top; }
.tablet-camera { position: absolute; z-index: 2; width: 5px; height: 5px; border-radius: 50%; background: #71757a; }
.tablet.landscape { aspect-ratio: 1.38; }
.tablet.landscape .tablet-camera { left: 3px; top: 50%; transform: translateY(-50%); }
.gesture-preview img { object-position: center 16%; }
.gestures h2, .interfaces h2, .final-cta h2 { margin: 0; font-size: clamp(40px, 4vw, 65px); line-height: 1.02; }
.gesture-list { margin-top: 36px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.gesture-list article { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: start; }
.gesture-list svg, .benefits svg { width: 48px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.gesture-list h3, .benefits h3 { margin: 0; font-family: var(--serif); font-size: 23px; line-height: 1.06; }
.gesture-list p, .benefits p { margin: 8px 0 0; opacity: .84; font-size: 15px; line-height: 1.45; }

.interfaces { padding: clamp(70px, 9vw, 130px) clamp(24px, 7vw, 104px) 80px; display: grid; grid-template-columns: minmax(300px, .55fr) minmax(620px, 1.45fr); gap: clamp(48px, 7vw, 120px); align-items: center; }
.interfaces-copy > p { max-width: 480px; margin: 24px 0 20px; color: var(--muted); font-size: 18px; }
.device-line { position: relative; min-height: 480px; }
.interface-laptop { position: absolute; left: 0; right: 24%; top: 5%; }
.interface-laptop .laptop-screen { height: 340px; }
.interface-tablet { position: absolute; right: 8%; top: 20%; width: 42%; height: 330px; }
.interface-phone { position: absolute; right: 0; bottom: 0; width: 120px; height: 255px; }

.benefits { margin: 0 clamp(24px, 5vw, 78px) 0; padding: 30px 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,250,243,.84); }
.benefits article { min-height: 100px; padding: 0 34px; display: grid; grid-template-columns: 50px 1fr; gap: 18px; align-items: center; border-left: 1px solid var(--line); }
.benefits article:first-of-type { padding-left: 0; border-left: 0; }
.benefits article:last-of-type { padding-right: 0; }
.benefits svg { color: var(--sage); }
.benefits svg.orange { color: var(--orange); }
.benefits h3 { color: var(--forest); font-size: 24px; }
.benefits p { color: var(--muted); opacity: 1; }

.final-cta { position: relative; margin-top: 48px; padding: 42px 24px; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 24px; background: var(--red); color: white; text-align: center; }
.final-cta::before { left: -35px; bottom: -62px; }
.final-cta::after { position: absolute; content: ""; right: -40px; top: -48px; width: 170px; height: 170px; opacity: .16; background: radial-gradient(circle, transparent 7px, #fff 7.5px, #fff 8.5px, transparent 9px); background-size: 36px 36px; transform: rotate(-20deg); }
.final-cta h2 { position: relative; z-index: 1; max-width: 920px; }
.button-light { position: relative; z-index: 1; min-width: min(360px, 90vw); background: var(--paper); border-color: var(--paper); color: var(--ink); }
.button-light:hover, .button-light:focus-visible { background: white; }

footer { padding: 26px clamp(24px, 5vw, 78px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 34px; border-top: 1px solid var(--line); }
footer .brand { font-size: 18px; }
.footer-links { display: flex; gap: 34px; }
footer > p { max-width: 380px; justify-self: end; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.4; }

@media (max-width: 1100px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .hero { grid-template-columns: minmax(300px,.8fr) minmax(420px,1.2fr); padding-inline: 34px; }
  .hero-laptop .laptop-screen { height: 340px; }
  .hero-devices { min-height: 430px; }
  .hero-phone { width: 155px; height: 320px; }
  .gestures { grid-template-columns: .75fr 1.25fr; padding-inline: 34px; }
  .gesture-list { grid-template-columns: 1fr; gap: 22px; }
  .interfaces { grid-template-columns: 1fr; padding-inline: 34px; }
  .interfaces-copy { max-width: 660px; }
  .benefits { grid-template-columns: 1fr; padding: 16px 30px; }
  .benefits article { padding: 24px 0; border-left: 0; border-top: 1px solid var(--line); }
  .benefits article:first-of-type { border-top: 0; }
}

@media (max-width: 760px) {
  .site-header { min-height: 62px; padding: 9px 14px; }
  .brand { gap: 8px; font-size: 18px; }
  .brand img { width: 34px; height: 34px; }
  .button-small { min-height: 44px; padding: 0 15px; }
  .desktop-label { display: none; }
  .hero { min-height: 0; padding: 46px 20px 0; display: flex; flex-direction: column; gap: 32px; text-align: center; }
  h1 { font-size: clamp(52px, 15vw, 62px); line-height: .9; }
  .hero-copy > p { margin-top: 22px; font-size: 18px; }
  .hero-actions { margin-top: 24px; display: grid; gap: 12px; }
  .hero-actions .button { width: 100%; }
  .text-link { justify-content: center; }
  .hero-devices { width: 100%; min-height: 600px; }
  .hero-laptop { display: none; }
  .hero-phone { left: 50%; right: auto; bottom: -5px; width: min(330px, 88vw); height: 630px; transform: translateX(-50%); border-radius: 46px; border-width: 7px; }
  .hero-phone img { border-radius: 33px; }
  .phone-speaker { top: 8px; height: 13px; }
  .gestures { padding: 50px 28px; display: block; border-radius: 0 18px 18px 0; }
  .gesture-preview { display: none; }
  .gestures h2 { font-size: 34px; }
  .interfaces h2, .final-cta h2 { font-size: clamp(38px, 10.5vw, 48px); }
  .gesture-list { margin-top: 34px; display: grid; grid-template-columns: 1fr; }
  .gesture-list article { grid-template-columns: 58px 1fr; text-align: left; }
  .gesture-list h3 { font-family: var(--sans); font-size: 19px; }
  .gesture-list p { font-size: 16px; }
  .interfaces { padding: 64px 20px 46px; display: block; text-align: center; }
  .interfaces-copy > p { font-size: 17px; }
  .device-line { min-height: 390px; margin-top: 34px; }
  .interface-laptop { left: 0; right: 6%; top: 0; }
  .interface-laptop .laptop-screen { height: 260px; }
  .interface-tablet { display: none; }
  .interface-phone { right: 2%; width: 104px; height: 218px; }
  .benefits { margin-inline: 16px; padding-inline: 20px; }
  .benefits article { grid-template-columns: 50px 1fr; text-align: left; }
  .benefits h3 { font-size: 20px; }
  .final-cta { margin-top: 34px; padding: 44px 20px; }
  footer { padding: 22px 18px; grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer-links { gap: 24px; }
  footer > p { justify-self: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
