/* ==========================================================================
   LeonPOS — shared site styles
   One stylesheet for every public page. Colors come from the POS itself:
   charcoal screens with deep blue buttons.
   ========================================================================== */

:root {
  /* Brand */
  --blue: #0A72C9;          /* buttons, links (AA contrast on white) */
  --blue-hover: #085EA8;
  --blue-bright: #2B9BF0;   /* accents on dark backgrounds (POS button blue) */
  --blue-50: #F0F7FE;
  --blue-100: #DDEDFC;
  --blue-200: #BCDAF7;

  /* Navy + deep blue (site backgrounds) */
  --navy: #06162C;          /* header, footer, heroes */
  --navy-2: #0B2447;
  --blue-deep: #0A4C94;     /* blue sections */
  --on-dark: #C3D3E8;       /* body text on navy / blue */

  /* Charcoal (POS screen colors) */
  --ink: #0E1217;
  --ink-2: #161B22;
  --ink-3: #212833;

  /* Neutrals (blue-tinted) */
  --text: #0B1B33;
  --muted: #3F4F66;
  --subtle: #5D6B80;
  --line: #D3E2F3;
  --soft: #E8F1FB;          /* page background: light blue, not white */
  --white: #FFFFFF;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.08);
  --shadow: 0 12px 32px -12px rgba(16, 24, 40, 0.18);
  --shadow-lg: 0 30px 60px -20px rgba(10, 30, 60, 0.28);

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1180px;
  --nav-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--soft);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
