/* ============================================================
   SmartWarehouse Landing Page — Styles
   ============================================================ */

:root {
  --bg: #0b1220;
  --bg-2: #0f172a;
  --surface: #ffffff;
  --surface-alt: #f6f8fc;
  --surface-dark: #0d1526;
  --border: #e4e9f2;
  --border-dark: #1e2b45;

  --text: #0f172a;
  --text-soft: #4a5568;
  --text-muted: #7b8794;
  --text-light: #e8eefb;
  --text-light-soft: #a9b7d0;

  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --accent: #06b6d4;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --purple: #7c3aed;

  --grad: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  --grad-soft: linear-gradient(135deg, #eff6ff 0%, #ecfeff 100%);

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --shadow: 0 4px 12px rgba(15, 23, 42, .08), 0 2px 4px rgba(15, 23, 42, .04);
  --shadow-lg: 0 20px 40px -12px rgba(15, 23, 42, .22);
  --shadow-xl: 0 30px 60px -20px rgba(15, 23, 42, .35);

  --container: 1180px;
  --nav-h: 72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--surface);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
code {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: .86em;
  background: rgba(37, 99, 235, .09);
  color: var(--primary-dark);
  padding: .12em .42em;
  border-radius: 6px;
  white-space: nowrap;
}
.section-dark code, .cta code { background: rgba(255,255,255,.12); color: #bfe3ff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 820px; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
  line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 16px 30px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 20px -6px rgba(37, 99, 235, .55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -8px rgba(37, 99, 235, .6); }

.btn-outline {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }

.btn-ghost { background: transparent; color: var(--text-soft); }
.btn-ghost:hover { color: var(--primary); }

.btn-light { background: #fff; color: var(--primary-dark); box-shadow: var(--shadow-lg); }
.btn-light:hover { transform: translateY(-2px); }

.btn-ghost-light { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.3); }
.btn-ghost-light:hover { background: rgba(255,255,255,.2); }

/* ============ NAVBAR ============ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 6px 24px -12px rgba(15, 23, 42, .18);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 20px; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.brand-logo { height: 38px; width: auto; display: block; }
.brand-text span { color: var(--primary); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-soft);
  padding: 8px 14px;
  border-radius: 9px;
  transition: color .18s ease, background .18s ease;
}
.nav-links a:hover { color: var(--primary); background: rgba(37, 99, 235, .07); }

.nav-actions { display: flex; align-items: center; gap: 8px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 24px; height: 2.5px; background: var(--text); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 72px) 0 40px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, .05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.glow-1 { width: 520px; height: 520px; background: rgba(37, 99, 235, .35); top: -180px; right: -120px; }
.glow-2 { width: 420px; height: 420px; background: rgba(6, 182, 212, .3); bottom: -200px; left: -140px; }

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-dark);
  background: #fff;
  border: 1px solid var(--border);
  padding: 7px 15px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(16, 185, 129, .18); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 4px rgba(16,185,129,.18); } 50% { box-shadow: 0 0 0 8px rgba(16,185,129,.05); } }

.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.5rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 20px;
}
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.lead { font-size: 17.5px; color: var(--text-soft); max-width: 560px; margin-bottom: 30px; }
.lead strong { color: var(--text); font-weight: 600; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }

.hero-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.hero-badges li { font-size: 14px; color: var(--text-soft); font-weight: 500; }

/* Hero visual */
.hero-visual { position: relative; }
.window-frame {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
  transition: transform .5s ease;
}
.hero-visual:hover .window-frame { transform: perspective(1400px) rotateY(-2deg) rotateX(0deg); }
.window-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px;
  background: #f1f5f9;
  border-bottom: 1px solid var(--border);
}
.wdot { width: 11px; height: 11px; border-radius: 50%; }
.wdot.red { background: #ff5f57; } .wdot.yellow { background: #febc2e; } .wdot.green { background: #28c840; }
.window-title { margin-left: 10px; font-size: 12.5px; color: var(--text-muted); font-weight: 500; }
.window-frame img { width: 100%; }

.float-card {
  position: absolute;
  display: flex; align-items: center; gap: 11px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 11px 15px;
  box-shadow: var(--shadow-lg);
  animation: floaty 5s ease-in-out infinite;
}
.float-card strong { display: block; font-size: 13.5px; }
.float-card small { font-size: 11.5px; color: var(--text-muted); }
.fc-icon { font-size: 20px; }
.float-arduino { top: 12%; left: -34px; animation-delay: 0s; }
.float-camera { bottom: 20%; right: -30px; animation-delay: 1.2s; }
.float-qr { bottom: -18px; left: 12%; animation-delay: 2.4s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Trust strip */
.trust-strip {
  position: relative;
  margin-top: 64px;
  padding: 22px 24px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  border-top: 1px solid var(--border);
}
.trust-strip > span { font-size: 13.5px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; }
.trust-items { display: flex; flex-wrap: wrap; gap: 10px; }
.trust-items span {
  font-size: 13.5px; font-weight: 600; color: var(--text-soft);
  background: #fff; border: 1px solid var(--border);
  padding: 7px 15px; border-radius: 999px;
}

/* ============ STATS ============ */
.stats { background: var(--bg); color: #fff; padding: 46px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-num {
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -.03em;
  background: linear-gradient(135deg, #60a5fa, #22d3ee);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.stat-label { font-size: 14px; color: var(--text-light-soft); font-weight: 500; margin-top: 4px; }

/* ============ SECTIONS ============ */
.section { padding: 96px 0; }
.section-alt { background: var(--surface-alt); }
.section-dark { background: var(--bg-2); color: var(--text-light); }

.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head.light h2 { color: #fff; }
.section-head.light p { color: var(--text-light-soft); }
.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--primary);
  background: rgba(37, 99, 235, .09);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
}
.section-dark .eyebrow { color: #7dd3fc; background: rgba(125, 211, 252, .12); }
.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 800; letter-spacing: -.025em; line-height: 1.15; margin-bottom: 14px;
}
.section-head p { font-size: 17px; color: var(--text-soft); }

/* ============ FEATURES ============ */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: rgba(37, 99, 235, .3); }
.fc-ico {
  width: 48px; height: 48px; border-radius: 13px;
  display: grid; place-items: center; font-size: 23px;
  background: var(--grad-soft);
  border: 1px solid rgba(37, 99, 235, .12);
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 8px; letter-spacing: -.01em; }
.feature-card p { font-size: 14.5px; color: var(--text-soft); line-height: 1.6; }

/* ============ HARDWARE ============ */
.hw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.hw-card {
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.hw-card:hover { transform: translateY(-6px); border-color: rgba(96, 165, 250, .5); box-shadow: 0 24px 50px -20px rgba(37, 99, 235, .5); }

.hw-visual {
  position: relative;
  height: 168px;
  display: grid; place-items: center;
  overflow: hidden;
}
.hw-arduino { background: radial-gradient(circle at 50% 50%, rgba(245, 158, 11, .22), transparent 70%); }
.hw-camera { background: radial-gradient(circle at 50% 50%, rgba(16, 185, 129, .22), transparent 70%); }
.hw-qr { background: radial-gradient(circle at 50% 50%, rgba(124, 58, 237, .22), transparent 70%); }
.hw-emoji { font-size: 56px; position: relative; z-index: 2; }

.pulse-ring {
  position: absolute; width: 90px; height: 90px; border-radius: 50%;
  border: 2px solid rgba(245, 158, 11, .6);
  animation: ring 2.4s ease-out infinite;
}
@keyframes ring { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.2); opacity: 0; } }

.scan-line {
  position: absolute; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, #34d399, transparent);
  box-shadow: 0 0 14px #34d399;
  animation: scan 2.6s ease-in-out infinite;
}
@keyframes scan { 0%,100% { top: 22%; } 50% { top: 78%; } }

.qr-mock {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 14px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.5);
}
.qr-mock span { width: 16px; height: 16px; border-radius: 3px; background: #0f172a; }
.qr-mock span:nth-child(2), .qr-mock span:nth-child(4), .qr-mock span:nth-child(6), .qr-mock span:nth-child(8) { background: #7c3aed; }

.hw-body { padding: 26px 24px 30px; }
.hw-tag {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #7dd3fc; background: rgba(125, 211, 252, .12);
  padding: 5px 11px; border-radius: 999px; margin-bottom: 14px;
}
.hw-body h3 { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 12px; letter-spacing: -.015em; }
.hw-body p { font-size: 14.5px; color: var(--text-light-soft); margin-bottom: 16px; }
.hw-list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.hw-list li { position: relative; padding-left: 24px; font-size: 14px; color: var(--text-light); }
.hw-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: #34d399; font-weight: 800;
}

/* ============ GALLERY ============ */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.shot {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.shot:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: rgba(37, 99, 235, .35); }
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; background: #eef2f7; }
.shot figcaption { padding: 15px 18px; display: flex; flex-direction: column; gap: 2px; }
.shot figcaption strong { font-size: 15px; font-weight: 700; }
.shot figcaption span { font-size: 13px; color: var(--text-muted); }

/* ============ STEPS ============ */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px 26px;
  transition: transform .22s ease, box-shadow .22s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.step-num {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--grad); color: #fff;
  font-weight: 800; font-size: 18px;
  margin-bottom: 16px;
  box-shadow: 0 8px 18px -6px rgba(37, 99, 235, .55);
}
.step h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--text-soft); }

