:root {
  --brand-navy: #001533;
  --brand-navy-light: #002855;
  --brand-navy-dark: #000a1a;
  --brand-orange: #ff6600;
  --brand-orange-light: #ff8533;
  --brand-orange-dark: #e55a00;
  --primary: var(--brand-navy);
  --primary-light: var(--brand-navy-light);
  --primary-dark: var(--brand-navy-dark);
  --primary-glow: rgba(0, 21, 51, 0.18);
  --accent: var(--brand-orange);
  --accent-soft: #fff0e6;
  --ink: #001019;
  --muted: #5a6578;
  --surface: #ffffff;
  --bg: #f4f6f9;
  --bg-alt: #e8ecf2;
  --border: rgba(0, 21, 51, 0.1);
  --radius: 16px;
  --radius-lg: 28px;
  --shadow: 0 4px 24px rgba(15, 36, 31, 0.07);
  --shadow-lg: 0 24px 64px rgba(15, 36, 31, 0.12);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

/* ── Header ── */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.site-header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark,
.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  flex-shrink: 0;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(0, 21, 51, 0.15);
}

.brand-mark {
  background: linear-gradient(135deg, var(--brand-navy-light) 0%, var(--brand-navy) 100%);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.1rem;
}

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

.site-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

.site-nav a:hover {
  color: var(--primary-dark);
  background: rgba(0, 21, 51, 0.08);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--brand-orange) 0%, var(--brand-orange-light) 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 102, 0, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 12px 32px rgba(255, 102, 0, 0.35);
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--primary-dark);
}

.btn-outline:hover {
  background: rgba(0, 21, 51, 0.06);
  border-color: rgba(0, 21, 51, 0.25);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.25);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 0.85rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--ink);
}

/* ── Hero ── */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 64px) 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% -10%, rgba(45, 143, 122, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(255, 102, 0, 0.12) 0%, transparent 50%),
    linear-gradient(180deg, #e8f3ef 0%, var(--bg) 100%);
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.trust-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.trust-item strong {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.trust-item span {
  font-size: 0.82rem;
  color: var(--muted);
}

.hero-visual {
  position: relative;
}

.hero-demo-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.hero-demo-timeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: min(340px, 100%);
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.hero-demo-phase {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  opacity: 0.4;
  padding: 4px 6px;
  border-radius: 999px;
  transition: opacity 0.3s, transform 0.3s, background 0.3s;
}

.hero-demo-phase.on {
  opacity: 1;
  transform: scale(1.02);
  background: rgba(0, 21, 51, 0.1);
}

.hero-demo-phase-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.hero-demo-phase-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--primary-dark);
  white-space: nowrap;
}

.hero-demo-phase-line {
  width: 20px;
  height: 2px;
  background: var(--border);
  flex-shrink: 0;
  border-radius: 1px;
}

.hero-demo-stage {
  display: flex;
  align-items: flex-end;
  gap: 0;
  justify-content: center;
  width: 100%;
}

