/*========== Tokens ============*/
/* Deep Petrol & Teal Palette */
:root {
  --color-text-main: #0B2530;
  --color-primary: #136F63;
  --color-accent: #22AAA1;
  --color-highlight: #4ECCA3;
  --color-bg-light: #E8F6F5;
}

/* Semantic tokens mapped to the palette */
:root {
  --blue: var(--color-primary);
  --blue-dark: #0E564D;
  --blue-rgb: 19,111,99;
  --on-primary: #FFFFFF;
  --gold: var(--color-accent);
  --gold-light: var(--color-highlight);
  --text: var(--color-text-main);
  --heading: var(--color-text-main);
  --bg: var(--color-bg-light);
  --surface: #FFFFFF;
  --muted: #3F5F66;
  --border: #CFE6E3;
  --section-dark: var(--color-text-main);
  --radius: 14px;
  --shadow: 0 2px 16px rgba(19,111,99,.10);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --blue: var(--color-highlight);
    --blue-dark: #3DB892;
    --blue-rgb: 78,204,163;
    --on-primary: var(--color-text-main);
    --gold: var(--color-highlight);
    --text: #C5E3E0;
    --heading: var(--color-bg-light);
    --bg: #071A22;
    --surface: #0F2E3A;
    --muted: #8DB3B0;
    --border: #1E4652;
    --section-dark: #0B2530;
    --shadow: 0 2px 16px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --blue: var(--color-highlight);
  --blue-dark: #3DB892;
  --blue-rgb: 78,204,163;
  --on-primary: var(--color-text-main);
  --gold: var(--color-highlight);
  --text: #C5E3E0;
  --heading: var(--color-bg-light);
  --bg: #071A22;
  --surface: #0F2E3A;
  --muted: #8DB3B0;
  --border: #1E4652;
  --section-dark: #0B2530;
  --shadow: 0 2px 16px rgba(0,0,0,.35);
  color-scheme: dark;
}

/*========== Base ============*/
:root[lang="ar"] [lang="en"],
:root[lang="en"] [lang="ar"] { display: none !important; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.75;
}

.wrap {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 48px);
}

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/*========== Header ============*/
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-block-end: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--heading);
  font-weight: 700;
  font-size: 17px;
  flex-shrink: 0;
}

.brand-logo { border-radius: 50%; object-fit: contain; background: #fff; flex-shrink: 0; }

.nav {
  display: flex;
  gap: 4px;
  margin-inline-start: 16px;
}

.nav a {
  padding: 6px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  transition: color .15s, background .15s;
}

.nav a:hover { color: var(--blue); background: rgba(var(--blue-rgb),.06); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-inline-start: auto;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}

.icon-btn:hover { border-color: var(--blue); background: rgba(var(--blue-rgb),.06); }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 20px;
  background: var(--blue);
  color: var(--on-primary);
  border-radius: 9px;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: background .15s;
  white-space: nowrap;
}

.btn-primary:hover { background: var(--blue-dark); }
.btn-primary.lg { height: 48px; padding: 0 28px; font-size: 16px; }
.btn-primary[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 28px;
  border: 2px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: border-color .15s, color .15s;
}

.btn-outline:hover { border-color: var(--blue); color: var(--blue); }