/* ============ PRICING ============ */
.pricing-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.price-card {
  background: #fff;
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 38px 34px;
  box-shadow: var(--shadow-xl);
  position: relative;
}
.price-card::before {
  content: "Most popular";
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 999px;
  box-shadow: 0 8px 18px -6px rgba(37, 99, 235, .6);
}
.price-head h3 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.price-sub { font-size: 14px; color: var(--text-muted); margin-top: 2px; }
.price-amount { display: flex; align-items: baseline; gap: 4px; margin: 22px 0 6px; }
.price-currency { font-size: 26px; font-weight: 700; color: var(--text-soft); }
.price-value { font-size: 56px; font-weight: 900; letter-spacing: -.04em; line-height: 1; }
.price-period { font-size: 15px; color: var(--text-muted); margin-left: 6px; }
.price-note { font-size: 13.5px; color: var(--text-muted); margin-bottom: 24px; }

.price-features { list-style: none; display: flex; flex-direction: column; gap: 11px; margin-bottom: 28px; }
.price-features li { position: relative; padding-left: 28px; font-size: 14.5px; color: var(--text-soft); }
.price-features li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 19px; height: 19px; border-radius: 50%;
  background: rgba(16, 185, 129, .14); color: var(--success);
  font-size: 12px; font-weight: 800;
  display: grid; place-items: center;
}
.price-card .btn + .btn { margin-top: 10px; }
.price-secure { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: 16px; }

