:root {
  color-scheme: light;
  --primary: #2563eb;
  --primary-strong: #1d4ed8;
  --primary-soft: rgba(37, 99, 235, 0.12);
  --secondary: #f8fafc;
  --secondary-strong: #e2e8f0;
  --accent-rgb: 240, 197, 64;
  --primary-rgb: 37, 99, 235;
  --bg: #f3efe7;
  --bg-strong: #e9e1d1;
  --surface: rgba(255, 255, 255, 0.74);
  --surface-strong: #fffdf7;
  --surface-dark: #111418;
  --text: #101317;
  --muted: #55606d;
  --line: rgba(16, 19, 23, 0.12);
  --line-strong: rgba(16, 19, 23, 0.18);
  --accent: #f0c540;
  --accent-strong: #0d6efd;
  --accent-soft: rgba(240, 197, 64, 0.18);
  --success: #0f9f63;
  --shadow: 0 28px 80px rgba(22, 28, 36, 0.12);
  --shadow-soft: 0 12px 36px rgba(22, 28, 36, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --page-width: 1200px;
  --header-height: 84px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --primary: #6ca4ff;
  --primary-strong: #8db7ff;
  --primary-soft: rgba(108, 164, 255, 0.16);
  --secondary: #171c25;
  --secondary-strong: #263140;
  --primary-rgb: 108, 164, 255;
  --bg: #0d1116;
  --bg-strong: #131922;
  --surface: rgba(17, 22, 28, 0.78);
  --surface-strong: #171c25;
  --surface-dark: #0b0f14;
  --text: #f3f6fb;
  --muted: #9aa7b8;
  --line: rgba(243, 246, 251, 0.1);
  --line-strong: rgba(243, 246, 251, 0.16);
  --accent: #f6ca4f;
  --accent-strong: #6ca4ff;
  --accent-soft: rgba(246, 202, 79, 0.15);
  --success: #42c58b;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 12px 36px rgba(0, 0, 0, 0.28);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 20%, rgba(var(--primary-rgb), 0.08), transparent 24%),
    radial-gradient(circle at 80% 10%, rgba(var(--accent-rgb), 0.16), transparent 26%),
    linear-gradient(180deg, var(--bg), var(--bg-strong));
  color: var(--text);
  font-family: "Manrope", sans-serif;
  line-height: 1.6;
  -webkit-tap-highlight-color: transparent;
}

@media (display-mode: standalone) {
  body {
    min-height: 100svh;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }
}

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

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
  opacity: 0.55;
}