.hero-device {
  background: linear-gradient(160deg, var(--brand-navy) 0%, var(--brand-navy-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-lg);
  transform: perspective(900px) rotateY(-3deg) rotateX(2deg);
  flex: 1;
  max-width: 320px;
  z-index: 2;
}

.hero-kiosk {
  background: var(--surface);
  border-radius: calc(var(--radius-lg) - 6px);
  overflow: hidden;
  aspect-ratio: 9 / 16;
  max-height: 480px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.hero-kiosk-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  flex-shrink: 0;
}

.hero-kiosk-pill {
  font-size: 0.68rem;
  opacity: 0.95;
}

.hero-kiosk-pill.busy { color: #fef08a; }
.hero-kiosk-pill.ok { color: #bbf7d0; }

.hero-kiosk-body {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #f4f8f6;
}

.hero-demo-screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.hero-demo-screen.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

/* Idle */
.hero-idle-logo {
  width: 56px;
  height: 56px;
  margin: auto auto 10px;
  border-radius: 14px;
  background: #fff;
  border: 2px solid var(--border);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero-idle-logo img { width: 44px; height: 44px; object-fit: contain; }

.hero-demo-screen[data-step="idle"] {
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(180deg, #f8fbf9 0%, #eef5f2 100%);
}

.hero-demo-screen[data-step="idle"] h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.hero-demo-screen[data-step="idle"] p {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.hero-demo-start {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border: none;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  box-shadow: 0 6px 20px var(--primary-glow);
  transition: transform 0.15s, box-shadow 0.2s;
}

.hero-demo-start:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 21, 51, 0.3);
}

/* Cart */
.hero-demo-scan-head h3 {
  font-size: 0.88rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.hero-demo-scan-head p {
  font-size: 0.68rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.hero-demo-cart {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-cart-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.68rem;
  animation: heroItemIn 0.4s ease backwards;
}

.hero-cart-item:nth-child(1) { animation-delay: 0.05s; }
.hero-cart-item:nth-child(2) { animation-delay: 0.15s; }
.hero-cart-item:nth-child(3) { animation-delay: 0.25s; }

@keyframes heroItemIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-cart-item-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(0, 21, 51, 0.1);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 0.85rem;
}

.hero-cart-item-info { flex: 1; min-width: 0; }

.hero-cart-item-name {
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-cart-item-meta {
  color: var(--muted);
  font-size: 0.62rem;
}

.hero-cart-item-price {
  font-weight: 800;
  color: var(--primary-dark);
  font-size: 0.72rem;
}

.hero-demo-cart-foot {
  margin-top: auto;
  padding-top: 8px;
}

.hero-demo-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 12px;
  background: #fff;
  border: 2px solid var(--primary);
  border-radius: 12px;
  margin-bottom: 8px;
}

.hero-demo-total span {
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 600;
}

.hero-demo-total strong {
  font-size: 1rem;
  color: var(--primary-dark);
}

.hero-demo-pay-btn {
  width: 100%;
  padding: 11px;
  border: none;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.82rem;
  cursor: default;
  transition: transform 0.15s, box-shadow 0.2s;
}

.hero-demo-pay-btn.pulse {
  animation: heroPayPulse 0.6s ease;
  box-shadow: 0 0 0 4px rgba(0, 21, 51, 0.25);
}

@keyframes heroPayPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

/* Payment */
.hero-demo-screen[data-step="payment"] {
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #fff;
}

.hero-demo-pay-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0, 21, 51, 0.1);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}

.hero-demo-screen[data-step="payment"] h3 {
  font-size: 0.92rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.hero-demo-pay-amount {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.hero-demo-pay-hint {
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.hero-demo-card-anim {
  width: 100%;
  height: 48px;
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
}

.hero-demo-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 72px;
  height: 46px;
  margin: -23px 0 0 -36px;
  border-radius: 6px;
  background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  animation: heroCardTap 2s ease-in-out infinite;
}

.hero-demo-card::after {
  content: '';
  position: absolute;
  inset: 8px 8px auto;
  height: 8px;
  border-radius: 2px;
  background: linear-gradient(90deg, #e8a838, #f6d365);
}

@keyframes heroCardTap {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  40% { transform: translateY(-14px) rotate(-2deg); }
  60% { transform: translateY(-14px) rotate(-2deg); }
}

.hero-demo-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: heroSpin 0.8s linear infinite;
}

@keyframes heroSpin { to { transform: rotate(360deg); } }

/* Success */
.hero-demo-screen[data-step="success"] {
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(180deg, #f0fdf4 0%, #fff 100%);
}

.hero-demo-success-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #dcfce7;
  color: #15803d;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  animation: heroPop 0.5s ease;
}

@keyframes heroPop {
  0% { transform: scale(0.5); opacity: 0; }
  70% { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}

.hero-demo-screen[data-step="success"] h3 {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.hero-demo-success-total {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.hero-demo-receipt-hint {
  font-size: 0.72rem;
  color: var(--muted);
}

/* Step dots (desktop fallback — timeline preferred) */
.hero-demo-steps {
  display: none;
}

.hero-demo-step-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d1ddd8;
  transition: background 0.3s, transform 0.3s;
}

.hero-demo-step-dot.on {
  background: var(--primary);
  transform: scale(1.3);
}

/* Printer */
.hero-printer-wrap {
  flex-shrink: 0;
  width: 130px;
  margin-left: -8px;
  margin-bottom: 0;
  z-index: 1;
}

.hero-printer-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.hero-printer-stack.is-printing {
  overflow: visible;
}

.hero-printer {
  position: relative;
  width: 100%;
  z-index: 2;
}

.hero-printer-slot {
  height: 6px;
  background: #1a2e28;
  border-radius: 3px;
  margin-bottom: 6px;
  position: relative;
  z-index: 3;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15) inset;
}

.hero-printer-brand {
  display: block;
  text-align: center;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #6b7c76;
}

.hero-printer-body {
  height: 52px;
  background: linear-gradient(180deg, #d4dcd8 0%, #b8c4be 100%);
  border: 2px solid #b8c4be;
  border-top: none;
  border-radius: 0 0 8px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-printer-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94a3b8;
  transition: background 0.3s, box-shadow 0.3s;
}

.hero-printer-led.on {
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.7);
}

.hero-receipt-clip {
  width: 108px;
  height: 0;
  overflow: hidden;
  position: relative;
  margin-bottom: -3px;
  z-index: 1;
  pointer-events: none;
  transition: height 0.4s ease;
}

.hero-receipt-clip.printing {
  height: 280px;
  overflow: visible;
  pointer-events: auto;
}

.hero-receipt-clip:not(.printing) .hero-receipt-out {
  display: none;
}

.hero-receipt-out {
  width: 100%;
  position: absolute;
  bottom: 0;
  left: 0;
}

.hero-receipt-paper {
  background: #fffef8;
  padding: 10px 8px 14px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.48rem;
  line-height: 1.45;
  color: #1a2e28;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #e8e4d9;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  transform: translateY(100%);
  visibility: hidden;
  transition: transform 2.6s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 2.6s;
}

.hero-receipt-clip.printing .hero-receipt-paper {
  transform: translateY(0);
  visibility: visible;
  transition: transform 2.6s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s;
}

.hero-printer-top {
  background: linear-gradient(180deg, #e8ece9 0%, #cfd8d3 100%);
  border: 2px solid #b8c4be;
  border-radius: 10px 10px 4px 4px;
  padding: 10px 10px 6px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 4px 12px rgba(0,0,0,0.12);
}

.hero-receipt-logo {
  text-align: center;
  font-weight: 800;
  font-size: 0.55rem;
  margin-bottom: 4px;
}

.hero-receipt-line { margin-bottom: 2px; }
.hero-receipt-line.center { text-align: center; }
.hero-receipt-line.muted { color: #6b7c76; margin-top: 4px; }
.hero-receipt-line.row {
  display: flex;
  justify-content: space-between;
  gap: 4px;
}
.hero-receipt-line.bold { font-weight: 800; margin-top: 2px; }

.hero-receipt-divider {
  border-top: 1px dashed #ccc;
  margin: 4px 0;
}

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

/* ── Sections ── */
section {
  padding: 88px 0;
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 640px;
}

.section-head {
  margin-bottom: 48px;
}

.section-head.center {
  text-align: center;
}

.section-head.center .section-lead {
  margin-inline: auto;
}

/* ── Reference client ── */
.reference {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.reference-card {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 32px;
  background: linear-gradient(135deg, rgba(0, 21, 51, 0.06) 0%, rgba(255, 102, 0, 0.06) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.reference-logo {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: 20px;
  background: #fff;
  border: 2px solid var(--border);
  display: grid;
  place-items: center;
  padding: 12px;
}

.reference-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.reference-content h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.reference-content p {
  color: var(--muted);
  margin-bottom: 12px;
}

.reference-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.92rem;
}

.reference-link:hover { text-decoration: underline; }

/* ── Media placeholders ── */
.media-section {
  background: var(--bg-alt);
}

.media-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
}

.media-block {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px dashed rgba(0, 21, 51, 0.25);
  background: rgba(255, 255, 255, 0.6);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
}

.media-block:hover {
  border-color: rgba(0, 21, 51, 0.45);
  background: rgba(255, 255, 255, 0.85);
}

.media-block.video {
  min-height: 360px;
  background: linear-gradient(145deg, rgba(18, 61, 52, 0.04) 0%, rgba(255, 255, 255, 0.7) 100%);
}

.media-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0, 21, 51, 0.1);
  display: grid;
  place-items: center;
  color: var(--primary);
}

.media-block h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.media-block p {
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 280px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.gallery-item {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  border: 2px dashed rgba(0, 21, 51, 0.2);
  background: rgba(255, 255, 255, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.gallery-item svg {
  opacity: 0.45;
}

/* ── Features ── */
.solution-section {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f3f7fc 45%, #fff6ef 100%);
  overflow: hidden;
}

.solution-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 8% 15%, rgba(0, 21, 51, 0.07), transparent 60%),
    radial-gradient(ellipse 55% 45% at 92% 85%, rgba(255, 102, 0, 0.1), transparent 55%);
  pointer-events: none;
}

.solution-section .container {
  position: relative;
  z-index: 1;
}

.section-label--pill {
  background: linear-gradient(135deg, var(--brand-orange) 0%, var(--brand-orange-light) 100%);
  color: #fff;
  padding: 7px 16px;
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(255, 102, 0, 0.28);
}

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

.feature-card {
  --fc-accent: var(--brand-navy);
  --fc-icon-bg: rgba(0, 21, 51, 0.1);
  --fc-card-bg: #ffffff;
  --fc-glow: rgba(0, 21, 51, 0.12);
  background: var(--fc-card-bg);
  border: 1px solid rgba(0, 21, 51, 0.08);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--fc-accent), color-mix(in srgb, var(--fc-accent) 55%, #fff));
  opacity: 0.95;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px var(--fc-glow);
  border-color: color-mix(in srgb, var(--fc-accent) 35%, transparent);
}

.feature-card--touch {
  --fc-accent: #001533;
  --fc-icon-bg: rgba(0, 21, 51, 0.12);
  --fc-card-bg: linear-gradient(165deg, #ffffff 0%, #f5f8fc 100%);
  --fc-glow: rgba(0, 21, 51, 0.14);
}

.feature-card--pay {
  --fc-accent: #ff6600;
  --fc-icon-bg: rgba(255, 102, 0, 0.14);
  --fc-card-bg: linear-gradient(165deg, #ffffff 0%, #fff8f2 100%);
  --fc-glow: rgba(255, 102, 0, 0.22);
}

.feature-card--scan {
  --fc-accent: #0d9488;
  --fc-icon-bg: rgba(13, 148, 136, 0.14);
  --fc-card-bg: linear-gradient(165deg, #ffffff 0%, #f2fbf9 100%);
  --fc-glow: rgba(13, 148, 136, 0.2);
}

.feature-card--print {
  --fc-accent: #7c3aed;
  --fc-icon-bg: rgba(124, 58, 237, 0.14);
  --fc-card-bg: linear-gradient(165deg, #ffffff 0%, #f8f5ff 100%);
  --fc-glow: rgba(124, 58, 237, 0.2);
}

.feature-card--staff {
  --fc-accent: #2563eb;
  --fc-icon-bg: rgba(37, 99, 235, 0.14);
  --fc-card-bg: linear-gradient(165deg, #ffffff 0%, #f3f7ff 100%);
  --fc-glow: rgba(37, 99, 235, 0.2);
}

.feature-card--loyalty {
  --fc-accent: #d97706;
  --fc-icon-bg: rgba(217, 119, 6, 0.16);
  --fc-card-bg: linear-gradient(165deg, #ffffff 0%, #fffbf3 100%);
  --fc-glow: rgba(217, 119, 6, 0.22);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--fc-icon-bg);
  display: grid;
  place-items: center;
  color: var(--fc-accent);
  margin-bottom: 16px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fc-accent) 18%, transparent);
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ── Platform ── */
.platform-section {
  background: linear-gradient(160deg, var(--brand-navy) 0%, var(--brand-navy-dark) 100%);
  color: #fff;
}

.platform-section .section-label { color: rgba(255, 255, 255, 0.6); }
.platform-section .section-lead { color: rgba(255, 255, 255, 0.72); }

.platform-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.platform-features {
  display: grid;
  gap: 20px;
}

.platform-feature {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
}

.platform-feature-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
}

.platform-feature h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.platform-feature p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
}

.platform-mockup {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.25);
}

.platform-mockup-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.platform-mockup-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.platform-mockup-body {
  background: var(--bg);
  border-radius: calc(var(--radius-lg) - 12px);
  padding: 20px;
  color: var(--ink);
}

.mock-kiosk-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 10px;
  font-size: 0.85rem;
}

.mock-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.78rem;
}

.mock-status.online { color: #15803d; }
.mock-status.online::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
}

.mock-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.mock-stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}

.mock-stat strong {
  display: block;
  font-size: 1.2rem;
  color: var(--primary-dark);
}

.mock-stat span {
  font-size: 0.75rem;
  color: var(--muted);
}

/* ── Pricing ── */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
  align-items: start;
}

.pricing-hero-card {
  background: linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: 0 24px 48px var(--primary-glow);
}

.pricing-hero-card .tag {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.pricing-hero-card h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.pricing-hero-card .price {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 20px 0 8px;
}

.pricing-hero-card .price-note {
  font-size: 0.88rem;
  opacity: 0.8;
  margin-bottom: 24px;
}

.pricing-includes {
  list-style: none;
  display: grid;
  gap: 10px;
}

.pricing-includes li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
}

.pricing-includes li::before {
  content: '✓';
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
}

.pricing-table {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.pricing-table-head {
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
}

.pricing-table-head h3 {
  font-size: 1.15rem;
  font-weight: 800;
}

.pricing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--border);
}

.pricing-row:last-child { border-bottom: none; }

.pricing-row-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.pricing-row-info p {
  font-size: 0.82rem;
  color: var(--muted);
}

.pricing-row-price {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--primary-dark);
  white-space: nowrap;
}

/* ── ROI service ── */
.roi-section {
  background: var(--accent-soft);
  border-block: 1px solid rgba(255, 102, 0, 0.25);
}

.roi-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--surface);
  border: 1px solid rgba(255, 102, 0, 0.3);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-lg);
}