.price-side { display: flex; flex-direction: column; gap: 20px; }
.side-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.side-card.highlight { background: var(--grad-soft); border-color: rgba(37, 99, 235, .2); }
.side-card h4 { font-size: 16.5px; font-weight: 700; margin-bottom: 14px; }
.side-card ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.side-card li { position: relative; padding-left: 22px; font-size: 14.5px; color: var(--text-soft); }
.side-card li::before { content: "→"; position: absolute; left: 0; color: var(--primary); font-weight: 700; }
.side-card li strong { color: var(--text); }

/* ============ FAQ ============ */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 20px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq details[open] { border-color: rgba(37, 99, 235, .35); box-shadow: var(--shadow); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  padding: 16px 0;
  list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 22px; font-weight: 400; color: var(--primary);
  transition: transform .25s ease;
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { font-size: 15px; color: var(--text-soft); padding: 0 0 18px; }

/* ============ CTA ============ */
.cta { background: var(--grad); color: #fff; padding: 72px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -.025em; margin-bottom: 8px; }
.cta p { font-size: 16.5px; color: rgba(255,255,255,.9); }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============ FOOTER ============ */
.footer { background: var(--bg); color: var(--text-light-soft); padding: 60px 0 28px; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 2fr; gap: 48px; padding-bottom: 40px; border-bottom: 1px solid var(--border-dark); }
.footer-brand { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.footer-logo {
  height: 44px; width: auto;
  background: #fff;
  padding: 7px 12px;
  border-radius: 12px;
}
.footer-brand p { font-size: 14px; max-width: 300px; }

.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.footer-col h5 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 14px; letter-spacing: .02em; }
.footer-col a { display: block; font-size: 14px; padding: 5px 0; transition: color .18s ease; }
.footer-col a:hover { color: #7dd3fc; }

.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; }
.footer-bottom p { font-size: 13px; }
.footer-note { color: #64748b; }

/* ============ LIGHTBOX ============ */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(8, 12, 22, .94);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center; justify-content: center;
  padding: 40px;
}
.lightbox.open { display: flex; animation: fadeIn .22s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lb-img {
  max-width: 92vw; max-height: 82vh;
  border-radius: 12px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.8);
  background: #fff;
}
.lb-close {
  position: absolute; top: 22px; right: 26px;
  background: rgba(255,255,255,.1); color: #fff;
  border: 1px solid rgba(255,255,255,.2);
  width: 44px; height: 44px; border-radius: 50%;
  font-size: 26px; line-height: 1; cursor: pointer;
  transition: background .18s ease;
}
.lb-close:hover { background: rgba(255,255,255,.22); }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.1); color: #fff;
  border: 1px solid rgba(255,255,255,.2);
  width: 52px; height: 52px; border-radius: 50%;
  font-size: 20px; cursor: pointer;
  transition: background .18s ease;
}
.lb-nav:hover { background: rgba(255,255,255,.22); }
.lb-prev { left: 26px; }
.lb-next { right: 26px; }
.lb-caption {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  color: #fff; font-size: 14.5px; font-weight: 600;
  background: rgba(255,255,255,.1);
  padding: 9px 20px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.15);
}

/* ============ REVEAL ANIMATION ============ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 620px; margin: 0 auto; }
  .window-frame { transform: none; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .hw-grid { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .pricing-wrap { grid-template-columns: 1fr; max-width: 620px; margin: 0 auto; }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 14px 20px 20px;
    transform: translateY(-140%);
    transition: transform .3s ease;
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 12px 14px; font-size: 16px; }
  .nav-toggle { display: flex; }
  .nav-actions .btn-ghost { display: none; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
  .trust-strip { justify-content: center; text-align: center; }
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-actions { justify-content: center; }
}

@media (max-width: 620px) {
  :root { --nav-h: 64px; }
  .container { padding: 0 18px; }
  .section { padding: 68px 0; }
  .hero { padding-top: calc(var(--nav-h) + 44px); }
  .hero h1 { font-size: 2rem; }
  .lead { font-size: 16px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .hero-badges { gap: 8px 14px; }
  .feature-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .float-card { display: none; }
  .price-card { padding: 30px 22px; }
  .price-value { font-size: 46px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .lightbox { padding: 16px; }
  .lb-nav { width: 42px; height: 42px; }
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
  .lb-close { top: 12px; right: 12px; }
  .lb-caption { bottom: 12px; font-size: 13px; padding: 7px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}