.site-header,
.section,
.site-footer,
.demo-main,
.dashboard-main {
  width: min(calc(100% - 2rem), var(--page-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-height);
  padding: 1rem 0;
  backdrop-filter: blur(18px);
}

.compact-header {
  width: min(calc(100% - 2rem), 1100px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--accent), #fff0b4);
  color: #111;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}

.brand-copy {
  display: grid;
  gap: 0.1rem;
}

.brand-copy strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  letter-spacing: -0.03em;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.84rem;
}

.site-nav {
  display: none;
  gap: 1.2rem;
  color: var(--muted);
}

.site-nav a:hover,
.inline-link:hover,
.site-footer a:hover {
  color: var(--accent-strong);
}

.header-actions,
.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.mobile-menu-toggle,
.utility-action {
  display: none;
}

.mobile-nav-shell {
  width: min(calc(100% - 2rem), 1100px);
  margin-inline: auto;
  margin-top: -0.25rem;
}

.mobile-nav {
  display: grid;
  gap: 0.65rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

.mobile-nav a {
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.25);
}

html[data-theme="dark"] .mobile-nav a {
  background: rgba(255, 255, 255, 0.03);
}

.mobile-nav a.is-current {
  color: var(--accent-strong);
  border-color: var(--accent-strong);
  font-weight: 800;
}

.is-hidden {
  display: none !important;
}

.pwa-notice {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  max-width: min(420px, calc(100vw - 2rem));
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
  color: var(--text);
  box-shadow: var(--shadow);
}

.pwa-notice span {
  color: var(--muted);
  font-size: 0.9rem;
}

.offline-shell {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding-block: 2rem;
}

.offline-card {
  max-width: 720px;
}

.offline-brand {
  align-self: start;
}

.button,
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover,
.theme-toggle:hover,
.tab-button:hover,
.action-button:hover {
  transform: translateY(-1px);
}

.button-solid {
  border-color: transparent;
  background: linear-gradient(180deg, var(--primary), var(--primary-strong));
  color: #fff;
  box-shadow: 0 18px 36px rgba(var(--primary-rgb), 0.22);
}

html[data-theme="dark"] .button-solid {
  color: #0b0f14;
}

.button-ghost,
.theme-toggle {
  background: var(--surface);
  color: var(--text);
  backdrop-filter: blur(16px);
}

.button-ghost:hover,
.theme-toggle:hover {
  border-color: rgba(var(--primary-rgb), 0.22);
  color: var(--primary-strong);
}

.button-small {
  min-height: 42px;
  padding-inline: 1rem;
}

.hero {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  min-height: calc(100svh - var(--header-height));
  padding: 2rem 0 4rem;
}

.motion-ready .hero-copy,
.motion-ready .hero-visual,
.motion-ready .section-heading,
.motion-ready .flow-step,
.motion-ready .feature-band,
.motion-ready .role-panel,
.motion-ready .security-item,
.motion-ready .analytics-layout,
.motion-ready .cta-panel,
.motion-ready .scan-shell,
.motion-ready .dashboard-hero,
.motion-ready .workspace-panel {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}

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

.motion-ready .is-visible {
  opacity: 1;
  transform: translateY(0);
}

.eyebrow,
.feature-label,
.profile-label,
.device-kicker {
  margin: 0 0 0.6rem;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

h1 {
  font-size: clamp(3rem, 9vw, 6.3rem);
  max-width: 12ch;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

h3 {
  font-size: clamp(1.2rem, 2.8vw, 1.7rem);
}

p {
  margin: 0;
}

.hero-text,
.section-heading p:last-child,
.feature-band p,
.cta-panel p,
.dashboard-hero p:last-child,
.scan-intro p:last-child {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.04rem;
}

.hero-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.4rem;
}

.hero-strip span,
.scan-badge,
.scan-note {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(16px);
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

html[data-theme="dark"] .hero-strip span,
html[data-theme="dark"] .scan-badge,
html[data-theme="dark"] .scan-note {
  background: rgba(17, 22, 28, 0.7);
}

.hero-visual {
  position: relative;
  display: grid;
  gap: 1.2rem;
}

.hero-signal {
  position: absolute;
  top: 0;
  right: 0;
  width: min(40vw, 220px);
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

html[data-theme="dark"] .hero-signal {
  background: rgba(17, 22, 28, 0.65);
}

.signal-label {
  margin-bottom: 0.7rem;
  font-size: 0.84rem;
  font-weight: 700;
}

.qr-graphic rect {
  fill: var(--text);
}

.qr-graphic .qr-cut {
  fill: var(--bg);
}

.device-preview {
  padding-top: 5rem;
}

.device-shell {
  width: min(100%, 440px);
  margin-left: auto;
  padding: 0.75rem;
  border-radius: 40px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.22));
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: var(--shadow);
}

html[data-theme="dark"] .device-shell {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
}

.device-notch {
  width: 34%;
  height: 24px;
  margin: 0 auto 0.75rem;
  border-radius: 0 0 18px 18px;
  background: var(--surface-dark);
}

.device-screen {
  display: grid;
  gap: 1rem;
  min-height: 560px;
  padding: 1.25rem;
  border-radius: 30px;
  background:
    radial-gradient(circle at top left, rgba(13, 110, 253, 0.16), transparent 28%),
    linear-gradient(180deg, var(--surface-strong), rgba(255, 255, 255, 0.8));
}

html[data-theme="dark"] .device-screen {
  background:
    radial-gradient(circle at top left, rgba(108, 164, 255, 0.2), transparent 28%),
    linear-gradient(180deg, rgba(23, 28, 37, 0.96), rgba(14, 18, 25, 0.96));
}

.device-topbar,
.device-actions,
.footnote-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.9rem;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 10px rgba(15, 159, 99, 0.16);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(15, 159, 99, 0.18);
  }

  60% {
    box-shadow: 0 0 0 14px rgba(15, 159, 99, 0);
  }
}

.device-owner {
  display: grid;
  gap: 0.45rem;
}

.device-owner p:not(.device-kicker),
.device-message,
.role-panel p,
.security-item p,
.workspace-sidebar p,
.chart-copy p,
.approval-stream p,
.workspace-table span,
.table-row span:last-child,
.message-panel p,
.location-panel h3,
.scan-intro p {
  color: var(--muted);
}