.roi-steps {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.roi-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.roi-step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
}

.roi-step h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.roi-step p {
  font-size: 0.85rem;
  color: var(--muted);
}

.roi-visual {
  background: linear-gradient(145deg, rgba(0, 21, 51, 0.08) 0%, rgba(255, 102, 0, 0.12) 100%);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}

.roi-chart {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  height: 160px;
  margin-bottom: 20px;
}

.roi-bar {
  width: 36px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, var(--primary-light) 0%, var(--primary) 100%);
  animation: growBar 1.2s ease forwards;
  transform-origin: bottom;
  transform: scaleY(0);
}

.roi-bar:nth-child(1) { height: 45%; animation-delay: 0.1s; }
.roi-bar:nth-child(2) { height: 62%; animation-delay: 0.2s; }
.roi-bar:nth-child(3) { height: 78%; animation-delay: 0.3s; background: linear-gradient(180deg, var(--accent) 0%, #d4922a 100%); }
.roi-bar:nth-child(4) { height: 55%; animation-delay: 0.4s; }

@keyframes growBar {
  to { transform: scaleY(1); }
}

.roi-visual-caption {
  font-size: 0.88rem;
  color: var(--muted);
}

/* ── Contact ── */
.contact-section {
  background: var(--surface);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info {
  display: grid;
  gap: 20px;
}

.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0, 21, 51, 0.1);
  display: grid;
  place-items: center;
  color: var(--primary);
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.contact-item p, .contact-item a {
  font-size: 0.88rem;
  color: var(--muted);
  text-decoration: none;
}

.contact-item a:hover { color: var(--primary); }

.contact-cta-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
}

.contact-cta-box h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.contact-cta-box p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 24px;
}

