:root {
  color-scheme: light;
  --ink: #121417;
  --ink-soft: #343941;
  --muted: #68717c;
  --paper: #fffefa;
  --surface: #f5f7f2;
  --surface-strong: #ecefe8;
  --line: rgba(18, 20, 23, 0.13);
  --accent: #0b765e;
  --accent-strong: #075341;
  --coral: #d85d42;
  --gold: #d59a22;
  --blue: #1266c3;
  --radius: 8px;
  --shadow: 0 28px 78px rgba(18, 20, 23, 0.16);
  --soft-shadow: 0 18px 48px rgba(18, 20, 23, 0.12);
  --spectrum: linear-gradient(90deg, #f05252, #f59f2f, #d7c72a, #21a86b, #0aa6b7, #3178d8, #7a56d9, #d5488f);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

p,
h1,
h2,
h3,
h4 {
  margin: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 72px;
  padding: 14px clamp(20px, 5vw, 68px);
  background: rgba(255, 254, 250, 0.88);
  border-bottom: 1px solid rgba(18, 20, 23, 0.08);
  backdrop-filter: blur(22px);
}

.brand,
.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-size: 15px;
  font-weight: 760;
  white-space: nowrap;
}

.brand img,
.hero-icon {
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(18, 20, 23, 0.16);
}

.nav-links {
  justify-content: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 680;
}

.nav-links a,
.site-footer a {
  transition: color 180ms ease;
}

.nav-links a:hover,
.nav-links [aria-current="page"],
.site-footer a:hover {
  color: var(--ink);
}

.nav-actions {
  gap: 12px;
}

.language-switcher {
  position: relative;
  font-size: 14px;
  font-weight: 680;
}

.language-switcher summary {
  min-height: 44px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  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: 70;
  min-width: 190px;
  max-height: min(520px, 70vh);
  overflow: auto;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.language-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--muted);
}

.language-menu a:hover,
.language-menu [aria-current="true"] {
  background: var(--surface);
  color: var(--ink);
}

.button,
.nav-download {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 760;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.button.primary,
.nav-download {
  background: var(--ink);
  color: #fff;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  color: var(--ink);
}

.button:hover,
.nav-download:hover {
  transform: translateY(-2px);
}

.button.primary:hover,
.nav-download:hover {
  background: var(--accent-strong);
}

.download-qr-popover {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 90;
  display: grid;
  gap: 10px;
  width: 220px;
  padding: 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  pointer-events: none;
  mix-blend-mode: normal;
}

.download-qr-popover-top {
  top: auto;
  bottom: calc(100% + 12px);
}

.btn-download:hover .download-qr-popover,
.btn-download:focus-visible .download-qr-popover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.download-qr-code {
  display: block;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.download-qr-copy {
  display: grid;
  gap: 2px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.download-qr-copy strong {
  color: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 1.12fr);
  gap: clamp(36px, 6vw, 76px);
  align-items: center;
  min-height: calc(100svh - 72px);
  padding: 72px clamp(20px, 6vw, 88px) 64px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 254, 250, 0.86), rgba(255, 254, 250, 1)),
    radial-gradient(circle at 78% 28%, rgba(213, 154, 34, 0.18), transparent 38%),
    radial-gradient(circle at 18% 82%, rgba(11, 118, 94, 0.14), transparent 34%),
    var(--paper);
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--spectrum);
}