.device-actions span,
.verification-box,
.action-button,
.workspace-stats article,
.workspace-table,
.approval-stream article,
.chart-shell,
.location-panel,
.message-panel,
.scan-card,
.cta-panel,
.feature-band,
.flow-step,
.security-item,
.role-panel,
.workspace-panel,
.dashboard-hero {
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

.device-actions span {
  padding: 0.75rem 0.9rem;
  border-radius: 999px;
}

.device-message {
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 16px;
}

.hero-caption {
  margin-top: 1rem;
  margin-left: auto;
  max-width: 28ch;
  color: var(--muted);
  text-align: right;
}

.section {
  padding: 2rem 0 5rem;
}

.section-heading {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.flow-grid {
  display: grid;
  gap: 1rem;
}

.flow-step,
.security-item {
  display: grid;
  gap: 1rem;
  padding: 1.35rem;
  border-radius: var(--radius-md);
}

.step-number,
.metric-number {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.step-number {
  color: var(--accent-strong);
}

.feature-band,
.role-panel,
.workspace-panel,
.cta-panel,
.analytics-layout {
  border-radius: var(--radius-lg);
}

.feature-band {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.tab-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.4rem;
}

.tab-button {
  min-height: 48px;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.tab-button.is-active {
  border-color: transparent;
  background: var(--text);
  color: #fff;
}

html[data-theme="dark"] .tab-button.is-active {
  color: #0b0f14;
}

.role-panels,
.security-grid {
  display: grid;
  gap: 1rem;
}

.role-panels {
  grid-template-columns: 1fr;
}

.role-panel {
  display: none;
  gap: 1rem;
  padding: 1.5rem;
}

.role-panel.is-active,
.workspace-panel.is-active {
  display: grid;
}

.plain-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.plain-list li + li {
  margin-top: 0.45rem;
}

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

.analytics-layout {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
}

.metric-column {
  display: grid;
  gap: 0.4rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.metric-column:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.cta-section {
  padding-bottom: 6rem;
}

.cta-panel {
  display: grid;
  gap: 1.5rem;
  padding: 1.75rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 0 2rem;
  color: var(--muted);
}

.demo-main,
.dashboard-main {
  padding: 2rem 0 4rem;
}

.scan-shell,
.dashboard-hero {
  display: grid;
  gap: 1.5rem;
}

.scan-device {
  max-width: 820px;
}

.scan-card {
  display: grid;
  gap: 1.25rem;
  padding: 1.25rem;
  border-radius: var(--radius-xl);
}

.scan-card-header,
.scan-profile {
  display: grid;
  gap: 1rem;
}

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

.scan-profile-wide {
  grid-column: 1 / -1;
}

.verification-box {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 1rem;
  border-radius: var(--radius-md);
}

.verification-box input {
  margin-top: 0.25rem;
}

.action-grid {
  display: grid;
  gap: 0.85rem;
}

.action-button {
  display: grid;
  gap: 0.2rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  text-align: left;
  color: var(--text);
  transition: opacity 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.action-title {
  font-weight: 800;
}

.action-subtitle {
  color: var(--muted);
  font-size: 0.94rem;
}

.action-button.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

.location-panel,
.message-panel {
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
  border-radius: var(--radius-md);
}

.location-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.message-preview {
  white-space: pre-line;
}

.inline-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.45rem 0.2rem;
  width: fit-content;
  color: var(--accent-strong);
}

[id] {
  scroll-margin-top: calc(var(--header-height) + 20px);
}

.workspace-panel {
  display: none;
  gap: 1rem;
  padding: 1rem;
}

.workspace-sidebar,
.workspace-canvas {
  display: grid;
  gap: 1rem;
}

.workspace-sidebar {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, var(--accent-soft), transparent);
  border: 1px solid var(--line);
}

.workspace-stats {
  display: grid;
  gap: 0.85rem;
}

.workspace-stats article {
  display: grid;
  gap: 0.2rem;
  padding: 1rem;
  border-radius: var(--radius-md);
}

.workspace-stats strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
}

.workspace-table,
.approval-stream,
.chart-shell {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.workspace-table {
  display: grid;
}

.table-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1rem;
  padding: 1rem;
  border-top: 1px solid var(--line);
}

.table-row:first-child {
  border-top: 0;
}

.table-head {
  font-weight: 800;
  color: var(--text);
}

.approval-stream article {
  padding: 1rem;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  box-shadow: none;
}

.approval-stream article + article {
  border-top: 1px solid var(--line);
}

.approval-stream strong,
.chart-copy h3,
.location-panel h3 {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--text);
}

.chart-shell {
  display: grid;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.8rem;
  min-height: 220px;
  padding: 1.5rem;
  background:
    linear-gradient(180deg, rgba(13, 110, 253, 0.08), transparent),
    linear-gradient(180deg, transparent, rgba(240, 197, 64, 0.08));
}

.chart-bars span {
  flex: 1;
  height: var(--value);
  border-radius: 999px 999px 12px 12px;
  background: linear-gradient(180deg, var(--accent-strong), var(--accent));
}

.chart-copy {
  padding: 1.5rem;
  border-top: 1px solid var(--line);
}

code {
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: rgba(16, 19, 23, 0.08);
  font-size: 0.92em;
}

html[data-theme="dark"] code {
  background: rgba(255, 255, 255, 0.08);
}

@media (min-width: 760px) {
  .site-nav {
    display: flex;
  }

  .hero,
  .cta-panel,
  .dashboard-hero {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .feature-band {
    grid-template-columns: 0.95fr 1fr;
    align-items: end;
  }

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

  .analytics-layout {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: end;
  }

  .metric-column {
    border-bottom: 0;
    border-right: 1px solid var(--line);
    padding-bottom: 0;
    padding-right: 1rem;
  }

  .metric-column:last-child {
    border-right: 0;
    padding-right: 0;
  }

  .scan-shell,
  .workspace-panel {
    grid-template-columns: 0.82fr 1.18fr;
    align-items: start;
  }

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

  .workspace-panel {
    padding: 1.25rem;
  }

  .workspace-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .chart-shell {
    grid-template-columns: 1fr 0.9fr;
  }

  .chart-copy {
    border-top: 0;
    border-left: 1px solid var(--line);
  }
}

@media (min-width: 980px) {
  .security-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 759px) {
  .site-header {
    position: static;
    padding-top: 1rem;
  }

  .header-actions {
    justify-content: flex-end;
  }

  .mobile-menu-toggle,
  .utility-action {
    display: inline-flex;
  }

  .brand-copy small,
  .header-user {
    display: none;
  }

  .button,
  .theme-toggle {
    min-height: 44px;
    padding: 0.75rem 1rem;
  }

  .hero-signal {
    position: relative;
    width: min(100%, 240px);
  }

  .device-preview {
    padding-top: 0;
  }

  .device-shell {
    margin-inline: auto;
  }

  .hero-caption {
    margin-inline: auto;
    text-align: center;
  }

  .scan-profile {
    grid-template-columns: 1fr;
  }

  .table-row {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .motion-ready .hero-copy,
  .motion-ready .hero-visual,
  .motion-ready .section-heading,
  .motion-ready .flow-step,
  .motion-ready .feature-band,
  .motion-ready .role-panel,
  .motion-ready .security-item,
  .motion-ready .analytics-layout,
  .motion-ready .cta-panel,
  .motion-ready .scan-shell,
  .motion-ready .dashboard-hero,
  .motion-ready .workspace-panel {
    opacity: 1;
    transform: none;
  }
}

.page-home {
  background:
    radial-gradient(circle at 50% 0%, rgba(var(--primary-rgb), 0.1), transparent 28%),
    linear-gradient(180deg, var(--secondary), var(--bg) 58%, var(--surface-strong) 100%);
  color: var(--text);
}

.page-home .site-backdrop {
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(var(--primary-rgb), 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--primary-rgb), 0.08) 1px, transparent 1px);
}

.page-home .site-header {
  position: sticky;
  top: 16px;
  width: min(calc(100% - 2rem), 1240px);
  margin-top: 1rem;
  padding: 0.9rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.page-home .brand-mark {
  background: linear-gradient(180deg, var(--primary), var(--primary-strong));
  color: #fff;
}

.page-home .brand-copy small {
  display: none;
}

.page-home .site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  color: var(--text);
  font-weight: 600;
}

.page-home .site-nav a {
  white-space: nowrap;
}

.page-home .header-actions {
  align-items: center;
}

.marketing-cta-button,
.page-home .button-solid {
  background: linear-gradient(180deg, var(--primary), var(--primary-strong));
  color: #fff;
  box-shadow: 0 18px 36px rgba(var(--primary-rgb), 0.22);
}

.page-home .button-ghost {
  border-color: rgba(var(--primary-rgb), 0.16);
  background: var(--surface);
  color: var(--primary-strong);
}

.landing-main {
  width: min(calc(100% - 2rem), 1240px);
  margin: 0 auto;
  padding: 1.2rem 0 0;
}

.landing-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 2rem;
  min-height: calc(100svh - 150px);
  padding: 2rem 1rem 3rem;
}

.landing-kicker {
  margin-bottom: 0.8rem;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.page-home h1 {
  max-width: 9ch;
  font-family: "Manrope", sans-serif;
  font-size: clamp(3.6rem, 8vw, 6rem);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.landing-subcopy {
  max-width: 20ch;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: clamp(1.12rem, 2vw, 1.55rem);
  line-height: 1.55;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.landing-primary-button {
  min-width: 228px;
  min-height: 58px;
  font-size: 1.1rem;
  font-weight: 700;
}

.landing-secondary-button {
  min-height: 58px;
}

.landing-hero-stage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 0.2rem;
  min-height: 560px;
  padding: 2rem 1rem 0;
}

.hero-asset {
  position: relative;
}

.hero-car {
  width: 100%;
  height: 180px;
  align-self: end;
  border-radius: 70px 110px 36px 30px;
  background:
    linear-gradient(180deg, #dce6f2, #96a5b7);
  box-shadow: inset 0 -18px 0 rgba(15, 23, 42, 0.08);
}

.hero-car::before,
.hero-car::after {
  content: "";
  position: absolute;
  bottom: -16px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #344054;
  box-shadow: inset 0 0 0 12px #98a2b3;
}

.hero-car::before {
  left: 26px;
}

.hero-car::after {
  right: 40px;
}

.hero-car .hero-asset-qr {
  position: absolute;
  right: 24px;
  bottom: 20px;
  width: 34px;
  height: 34px;
  border: 4px solid var(--text);
  background:
    linear-gradient(90deg, var(--text) 20%, transparent 20% 40%, var(--text) 40% 60%, transparent 60% 80%, var(--text) 80%),
    linear-gradient(var(--text) 20%, transparent 20% 40%, var(--text) 40% 60%, transparent 60% 80%, var(--text) 80%);
  background-color: #fff;
}

.hero-home {
  width: 100%;
  max-width: 240px;
  justify-self: end;
}

.hero-home-roof {
  width: 150px;
  height: 150px;
  margin: 0 auto -60px;
  border-top: 12px solid #64748b;
  border-left: 12px solid #64748b;
  transform: rotate(45deg);
  background: rgba(37, 99, 235, 0.04);
}

.hero-home-body {
  position: relative;
  height: 170px;
  border: 8px solid #64748b;
  border-top: 0;
  background: #f8fafc;
}

.hero-home-window,
.hero-home-door,
.hero-home-qr {
  position: absolute;
  border: 5px solid #64748b;
}

.hero-home-window {
  left: 28px;
  top: 42px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.hero-home-door {
  right: 28px;
  bottom: 0;
  width: 38px;
  height: 72px;
}

.hero-home-qr {
  left: 86px;
  bottom: 18px;
  width: 28px;
  height: 28px;
  background:
    linear-gradient(90deg, var(--text) 20%, transparent 20% 40%, var(--text) 40% 60%, transparent 60% 80%, var(--text) 80%),
    linear-gradient(var(--text) 20%, transparent 20% 40%, var(--text) 40% 60%, transparent 60% 80%, var(--text) 80%);
  background-color: #fff;
}

.hero-device {
  position: relative;
  z-index: 1;
}

.hero-device-shell {
  width: min(100%, 250px);
  margin: 0 auto;
  padding: 12px 12px 18px;
  border: 6px solid var(--surface-dark);
  border-radius: 40px;
  background:
    linear-gradient(180deg, #0f172a, #1e3a8a 16%, #ffffff 16%);
  box-shadow: 0 32px 60px rgba(15, 23, 42, 0.18);
}

.hero-device-top {
  display: flex;
  justify-content: center;
  padding: 18px 0 16px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}

.hero-device-card,
.hero-device-section {
  display: grid;
  gap: 0.8rem;
  padding: 0.9rem;
}

.hero-device-card {
  grid-template-columns: auto 1fr;
  align-items: center;
  padding-top: 1rem;
}

.hero-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(180deg, #d0d5dd, #98a2b3);
}

.hero-device-lines {
  display: grid;
  gap: 0.2rem;
}

.hero-device-lines strong,
.hero-detail-row strong {
  font-size: 0.86rem;
}

.hero-device-lines span,
.hero-device-label,
.hero-detail-row span {
  color: var(--muted);
  font-size: 0.74rem;
}

.hero-device-section {
  padding-top: 0.25rem;
}

.hero-detail-row {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.3rem 0;
}

.hero-device-actions {
  display: grid;
  gap: 0.55rem;
  padding: 0.8rem 0.9rem 0;
}

.hero-device-actions span {
  display: flex;
  justify-content: center;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-device-actions .is-whatsapp {
  background: #22c55e;
}

.landing-section {
  padding: 1rem 1rem 3rem;
}

.landing-section-heading {
  margin-bottom: 1.5rem;
  text-align: center;
}

.page-home h2 {
  font-family: "Manrope", sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.3rem);
  font-weight: 800;
  letter-spacing: -0.05em;
}

.landing-panel {
  padding: 2rem;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(230, 238, 250, 0.96));
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.how-grid,
.usecase-grid,
.feature-list {
  display: grid;
  gap: 1rem;
}

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

.how-card {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.8rem;
  padding: 1.4rem 1.1rem;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.05);
  text-align: center;
}

.how-step {
  position: absolute;
  top: 0.8rem;
  left: 0.95rem;
  color: var(--muted);
  font-size: 2rem;
  line-height: 1;
}

.how-icon,
.feature-icon {
  display: grid;
  place-items: center;
  color: var(--primary);
  font-size: 2rem;
  font-weight: 700;
}

.how-card h3,
.usecase-copy h3,
.feature-item h3 {
  font-family: "Manrope", sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.how-card p,
.usecase-copy p,
.feature-item p,
.landing-cta p,
.landing-footer p {
  color: var(--muted);
}

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

.usecase-card {
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.06);
}

.usecase-media {
  position: relative;
  min-height: 260px;
  background: linear-gradient(180deg, #f8fafc, #e5e7eb);
}

.vehicle-scene::before {
  content: "";
  position: absolute;
  left: 16%;
  right: 12%;
  bottom: 34px;
  height: 112px;
  border-radius: 58px 88px 26px 22px;
  background: linear-gradient(180deg, #3b82f6, #1d4ed8);
  box-shadow: inset 0 -14px 0 rgba(15, 23, 42, 0.12);
}

.vehicle-scene::after {
  content: "";
  position: absolute;
  left: 23%;
  right: 24%;
  bottom: 110px;
  height: 34px;
  border-radius: 24px 40px 0 0;
  background: rgba(255, 255, 255, 0.72);
}

.home-scene::before {
  content: "";
  position: absolute;
  inset: 40px 26px 26px;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff, #e5e7eb);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.home-scene::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 82px;
  height: 130px;
  margin-left: -41px;
  border-radius: 10px 10px 0 0;
  background: var(--muted);
}

.shop-scene::before {
  content: "";
  position: absolute;
  inset: 38px 18px 24px;
  border-radius: 18px 18px 12px 12px;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.04)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.75), rgba(15, 23, 42, 0.12), rgba(255, 255, 255, 0.48));
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.9);
}

.shop-scene::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  height: 20px;
  border-radius: 4px;
  background: var(--muted);
}

.scene-qr {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 34px;
  height: 34px;
  border: 4px solid var(--text);
  background:
    linear-gradient(90deg, var(--text) 20%, transparent 20% 40%, var(--text) 40% 60%, transparent 60% 80%, var(--text) 80%),
    linear-gradient(var(--text) 20%, transparent 20% 40%, var(--text) 40% 60%, transparent 60% 80%, var(--text) 80%);
  background-color: #fff;
}

.usecase-copy {
  display: grid;
  gap: 0.45rem;
  padding: 1.25rem;
}

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

.feature-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.2rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.stats-strip article {
  display: grid;
  gap: 0.4rem;
  padding: 1.4rem 1.2rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  text-align: center;
}

.stats-strip strong {
  font-family: "Manrope", sans-serif;
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--text);
}

.stats-strip span {
  color: var(--muted);
}

.landing-cta {
  padding: 2.4rem 2rem;
  border-radius: 24px;
  background: linear-gradient(180deg, #3b82f6, #1d4ed8);
  color: #fff;
  text-align: center;
  box-shadow: 0 28px 60px rgba(37, 99, 235, 0.24);
}

.landing-cta h2,
.landing-cta p {
  color: inherit;
}

.landing-actions-centered {
  justify-content: center;
}

.landing-cta-button {
  background: #fff;
  color: var(--primary-strong);
  box-shadow: none;
}

.landing-footer {
  margin-top: 2rem;
  padding: 2.5rem 1rem 3rem;
  background: linear-gradient(180deg, #0f172a, #020617);
  color: rgba(255, 255, 255, 0.78);
}

.landing-footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  width: min(calc(100% - 2rem), 1240px);
  margin: 0 auto;
}

.brand-footer .brand-copy strong,
.brand-footer .brand-copy small {
  color: #fff;
}

.landing-footer-brand {
  display: grid;
  gap: 1rem;
}

.landing-footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.landing-footer-links div {
  display: grid;
  gap: 0.7rem;
}

.landing-footer-links h3 {
  font-family: "Manrope", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
}

.landing-footer-links a {
  color: rgba(255, 255, 255, 0.72);
}

.landing-footer-links a:hover {
  color: #fff;
}

@media (max-width: 1100px) {
  .landing-hero {
    grid-template-columns: 1fr;
    padding-top: 1rem;
  }

  .landing-subcopy,
  .page-home h1 {
    max-width: none;
  }

  .landing-hero-stage {
    min-height: 500px;
  }

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

  .usecase-grid {
    grid-template-columns: 1fr;
  }

  .landing-footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .page-home .site-header {
    position: static;
    margin-top: 0.75rem;
    padding: 0.85rem 1rem;
  }

  .page-home .site-nav {
    display: none;
  }

  .landing-main {
    width: min(calc(100% - 1rem), 1240px);
  }

  .landing-hero,
  .landing-section {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .page-home h1 {
    font-size: clamp(2.9rem, 14vw, 4.4rem);
  }

  .landing-subcopy {
    font-size: 1.05rem;
  }

  .landing-primary-button,
  .landing-secondary-button,
  .marketing-cta-button {
    width: 100%;
  }

  .landing-hero-stage {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 1.2rem;
    padding-top: 0.5rem;
  }

  .hero-car,
  .hero-home {
    display: none;
  }

  .hero-device-shell {
    width: min(100%, 280px);
  }

  .how-grid,
  .feature-list,
  .stats-strip,
  .landing-footer-links {
    grid-template-columns: 1fr;
  }

  .landing-panel {
    padding: 1.25rem;
  }

  .usecase-media {
    min-height: 220px;
  }
}

/* ── Marketing page overrides (theme-aware) ─────────────────────────── */

.page-home {
  color: var(--text);
}

.page-home .site-backdrop {
  display: none;
}

.page-home .site-header {
  position: sticky;
  top: 0;
  width: min(calc(100% - 2rem), 1240px);
  min-height: 86px;
  margin: 1.25rem auto 0;
  padding: 0 2rem;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.page-home .brand {
  gap: 0.7rem;
}

.page-home .brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--primary), var(--primary-strong));
  color: #fff;
  box-shadow: none;
}

.page-home .brand-copy strong {
  font-family: "Manrope", sans-serif;
  font-size: 1rem;
  color: var(--primary);
}

.page-home .brand-copy small {
  display: none;
}

.page-home .site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  color: var(--text);
  font-weight: 600;
}