/*========== Hero ============*/
.hero {
  padding-block: clamp(64px, 10vw, 120px);
  background: linear-gradient(135deg, var(--surface) 60%, rgba(var(--blue-rgb),.04) 100%);
  border-block-end: 1px solid var(--border);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.hero-badge {
  display: inline-block;
  margin: 0 0 20px;
  padding: 4px 14px;
  background: rgba(var(--blue-rgb),.1);
  color: var(--blue);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
}

.hero-text h1 {
  margin: 0 0 20px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.2;
  color: var(--heading);
}

.hero-text h1 em {
  font-style: normal;
  color: var(--blue);
  position: relative;
}

.hero-sub {
  margin: 0 0 36px;
  color: var(--muted);
  font-size: clamp(15px, 2vw, 18px);
  max-width: 480px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-note {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.hero-card.secondary { opacity: .85; }

.card-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}

.dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot.green { background: #22c55e; }
.dot.gold { background: var(--gold); }

.card-amount {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 14px;
}

.card-bar {
  height: 8px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
}

.card-bar .fill { display: block; height: 100%; background: var(--blue); border-radius: 100px; }
.card-bar .fill.gold { background: var(--gold); }

/*========== About ============*/
.about {
  padding-block: clamp(64px, 8vw, 96px);
  background: var(--surface);
  border-block-end: 1px solid var(--border);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.section-label {
  display: inline-block;
  margin-bottom: 12px;
  padding: 3px 12px;
  background: rgba(var(--blue-rgb),.08);
  color: var(--blue);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
}

.about-text h2 {
  margin: 0 0 20px;
  font-size: clamp(24px, 3.5vw, 36px);
  color: var(--heading);
  line-height: 1.3;
}

.about-text p {
  margin: 0 0 24px;
  color: var(--muted);
}

.about-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-list li { font-weight: 500; }

.about-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.stat {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-inline-start: 4px solid var(--blue);
  background: var(--bg);
}

.stat-num {
  display: block;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--blue);
}

.stat-label { font-size: 14px; color: var(--muted); }

/*========== Products ============*/
.products {
  padding-block: clamp(64px, 8vw, 96px);
}

.section-head {
  text-align: center;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-head h2 {
  margin: 0;
  font-size: clamp(24px, 3.5vw, 38px);
  color: var(--heading);
  line-height: 1.3;
}

.section-head.light h2 { color: #fff; }
.section-head.light .section-label { background: rgba(255,255,255,.15); color: #fff; }

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

.section-sub {
  max-width: 620px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: clamp(15px, 1.8vw, 17px);
}

.product-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: box-shadow .25s, transform .25s, border-color .25s;
}

/* Accent bar that slides in on hover */
.product-card::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-start: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--gold-light));
  transform: scaleX(0);
  transition: transform .3s;
}

.product-card:hover {
  border-color: rgba(var(--blue-rgb),.35);
  box-shadow: 0 12px 32px rgba(var(--blue-rgb),.14);
  transform: translateY(-4px);
}

.product-card:hover::before { transform: scaleX(1); }

.product-icon,
.feature-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: rgba(var(--blue-rgb),.1);
  color: var(--blue);
  transition: background .25s, color .25s;
}

.product-icon svg,
.feature-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-card:hover .product-icon { background: var(--blue); color: var(--on-primary); }

.product-card h3 {
  margin: 0 0 10px;
  color: var(--heading);
  font-size: 18px;
}

.product-card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.8; }

/* Stretched link: the whole card is clickable */
.card-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.card-link::after { content: ""; position: absolute; inset: 0; }
.card-link span::after { content: " ←"; }
:root[dir="ltr"] .card-link span::after { content: " →"; }

/*========== POS page ============*/
.pos-receipt .receipt-lines {
  margin: 0 0 14px;
  padding: 0 0 14px;
  list-style: none;
  border-block-end: 1px dashed var(--border);
  font-size: 14px;
}
.pos-receipt .receipt-lines li { display: flex; justify-content: space-between; gap: 12px; padding-block: 4px; }
.pos-receipt b { font-weight: 500; color: var(--heading); white-space: nowrap; }
.receipt-total { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); }
.receipt-total b { font-size: 20px; font-weight: 700; color: var(--blue); }

/* Hero image with floating cards */
.pos-hero-visual {
  position: relative;
  display: block;
  width: 100%;
  max-width: 540px;
  margin-inline: auto;
  padding-block: 24px;
}
.pos-hero-img {
  position: relative;
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  margin-inline: auto;
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(var(--blue-rgb),.22);
  animation: pos-enter .9s cubic-bezier(.2,.7,.2,1) both, pos-bob 6s ease-in-out .9s infinite;
}
.pos-hero-img.pos-hero-cutout {
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 24px 44px rgba(var(--blue-rgb),.2));
}
.pos-hero-glow {
  position: absolute;
  inset: 10% 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--blue-rgb),.35), transparent 70%);
  filter: blur(40px);
  animation: pos-pulse 6s ease-in-out infinite;
}
.pos-hero-visual .hero-card {
  position: absolute;
  z-index: 1;
  width: min(250px, 55%);
  padding: 16px 18px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(10px);
}
.pos-hero-visual .pos-receipt,
.pos-hero-visual .primary-float { inset-block-end: 0; inset-inline-start: -12px; }
.pos-hero-visual .secondary { inset-block-start: 4px; inset-inline-end: -12px; opacity: 1; }
.pos-hero-visual .card-amount { font-size: 20px; margin-bottom: 10px; }
.pos-hero-visual .receipt-lines { font-size: 13px; }
.pos-float { animation: pos-enter .9s cubic-bezier(.2,.7,.2,1) .3s both, pos-bob 5s ease-in-out 1.2s infinite; }
.pos-float.secondary { animation-delay: .5s, 2s; }