.compact-hero {
  min-height: 520px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-icon {
  width: 88px;
  height: 88px;
  margin-bottom: 28px;
}

.kicker {
  margin-bottom: 14px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 820;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 780px;
  font-size: clamp(3rem, 6.2vw, 6.3rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(2.05rem, 4vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  font-size: 1.08rem;
  line-height: 1.25;
}

.hero-text,
.hero-sub,
.section-copy p,
.gallery-copy p,
.landing-intro,
.page-lede {
  color: var(--muted);
}

.hero-text {
  max-width: 650px;
  margin-top: 24px;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 1.6vw, 1.28rem);
  line-height: 1.5;
}

.hero-sub {
  max-width: 600px;
  margin-top: 12px;
}

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

.scan-card {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 16px;
  align-items: center;
  max-width: 440px;
  margin-top: 24px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 38px rgba(18, 20, 23, 0.08);
}

.scan-card img {
  width: 104px;
  height: 104px;
  padding: 8px;
  background: #fff;
  border-radius: var(--radius);
}

.scan-card strong {
  display: block;
  margin-bottom: 3px;
}

.scan-card span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

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

.device-stage {
  position: relative;
  height: min(76vw, 780px);
  min-height: 620px;
}

.color-wheel-mark {
  position: absolute;
  top: 4%;
  right: 10%;
  width: min(42vw, 460px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from 90deg, #f05252, #f59f2f, #d7c72a, #21a86b, #0aa6b7, #3178d8, #7a56d9, #d5488f, #f05252);
  box-shadow: inset 0 0 0 42px rgba(255, 254, 250, 0.92), inset 0 0 0 43px rgba(18, 20, 23, 0.1), 0 28px 80px rgba(18, 20, 23, 0.14);
}

.phone-frame {
  position: absolute;
  margin: 0;
  width: min(38vw, 340px);
  overflow: hidden;
  border: 10px solid #1b1d22;
  border-radius: 36px;
  background: #1b1d22;
  box-shadow: var(--shadow);
}

.phone-frame img {
  width: 100%;
  height: auto;
  border-radius: 24px;
}

.phone-frame.primary {
  right: 22%;
  top: 4%;
  z-index: 3;
}

.phone-frame.secondary {
  right: 0;
  top: 18%;
  z-index: 2;
  transform: rotate(5deg) scale(0.92);
}

.phone-frame.tertiary {
  right: 45%;
  top: 26%;
  z-index: 1;
  transform: rotate(-6deg) scale(0.86);
}

.proof-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 22px clamp(20px, 5vw, 68px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.proof-strip span {
  padding: 8px 12px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(18, 20, 23, 0.08);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 720;
}

.section,
.gallery-band,
.page-section {
  padding: clamp(72px, 10vw, 128px) clamp(20px, 6vw, 88px);
}

.section-copy,
.gallery-copy {
  max-width: 780px;
}

.section-copy p,
.gallery-copy p {
  max-width: 680px;
  margin-top: 18px;
  font-size: 1.08rem;
}

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

.feature-card,
.step,
.guide-card,
.faq-item {
  background: var(--paper);
}

.feature-card {
  min-height: 220px;
  padding: 28px;
}

.feature-card p,
.step p,
.guide-card p,
.faq-item p,
.problem-solution p,
.benefit-list li {
  color: var(--muted);
}

.feature-card p,
.step p,
.guide-card p {
  margin-top: 10px;
}

.workflow-section {
  background: var(--surface);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 44px;
  border: 1px solid var(--line);
  background: var(--line);
}

.step {
  padding: 30px;
}

.step span {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 820;
}

.gallery-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
  background: #15171b;
  color: #fff;
}

.gallery-band .kicker {
  color: #98e0c9;
}

.gallery-band p {
  color: rgba(255, 255, 255, 0.72);
}

.screenshot-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.screenshot-row img,
.landing-shot img {
  border-radius: 24px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}

.screenshot-row img:nth-child(2) {
  margin-top: 42px;
}

.screenshot-row img:nth-child(3) {
  margin-top: 84px;
}

.use-case-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.use-case-list span {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: #fff;
  font-size: 14px;
  font-weight: 700;
}

.guides-teaser,
.hub-list-section {
  background: var(--surface);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 42px;
  border: 1px solid var(--line);
  background: var(--line);
}

.guide-card {
  min-height: 230px;
  padding: 28px;
  transition: transform 180ms ease, background 180ms ease;
}

.guide-card:hover {
  transform: translateY(-4px);
  background: #fff;
}

.guide-card .guide-family {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.guide-card .guide-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 780;
}

.final-cta {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  background: var(--ink);
  color: #fff;
}

.final-cta p {
  max-width: 700px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.72);
}

.final-cta .button.primary {
  background: #fff;
  color: var(--ink);
}

.site-footer {
  display: grid;
  gap: 28px;
  padding: 36px clamp(20px, 6vw, 88px);
  color: var(--muted);
  background: var(--paper);
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.footer-top,
.footer-links,
.footer-locales {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.footer-top {
  justify-content: space-between;
}

.footer-links,
.footer-locales {
  gap: 12px 18px;
}

.footer-locales a[aria-current="true"] {
  color: var(--ink);
  font-weight: 760;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumbs a {
  color: var(--accent-strong);
}

.landing-hero {
  grid-template-columns: minmax(0, 0.96fr) minmax(300px, 0.8fr);
}

.landing-shot {
  justify-self: center;
  width: min(420px, 100%);
  margin: 0;
}

.landing-shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 600 / 1304;
  object-fit: contain;
}

.problem-solution {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.problem-solution article {
  padding: clamp(28px, 4vw, 46px);
  background: var(--paper);
}

.problem-solution p {
  margin-top: 14px;
}

.benefit-section {
  background: var(--surface);
}

.benefit-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 42px 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  background: var(--line);
}

.benefit-list li {
  min-height: 160px;
  padding: 26px;
  background: var(--paper);
}

.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 34px;
  max-width: 980px;
}

.faq-item {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.faq-item p {
  margin-top: 10px;
}

.related-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 34px;
  border: 1px solid var(--line);
  background: var(--line);
}

.hub-intro {
  max-width: 760px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 1.15rem;
}

.hub-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.hub-card-grid .guide-card {
  min-height: 260px;
}

[dir="rtl"] .language-menu,
[dir="rtl"] .download-qr-popover {
  right: auto;
  left: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 600ms ease, transform 600ms ease;
  }

  .js .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .phone-frame.primary {
    animation: floatPrimary 7s ease-in-out infinite;
  }

  .phone-frame.secondary {
    animation: floatSecondary 8s ease-in-out infinite;
  }

  @keyframes floatPrimary {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
  }

  @keyframes floatSecondary {
    0%, 100% { transform: rotate(5deg) scale(0.92) translateY(0); }
    50% { transform: rotate(5deg) scale(0.92) translateY(12px); }
  }
}

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

  .nav-links {
    display: none;
  }

  .hero,
  .landing-hero,
  .gallery-band {
    grid-template-columns: 1fr;
  }

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

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .site-header {
    gap: 14px;
    padding: 12px 16px;
  }

  .brand span {
    max-width: 148px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .language-switcher {
    display: none;
  }

  .nav-download {
    padding: 0 14px;
  }

  .hero,
  .section,
  .gallery-band,
  .page-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero {
    padding-top: 48px;
  }

  h1 {
    font-size: clamp(2.74rem, 15vw, 4rem);
  }

  .hero-actions,
  .landing-actions {
    display: grid;
  }

  .button,
  .nav-download {
    width: 100%;
  }

  .scan-card {
    grid-template-columns: 86px 1fr;
  }

  .scan-card img {
    width: 86px;
    height: 86px;
  }

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

  .device-stage {
    height: 500px;
    min-height: 500px;
  }

  .color-wheel-mark {
    right: 4%;
    width: 280px;
    box-shadow: inset 0 0 0 28px rgba(255, 254, 250, 0.92), inset 0 0 0 29px rgba(18, 20, 23, 0.1), 0 22px 54px rgba(18, 20, 23, 0.14);
  }

  .phone-frame {
    width: min(64vw, 228px);
    border-width: 7px;
    border-radius: 28px;
  }

  .phone-frame img {
    border-radius: 18px;
  }

  .phone-frame.primary {
    right: 24%;
  }

  .phone-frame.secondary {
    right: 0;
  }

  .phone-frame.tertiary {
    right: 52%;
  }

  .feature-grid,
  .steps,
  .guide-grid,
  .benefit-list,
  .related-row,
  .hub-card-grid,
  .problem-solution {
    grid-template-columns: 1fr;
  }

  .gallery-band {
    overflow: hidden;
  }

  .screenshot-row {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
  }

  .screenshot-row img {
    min-width: 210px;
    scroll-snap-align: start;
  }

  .screenshot-row img:nth-child(2),
  .screenshot-row img:nth-child(3) {
    margin-top: 0;
  }

  .final-cta {
    grid-template-columns: 1fr;
  }
}
