/* ============================================================
   JKSoft — Design System
   Modern B2B SaaS styling: Inter, indigo primary, light surfaces
   ============================================================ */

:root {
  /* Color tokens */
  --navy: #0d1330;
  --ink: #1b2342;
  --body: #4b5472;
  --muted: #6e7691;
  --primary: #4250e4;
  --primary-dark: #3340c4;
  --primary-deep: #232c7a;
  --primary-soft: #eef0fe;
  --primary-border: #d7dbfb;
  --accent: #06b6d4;
  --orange: #f97316;
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --bg-tint: #f0f3fc;
  --border: #e4e7f0;
  --white: #ffffff;
  --footer-bg: #0d1330;

  /* Effects */
  --shadow-sm: 0 1px 3px rgba(13, 19, 48, 0.08);
  --shadow-md: 0 6px 24px rgba(13, 19, 48, 0.09);
  --shadow-lg: 0 18px 48px rgba(13, 19, 48, 0.14);
  --shadow-primary: 0 10px 30px rgba(66, 80, 228, 0.28);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;

  /* Layout */
  --container: 1200px;
  --header-h: 4.25rem;
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.6em;
  color: var(--navy);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.022em;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-dark);
}

ul {
  margin: 0;
  padding: 0;
}

:focus-visible {
  outline: 3px solid rgba(66, 80, 228, 0.45);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section {
  padding: 5.5rem 0;
}

.section--soft {
  background: var(--bg-soft);
}

.section--tint {
  background: linear-gradient(165deg, #f2f4fd 0%, #eef1fb 100%);
}

.section-head {
  max-width: 680px;
  margin: 0 auto 3.25rem;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
}

.section-head p {
  font-size: 1.06rem;
  color: var(--muted);
  margin: 0;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.9rem;
}

.lead {
  font-size: 1.13rem;
  color: var(--muted);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.55rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease,
    box-shadow 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #2f6ae8 100%);
  color: var(--white);
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #2558c9 100%);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 4px 14px rgba(66, 80, 228, 0.3);
}

.btn-outline {
  background: var(--white);
  color: var(--ink);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-light {
  background: var(--white);
  color: var(--primary-deep);
}

.btn-light:hover {
  background: #eef0fe;
  color: var(--primary-deep);
  transform: translateY(-2px);
}

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.22);
  color: var(--white);
}

.btn-lg {
  padding: 0.95rem 2rem;
  font-size: 1.02rem;
}

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 4px 20px rgba(13, 19, 48, 0.06);
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand img {
  height: 1.9rem;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.nav-link:hover {
  color: var(--primary);
  background: var(--primary-soft);
}

.nav-link .caret {
  width: 0.65rem;
  height: 0.65rem;
  transition: transform 0.2s ease;
}

.nav-item.is-open .nav-link .caret {
  transform: rotate(180deg);
}

.nav-cta {
  margin-left: 0.5rem;
}

.nav-cta .btn {
  padding: 0.6rem 1.25rem;
  font-size: 0.88rem;
}

/* Dropdown */
.dropdown-panel {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 480px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.15rem 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.nav-item.is-open .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-group-label {
  grid-column: 1 / -1;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.55rem 0.6rem 0.25rem;
}

.dropdown-link {
  display: block;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.dropdown-link:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.dropdown-link small {
  display: block;
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--muted);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
  border-radius: 8px;
}

.nav-toggle svg {
  width: 1.6rem;
  height: 1.6rem;
  stroke: var(--ink);
}

.nav-toggle .icon-close {
  display: none;
}

@media (max-width: 1020px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-menu {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 0.75rem 1rem 1.25rem;
    display: none;
  }

  body.nav-open .nav-menu {
    display: flex;
  }

  body.nav-open .nav-toggle .icon-menu {
    display: none;
  }

  body.nav-open .nav-toggle .icon-close {
    display: block;
  }

  body.nav-open {
    overflow: hidden;
  }

  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 0.8rem 0.75rem;
    font-size: 1rem;
  }

  .dropdown-panel {
    position: static;
    transform: none;
    min-width: 0;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: 0;
    border-left: 2px solid var(--primary-border);
    border-radius: 0;
    margin: 0 0 0.5rem 0.85rem;
    padding: 0.15rem 0 0.35rem 0.4rem;
    display: none;
    grid-template-columns: 1fr;
  }

  .nav-item.is-open .dropdown-panel {
    display: grid;
    transform: none;
  }

  .nav-cta {
    margin: 0.85rem 0.5rem 0;
  }

  .nav-cta .btn {
    width: 100%;
  }
}

/* ---------- Hero (homepage) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(66, 80, 228, 0.12), transparent 65%),
    radial-gradient(700px 420px at -10% 110%, rgba(6, 182, 212, 0.1), transparent 60%),
    linear-gradient(180deg, #fbfcff 0%, #f3f5fd 100%);
  padding: 5.5rem 0 5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  border: 1px solid var(--primary-border);
  color: var(--primary-deep);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.4rem;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  margin-bottom: 1.1rem;
}

.hero h1 .grad {
  background: linear-gradient(95deg, var(--primary) 20%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lead {
  max-width: 540px;
  margin-bottom: 1.9rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.1rem;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  list-style: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-points svg {
  width: 1rem;
  height: 1rem;
  color: var(--accent);
  flex-shrink: 0;
}

.hero-visual {
  position: relative;
}

.hero-visual .img-frame {
  box-shadow: var(--shadow-lg);
}

.float-card {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
}

.float-card strong {
  display: block;
  font-size: 0.95rem;
  color: var(--navy);
}

.float-card .icon-circle {
  width: 2.2rem;
  height: 2.2rem;
}

.float-card--tl {
  top: -1.2rem;
  left: -1.2rem;
}

.float-card--br {
  bottom: -1.2rem;
  right: -0.8rem;
}

@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .float-card--tl {
    left: 0;
  }

  .float-card--br {
    right: 0;
  }
}

/* ---------- Stats band ---------- */
.stats-band {
  background: linear-gradient(120deg, var(--primary-deep) 0%, var(--primary) 60%, #2f6ae8 100%);
  color: var(--white);
  padding: 2.6rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stat-value {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.85;
  margin-top: 0.3rem;
}

@media (max-width: 920px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 560px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.icon-circle {
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft);
  color: var(--primary);
  flex-shrink: 0;
}

.icon-circle svg {
  width: 1.4rem;
  height: 1.4rem;
}

/* Solution cards (4 industries) */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.solution-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.solution-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-border);
}

.solution-card-media {
  aspect-ratio: 16 / 8.5;
  overflow: hidden;
  background: var(--bg-tint);
}

.solution-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.solution-card:hover .solution-card-media img {
  transform: scale(1.045);
}

.solution-card-body {
  padding: 1.6rem 1.7rem 1.8rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.solution-card-body h3 {
  font-size: 1.3rem;
  margin-bottom: 0.45rem;
}

.solution-kicker {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.solution-card-body p {
  font-size: 0.94rem;
  margin-bottom: 1.1rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.4rem;
}

.tag {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--primary-deep);
  background: var(--primary-soft);
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
}

.card-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.93rem;
}

.card-link svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s ease;
}

.card-link:hover svg {
  transform: translateX(4px);
}

@media (max-width: 820px) {
  .solutions-grid {
    grid-template-columns: 1fr;
  }
}

/* Feature cards (platform) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  display: block;
  color: inherit;
}

a.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-border);
  color: inherit;
}

.feature-card .icon-circle {
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.feature-card p {
  font-size: 0.9rem;
  margin: 0;
  color: var(--muted);
}

@media (max-width: 920px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* Why JKSoft */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.why-item {
  display: flex;
  gap: 1.1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.why-item h3 {
  font-size: 1.04rem;
  margin-bottom: 0.35rem;
}

.why-item p {
  font-size: 0.92rem;
  margin: 0;
  color: var(--muted);
}

@media (max-width: 820px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Check list ---------- */
.check-list {
  list-style: none;
  display: grid;
  gap: 0.8rem;
}

.check-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.96rem;
}

.check-list li strong {
  color: var(--ink);
}

.check-list .check {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
  color: var(--primary);
}

/* ---------- Feature rows (product pages) ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  padding: 4.25rem 0;
}

.feature-row + .feature-row {
  border-top: 1px solid var(--border);
}

.feature-row h2 {
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  margin-bottom: 0.9rem;
}

.feature-row .lead {
  font-size: 1rem;
  margin-bottom: 1.4rem;
}

.feature-row-media {
  display: grid;
  gap: 1.25rem;
}

.feature-row--flip .feature-row-media {
  order: -1;
}

@media (max-width: 880px) {
  .feature-row {
    grid-template-columns: 1fr;
    gap: 2.25rem;
    padding: 3.25rem 0;
  }

  .feature-row--flip .feature-row-media {
    order: 0;
  }
}

.img-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  background: var(--white);
}

.img-frame img {
  width: 100%;
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background:
    radial-gradient(800px 400px at 90% -20%, rgba(66, 80, 228, 0.12), transparent 60%),
    linear-gradient(180deg, #fbfcff 0%, #f3f5fd 100%);
  padding: 4.5rem 0 4rem;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.page-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
}

.page-hero .lead {
  margin-bottom: 1.8rem;
  max-width: 540px;
}

.page-hero--center {
  text-align: center;
}

.page-hero--center .lead {
  margin-inline: auto;
}

.page-hero--center .hero-actions {
  justify-content: center;
}

@media (max-width: 880px) {
  .page-hero-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Anchor pills ---------- */
.anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  padding: 1.6rem 0;
}

.anchor-pill {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 1.05rem;
  transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

.anchor-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}

/* ---------- Testimonials ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.testimonial-card .stars {
  color: #f5a623;
  letter-spacing: 0.12em;
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
}

.testimonial-card blockquote {
  margin: 0 0 1.3rem;
  font-size: 0.95rem;
  color: var(--ink);
  flex: 1;
}

.testimonial-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.testimonial-meta img {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-meta strong {
  display: block;
  font-size: 0.92rem;
  color: var(--navy);
}

.testimonial-meta span {
  font-size: 0.8rem;
  color: var(--muted);
}

@media (max-width: 920px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 580px;
    margin-inline: auto;
  }
}

/* ---------- Logo wall ---------- */
.logo-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
  gap: 0.8rem;
}