@keyframes pos-enter {
  from { opacity: 0; transform: translateY(30px) scale(.96); }
  to   { opacity: 1; transform: none; }
}
@keyframes pos-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
@keyframes pos-pulse {
  0%, 100% { opacity: .6; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.08); }
}

@media (max-width: 560px) {
  .pos-hero-visual .hero-card { position: static; width: 100%; margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .pos-hero-img, .pos-hero-glow, .pos-float { animation: none; }
}

.split-section {
  padding-block: clamp(64px, 8vw, 96px);
}
.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.split-text h2 {
  margin: 0 0 16px;
  font-size: clamp(24px, 3.5vw, 36px);
  color: var(--heading);
  line-height: 1.3;
}
.split-text p { margin: 0 0 24px; color: var(--muted); }

.check-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.check-list li { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.check-list li::before {
  content: "✓";
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(var(--blue-rgb),.12);
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

.device-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.device {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--heading);
  font-weight: 700;
  font-size: 15px;
}
.device svg {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.payments { margin-top: clamp(40px, 5vw, 56px); text-align: center; }
.payments h3 { margin: 0 0 16px; color: var(--heading); font-size: 18px; }

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.chips li {
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--bg);
  color: var(--heading);
  font-weight: 700;
  font-size: 14px;
}
.chips.light li { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.15); color: #fff; font-weight: 500; }

.faq { max-width: 780px; margin-inline: auto; display: grid; gap: 12px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 24px;
}
.faq details[open] { border-color: rgba(var(--blue-rgb),.35); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-block: 18px;
  color: var(--heading);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font-size: 22px; line-height: 1; flex-shrink: 0; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 20px; color: var(--muted); font-size: 15px; }

.cta-band {
  padding-block: clamp(48px, 6vw, 72px);
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: var(--on-primary);
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 6px; font-size: clamp(24px, 3.5vw, 34px); }
.cta-band p { margin: 0; opacity: .85; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band .btn-primary { background: var(--on-primary); color: var(--blue-dark); }
.cta-band .btn-primary:hover { opacity: .9; }
.cta-band .btn-outline { border-color: currentColor; color: var(--on-primary); }
.cta-band .btn-outline:hover { background: rgba(255,255,255,.1); }

.nav a[aria-current="page"] { color: var(--blue); background: rgba(var(--blue-rgb),.08); }

.promo-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding: 28px 32px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(var(--blue-rgb),.12), rgba(var(--blue-rgb),.04));
  border: 1px solid rgba(var(--blue-rgb),.25);
}
.promo-band h3 { margin: 0 0 4px; color: var(--heading); font-size: 19px; }
.promo-band p { margin: 0; color: var(--muted); font-size: 14.5px; }

.benefits {
  margin-top: clamp(32px, 5vw, 48px);
  padding: 28px 32px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
}
.benefits h3 { margin: 0 0 20px; color: var(--heading); font-size: 18px; }
.benefits-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.benefits-list li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--heading);
  font-weight: 700;
}
.benefits-list svg {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 760px) {
  .benefits-list { grid-template-columns: 1fr; }
  .benefits-list li { justify-content: flex-start; }
}

.offer-badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 14px;
  border-radius: 100px;
  background: rgba(255,255,255,.18);
  font-size: 14px;
  font-weight: 700;
}

