/* https://www.lockitronics.com/assets/css/style.css */

:root {
  --blue: #0096c7;
  --bg: #0a0d18;
  --card: #121a33;
  --text: #ffffff;
  --muted: rgba(255,255,255,.72);
  --shadow: 0 30px 60px rgba(0,0,0,.5);

  --line: rgba(255,255,255,.12);
  --tableBg: rgba(18,26,51,.70);
  --tableBg2: rgba(18,26,51,.92);
  --chip: rgba(0,150,199,.16);
  --chipBorder: rgba(0,150,199,.28);

  --glow: rgba(0, 182, 255, 0.7);
  --success: #00d084;

  --gradient-hero: linear-gradient(135deg, #006d99, #00c6ff);
  --badge-bg: rgba(0,150,199,0.18);
  --badge-border: rgba(0,150,199,0.4);
  --spec-border: rgba(255,255,255,0.08);

  --radius: 18px;
  --radius-sm: 12px;

  --scrollPctNum: 0;
}

/* ── GLOBAL ──────────────────────────────────────────────────────── */
* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

img { max-width: 100%; height: auto; display: block; }

/* Accessibility focus */
a:focus, button:focus, .nav-trigger:focus-within {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,150,199,0.38);
  border-radius: 10px;
}

/* Scroll progress line */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(to right, var(--blue), #00c6ff);
  width: calc(var(--scrollPctNum, 0) * 1%);
  z-index: 9999;
  transition: width 0.1s ease;
}

/* Utilities */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.muted { color: var(--muted); }

/* ── HEADER & NAVIGATION ─────────────────────────────────────────── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  padding: 14px 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3000;
  box-shadow: 0 10px 30px rgba(0,0,0,.10);
  border-bottom: 1px solid rgba(0,0,0,.06);

  padding-left: calc(40px + env(safe-area-inset-left));
  padding-right: calc(40px + env(safe-area-inset-right));

  overflow: visible;
}

.header-inner {
  width: 100%;
  max-width: 1440px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  overflow: visible;
}

.logo img {
  width: 220px;
  height: auto;
  object-fit: contain;
}

nav {
  display: flex;
  gap: 18px;
  align-items: center;
  position: relative;
  flex-wrap: wrap;
  justify-content: flex-end;
  overflow: visible;
}

nav > a,
.nav-trigger {
  color: #036c91;
  font-weight: 750;
  cursor: pointer;
  letter-spacing: 0.2px;
  padding: 10px 12px;
  border-radius: 10px;
  transition: background 0.16s ease, color 0.16s ease;
  position: relative;
  user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}

nav > a:hover,
.nav-trigger:hover {
  background: rgba(0, 150, 199, 0.10);
  color: #014d66;
}

/* CTA link in nav */
.nav-cta {
  background: rgba(0,150,199,0.12);
  border: 1px solid rgba(0,150,199,0.22);
  padding: 10px 14px;
  border-radius: 999px;
}

.nav-cta:hover {
  background: rgba(0,150,199,0.18);
  border-color: rgba(0,150,199,0.32);
}

/* ── MEGA MENU ───────────────────────────────────────────────────── */
.mega {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(14px);

  background: #ffffff;
  color: #111;
  padding: 26px 28px;
  border-radius: 18px;

  box-shadow: 0 24px 70px rgba(0,0,0,0.20);
  border: 1px solid rgba(0,0,0,0.08);

  display: grid;
  grid-template-columns: repeat(3, minmax(190px, 1fr));
  gap: 22px 32px;

  min-width: 760px;
  max-width: min(980px, calc(100vw - 48px));

  z-index: 6000;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 0.20s ease,
    transform 0.25s cubic-bezier(0.16, 1, 0.32, 1),
    visibility 0s linear 0.25s;
}

/* Desktop hover behavior */
.nav-trigger:hover > .mega,
.nav-trigger:focus-within > .mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(6px);
  transition:
    opacity 0.20s ease,
    transform 0.25s cubic-bezier(0.16, 1, 0.32, 1),
    visibility 0s linear 0s;
}