/* ── Footer ── */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.65);
  padding: 48px 0 32px;
  font-size: 0.88rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 8px;
}

.footer-brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
}

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

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ── Mobile nav ── */
@media (max-width: 960px) {
  .hero-grid,
  .platform-grid,
  .pricing-grid,
  .roi-card,
  .contact-grid,
  .media-grid {
    grid-template-columns: 1fr;
  }

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

  .hero {
    overflow: visible;
    padding-bottom: 48px;
  }

  .hero-visual {
    margin-top: 20px;
    overflow: visible;
  }

  .hero-demo-timeline {
    width: 100%;
    max-width: 360px;
  }

  .hero-demo-phase-label {
    font-size: 0.72rem;
  }

  .hero-demo-stage {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .hero-device {
    width: min(280px, 88vw);
    max-width: none;
    transform: none;
  }

  .hero-kiosk {
    max-height: none;
    aspect-ratio: 9 / 15;
  }

  .hero-printer-wrap {
    width: min(200px, 62vw);
    margin-left: 0;
    margin-top: 4px;
  }

  .reference-card {
    flex-direction: column;
    text-align: center;
  }

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

@media (max-width: 720px) {
  .hero {
    padding-bottom: 64px;
  }

  .hero-demo-stage {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px 16px 12px;
    box-shadow: var(--shadow);
  }

  .hero-demo-shell.is-printing {
    padding-bottom: 24px;
  }

  .hero-receipt-clip {
    width: min(200px, 72vw);
  }

  .hero-receipt-clip.printing {
    height: 320px;
  }

  .hero-receipt-paper {
    font-size: 0.58rem;
    padding: 12px 10px 16px;
  }

  .hero-receipt-logo { font-size: 0.65rem; }

  .hero-cart-item-name {
    white-space: normal;
    font-size: 0.72rem;
  }

  .hero-demo-scan-head h3 { font-size: 0.95rem; }
  .hero-demo-scan-head p { font-size: 0.72rem; }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    padding: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .site-nav.open { display: flex; }

  .nav-toggle { display: block; }

  .header-actions .btn-outline { display: none; }

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

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

  .hero { padding-bottom: 48px; }

  .roi-card { padding: 28px; }

  section { padding: 64px 0; }
}