.page-home .header-actions {
  gap: 0;
}

.page-home .marketing-cta-button {
  min-width: 190px;
  min-height: 48px;
  background: linear-gradient(180deg, var(--primary), var(--primary-strong));
  color: #fff;
  box-shadow: none;
}

.landing-main {
  width: min(calc(100% - 2rem), 1240px);
  margin: 0 auto;
  background: transparent;
}

.landing-frame {
  border-bottom: 1px solid var(--line);
}

.landing-hero,
.landing-section,
.usecase-band {
  border-bottom: 1px solid var(--line);
}

.landing-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
  min-height: 500px;
  padding: 3.5rem 5rem 2.5rem;
}

.landing-copy h1,
.landing-section h2,
.landing-cta h2,
.step-card h3,
.usecase-copy h3,
.feature-row h3 {
  font-family: "Manrope", sans-serif;
}

.landing-copy h1 {
  max-width: 9ch;
  font-size: clamp(3.2rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
  color: var(--text);
}

.landing-subcopy {
  max-width: 23ch;
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.5;
}

.landing-actions {
  margin-top: 2rem;
}

.landing-primary-button {
  min-width: 228px;
  min-height: 56px;
  background: linear-gradient(180deg, var(--primary), var(--primary-strong));
  color: #fff;
  box-shadow: 0 18px 36px rgba(var(--primary-rgb), 0.22);
}

.landing-visual {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 0;
}

.visual-object {
  position: relative;
}

.visual-car {
  height: 130px;
  border-radius: 56px 84px 22px 22px;
  background: linear-gradient(180deg, var(--secondary-strong), var(--muted));
  opacity: 0.85;
}

.visual-car::before,
.visual-car::after {
  content: "";
  position: absolute;
  bottom: -14px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--surface-dark);
  box-shadow: inset 0 0 0 10px var(--secondary-strong);
}