/* JS-driven open class (mobile & desktop click support) */
.mega.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(6px);
  transition:
    opacity 0.20s ease,
    transform 0.25s cubic-bezier(0.16, 1, 0.32, 1),
    visibility 0s linear 0s;
}

.mega::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-bottom: 11px solid #ffffff;
  filter: drop-shadow(0 3px 5px rgba(0,0,0,0.12));
}

.mega .col-title {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: rgba(0,0,0,.60);
  margin: 0 0 12px 0;
  font-weight: 700;
}

.mega a {
  color: #036c91;
  margin: 8px 0;
  display: block;
  font-weight: 700;
  transition: color 0.15s ease;
}

.mega a:hover { color: #014d66; }

.mega a small {
  display: block;
  color: rgba(0,0,0,.60);
  font-weight: 540;
  font-size: 0.92em;
  margin-top: 3px;
  line-height: 1.3;
}

/* Spacer under fixed header */
.page-pad { height: 86px; }

/* ── BUTTONS ─────────────────────────────────────────────────────── */
.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 750;
  letter-spacing: 0.2px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  touch-action: manipulation;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), #00c6ff);
  color: #06101a;
  box-shadow: 0 14px 30px rgba(0,150,199,0.20);
  border: 1px solid rgba(255,255,255,0.10);
}

.btn-outline {
  background: rgba(255,255,255,0.06);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.18);
}

.btn-primary:hover,
.btn-outline:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.30);
}

.btn-primary.large,
.btn-outline.large {
  padding: 14px 22px;
  font-size: 1.02rem;
}

/* ── INTRO ANIMATION ─────────────────────────────────────────────── */
.intro-screen {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #0a1a2f 0%, #000814 100%);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1.2s ease, visibility 1.2s ease;
}