/* Devices section: fixed brand colors so it looks the same in both themes */
.devices-section {
  position: relative;
  overflow: hidden;
  padding-block: clamp(64px, 8vw, 96px);
  background:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.12) 1px, transparent 0) 0 0 / 22px 22px,
    linear-gradient(135deg, #0E564D 0%, #136F63 45%, #22AAA1 100%);
  color: #fff;
}
.devices-section .section-sub { color: rgba(255,255,255,.8); }

.devices-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1040px;
  margin-inline: auto;
}
.value-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(6px);
}
.value-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff;
  color: #136F63;
}
.value-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.value-card h3 { margin: 0 0 4px; font-size: 16px; }
.value-card p { margin: 0; font-size: 14px; color: rgba(255,255,255,.78); line-height: 1.7; }

/* Device carousel: native scroll-snap (touch swipe works), arrows + autoplay from main.js */
.devices-carousel {
  max-width: 1240px;
  margin: clamp(40px, 6vw, 64px) auto 0;
  padding-inline: clamp(16px, 4vw, 48px);
}
.carousel-viewport { position: relative; }
.devices-list {
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 8px 4px 12px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.devices-list::-webkit-scrollbar { display: none; }
.devices-list:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: var(--radius); }
.devices-list .device-item { flex: 0 0 calc((100% - 4 * 16px) / 5); }

.carousel-btn {
  position: absolute;
  z-index: 2;
  inset-block-start: 40%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #136F63;
  box-shadow: 0 6px 18px rgba(0,0,0,.2);
  cursor: pointer;
  transform: translateY(-50%);
  transition: transform .2s, opacity .2s;
}
.carousel-btn:hover { transform: translateY(-50%) scale(1.08); }
.carousel-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.carousel-btn.prev { inset-inline-start: -22px; }
.carousel-btn.next { inset-inline-end: -22px; }
:root[dir="ltr"] .carousel-btn svg { transform: scaleX(-1); }


@media (max-width: 1100px) { .devices-list .device-item { flex-basis: calc((100% - 3 * 16px) / 4); } }
@media (max-width: 860px)  { .devices-list .device-item { flex-basis: calc((100% - 2 * 16px) / 3); } }
@media (max-width: 600px)  { .devices-list .device-item { flex-basis: calc((100% - 16px) / 2); } .carousel-btn { display: none; } }

.device-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 8px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  text-align: center;
  transition: background .25s;
}
.device-item:hover { background: rgba(255,255,255,.12); }
.device-item strong { font-size: 15px; }
.device-cat { font-size: 13px; color: rgba(255,255,255,.7); }
.device-photo {
  width: 100%;
  max-width: 180px;
  height: 180px;
  margin-bottom: 8px;
  object-fit: contain;
  filter: drop-shadow(0 14px 16px rgba(0,0,0,.28));
  transition: transform .3s;
  /* `translate` floats while `transform` stays free for the hover zoom */
  animation: device-float 4s ease-in-out infinite;
}
.device-item:nth-child(3n+2) .device-photo { animation-delay: -1.3s; }
.device-item:nth-child(3n) .device-photo { animation-delay: -2.6s; }
.device-item:hover .device-photo { transform: scale(1.08); }
@keyframes device-float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -10px; }
}

/* Cards rise in one after another when the carousel scrolls into view */
.js .devices-carousel .device-item { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1), background .25s; }
.js .devices-carousel.is-visible .device-item { opacity: 1; transform: none; }
.js .devices-carousel.is-visible .device-item:nth-child(2) { transition-delay: .08s; }
.js .devices-carousel.is-visible .device-item:nth-child(3) { transition-delay: .16s; }
.js .devices-carousel.is-visible .device-item:nth-child(4) { transition-delay: .24s; }
.js .devices-carousel.is-visible .device-item:nth-child(5) { transition-delay: .32s; }
.js .devices-carousel.is-visible .device-item:nth-child(n+6) { transition-delay: .4s; }