.visual-car::before {
  left: 18px;
}

.visual-car::after {
  right: 26px;
}

.visual-qr,
.visual-home-qr,
.scene-qr {
  position: absolute;
  width: 30px;
  height: 30px;
  border: 4px solid var(--text);
  background:
    linear-gradient(90deg, var(--text) 20%, transparent 20% 40%, var(--text) 40% 60%, transparent 60% 80%, var(--text) 80%),
    linear-gradient(var(--text) 20%, transparent 20% 40%, var(--text) 40% 60%, transparent 60% 80%, var(--text) 80%);
  background-color: #ffffff;
}

.visual-qr {
  right: 18px;
  bottom: 14px;
}

.visual-phone {
  position: relative;
  z-index: 1;
}

.visual-phone-shell {
  width: 220px;
  padding: 10px;
  border: 5px solid var(--surface-dark);
  border-radius: 36px;
  background: var(--surface-dark);
}

.visual-phone-bar {
  width: 72px;
  height: 8px;
  margin: 0 auto 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.visual-phone-screen {
  min-height: 360px;
  padding: 0.85rem;
  border-radius: 28px;
  background: linear-gradient(180deg, var(--primary) 0 16%, #ffffff 16% 100%);
}

.phone-screen-top {
  padding: 0.2rem 0 1.1rem;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}

.phone-user-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: center;
  padding: 0.7rem 0;
}

.phone-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--secondary-strong);
}