picture { display: contents; }
a { color: var(--blue); }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.025em; font-weight: 800; color: var(--text); }
p { color: var(--muted); }
:focus-visible { outline: 3px solid var(--blue-200); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 50px;
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  border: 1.5px solid transparent;
  font: inherit;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
  white-space: nowrap;
}
.btn svg { flex-shrink: 0; transition: transform 0.2s; }
.btn:hover svg.arrow { transform: translateX(3px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px -8px rgba(10, 114, 201, 0.6); }
.btn-primary:hover { background: var(--blue-hover); }
.btn-secondary { background: #fff; color: var(--text); border-color: var(--blue-200); }
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--blue-50); }
.btn-ghost-dark { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.28); }
.btn-ghost-dark:hover { border-color: #fff; background: rgba(255, 255, 255, 0.06); }
.btn-lg { min-height: 56px; padding: 0.95rem 1.75rem; font-size: 1.06rem; }
.btn-sm { min-height: 42px; padding: 0.55rem 1.1rem; font-size: 0.95rem; border-radius: 10px; }
.btn[disabled] { opacity: 0.6; cursor: wait; }

.text-link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-weight: 650; color: var(--blue); text-decoration: none;
}
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(6, 22, 44, 0.9);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.scrolled { background: rgba(6, 22, 44, 0.97); box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.5); }
.nav {
  max-width: 1280px; height: 100%; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 2rem;
}
.logo { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: #fff; flex-shrink: 0; }
.logo img { width: 38px; height: 38px; border-radius: 10px; }
.logo span { font-weight: 800; font-size: 1.2rem; letter-spacing: 0.02em; }

.nav-links { display: flex; align-items: center; gap: 0.25rem; list-style: none; flex: 1; }
.nav-links a {
  display: block; padding: 0.5rem 0.8rem; border-radius: 8px;
  color: #D0DCEC; text-decoration: none; font-weight: 550; font-size: 0.95rem;
  transition: color 0.15s, background-color 0.15s;
}
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.nav-links a[aria-current="page"] { color: #fff; background: rgba(43, 155, 240, 0.18); }
.nav-links .nav-portal { margin-left: auto; }
.nav-links .nav-portal a { display: inline-flex; align-items: center; gap: 0.4rem; }
.nav-links .menu-only { display: none; }

.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.nav-phone {
  display: inline-flex; align-items: center; gap: 0.45rem;
  color: #fff; text-decoration: none; font-weight: 650; font-size: 0.95rem; white-space: nowrap;
}
.nav-phone svg { color: var(--blue-bright); }
.nav-phone:hover { color: var(--blue-bright); }

.menu-toggle {
  display: none; width: 44px; height: 44px; margin-right: -8px;
  border: 0; background: transparent; border-radius: 10px; color: #fff; cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-toggle .icon-close { display: none; }
.site-header.open .menu-toggle .icon-open { display: none; }
.site-header.open .menu-toggle .icon-close { display: block; }

/* ---------- Sections ---------- */
main { display: block; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
/* Blue band: deep LeonPOS blue with a soft glow, between the light-blue sections */
.section-soft, .section-blue {
  position: relative; color: #fff;
  background:
    radial-gradient(900px 480px at 85% 0%, rgba(43, 155, 240, 0.35), transparent 60%),
    radial-gradient(700px 420px at 0% 100%, rgba(6, 22, 44, 0.45), transparent 60%),
    linear-gradient(160deg, #0B3A73 0%, var(--blue-deep) 55%, #0A5DB0 100%);
}
.section-dark { background: var(--navy); color: #fff; }
.section-soft h2, .section-soft h3, .section-soft h4,
.section-blue h2, .section-blue h3, .section-blue h4,
.section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-soft p, .section-blue p, .section-dark p { color: var(--on-dark); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem; margin-bottom: 0.9rem;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue);
}
.eyebrow::before { content: ''; width: 22px; height: 3px; border-radius: 2px; background: currentColor; }
.section-head.center .eyebrow::before { display: none; }
.section-dark .eyebrow, .section-soft .eyebrow, .section-blue .eyebrow,
.hero .eyebrow, .page-hero .eyebrow { color: #6CC0FF; }
.section-head { max-width: 680px; margin-bottom: 3rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); margin-bottom: 1rem; }
.section-head p { font-size: 1.125rem; }

/* ---------- Home hero ---------- */
.hero, .page-hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1000px 560px at 88% 18%, rgba(43, 155, 240, 0.42), transparent 62%),
    radial-gradient(800px 480px at -5% 105%, rgba(10, 114, 201, 0.4), transparent 60%),
    linear-gradient(165deg, var(--navy) 0%, var(--navy-2) 55%, #0A3A72 100%);
}
.hero::after, .page-hero::after { /* thin blue divider under the hero */
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue-bright) 50%, var(--blue) 100%);
}
.hero h1, .page-hero h1 { color: #fff; }
.hero p, .page-hero p { color: var(--on-dark); }
.hero { padding: calc(var(--nav-h) + 56px) 0 80px; }
.hero > .wrap { max-width: 1340px; }
.hero-grid { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 5vw, 4.3rem); line-height: 1.02; letter-spacing: -0.035em; margin-bottom: 1.25rem; }
.hero h1 .accent, .page-hero h1 .accent { color: #4DB0FF; }
.accent { color: var(--blue); }
.hero-sub { font-size: clamp(1.08rem, 1.5vw, 1.22rem); max-width: 540px; margin-bottom: 1.75rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.75rem; }
.hero-media { position: relative; }
.hero-media::before { /* blue glow behind the POS screen */
  content: ''; position: absolute; inset: 8% 4%; border-radius: 40px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(43, 155, 240, 0.55), transparent); filter: blur(30px);
}
.hero .check-list { margin-bottom: 2rem; }
.hero-text .pill { display: flex; width: max-content; max-width: 100%; }
.check-list.two-col { grid-template-columns: 1fr 1fr; gap: 0.7rem 1.25rem; }
.hero .check-list li { font-size: 1rem; }
.device.device-hero { max-width: 800px; }
.hero .btn-secondary, .page-hero .btn-secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.hero .btn-secondary:hover, .page-hero .btn-secondary:hover { border-color: #fff; background: rgba(255, 255, 255, 0.06); color: #fff; }

.pill {
  display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 1.5rem;
  padding: 0.4rem 0.9rem 0.4rem 0.7rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(108, 192, 255, 0.35);
  color: #fff; font-size: 0.9rem; font-weight: 600; text-decoration: none;
}
.pill svg { color: #6CC0FF; }
a.pill:hover { border-color: #6CC0FF; background: rgba(255, 255, 255, 0.1); }

.checks-inline { display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; list-style: none; }
.checks-inline li { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 0.95rem; color: #E3ECF7; }
.checks-inline svg { color: #6CC0FF; flex-shrink: 0; }

/* ---------- Inner-page hero ---------- */
.page-hero { padding: calc(var(--nav-h) + 64px) 0 76px; }
.page-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.page-hero h1 { font-size: clamp(2.3rem, 4.8vw, 3.6rem); line-height: 1.05; letter-spacing: -0.035em; margin-bottom: 1.2rem; }
.page-hero .lead { font-size: clamp(1.08rem, 1.5vw, 1.22rem); max-width: 540px; margin-bottom: 2rem; }
.page-hero .hero-actions { margin-bottom: 0; }
.page-hero-media img { width: 100%; max-height: 440px; object-fit: contain; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.35)); }

/* ---------- Split (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-text h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin-bottom: 1rem; }
.split-text > p { font-size: 1.1rem; margin-bottom: 1.5rem; }
.split-media {
  position: relative; border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 3rem);
  background: radial-gradient(120% 90% at 50% 0%, #fff 0%, #DCEAF9 100%);
  border: 1px solid var(--line);
}
.split-media img { margin: 0 auto; max-height: 420px; object-fit: contain; filter: drop-shadow(0 24px 30px rgba(15, 30, 60, 0.2)); }
.split-media.dark { background: radial-gradient(120% 90% at 50% 0%, #26303D 0%, var(--ink) 100%); border-color: #232A34; }

.check-list { list-style: none; display: grid; gap: 0.75rem; margin-bottom: 2rem; }
.check-list li { display: flex; gap: 0.75rem; align-items: flex-start; font-weight: 550; color: var(--text); }
.check-list li::before {
  content: ''; flex-shrink: 0; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--blue-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A72C9' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.section-dark .check-list li, .section-soft .check-list li, .section-blue .check-list li, .hero .check-list li { color: #EAF1FA; }
.section-dark .check-list li::before, .section-soft .check-list li::before, .section-blue .check-list li::before, .hero .check-list li::before { background-color: rgba(43, 155, 240, 0.18); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B9BF0' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* ---------- Feature cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--blue-200); box-shadow: var(--shadow); transform: translateY(-2px); }
/* Cards on blue bands: glassy blue instead of white */
.section-soft .card, .section-blue .card, .section-soft .product-card, .section-blue .product-card {
  background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.14);
}
.section-soft .card:hover, .section-blue .card:hover, .section-soft .product-card:hover, .section-blue .product-card:hover {
  background: rgba(255, 255, 255, 0.11); border-color: rgba(108, 192, 255, 0.55); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
}
.section-soft .icon, .section-blue .icon { background: rgba(108, 192, 255, 0.16); color: #8FD0FF; box-shadow: inset 0 0 0 1px rgba(108, 192, 255, 0.3); }
.card h3 { font-size: 1.15rem; letter-spacing: -0.015em; margin-bottom: 0.5rem; }
.card p { font-size: 0.98rem; }
.icon {
  width: 48px; height: 48px; border-radius: 12px; margin-bottom: 1.1rem;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(145deg, #1C8DE6 0%, var(--blue) 50%, var(--blue-deep) 100%);
  box-shadow: 0 8px 18px -8px rgba(10, 114, 201, 0.7);
}
.icon svg { width: 24px; height: 24px; }

/* ---------- Product cards (hardware / cameras) ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.product-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--blue-200); }
.product-card .product-img {
  height: 200px; display: block; padding: 1.25rem;
  background: radial-gradient(100% 100% at 50% 0%, #fff 0%, #EDF2F8 100%);
  border-bottom: 1px solid var(--line);
}
.product-card .product-img img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 14px 16px rgba(15, 30, 60, 0.18)); }
.product-card .product-body { padding: 1.25rem 1.35rem 1.5rem; }
.product-card h3 { font-size: 1.08rem; letter-spacing: -0.015em; margin-bottom: 0.3rem; }
.product-card p { font-size: 0.95rem; }

/* ---------- Home: solutions ---------- */
.solutions-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.solution {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}
.solution:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--blue-200); }
.section-blue .solution { border-color: transparent; box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.55); }
.section-blue .solution h3 { color: var(--text); }
.section-blue .solution p { color: var(--muted); }
.solution-img {
  height: 200px; display: block; padding: 1.5rem;
  background: radial-gradient(110% 100% at 50% 0%, #fff 0%, #E9F1FA 100%);
}
.solution-img img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 16px 18px rgba(15, 30, 60, 0.2)); }
.solution-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.solution-body h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.solution-body p { font-size: 0.97rem; margin-bottom: 1.25rem; flex: 1; }
.solution-body .text-link { margin-top: auto; }
.solution:hover .text-link svg { transform: translateX(3px); }
.text-link svg { transition: transform 0.2s; }

/* ---------- Why / stats ---------- */
.why-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 4rem; align-items: center; }
.why-list { list-style: none; display: grid; gap: 1.5rem; }
.why-list li { display: flex; gap: 1rem; align-items: flex-start; }
.why-list .icon { margin: 0; flex-shrink: 0; }
.why-list h3 { font-size: 1.1rem; letter-spacing: -0.01em; margin-bottom: 0.25rem; }
.why-list p { font-size: 1rem; }
.why-list li.no-title p { padding-top: 0.7rem; color: var(--text); font-weight: 600; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stat {
  border-radius: var(--radius); padding: 1.75rem 1.25rem; text-align: center;
  background: linear-gradient(150deg, var(--navy-2) 0%, var(--blue-deep) 100%);
  box-shadow: 0 18px 36px -18px rgba(10, 60, 120, 0.6);
}
.stat:nth-child(2), .stat:nth-child(3) { background: linear-gradient(150deg, var(--blue-deep) 0%, var(--blue) 100%); }
.stat .num { font-size: clamp(2.2rem, 4vw, 2.9rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: #fff; }
.stat .lbl { margin-top: 0.5rem; font-size: 0.95rem; font-weight: 600; color: #BFE0FF; }

/* ---------- CTA band ---------- */
.cta-band { padding: 0 0 96px; }
.cta-box {
  position: relative; overflow: hidden; border-radius: 28px;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
  background: linear-gradient(135deg, #0B5FAA 0%, var(--blue) 45%, #1C8DE6 100%);
  color: #fff; text-align: center;
}
.cta-box::after {
  content: ''; position: absolute; inset: auto -10% -60% auto; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 65%); pointer-events: none;
}
.cta-box h2 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 0.9rem; }
.cta-box p { color: rgba(255, 255, 255, 0.9); font-size: 1.15rem; max-width: 560px; margin: 0 auto 2rem; }
.cta-box .btn-row { justify-content: center; position: relative; z-index: 1; }
.cta-band.first, .section-soft + .cta-band, .section-blue + .cta-band { padding-top: 96px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 4rem; align-items: start; }
.contact-info h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); margin-bottom: 1rem; }
.contact-info > p { font-size: 1.1rem; margin-bottom: 2rem; }
.contact-list { list-style: none; display: grid; gap: 0.75rem; }
.contact-list a {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  color: var(--text); text-decoration: none; font-weight: 650; transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-list a:hover { border-color: var(--blue-200); box-shadow: var(--shadow-sm); }
.section-soft .contact-list a { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.16); color: #fff; }
.section-soft .contact-list a:hover { background: rgba(255, 255, 255, 0.13); border-color: rgba(108, 192, 255, 0.6); }
.section-soft .contact-list small { color: #A9C6E6; }
.section-soft .form-card { border: 0; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.55); }
.contact-list .icon { margin: 0; width: 44px; height: 44px; }
.contact-list small { display: block; font-size: 0.82rem; font-weight: 500; color: var(--subtle); }

.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow);
  display: grid; gap: 1.1rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field label { display: block; margin-bottom: 0.4rem; font-size: 0.9rem; font-weight: 650; color: var(--text); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 0.75rem 0.95rem;
  font: inherit; font-size: 1rem; color: var(--text);
  background: #fff; border: 1.5px solid #D5DAE2; border-radius: 10px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(10, 114, 201, 0.15);
}
.form-card .btn { justify-self: start; }
.form-success {
  padding: 1rem 1.2rem; border-radius: 12px; background: var(--blue-50);
  border: 1px solid var(--blue-100); color: #0B4F8A; font-weight: 650;
}

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(180deg, var(--navy-2) 0%, var(--navy) 100%);
  color: #A9BCD4; padding: 72px 0 32px; border-top: 4px solid var(--blue);
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
.site-footer .logo { color: #fff; }
.footer-brand p { margin-top: 1rem; color: #A9BCD4; font-size: 0.97rem; max-width: 320px; }
.footer-col h4 { color: #fff; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: grid; gap: 0.6rem; }
.footer-col a { color: #A9BCD4; text-decoration: none; font-size: 0.97rem; transition: color 0.15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 1.5rem;
  padding-top: 1.75rem; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.9rem;
}
.footer-bottom a { color: #A9BCD4; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Plain text pages (privacy) ---------- */
.prose {
  max-width: 820px; margin: 0 auto; padding: clamp(1.5rem, 5vw, 3.5rem);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.prose h1 { font-size: clamp(2.2rem, 4.5vw, 3rem); margin-bottom: 0.4rem; }
.prose h2 { font-size: 1.3rem; letter-spacing: -0.015em; margin: 2.5rem 0 0.6rem; }
.prose p, .prose li { color: #374151; margin-bottom: 0.9rem; }
.prose ul { padding-left: 1.3rem; margin-bottom: 1rem; }
.prose code { font-size: 0.9em; background: var(--soft); border: 1px solid var(--line); padding: 0.1em 0.4em; border-radius: 6px; }
.prose .meta { color: var(--subtle); margin-bottom: 2rem; }

/* ---------- Photos (real scenes, cropped to fill their frame) ---------- */
.hero-media.photo, .page-hero-media.photo, .split-media.photo {
  padding: 0; border: 0; background: #DDE3EA; overflow: hidden;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.hero-media.photo { aspect-ratio: 5 / 4; }
.page-hero-media.photo { aspect-ratio: 4 / 3; }
.split-media.photo { aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.photo img, .solution-img.photo img {
  width: 100%; height: 100%; max-height: none; margin: 0;
  object-fit: cover; filter: none;
}
.photo img.focus-right { object-position: 85% 50%; }
.solution-img.photo { padding: 0; background: #DDE3EA; overflow: hidden; }
.solution-img.photo img { transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.solution:hover .solution-img.photo img { transform: scale(1.04); }
.contact-photo { margin-top: 1.5rem; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: #DDE3EA; }
.contact-photo img { width: 100%; height: 100%; object-fit: cover; }

/* CTA box with a dining-room photo under the blue */
.cta-box.has-photo {
  background:
    linear-gradient(135deg, rgba(8, 62, 112, 0.94) 0%, rgba(10, 114, 201, 0.88) 55%, rgba(28, 141, 230, 0.82) 100%),
    url("images/photos/dining-room-800.webp") center / cover;
}
@media (min-width: 900px) {
  .cta-box.has-photo {
    background:
      linear-gradient(135deg, rgba(8, 62, 112, 0.94) 0%, rgba(10, 114, 201, 0.88) 55%, rgba(28, 141, 230, 0.82) 100%),
      url("images/photos/dining-room.webp") center / cover;
  }
}

/* Hardware / camera model cards: drawn icon instead of a product cut-out */
.product-card .product-icon {
  height: 150px; display: grid; place-items: center;
  background: radial-gradient(100% 100% at 50% 0%, #fff 0%, #DCEAF9 100%);
  border-bottom: 1px solid var(--line); color: var(--blue);
}
.product-card .product-icon span {
  width: 76px; height: 76px; border-radius: 20px; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--blue-100); box-shadow: var(--shadow-sm);
}
.section-soft .product-card .product-icon, .section-blue .product-card .product-icon {
  background: radial-gradient(100% 100% at 50% 0%, rgba(108, 192, 255, 0.22) 0%, rgba(6, 22, 44, 0.15) 100%);
  border-bottom-color: rgba(255, 255, 255, 0.12); color: #8FD0FF;
}
.section-soft .product-card .product-icon span, .section-blue .product-card .product-icon span {
  background: rgba(6, 22, 44, 0.35); border-color: rgba(108, 192, 255, 0.35); box-shadow: none;
}
.product-card .product-icon svg { width: 38px; height: 38px; }

/* ---------- Scroll reveal (only when JS is on) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .nav-phone .num { display: none; }
  .nav { gap: 1rem; }
  .nav-links a { padding: 0.5rem 0.6rem; }
}

@media (max-width: 1024px) {
  .menu-toggle { display: inline-flex; }
  .nav-phone .num { display: inline; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 0.25rem;
    padding: 1rem 24px 2rem; background: var(--navy); overflow-y: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  /* backdrop-filter would make the header the containing block for the fixed menu panel */
  .site-header.open { background: var(--navy); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .site-header.open .nav-links { display: flex; }
  .nav-links a { padding: 0.95rem 0.5rem; font-size: 1.1rem; font-weight: 600; border-radius: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
  .nav-links a:hover { background: transparent; }
  .nav-links .nav-portal { margin-left: 0; }
  .nav-links .menu-only { display: block; }
  .nav-links .menu-only a { border: 0; }
  .nav-links .nav-portal a { display: flex; }
  .nav-links .menu-only .btn {
    display: flex; width: 100%; margin-top: 1rem; padding: 0.8rem 1.5rem;
    border-radius: 12px; border: 1.5px solid transparent; font-size: 1.05rem; color: #fff;
  }
  .nav-links .menu-only .btn-secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.3); margin-top: 0.6rem; }
  .nav-actions { margin-left: auto; }
  body.menu-open { overflow: hidden; }

  .hero-grid, .page-hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-media, .page-hero-media { max-width: 620px; margin: 0 auto; width: 100%; }
  .split, .why-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .split.reverse .split-media { order: 0; }
  .solutions-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --nav-h: 64px; }
  body { font-size: 16px; }
  .wrap, .nav { padding: 0 20px; }
  .logo img { width: 34px; height: 34px; }
  .logo span { font-size: 1.1rem; }
  .nav-actions .btn { display: none; }
  .nav-phone { width: 44px; height: 44px; justify-content: center; border-radius: 10px; background: rgba(43, 155, 240, 0.18); }
  .nav-phone .num { display: none; }

  .section { padding: 64px 0; }
  .cta-band { padding-bottom: 64px; }
  .cta-band.first, .section-soft + .cta-band, .section-blue + .cta-band { padding-top: 64px; }
  .hero { padding: calc(var(--nav-h) + 32px) 0 56px; }
  .check-list.two-col { grid-template-columns: 1fr; }
  .page-hero { padding: calc(var(--nav-h) + 40px) 0 48px; }
  .hero-actions .btn, .page-hero .hero-actions .btn { flex: 1 1 100%; }
  .section-head { margin-bottom: 2rem; }
  .solutions-grid, .card-grid, .card-grid.cols-2 { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .product-card .product-img { height: 140px; padding: 0.75rem; }
  .product-card .product-icon { height: 110px; }
  .product-card .product-icon span { width: 60px; height: 60px; border-radius: 16px; }
  .product-card .product-icon svg { width: 30px; height: 30px; }
  .hero-media.photo, .page-hero-media.photo { aspect-ratio: 4 / 3; }
  .product-card .product-body { padding: 0.9rem 1rem 1.1rem; }
  .product-card h3 { font-size: 1rem; }
  .product-card p { font-size: 0.9rem; }
  .solution-img { height: 180px; }
  .stats { gap: 0.75rem; }
  .stat { padding: 1.4rem 0.75rem; }
  .card { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-items: start; padding: 1.25rem; }
  .card .icon { grid-row: span 2; margin: 0; width: 44px; height: 44px; }
  .card h3 { align-self: center; margin: 0.55rem 0 0.35rem; }
  .form-row { grid-template-columns: 1fr; }
  .form-card .btn { justify-self: stretch; }
  .split-text .btn-row .btn { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; }
}

/* ---------- Device frame for real POS screenshots ---------- */
.device {
  position: relative; margin: 0 auto; width: 100%; max-width: 640px;
  padding: clamp(8px, 1.4vw, 14px); border-radius: clamp(16px, 2.4vw, 26px);
  background: linear-gradient(160deg, #3A414C 0%, #151A21 45%, #0B0E12 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 40px 70px -25px rgba(5, 12, 24, 0.55),
    0 18px 30px -18px rgba(5, 12, 24, 0.4);
}
.device::before { /* camera dot */
  content: ''; position: absolute; top: 50%; left: clamp(3px, 0.6vw, 6px); width: 4px; height: 4px;
  margin-top: -2px; border-radius: 50%; background: #2A313B;
}
.device img {
  display: block; width: 100%; height: auto; max-height: none; margin: 0;
  border-radius: clamp(8px, 1.2vw, 12px); filter: none;
}
.split-media .device img { max-height: none; filter: none; }
.split-media.dark .device { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 30px 60px -20px rgba(0, 0, 0, 0.7); }

/* ==========================================================================
   Space theme: starfield, nebula glows, perspective grid, 3D cards.
   Stars are drawn by site.js on a small canvas (.starfield) and only move
   while on screen. Everything here stays still when reduced motion is on.
   ========================================================================== */
:root {
  --violet: 123, 92, 255;   /* nebula purple (rgb) */
  --glow: 43, 155, 240;     /* LeonPOS blue glow (rgb) */
}

/* Navy and blue areas get their own layer so stars sit above the background
   but below the content */
.hero, .page-hero, .section-dark, .section-blue, .section-soft, .site-footer { position: relative; isolation: isolate; }
.starfield { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

/* Nebula glows in blue and purple, plus a horizon glow at the bottom of the hero */
.hero, .page-hero {
  background:
    radial-gradient(55% 30% at 50% 100%, rgba(var(--glow), 0.32), transparent 70%),
    radial-gradient(700px 420px at 12% 8%, rgba(var(--violet), 0.26), transparent 65%),
    radial-gradient(1000px 560px at 88% 18%, rgba(var(--glow), 0.42), transparent 62%),
    radial-gradient(800px 480px at -5% 105%, rgba(10, 114, 201, 0.35), transparent 60%),
    linear-gradient(165deg, #040E1F 0%, var(--navy) 35%, var(--navy-2) 70%, #0A3066 100%);
}
.section-dark {
  background:
    radial-gradient(700px 420px at 90% 10%, rgba(var(--violet), 0.2), transparent 65%),
    radial-gradient(800px 480px at 5% 100%, rgba(var(--glow), 0.25), transparent 60%),
    var(--navy);
}
.section-soft, .section-blue {
  background:
    radial-gradient(700px 420px at 8% 12%, rgba(var(--violet), 0.22), transparent 62%),
    radial-gradient(900px 480px at 85% 0%, rgba(43, 155, 240, 0.35), transparent 60%),
    radial-gradient(700px 420px at 0% 100%, rgba(6, 22, 44, 0.45), transparent 60%),
    linear-gradient(160deg, #0B3A73 0%, var(--blue-deep) 55%, #0A5DB0 100%);
}
.site-footer {
  border-top: 0;
  background:
    radial-gradient(600px 300px at 85% 0%, rgba(var(--violet), 0.18), transparent 65%),
    radial-gradient(800px 360px at 10% 0%, rgba(var(--glow), 0.2), transparent 65%),
    linear-gradient(180deg, var(--navy-2) 0%, var(--navy) 60%, #030B18 100%);
}

/* Faint perspective grid fading into the horizon under the hero */
.hero::before, .page-hero::before {
  content: ''; position: absolute; left: -40%; right: -40%; bottom: 0; height: 46%;
  z-index: -1; pointer-events: none;
  background:
    linear-gradient(rgba(108, 192, 255, 0.2) 1px, transparent 1px) 0 100% / 72px 72px,
    linear-gradient(90deg, rgba(108, 192, 255, 0.2) 1px, transparent 1px) 50% 0 / 72px 72px;
  transform: perspective(520px) rotateX(64deg); transform-origin: 50% 100%;
  -webkit-mask-image: radial-gradient(ellipse 50% 100% at 50% 100%, #000 10%, transparent 72%);
  mask-image: radial-gradient(ellipse 50% 100% at 50% 100%, #000 10%, transparent 72%);
}

/* Soft glowing dividers on section edges */
.hero::after, .page-hero::after {
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(108, 192, 255, 0.9) 30%, #fff 50%, rgba(108, 192, 255, 0.9) 70%, transparent 100%);
  box-shadow: 0 0 18px 2px rgba(var(--glow), 0.65), 0 0 60px 6px rgba(var(--glow), 0.3);
}
.section-blue::before, .section-soft::before, .section-dark::before, .site-footer::before,
.section-blue::after, .section-soft::after {
  content: ''; position: absolute; left: 0; right: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(108, 192, 255, 0.85) 35%, rgba(255, 255, 255, 0.95) 50%, rgba(108, 192, 255, 0.85) 65%, transparent 100%);
  box-shadow: 0 0 14px 1px rgba(var(--glow), 0.6), 0 0 44px 4px rgba(var(--glow), 0.25);
}
.section-blue::before, .section-soft::before, .section-dark::before, .site-footer::before { top: 0; }
.section-blue::after, .section-soft::after { bottom: 0; }
.site-header::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(108, 192, 255, 0.45) 50%, transparent);
}

/* ---------- Hero POS screen floating in 3D ---------- */
.hero-media { perspective: 1800px; }
.hero-media::after { /* glow pooling under the floating screen */
  content: ''; position: absolute; left: 12%; right: 12%; bottom: -34px; height: 40px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(var(--glow), 0.55), transparent); filter: blur(10px);
}
.device.device-hero {
  transform: rotateY(calc(-9deg + var(--px, 0) * 5deg)) rotateX(calc(4deg - var(--py, 0) * 4deg));
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 0 1px rgba(108, 192, 255, 0.28),
    0 0 50px -6px rgba(var(--glow), 0.55),
    0 0 120px -20px rgba(var(--violet), 0.35),
    30px 50px 90px -30px rgba(0, 0, 0, 0.7);
}
.device.device-hero::after { /* glass reflection across the screen */
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 28%, transparent 42%);
}
@media (min-width: 1025px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .device.device-hero { animation: float 7s ease-in-out infinite; }
  .hero-media::after { animation: float-glow 7s ease-in-out infinite; }
}
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes float-glow { 0%, 100% { opacity: 1; scale: 1; } 50% { opacity: 0.7; scale: 0.92; } }

/* Other screenshots and photos: a soft blue edge glow */
.split-media.dark .device, .device:not(.device-hero) {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 0 1px rgba(108, 192, 255, 0.2),
    0 0 40px -10px rgba(var(--glow), 0.5), 0 30px 60px -20px rgba(0, 0, 0, 0.7);
}
.page-hero-media.photo {
  box-shadow: 0 0 0 1px rgba(108, 192, 255, 0.3), 0 0 50px -8px rgba(var(--glow), 0.5), 0 40px 70px -30px rgba(0, 0, 0, 0.7);
}
.split-media.photo { box-shadow: 0 0 0 1px rgba(43, 155, 240, 0.18), 0 30px 60px -28px rgba(10, 40, 90, 0.5); }

/* ---------- Glass / 3D cards ---------- */
.card, .product-card, .solution, .stat { position: relative; }
.card, .product-card {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 18px 40px -26px rgba(10, 50, 110, 0.4);
}
.card:hover, .product-card:hover {
  border-color: rgba(43, 155, 240, 0.6);
  box-shadow: 0 0 0 1px rgba(43, 155, 240, 0.35), 0 0 30px -6px rgba(43, 155, 240, 0.45), 0 30px 60px -28px rgba(10, 40, 90, 0.55);
}
.section-soft .card, .section-blue .card, .section-soft .product-card, .section-blue .product-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
  border-color: rgba(160, 210, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 24px 50px -28px rgba(0, 8, 24, 0.7);
}
.section-soft .card:hover, .section-blue .card:hover, .section-soft .product-card:hover, .section-blue .product-card:hover {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.06) 100%);
  border-color: rgba(108, 192, 255, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 32px -6px rgba(var(--glow), 0.6), 0 30px 60px -28px rgba(0, 8, 24, 0.8);
}
.section-blue .solution { box-shadow: 0 0 0 1px rgba(160, 210, 255, 0.25), 0 30px 60px -28px rgba(0, 8, 24, 0.75); }
.section-blue .solution:hover { box-shadow: 0 0 0 1px rgba(108, 192, 255, 0.8), 0 0 40px -6px rgba(var(--glow), 0.7), 0 40px 70px -30px rgba(0, 8, 24, 0.85); }
.stat { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 0 0 1px rgba(108, 192, 255, 0.18), 0 18px 36px -18px rgba(10, 60, 120, 0.6); }
.stat:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 0 1px rgba(108, 192, 255, 0.6), 0 0 34px -6px rgba(var(--glow), 0.6), 0 26px 44px -20px rgba(10, 60, 120, 0.7); }
.icon { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 0 0 1px rgba(108, 192, 255, 0.25), 0 8px 20px -8px rgba(var(--glow), 0.8); }
.cta-box { box-shadow: 0 0 0 1px rgba(108, 192, 255, 0.35), 0 0 60px -14px rgba(var(--glow), 0.6), 0 40px 80px -40px rgba(10, 40, 90, 0.7); }
.form-card { box-shadow: 0 0 0 1px rgba(108, 192, 255, 0.25), 0 30px 60px -24px rgba(0, 8, 24, 0.55); }

/* Mouse tilt (site.js adds .tilt on computers with a mouse only) */
.js .tilt.reveal, .tilt {
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s, border-color 0.3s, background-color 0.3s;
}
.js .tilt.is-tilting { transition: opacity 0.6s ease, transform 0.12s ease-out, box-shadow 0.3s, border-color 0.3s, background-color 0.3s; }
.tilt::after { /* light that follows the mouse */
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(108, 192, 255, 0.16), transparent 45%);
}
.tilt.is-tilting::after { opacity: 1; }

/* Buttons: a soft blue glow */
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(108, 192, 255, 0.5), 0 10px 30px -6px rgba(var(--glow), 0.75); }

@media (max-width: 1024px) {
  .device.device-hero { transform: rotateX(4deg); }
}
@media (max-width: 640px) {
  .hero::before, .page-hero::before { height: 30%; }
  .device.device-hero { transform: none; }
  .hero-media::after { bottom: -22px; }
}
@media (prefers-reduced-motion: reduce) {
  .device.device-hero { transition: none; }
}