.devices-more { margin-top: 28px; text-align: center; }
.devices-more a { color: #fff; font-weight: 700; text-decoration: none; border-block-end: 2px solid rgba(255,255,255,.4); padding-bottom: 2px; }
.devices-more a:hover { border-color: #fff; }
.devices-more a::after { content: " ←"; }
:root[dir="ltr"] .devices-more a::after { content: " →"; }

@media (max-width: 860px) { .devices-values { grid-template-columns: 1fr; max-width: 520px; } }
@media (prefers-reduced-motion: reduce) {
  .device-photo { animation: none; }
  .js .devices-carousel .device-item { opacity: 1; transform: none; transition: none; }
}

/* Home page POS showcase */
.pos-showcase { margin-top: 32px; }
.pos-showcase .promo-band { margin-top: 0; border-end-start-radius: 0; border-end-end-radius: 0; border-block-end: 0; }
.showcase-frame {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(var(--blue-rgb),.25);
  border-block-start: 0;
  border-end-start-radius: var(--radius);
  border-end-end-radius: var(--radius);
  background: linear-gradient(180deg, rgba(var(--blue-rgb),.04), rgba(var(--blue-rgb),.12));
  padding: clamp(12px, 3vw, 32px);
}
.showcase-frame img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(var(--blue-rgb),.2);
  animation: pos-bob 7s ease-in-out infinite;
  transition: transform .4s;
}
.showcase-frame:hover img { transform: scale(1.015); }
.showcase-glow {
  position: absolute;
  inset: 15% 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--blue-rgb),.4), transparent 70%);
  filter: blur(50px);
  animation: pos-pulse 6s ease-in-out infinite;
}
/* Light sweep across the image every few seconds */
.showcase-shine {
  position: absolute;
  z-index: 2;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.35) 50%, transparent 60%);
  transform: translateX(-100%);
  animation: showcase-shine 5s ease-in-out 1.5s infinite;
  pointer-events: none;
}
@keyframes showcase-shine {
  0%   { transform: translateX(-100%); }
  35%, 100% { transform: translateX(100%); }
}

/*========== Home POS terminal spotlight ============*/
.pos-spotlight {
  padding-block: clamp(64px, 8vw, 104px);
  background: var(--surface);
  border-block-start: 1px solid var(--border);
  overflow: hidden;
}
.pos-spotlight-wrap {
  max-width: 1220px;
}
.pos-spotlight-grid {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(280px, 410px) minmax(260px, 340px);
  justify-content: center;
  align-items: center;
  gap: clamp(20px, 3vw, 36px);
}
.pos-spotlight-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  z-index: 2;
}
.pos-spot-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(var(--blue-rgb),.06);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.pos-spot-card:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--blue-rgb),.35);
  box-shadow: 0 12px 28px rgba(var(--blue-rgb),.12);
}
.pos-spot-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(var(--blue-rgb),.09);
  color: var(--blue);
  transition: background .25s, color .25s;
}
.pos-spot-card:hover .pos-spot-icon {
  background: var(--blue);
  color: var(--on-primary);
}
.pos-spot-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pos-spot-body h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.45;
}
.pos-spot-body p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.65;
}

.pos-spotlight-center {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  width: 100%;
  max-width: 410px;
  margin-inline: auto;
}
.pos-spotlight-rings {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(var(--blue-rgb),.065);
  display: grid;
  place-items: center;
  animation: pos-pulse 7s ease-in-out infinite;
}
.pos-ring-inner {
  width: 74%;
  height: 74%;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 10px 36px rgba(var(--blue-rgb),.09);
}
.pos-spotlight-device {
  position: relative;
  z-index: 1;
  display: block;
  width: 62%;
  max-width: 250px;
  height: auto;
  filter: drop-shadow(0 22px 32px rgba(11,37,48,.22));
  animation: pos-bob 6s ease-in-out infinite;
}

@media (max-width: 1020px) {
  .pos-spotlight-grid {
    grid-template-columns: 1fr 1fr;
  }
  .pos-spotlight-center {
    grid-column: 1 / -1;
    order: -1;
    max-width: 340px;
    margin-bottom: 8px;
  }
}
@media (max-width: 640px) {
  .pos-spotlight-grid {
    grid-template-columns: 1fr;
  }
  .pos-spotlight-center {
    max-width: 280px;
  }
}