.phone-lines {
  display: grid;
  gap: 0.25rem;
}

.phone-lines strong {
  color: #101317;
  font-size: 0.9rem;
}

.phone-detail-block {
  display: grid;
  gap: 0.2rem;
  padding: 0.75rem;
  border-radius: 12px;
  background: var(--accent-soft);
  font-size: 0.85rem;
}

.phone-detail-block span {
  color: var(--muted);
  font-size: 0.78rem;
}

.phone-action-list {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.phone-action-list span {
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--primary), var(--primary-strong));
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
}

.phone-action-list .is-green {
  background: var(--success);
}

.visual-home {
  height: 160px;
}

.visual-home-roof {
  width: 0;
  height: 0;
  margin: 0 auto;
  border-left: 70px solid transparent;
  border-right: 70px solid transparent;
  border-bottom: 56px solid var(--primary);
}

.visual-home-body {
  position: relative;
  height: 104px;
  border-radius: 0 0 14px 14px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.visual-home-window {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 30px;
  height: 28px;
  border-radius: 4px;
  background: var(--primary-soft);
  border: 1px solid var(--line);
}

.visual-home-door {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 44px;
  border-radius: 4px 4px 0 0;
  background: var(--accent);
}

.visual-home-qr {
  bottom: 6px;
  right: 8px;
}

/* Step cards */
.step-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.step-card {
  display: grid;
  gap: 0.75rem;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

.step-number {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0;
}

.step-card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
}

.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

/* Use case section */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.usecase-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(18px);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.usecase-media {
  position: relative;
  min-height: 200px;
  background: var(--bg-strong);
}

.vehicle-scene {
  background: linear-gradient(160deg, var(--secondary-strong), var(--bg-strong));
}

.vehicle-scene::before {
  content: "";
  position: absolute;
  left: 18%;
  right: 12%;
  bottom: 34px;
  height: 112px;
  border-radius: 58px 88px 26px 22px;
  background: linear-gradient(180deg, var(--primary), var(--primary-strong));
  box-shadow: inset 0 -14px 0 rgba(15, 23, 42, 0.12);
}

.vehicle-scene::after {
  content: "";
  position: absolute;
  left: 23%;
  right: 24%;
  bottom: 110px;
  height: 34px;
  border-radius: 24px 40px 0 0;
  background: rgba(255, 255, 255, 0.72);
}

.home-scene::before {
  content: "";
  position: absolute;
  inset: 40px 26px 26px;
  border-radius: 24px;
  background: linear-gradient(180deg, var(--surface-strong), var(--secondary-strong));
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.home-scene::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 82px;
  height: 130px;
  margin-left: -41px;
  border-radius: 10px 10px 0 0;
  background: var(--muted);
}

.shop-scene::before {
  content: "";
  position: absolute;
  inset: 38px 18px 24px;
  border-radius: 18px 18px 12px 12px;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.04)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.75), rgba(15, 23, 42, 0.12), rgba(255, 255, 255, 0.48));
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.9);
}