.logo-wall img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--white);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.logo-wall img:hover {
  transform: scale(1.35);
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 2;
}

/* ---------- Dealer / distributor section ---------- */
.dealer-paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  margin-bottom: 3rem;
}

.dealer-path {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.dealer-path-media {
  aspect-ratio: 16 / 7;
  overflow: hidden;
  background: var(--bg-tint);
}

.dealer-path-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dealer-path-body {
  padding: 1.6rem 1.7rem 1.8rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.dealer-path-body h3 {
  font-size: 1.2rem;
}

.dealer-path-body p {
  font-size: 0.94rem;
  color: var(--muted);
}

.dealer-path-body .btn {
  align-self: flex-start;
  margin-top: auto;
}

@media (max-width: 820px) {
  .dealer-paths {
    grid-template-columns: 1fr;
  }
}

.distributor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.distributor-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.distributor-card h3 {
  font-size: 1.02rem;
  margin-bottom: 0.2rem;
}

.distributor-card .langs {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary-deep);
  background: var(--primary-soft);
  border-radius: 999px;
  padding: 0.18rem 0.65rem;
  margin-bottom: 0.75rem;
}

.distributor-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.9;
}

@media (max-width: 920px) {
  .distributor-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .distributor-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(700px 320px at 15% -30%, rgba(6, 182, 212, 0.25), transparent 60%),
    linear-gradient(120deg, var(--primary-deep) 0%, var(--primary) 65%, #2f6ae8 100%);
  border-radius: var(--radius-lg);
  color: var(--white);
  text-align: center;
  padding: 4rem 2rem;
}

.cta-band h2 {
  color: var(--white);
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  margin-bottom: 0.7rem;
}

.cta-band p {
  font-size: 1.05rem;
  opacity: 0.88;
  max-width: 560px;
  margin: 0 auto 1.9rem;
}

.cta-band .hero-actions {
  justify-content: center;
  margin-bottom: 0;
}

/* ---------- Gallery (kiosk) ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.gallery-grid button {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  padding: 0;
  cursor: zoom-in;
  background: var(--white);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-grid button:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

@media (max-width: 880px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 560px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(8, 11, 30, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 4.5rem;
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 7rem);
  width: auto;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.lightbox button {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  border-radius: 50%;
  width: 2.9rem;
  height: 2.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
  transition: background-color 0.18s ease;
}

.lightbox button:hover {
  background: rgba(255, 255, 255, 0.28);
}

.lightbox .lb-close {
  top: 1rem;
  right: 1rem;
}

.lightbox .lb-prev {
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox .lb-next {
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox .lb-counter {
  position: absolute;
  bottom: 1.1rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  font-weight: 600;
}

@media (max-width: 640px) {
  .lightbox {
    padding: 3.5rem 0.75rem;
  }
}

/* ---------- Hardware grid ---------- */
.hardware-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.hardware-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem 1.1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hardware-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.hardware-card img {
  height: 7.5rem;
  width: auto;
  margin: 0 auto 0.9rem;
  object-fit: contain;
}

.hardware-card span {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
}

@media (max-width: 880px) {
  .hardware-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 560px) {
  .hardware-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- About page ---------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.about-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.9rem 1.8rem;
  box-shadow: var(--shadow-sm);
}

.about-card .icon-circle {
  margin-bottom: 1.1rem;
}

.about-card h2 {
  font-size: 1.18rem;
  margin-bottom: 0.55rem;
}

.about-card p {
  font-size: 0.94rem;
  margin: 0;
  color: var(--muted);
}

@media (max-width: 820px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer-bg);
  color: #aab0c8;
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding: 4rem 0 3rem;
}

.footer-brand img {
  height: 1.8rem;
  margin-bottom: 1.1rem;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: 0.86rem;
  color: #8089a8;
  max-width: 280px;
}

.footer-brand a {
  display: block;
  color: #aab0c8;
  line-height: 2;
}

.footer-brand a:hover {
  color: var(--white);
}

.footer-col h3 {
  color: var(--white);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.footer-col a {
  display: block;
  color: #8e96b4;
  line-height: 2.15;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.2rem 0;
  text-align: center;
  font-size: 0.78rem;
  color: #6a7392;
}

@media (max-width: 880px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 540px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Utilities ---------- */
.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 2rem;
}

.mt-3 {
  margin-top: 3rem;
}

.mb-0 {
  margin-bottom: 0;
}