/* Scroll reveal (class added by main.js) */
.js .reveal { opacity: 0; transform: translateY(40px) scale(.97); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .showcase-frame img, .showcase-glow, .showcase-shine, .pos-spotlight-rings, .pos-spotlight-device { animation: none; }
  .showcase-shine { display: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

.faq-ask { margin-top: 28px; text-align: center; }
.faq-ask p { margin: 0 0 12px; color: var(--muted); }

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 24px;
  border-radius: 9px;
  background: #25D366;
  color: #0B2530;
  font-weight: 700;
  text-decoration: none;
  transition: filter .15s;
}
.btn-whatsapp:hover { filter: brightness(.95); }
.btn-whatsapp svg { width: 20px; height: 20px; fill: currentColor; }

.whatsapp-fab {
  position: fixed;
  inset-block-end: 20px;
  inset-inline-end: 20px;
  z-index: 200;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  transition: transform .2s;
}
.whatsapp-fab:hover { transform: scale(1.08); }
.whatsapp-fab svg { width: 28px; height: 28px; fill: currentColor; }

@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .device-row { gap: 10px; } .device { padding: 20px 8px; font-size: 13px; } }

/*========== Features ============*/
.features-section {
  padding-block: clamp(64px, 8vw, 96px);
  background: var(--surface);
  border-block: 1px solid var(--border);
}

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

.feature {
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: border-color .25s, background .25s;
}

.feature:hover { border-color: rgba(var(--blue-rgb),.35); background: rgba(var(--blue-rgb),.03); }

.feature-icon { width: 46px; height: 46px; margin-bottom: 16px; }
.feature-icon svg { width: 22px; height: 22px; }

.feature h3 {
  margin: 0 0 8px;
  color: var(--heading);
  font-size: 16px;
}

.feature p { margin: 0; color: var(--muted); font-size: 14px; }

/*========== Why ============*/
.why {
  padding-block: clamp(64px, 8vw, 96px);
  background: var(--section-dark);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 0;
}

.why-item {
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
}

.why-num {
  display: block;
  font-size: 36px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 10px;
  line-height: 1;
}

.why-item h3 { margin: 0 0 10px; color: #fff; font-size: 16px; }
.why-item p { margin: 0; color: rgba(255,255,255,.65); font-size: 14px; }

/*========== Testimonials ============*/
.testimonials-section {
  padding-block: clamp(64px, 8vw, 96px);
}

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

.testimonial-card {
  margin: 0;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-block-start: 4px solid var(--blue);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.testimonial-card p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.testimonial-card footer {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testimonial-card footer strong { color: var(--heading); font-size: 15px; }
.testimonial-card footer span { color: var(--muted); font-size: 13px; }

/*========== Footer ============*/
.site-footer {
  background: var(--surface);
  border-block-start: 1px solid var(--border);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-block: clamp(48px, 6vw, 72px);
}

.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p { margin: 0; color: var(--muted); font-size: 14px; }

.social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--muted);
  transition: color .15s, background .15s, border-color .15s, transform .15s;
}

.social a:hover {
  color: var(--on-primary);
  background: var(--blue);
  border-color: var(--blue);
  transform: translateY(-2px);
}

.social svg { width: 18px; height: 18px; fill: currentColor; }

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links h4 { margin: 0 0 8px; color: var(--heading); font-size: 15px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--blue); }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact h4 { margin: 0 0 8px; color: var(--heading); font-size: 15px; }
.footer-contact a { color: var(--muted); text-decoration: none; font-size: 14px; }
.footer-contact a:hover { color: var(--blue); }

.ltr { direction: ltr; display: inline-block; }

.footer-bottom {
  border-block-start: 1px solid var(--border);
  padding-block: 20px;
}

.footer-bottom p { margin: 0; color: var(--muted); font-size: 13px; }

/*========== Responsive ============*/
@media (max-width: 960px) {
  .nav { display: none; }
  .header-actions { margin-inline-start: auto; }
}
@media (max-width: 400px) { .brand-name { display: none; } }

@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .about-inner { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .products-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .features-grid { grid-template-columns: 1fr; } }
@media (max-width: 980px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }
@media (max-width: 980px) { .testimonials-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .testimonials-grid { grid-template-columns: 1fr; } }
@media (max-width: 820px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-inner { grid-template-columns: 1fr; } }