.intro-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-content {
  position: relative;
  max-width: 1400px;
  width: 100%;
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.intro-text { color: white; }

.intro-text h1 {
  font-size: clamp(3.0rem, 6vw, 5.4rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 24px;
  letter-spacing: -0.6px;
}

.intro-text h1 span { color: var(--blue); display: block; }

.intro-text p {
  font-size: 1.55rem;
  opacity: 0.92;
  font-weight: 350;
  letter-spacing: 0.4px;
}

/* Lock Scene */
.lock-scene {
  position: relative;
  width: 420px;
  height: 560px;
  perspective: 1200px;
  margin-left: auto;
}

.door-frame {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #222, #111);
  border-radius: 18px;
  box-shadow: inset 0 0 60px rgba(0,0,0,0.8), 0 0 40px rgba(0,0,0,0.6);
  border: 12px solid #0d1117;
}

.door {
  position: absolute;
  inset: 12px;
  background: linear-gradient(to right, #1a1f2e, #11151f);
  border-radius: 12px;
  transform-origin: left center;
  transition: transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 0 80px rgba(0,0,0,0.7);
  will-change: transform;
}

.door.open { transform: rotateY(-68deg); }

.reader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 110px;
  height: 160px;
  background: #0f1622;
  border-radius: 14px;
  border: 2px solid #333;
  box-shadow: 0 0 20px rgba(0, 140, 255, 0.15);
  overflow: hidden;
}

.rfid-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle at 50% 50%, var(--glow) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.6s ease;
}

.reader.active .rfid-glow {
  opacity: 0.9;
  animation: pulse-glow 2s infinite ease-in-out;
}

.dot {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, #00d0ff, #0096c7 40%, transparent 70%);
  opacity: 0.3;
}

.handle {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 140px;
  background: linear-gradient(#444, #222);
  border-radius: 6px;
  box-shadow: 4px 0 12px rgba(0,0,0,0.6);
}

/* Keycard (intro) renamed to avoid collision with product cards */
.card-area {
  position: absolute;
  bottom: -120px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.keycard {
  width: 260px;
  height: 160px;
  background: linear-gradient(135deg, #1e3a5f, #0f1c38);
  border-radius: 16px;
  margin: 0 auto 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), inset 0 0 40px rgba(0, 140, 255, 0.12);
  position: relative;
  cursor: pointer;
  transition: transform 0.4s ease;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  touch-action: manipulation;
  user-select: none;
}

.keycard:hover { transform: translateY(-12px) scale(1.04); }
.keycard:active { transform: translateY(-4px) scale(1.02); }

.keycard .chip {
  position: absolute;
  top: 24px;
  left: 28px;
  width: 48px;
  height: 38px;
  background: gold;
  border-radius: 6px;
  box-shadow: inset 0 0 12px rgba(255,215,0,0.4);
}

.keycard .branding {
  position: absolute;
  bottom: 24px;
  right: 28px;
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.keycard .wave-pattern {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 8px,
    rgba(0, 182, 255, 0.08) 8px,
    rgba(0, 182, 255, 0.08) 16px
  );
  border-radius: 16px;
  opacity: 0.7;
}

.tap-hint {
  color: rgba(255,255,255,0.92);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1.0; transform: scale(1.15); }
}

.skip-intro {
  position: absolute;
  bottom: 40px;
  right: 60px;
  background: rgba(255,255,255,0.12);
  color: white;
  border: 1px solid rgba(255,255,255,0.14);
  padding: 12px 20px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.95rem;
  backdrop-filter: blur(8px);
  transition: background 0.22s ease, transform 0.22s ease;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  touch-action: manipulation;
}

.skip-intro:hover {
  background: rgba(255,255,255,0.20);
  transform: translateY(-1px);
}

/* ── HERO ────────────────────────────────────────────────────────── */
.hero {
  padding: 170px 60px 130px;
  background: linear-gradient(135deg, var(--blue), #00c6ff);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.16), transparent 55%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(18px);
  animation: fadeInUp 1.0s forwards 0.35s;
}

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

.hero h1 {
  font-size: clamp(2.6rem, 5.6vw, 4.2rem);
  font-weight: 950;
  color: white;
  margin: 0 auto 18px;
  line-height: 1.12;
  letter-spacing: -0.9px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

.hero-subtitle {
  max-width: 860px;
  margin: 0 auto 26px;
  font-size: 1.18rem;
  line-height: 1.65;
  color: rgba(255,255,255,.92);
  text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.hero-ctas {
  margin-top: 24px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── SECTIONS ────────────────────────────────────────────────────── */
.section { padding: 100px 60px; }

.section h2 {
  font-size: 2.25rem;
  margin: 0 0 18px;
  text-align: center;
  letter-spacing: -0.4px;
}

.section-intro,
.section > p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 1.1rem;
  max-width: 860px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-alt {
  background:
    radial-gradient(circle at top left, rgba(0,150,199,.12), transparent 60%),
    radial-gradient(circle at bottom right, rgba(0,198,255,.08), transparent 65%);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

/* ── STATS ───────────────────────────────────────────────────────── */
.stats-section { padding-top: 70px; padding-bottom: 70px; }

.stats-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 18px;
  padding: 0 24px;
}

.stat-item {
  background: rgba(18,26,51,.68);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  padding: 22px 18px;
  text-align: center;
  box-shadow: 0 22px 55px rgba(0,0,0,.28);
}

.stat-number {
  font-size: 2.1rem;
  font-weight: 900;
  letter-spacing: -0.6px;
  margin-bottom: 6px;
  color: rgba(255,255,255,0.96);
}

.stat-label {
  color: rgba(255,255,255,0.78);
  font-weight: 650;
  font-size: 0.98rem;
}

/* ── GRID CARDS (Products/Feature tiles) ─────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  max-width: 1240px;
  margin: 0 auto;
}

.tile {
  background: var(--card);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.30s ease, box-shadow 0.30s ease;
  text-decoration: none;
  color: var(--text);
  display: block;
  border: 1px solid rgba(255,255,255,0.08);
}

.tile:hover {
  transform: translateY(-10px);
  box-shadow: 0 42px 90px rgba(0,0,0,.38), 0 0 0 1px rgba(0,150,199,0.14);
}

.tile img {
  height: 220px;
  object-fit: cover;
  width: 100%;
}

.tile .pad { padding: 22px 22px 24px; }

.kicker {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.78);
  margin-bottom: 8px;
}

.kicker.highlight {
  background: rgba(0,150,199,0.22);
  padding: 4px 10px;
  border-radius: 8px;
  color: #4dd6ff;
  font-weight: 800;
}

.tile h3 {
  margin: 8px 0 10px;
  font-size: 1.35rem;
  letter-spacing: -0.2px;
}

/* Center CTA rows */
.center-cta {
  margin-top: 46px;
  display: flex;
  justify-content: center;
}

/* ── TESTIMONIALS ────────────────────────────────────────────────── */
.testimonials-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 22px;
  padding: 0 24px;
}

.testimonial {
  position: relative;
  background: rgba(18,26,51,.70);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  padding: 26px 22px;
  box-shadow: 0 22px 55px rgba(0,0,0,.28);
}

.testimonial::before {
  content: "“";
  font-size: 4.2rem;
  line-height: 0.6;
  color: var(--blue);
  opacity: 0.28;
  position: absolute;
  top: 10px;
  left: 18px;
}

.testimonial p {
  position: relative;
  z-index: 1;
  font-size: 1.02rem;
  color: rgba(255,255,255,0.90);
  line-height: 1.7;
}

.author {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.78);
  font-weight: 650;
}

/* ── INTEGRATION BADGES ──────────────────────────────────────────── */
.integration-badges {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  padding: 0 24px;
}

.badge {
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  color: white;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 750;
  backdrop-filter: blur(6px);
  transition: transform 0.20s ease, background 0.20s ease, border-color 0.20s ease;
}

.badge:hover {
  transform: translateY(-2px);
  background: rgba(0,150,199,0.30);
  border-color: rgba(0,150,199,0.60);
}

/* ── PRODUCT PAGES (still supported) ─────────────────────────────── */
.product-hero {
  padding: 170px 60px 110px;
  background: var(--gradient-hero);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.product-hero h1 {
  font-size: clamp(2.7rem, 6vw, 4.6rem);
  font-weight: 900;
  color: white;
  margin: 0 0 14px;
  line-height: 1.1;
  letter-spacing: -0.8px;
}

.product-hero p {
  font-size: 1.2rem;
  max-width: 820px;
  margin: 0 auto 22px;
  color: rgba(255,255,255,0.92);
}

/* Lockitronic blue badges */
.badges .badge {
  background: var(--blue);
  border: 1px solid var(--blue);
  color: #ffffff;
  font-weight: 750;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

/* Hover = matching green */
.badges .badge:hover {
  background: var(--success);
  border-color: var(--success);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 208, 132, 0.35);
}

.factory-number {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.70);
  font-weight: 600;
  letter-spacing: 0.6px;
  margin-top: 10px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  max-width: 1240px;
  margin: 0 auto;
}

.panel {
  background: var(--card);
  border-radius: 16px;
  padding: 30px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.08);
}

.panel h3 {
  font-size: 1.5rem;
  margin-bottom: 18px;
  color: var(--blue);
  font-weight: 850;
}

.spec-table { width: 100%; border-collapse: collapse; }

.spec-table tr { border-bottom: 1px solid var(--spec-border); }

.spec-table td { padding: 14px 14px; font-size: 0.98rem; }

.spec-table td:first-child {
  font-weight: 750;
  width: 40%;
  color: rgba(255,255,255,0.92);
}

.spec-table td:last-child { color: var(--muted); }

/* ── FOOTER ─────────────────────────────────────────────────────── */
footer {
  padding: 48px 24px;
  text-align: center;
  color: rgba(255,255,255,0.72);
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.10);
}

footer a {
  color: rgba(255,255,255,0.86);
  font-weight: 700;
}

footer a:hover {
  color: #6fe7ff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* =========================================================
   MOBILE FIRST PATCH (iPhone friendly)
   Keeps ALL rules above, fixes dropdown and intro behavior
========================================================= */

/* Optional: lock body scroll when menu open */
body.menu-open { overflow: hidden; }

/* Make nav horizontally scrollable when needed */
@media (max-width: 768px) {
  nav {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    padding: 6px 2px;
    scrollbar-width: none;
  }
  nav::-webkit-scrollbar { display: none; }

  nav > a,
  .nav-trigger {
    white-space: nowrap;
    border: 1px solid rgba(0,150,199,0.18);
    background: rgba(0,150,199,0.06);
    border-radius: 999px;
    font-size: 0.95rem;
    line-height: 1;
    padding: 12px 14px;
  }

  header {
    padding: 10px 12px;
    padding-left: calc(12px + env(safe-area-inset-left));
    padding-right: calc(12px + env(safe-area-inset-right));
  }

  .header-inner {
    align-items: center;
    gap: 10px;
  }

  .logo img { width: 168px; }

  .page-pad { height: 74px; }
}

/* Touch devices: disable hover opening and let JS .show control */
@media (hover: none), (pointer: coarse) {
  .nav-trigger:hover > .mega,
  .nav-trigger:focus-within > .mega {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .mega {
    left: 12px;
    right: 12px;
    top: calc(100% + 10px);
    width: auto;
    min-width: 0;
    max-width: none;
    margin: 0;
    transform: translateY(10px);
    transform-origin: top center;

    grid-template-columns: 1fr;
    gap: 14px;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    z-index: 7000;

    transition:
      opacity 0.18s ease,
      transform 0.22s ease,
      visibility 0s linear 0.22s;
  }

  .mega::before { display: none; }

  .mega.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition:
      opacity 0.18s ease,
      transform 0.22s ease,
      visibility 0s linear 0s;
  }
}

/* Responsive layout for content */
@media (max-width: 1100px) {
  .mega { min-width: 680px; grid-template-columns: repeat(2, minmax(200px, 1fr)); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
}

@media (max-width: 900px) {
  header {
    padding: 14px 18px;
    padding-left: calc(18px + env(safe-area-inset-left));
    padding-right: calc(18px + env(safe-area-inset-right));
  }
  .header-inner { gap: 16px; }
  nav { gap: 10px; }

  .intro-content {
    grid-template-columns: 1fr;
    gap: 34px;
    text-align: center;
  }
  .lock-scene { margin: 0 auto; }
  .skip-intro { right: 18px; bottom: 18px; }

  .section { padding: 80px 28px; }
  .hero { padding: 150px 28px 110px; }
}

@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; gap: 30px; }

  .spec-table td {
    display: block;
    width: 100%;
    padding: 12px 14px;
  }
  .spec-table td:first-child { font-weight: 850; }

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

  .section { padding: 70px 18px; }
  .stats-section { padding-top: 50px; padding-bottom: 50px; }

  .hero { padding: 120px 18px 90px; }

  .hero-content { max-width: 640px; padding: 0; }

  .hero h1 {
    font-size: clamp(2.05rem, 8.2vw, 3.1rem);
    line-height: 1.12;
    letter-spacing: -0.6px;
  }

  .hero-subtitle {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 20px;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .btn-primary,
  .btn-outline {
    width: 100%;
    max-width: 360px;
  }

  .grid { gap: 18px; }
  .tile img { height: 200px; }

  .testimonials-grid { padding: 0 18px; gap: 16px; }
  .testimonial { padding: 22px 18px; }

  .intro-content { padding: 26px 18px; gap: 22px; }

  .intro-text h1 {
    font-size: clamp(2.2rem, 10vw, 3.3rem);
    margin-bottom: 14px;
  }

  .intro-text p { font-size: 1.1rem; }

  .lock-scene {
    width: min(320px, 92vw);
    height: min(440px, 60vh);
    margin: 0 auto;
    transform: translateZ(0);
  }

  .card-area { bottom: -88px; }

  .keycard {
    width: min(240px, 86vw);
    height: 148px;
  }

  .skip-intro {
    position: fixed;
    right: 12px;
    bottom: 12px;
    padding: 10px 14px;
    font-size: 0.9rem;
  }

  .mega,
  .matrix,
  .table-wrap { max-width: 100%; }
}

@media (max-width: 520px) {
  .logo img { width: 180px; }
  .hero h1 { font-size: 2.4rem; }
  .hero-subtitle { font-size: 1.05rem; }
  .btn-primary, .btn-outline { width: 100%; max-width: 360px; }
}

@media (max-width: 390px) {
  .logo img { width: 150px; }
  nav > a, .nav-trigger { font-size: 0.92rem; padding: 12px 13px; }
  .page-pad { height: 70px; }
}