.shop-scene::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  height: 20px;
  border-radius: 4px;
  background: var(--muted);
}

.scene-qr {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 34px;
  height: 34px;
  border: 4px solid var(--text);
  background:
    linear-gradient(90deg, var(--text) 20%, transparent 20% 40%, var(--text) 40% 60%, transparent 60% 80%, var(--text) 80%),
    linear-gradient(var(--text) 20%, transparent 20% 40%, var(--text) 40% 60%, transparent 60% 80%, var(--text) 80%);
  background-color: #fff;
}

.usecase-copy {
  display: grid;
  gap: 0.45rem;
  padding: 1.25rem;
}

/* Feature section */
.feature-grid {
  display: grid;
  gap: 0.85rem;
}

.feature-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.2rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0;
}

.feature-row h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: var(--text);
}

.feature-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

/* Landing section heading */
.landing-section {
  padding: 4rem 5rem;
}

.landing-section-heading {
  margin-bottom: 2.5rem;
  text-align: center;
}

.landing-section-heading h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
}

.landing-section-heading p {
  max-width: 48ch;
  margin: 0 auto;
  color: var(--muted);
}

/* CTA section */
.cta-wrap {
  padding: 5rem 2rem;
}

.landing-cta {
  display: grid;
  gap: 1.5rem;
  padding: 3.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--primary), var(--primary-strong));
  box-shadow: 0 18px 36px rgba(var(--primary-rgb), 0.22);
  text-align: center;
  justify-items: center;
}

