:root {
  color-scheme: light;
  --ink: #101820;
  --ink-soft: #24313d;
  --paper: #fffdf8;
  --quiet: #f1f3ee;
  --line: rgba(16, 24, 32, 0.17);
  --muted: #58636e;
  --blue: #1378ff;
  --blue-dark: #0756bf;
  --yellow: #ffc83d;
  --shadow: 0 34px 90px rgba(8, 18, 30, 0.22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, figure { margin: 0; }
button, input, summary, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 70px;
  padding: 10px clamp(18px, 4vw, 64px);
  border-bottom: 1px solid rgba(255,255,255,.14);
  background: rgba(16,24,32,.94);
  color: #fff;
  backdrop-filter: blur(18px);
}
.brand, .nav-links, .nav-actions { display: flex; align-items: center; }
.brand { gap: 11px; font-size: .9rem; font-weight: 800; letter-spacing: -.01em; }
.brand img { width: 38px; height: 38px; border-radius: 9px; }
.nav-links { justify-content: center; gap: 30px; color: rgba(255,255,255,.68); font-size: .82rem; font-weight: 750; }
.nav-links a, .site-footer a { transition: color 180ms ease; }
.nav-links a:hover, .nav-links [aria-current], .site-footer a:hover { color: #fff; }
.nav-actions { justify-content: flex-end; gap: 10px; }

.language-switcher { position: relative; font-size: .82rem; font-weight: 750; }
.language-switcher summary { min-height: 44px; padding: 10px 14px; border: 1px solid rgba(255,255,255,.2); border-radius: 8px; color: #fff; cursor: pointer; list-style: none; }
.language-switcher summary::-webkit-details-marker { display: none; }
.language-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: repeat(2, minmax(145px, 1fr));
  width: min(390px, calc(100vw - 28px));
  max-height: min(72vh, 620px);
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
  color: var(--muted);
}
.language-menu a { padding: 9px 11px; border-radius: 6px; }
.language-menu a:hover, .language-menu [aria-current="true"] { background: var(--quiet); color: var(--ink); }
[dir="rtl"] .language-menu { right: auto; left: 0; }

.nav-download, .button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 850;
  line-height: 1.2;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}
.nav-download { min-height: 44px; background: #fff; color: var(--ink); }
.button.primary { background: var(--blue); color: #fff; }
.button.secondary { border-color: var(--ink); background: transparent; color: var(--ink); }
.button:hover, .nav-download:hover { transform: translateY(-2px); }
.button.primary:hover { background: var(--blue-dark); }

.btn-download { z-index: 1; overflow: visible; isolation: isolate; }
.download-qr-popover {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  z-index: 100;
  width: 228px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 25px 70px rgba(8,18,30,.25);
  color: var(--ink);
  opacity: 1;
  pointer-events: none;
  transform: translateY(8px);
  visibility: hidden;
  transition: transform 160ms ease, visibility 0s linear 160ms;
}
.download-qr-popover-top { top: auto; bottom: calc(100% + 14px); right: auto; left: 50%; transform: translate(-50%, -8px); }
.download-qr-code { display: block; padding: 8px; border: 1px solid #e1e4e7; border-radius: 8px; background: #fff; }
.download-qr-code img { width: 100%; height: auto; background: #fff; }
.download-qr-copy { display: grid; gap: 3px; margin-top: 10px; text-align: center; }
.download-qr-copy strong { font-size: .82rem; }
.download-qr-copy span { color: var(--muted); font-size: .75rem; line-height: 1.35; }
@media (hover:hover) and (pointer:fine) {
  .btn-download:hover { z-index: 90; }
  .btn-download:hover .download-qr-popover { visibility: visible; transform: translateY(0); transition-delay: 0s; }
  .btn-download:hover .download-qr-popover-top { transform: translate(-50%, 0); }
}
@media (hover:none) { .download-qr-popover { display: none !important; } }

.poster-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  min-height: calc(100svh - 70px);
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}
.poster-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, #000, transparent 72%);
}
.poster-copy { position: relative; z-index: 3; align-self: center; max-width: 780px; padding: 68px clamp(22px, 6vw, 92px) 62px; }
.hero-brand { display: flex; align-items: center; gap: 14px; margin-bottom: clamp(34px, 6vh, 72px); font-size: .9rem; letter-spacing: -.01em; }
.hero-brand img { width: 60px; height: 60px; border-radius: 14px; box-shadow: 0 16px 36px rgba(0,0,0,.28); }
.kicker { margin-bottom: 14px; color: var(--yellow); font-size: .74rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
h1 { max-width: 900px; font-size: clamp(3.4rem, 6.6vw, 7.2rem); line-height: .91; letter-spacing: -.065em; text-wrap: balance; }
h2 { font-size: clamp(2.3rem, 4.5vw, 5rem); line-height: .96; letter-spacing: -.052em; text-wrap: balance; }
h3 { font-size: 1.08rem; line-height: 1.25; }
.hero-text { max-width: 670px; margin-top: 25px; color: rgba(255,255,255,.82); font-size: clamp(1.05rem, 1.55vw, 1.34rem); line-height: 1.5; }
.hero-sub { max-width: 640px; margin-top: 12px; color: rgba(255,255,255,.57); }
.conversion-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; margin-top: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.text-link { display: inline-flex; gap: 9px; align-items: center; color: rgba(255,255,255,.76); font-size: .9rem; font-weight: 800; }
.text-link span { transition: transform 180ms ease; }
.text-link:hover { color: #fff; }
.text-link:hover span { transform: translateX(4px); }
.desktop-qr { display: grid; grid-template-columns: 92px minmax(110px, 150px); gap: 12px; align-items: center; padding: 10px; border-radius: 10px; background: #fff; color: var(--ink); box-shadow: 0 20px 55px rgba(0,0,0,.24); }
.desktop-qr-image { display: block; padding: 5px; border: 1px solid #e2e6e9; border-radius: 6px; background: #fff; }
.desktop-qr-image img { width: 100%; height: auto; background: #fff; }
.desktop-qr-copy { display: grid; gap: 4px; }
.desktop-qr-copy strong { font-size: .8rem; line-height: 1.15; }
.desktop-qr-copy small { color: var(--muted); font-size: .67rem; line-height: 1.25; }

.poster-media { position: relative; display: grid; place-items: end center; min-height: 720px; padding: 50px clamp(20px, 4vw, 70px) 0; background: var(--blue); }
.poster-index { position: absolute; top: 20px; right: 28px; color: rgba(255,255,255,.82); font-size: clamp(4rem, 10vw, 10rem); font-weight: 950; line-height: 1; letter-spacing: -.08em; }
[dir="rtl"] .poster-index { right: auto; left: 28px; }
.product-poster { position: relative; z-index: 2; width: min(100%, 440px); transform: translateY(var(--poster-shift, 0px)); filter: drop-shadow(0 35px 55px rgba(0,0,0,.35)); animation: posterEnter 850ms cubic-bezier(.2,.75,.25,1) both; }
.product-poster img { width: 100%; height: auto; }
.compact-hero, .landing-hero { min-height: 760px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; color: rgba(255,255,255,.57); font-size: .78rem; font-weight: 750; }
.breadcrumb a:hover { color: #fff; }

.proof-line { display: grid; grid-template-columns: 1.35fr repeat(4, minmax(120px, .65fr)); border-bottom: 1px solid var(--line); background: var(--paper); }
.proof-line > * { display: flex; align-items: center; min-height: 72px; padding: 14px 22px; border-right: 1px solid var(--line); }
[dir="rtl"] .proof-line > * { border-right: 0; border-left: 1px solid var(--line); }
.proof-line strong { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.proof-line span { color: var(--muted); font-size: .83rem; font-weight: 750; }

.section { padding: clamp(86px, 11vw, 150px) clamp(20px, 6vw, 92px); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .65fr); gap: 40px; align-items: end; max-width: 1260px; margin-bottom: 58px; }
.section-heading .kicker { grid-column: 1 / -1; margin-bottom: -20px; color: var(--blue-dark); }
.section-heading p:last-child { max-width: 610px; color: var(--muted); }

.type-section, .guides-index, .related-section { background: var(--paper); }
.type-directory { border-top: 1px solid var(--line); }
.type-row { display: grid; grid-template-columns: 58px minmax(0, 1fr) 44px; gap: 22px; align-items: center; min-height: 128px; padding: 23px 4px; border-bottom: 1px solid var(--line); transition: color 180ms ease, padding 180ms ease, background 180ms ease; }
.type-number { color: var(--blue); font-size: .76rem; font-weight: 900; }
.type-row-copy { display: grid; grid-template-columns: minmax(220px, .7fr) minmax(280px, 1fr); gap: 36px; align-items: center; }
.type-row-copy strong { font-size: clamp(1.2rem, 2vw, 1.8rem); line-height: 1.08; letter-spacing: -.035em; }
.type-row-copy small { color: var(--muted); font-size: .85rem; line-height: 1.45; }
.type-arrow { justify-self: end; font-size: 1.5rem; transition: transform 180ms ease; }
.type-row:hover { padding-inline: 16px; background: var(--quiet); color: var(--blue-dark); }
.type-row:hover .type-arrow { transform: translate(4px, -4px); }

.workflow-story { background: var(--quiet); }
.workflow-lines { border-top: 1px solid var(--line); }
.workflow-line { display: grid; grid-template-columns: minmax(70px, .25fr) minmax(0, 1fr); padding: 34px 0; border-bottom: 1px solid var(--line); }
.workflow-line > span { color: var(--blue); font-size: .78rem; font-weight: 900; }
.workflow-line > div { display: grid; grid-template-columns: minmax(190px, .42fr) minmax(280px, 1fr); gap: 42px; }
.workflow-line h3 { font-size: clamp(1.35rem, 2.4vw, 2.1rem); letter-spacing: -.035em; }
.workflow-line p { max-width: 650px; color: var(--muted); }

.screenshot-story { display: grid; grid-template-columns: minmax(280px, .42fr) minmax(0, 1fr); gap: 70px; align-items: start; padding: clamp(86px, 10vw, 150px) clamp(20px, 6vw, 92px); background: var(--ink); color: #fff; }
.story-copy { position: sticky; top: 118px; }
.story-copy h2 { max-width: 570px; }
.story-copy > p:last-child { max-width: 520px; margin-top: 24px; color: rgba(255,255,255,.62); }
.story-images { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.story-images figure { position: relative; }
.story-images figure:nth-child(2) { margin-top: 90px; }
.story-images figure:nth-child(3) { margin-top: 180px; }
.story-images span { display: block; margin-bottom: 9px; color: var(--yellow); font-size: .74rem; font-weight: 900; }
.story-images img { width: 100%; height: auto; box-shadow: 0 25px 60px rgba(0,0,0,.35); }

.capability-section { background: var(--paper); }
.capability-lines { border-top: 1px solid var(--line); }
.capability-line { display: grid; grid-template-columns: 60px minmax(180px, .48fr) minmax(280px, 1fr); gap: 24px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.capability-line > span { color: var(--blue); font-size: .75rem; font-weight: 900; }
.capability-line p { color: var(--muted); }

.resource-link-section { max-width: none; background: var(--yellow); }
.resource-link-section h2 { max-width: 980px; }
.resource-link-section > p:not(.kicker) { max-width: 700px; margin-top: 24px; color: rgba(16,24,32,.72); }
.resource-link-section .kicker { color: var(--ink); }
.resource-link-section .button { margin-top: 34px; }

.answer-section { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; padding: 0; background: var(--line); }
.answer-block { min-height: 440px; padding: clamp(56px, 7vw, 104px) clamp(24px, 6vw, 92px); background: var(--paper); }
.answer-block h2 { max-width: 740px; font-size: clamp(1.8rem, 3.4vw, 3.6rem); line-height: 1.06; }
.practical-section { display: grid; grid-template-columns: minmax(250px, .7fr) minmax(0, 1fr); gap: 70px; background: var(--quiet); }
.practical-section .section-heading { display: block; margin: 0; }
.practical-section .section-heading .kicker { margin-bottom: 14px; }
.practical-lines { border-top: 1px solid var(--line); }
.practical-lines p { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 25px 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.practical-lines span { color: var(--blue); font-size: .75rem; font-weight: 900; }

.faq-section { background: var(--paper); }
.faq-list { display: grid; max-width: 980px; border-top: 1px solid var(--line); }
.faq-list details { padding: 24px 0; border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; font-weight: 850; }
.faq-list p { max-width: 760px; margin-top: 12px; color: var(--muted); }

.final-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 50px; align-items: end; padding: clamp(80px, 10vw, 140px) clamp(20px, 6vw, 92px); background: var(--blue); color: #fff; }
.final-copy { max-width: 900px; }
.final-copy h2 { max-width: 880px; }
.final-copy > p:not(.kicker) { max-width: 650px; margin: 22px 0 30px; color: rgba(255,255,255,.74); }
.final-copy .button.primary { background: #fff; color: var(--ink); }
.final-qr .desktop-qr { grid-template-columns: 122px 160px; }

.site-footer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; padding: 48px clamp(20px, 6vw, 92px); background: var(--ink); color: rgba(255,255,255,.63); }
.footer-brand { display: inline-block; margin-bottom: 8px; color: #fff; font-weight: 900; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 20px; font-size: .8rem; font-weight: 750; }
.site-footer > p { grid-column: 1 / -1; font-size: .73rem; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 650ms ease, transform 650ms cubic-bezier(.2,.75,.25,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@keyframes posterEnter { from { opacity: 0; transform: translateY(70px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .product-poster { transform: none !important; }
}

@media (max-width: 1120px) {
  .poster-hero { grid-template-columns: 1fr .72fr; }
  .poster-copy { padding-inline: 44px; }
  h1 { font-size: clamp(3.25rem, 7vw, 5.5rem); }
  .conversion-row { grid-template-columns: 1fr; }
  .desktop-qr { width: fit-content; }
  .proof-line { grid-template-columns: repeat(2, 1fr); }
  .proof-line strong { grid-column: 1 / -1; }
  .screenshot-story { grid-template-columns: 1fr; }
  .story-copy { position: static; }
  .practical-section { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  body { font-size: 16px; }
  .site-header { grid-template-columns: 1fr auto; min-height: 64px; padding: 9px 14px; }
  .nav-links, .nav-download { display: none; }
  .brand span { max-width: 155px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .language-switcher summary { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .language-menu { grid-template-columns: 1fr; width: min(270px, calc(100vw - 28px)); }
  .poster-hero { grid-template-columns: 1fr; min-height: auto; }
  .poster-copy { padding: 48px 20px 50px; }
  .hero-brand { margin-bottom: 38px; }
  h1 { font-size: clamp(3rem, 14vw, 4.5rem); }
  h2 { font-size: clamp(2.25rem, 10vw, 3.5rem); }
  .hero-actions { align-items: stretch; }
  .hero-actions .button { width: 100%; }
  .text-link { min-height: 44px; justify-content: center; }
  .desktop-qr, .final-qr { display: none; }
  .poster-media { min-height: 560px; padding: 44px 34px 0; }
  .product-poster { width: min(100%, 360px); }
  .proof-line { grid-template-columns: 1fr 1fr; }
  .proof-line > * { min-height: 62px; padding: 12px 16px; }
  .section { padding: 80px 18px; }
  .section-heading { display: block; margin-bottom: 38px; }
  .section-heading .kicker { margin-bottom: 14px; }
  .section-heading p:last-child { margin-top: 18px; }
  .type-row { grid-template-columns: 36px 1fr 28px; gap: 10px; min-height: 108px; }
  .type-row-copy { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .type-row-copy small { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .type-row:hover { padding-inline: 4px; }
  .workflow-line { grid-template-columns: 42px 1fr; }
  .workflow-line > div { grid-template-columns: 1fr; gap: 8px; }
  .screenshot-story { padding: 80px 18px; }
  .story-images { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 16px; scroll-snap-type: x mandatory; }
  .story-images figure, .story-images figure:nth-child(2), .story-images figure:nth-child(3) { min-width: 72vw; margin-top: 0; scroll-snap-align: start; }
  .capability-line { grid-template-columns: 36px 1fr; }
  .capability-line p { grid-column: 2; }
  .answer-section { grid-template-columns: 1fr; }
  .answer-block { min-height: auto; padding: 68px 18px; }
  .final-cta { grid-template-columns: 1fr; padding: 80px 18px; }
  .site-footer { grid-template-columns: 1fr; padding: 40px 18px; }
  .site-footer nav { justify-content: flex-start; }
}

@media (max-width: 430px) {
  .brand span { max-width: 120px; }
  .language-switcher summary { max-width: 96px; }
  .poster-media { min-height: 500px; padding-inline: 24px; }
  .proof-line { grid-template-columns: 1fr; }
  .proof-line strong { grid-column: auto; }
  .proof-line > * { border-right: 0; border-bottom: 1px solid var(--line); }
}