.landing-cta h2,
.landing-cta p {
  margin: 0;
  color: #fff;
}

.landing-cta h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
}

.landing-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.8rem 2rem;
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--primary-strong);
  font-weight: 700;
  border: none;
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease;
}

.landing-cta-button:hover {
  transform: translateY(-1px);
}

/* Footer */
.landing-footer {
  background: linear-gradient(180deg, var(--surface-dark), #020617);
}

/* Final responsive header guard: later homepage blocks must not override the app breakpoints. */
.site-header {
  min-width: 0;
}

.brand {
  flex: 0 1 auto;
}

.brand-copy {
  min-width: 0;
}

.brand-copy strong,
.brand-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-nav,
.header-actions {
  min-width: 0;
}

@media (max-width: 980px) {
  .page-home .site-header,
  .site-header {
    width: min(calc(100% - 1rem), 1100px);
    min-height: 72px;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
  }

  .page-home .site-nav,
  .site-nav,
  .site-nav-app {
    display: none;
  }

  .mobile-menu-toggle,
  .page-home .mobile-menu-toggle {
    display: inline-flex;
  }

  .header-actions {
    flex: 0 0 auto;
    justify-content: flex-end;
  }
}

@media (max-width: 560px) {
  .page-home .site-header,
  .site-header {
    align-items: center;
    margin-top: 0.5rem;
    padding-inline: 0.75rem;
  }

  .brand {
    flex: 1 1 auto;
    gap: 0.55rem;
    overflow: hidden;
  }

  .page-home .brand-mark,
  .brand-mark {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 13px;
  }

  .brand-copy strong {
    max-width: 9rem;
    font-size: 0.95rem;
  }

  .brand-copy small {
    display: none;
  }

  .header-actions {
    gap: 0.45rem;
  }

  .header-actions .theme-toggle,
  .header-actions [data-push-enable],
  .header-actions [data-pwa-install] {
    display: none;
  }
}

.landing-footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
  justify-content: space-between;
  width: min(calc(100% - 2rem), 1240px);
  margin: 0 auto;
  padding: 3rem 0 2rem;
}

.landing-footer-brand {
  min-width: 180px;
}

.landing-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.landing-footer-links div {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.landing-footer-links h3 {
  margin: 0 0 0.2rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.landing-footer-links a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.94rem;
  transition: color 160ms ease;
}

.landing-footer-links a:hover {
  color: #fff;
}

/* Responsive marketing overrides */
@media (max-width: 1100px) {
  .landing-hero {
    padding: 3rem 2rem 2.5rem;
  }

  .landing-section {
    padding: 3.5rem 2rem;
  }

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

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

@media (max-width: 760px) {
  .landing-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 2rem 1rem 1.5rem;
    gap: 2.5rem;
  }

  .landing-visual {
    justify-items: center;
    gap: 1rem;
  }

  .visual-car,
  .visual-home {
    display: none;
  }

  .step-grid,
  .feature-grid,
  .landing-footer-links {
    grid-template-columns: 1fr;
  }

  .usecase-grid {
    grid-template-columns: 1fr;
  }

  .landing-section {
    padding: 2.5rem 0;
  }
}

/* Unified frontend/backend visual system */
.page-home .site-header,
.landing-main,
.landing-download-card,
.step-card,
.usecase-card,
.feature-row,
.landing-download-card .scanner-status-panel,
.page-home .mobile-nav,
.page-home .mobile-nav a {
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
}

.landing-main {
  background: transparent;
}

.landing-frame {
  border-bottom: 1px solid var(--line);
}

.landing-hero,
.landing-section,
.usecase-band {
  background: transparent;
  border-bottom: 1px solid var(--line);
}

.step-card,
.usecase-card,
.feature-row,
.landing-download-card {
  background: var(--surface);
  backdrop-filter: blur(18px);
}

.landing-copy h1,
.landing-section h2,
.landing-cta h2,
.step-card h3,
.usecase-copy h3,
.feature-row h3,
.page-home .brand-copy strong {
  color: var(--text);
}

.landing-subcopy,
.step-card p,
.usecase-copy p,
.feature-row p,
.landing-footer p,
.phone-lines span,
.phone-detail-block span {
  color: var(--muted);
}

.step-icon,
.feature-icon,
.page-home .brand-copy strong {
  color: var(--primary);
}

.landing-primary-button,
.marketing-cta-button,
.page-home .marketing-cta-button,
.hero-device-actions span,
.phone-action-list span,
.landing-cta {
  background: linear-gradient(180deg, var(--primary), var(--primary-strong));
  color: #fff;
  box-shadow: 0 18px 36px rgba(var(--primary-rgb), 0.22);
}

.landing-cta-button {
  background: var(--surface-strong);
  color: var(--primary-strong);
}

.phone-action-list .is-green,
.hero-device-actions .is-whatsapp {
  background: var(--success);
}

.landing-footer {
  background: linear-gradient(180deg, var(--surface-dark), #020617);
}
