/* ============ RESET & VARS ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --primary: #0F62FE;
  --secondary: #00C853;
  --accent: #00E5FF;
  --bg: #0B1220;
  --surface: #1A2332;
  --surface-2: #212c40;
  --text: #FFFFFF;
  --text-dim: #9fb0c9;
  --highlight: #FFD54F;
  --border: rgba(255,255,255,.08);
  --glass: rgba(26,35,50,.55);
  --radius: 18px;
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

:root[data-theme="light"] {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #eef2f8;
  --text: #0b1220;
  --text-dim: #4b5d78;
  --border: rgba(15,25,45,.08);
  --glass: rgba(255,255,255,.65);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background .3s, color .3s;
}
h1, h2, h3, h4, h5 { font-family: var(--font-head); font-weight: 600; letter-spacing: -.02em; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
button { font-family: inherit; }

.accent { color: var(--accent); }
.gradient-text {
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-inner { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.section { padding: 100px 0; position: relative; }
.section-alt { background: var(--surface); }

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 12px; }
.section-head p { color: var(--text-dim); font-size: 16px; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  border: none;
  transition: transform .18s, box-shadow .18s, background .18s;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 8px 24px rgba(15,98,254,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(15,98,254,.5); }
.btn-ghost {
  background: rgba(255,255,255,.06);
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }
.btn-lg { padding: 16px 32px; font-size: 15.5px; }
.btn-sm { padding: 9px 18px; font-size: 13px; }

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
  transition: background .3s;
}
.nav-inner {
  max-width: 1240px; margin: 0 auto; padding: 14px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; font-size: 19px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
}
.nav-links { display: flex; gap: 26px; }
.nav-links a { font-size: 14px; font-weight: 600; color: var(--text-dim); transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.06); border: 1px solid var(--border);
  color: var(--text); cursor: pointer; font-size: 15px;
}
.burger { display: none; background: none; border: none; color: var(--text); font-size: 22px; cursor: pointer; }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 140px 24px 80px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .45; animation: float 12s ease-in-out infinite; }
.orb-1 { width: 420px; height: 420px; background: var(--primary); top: -100px; left: -100px; }
.orb-2 { width: 380px; height: 380px; background: var(--secondary); bottom: -120px; right: -80px; animation-delay: -4s; }
.orb-3 { width: 300px; height: 300px; background: var(--accent); top: 40%; left: 60%; animation-delay: -8s; }
@keyframes float { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(30px,-40px) scale(1.08); } }
.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 880px; }
.hero-badge {
  display: inline-block; padding: 8px 18px; border-radius: 999px;
  background: rgba(255,255,255,.07); border: 1px solid var(--border);
  font-size: 13px; font-weight: 700; margin-bottom: 22px; backdrop-filter: blur(6px);
}
.hero-title { font-size: clamp(34px, 6vw, 62px); line-height: 1.08; margin-bottom: 20px; }
.hero-sub { font-size: clamp(15px, 2vw, 18px); color: var(--text-dim); max-width: 640px; margin: 0 auto 34px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.hero-chips { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.chip {
  padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--glass); border: 1px solid var(--border); backdrop-filter: blur(8px);
}

.scroll-cue { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 1; }
.scroll-cue span {
  display: block; width: 24px; height: 40px; border: 2px solid var(--border); border-radius: 20px; position: relative;
}
.scroll-cue span::before {
  content: ''; position: absolute; top: 6px; left: 50%; width: 4px; height: 8px; margin-left: -2px;
  background: var(--accent); border-radius: 2px; animation: scrollDot 1.6s infinite;
}
@keyframes scrollDot { 0% { opacity: 1; top: 6px; } 100% { opacity: 0; top: 22px; } }

/* ============ STATS ============ */
.stats-section { padding: 60px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; text-align: center; }
.stat-num { font-family: var(--font-head); font-size: clamp(26px, 3vw, 36px); font-weight: 700; color: var(--accent); }
.stat-lbl { font-size: 12.5px; color: var(--text-dim); margin-top: 4px; text-transform: uppercase; letter-spacing: .5px; }

/* ============ GLASS CARD BASE ============ */
.glass-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}

/* ============ SERVICES ============ */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,.25); border-color: var(--primary); }
.service-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 16px;
}
.service-card h3 { font-size: 18.5px; margin-bottom: 8px; }
.service-card p { color: var(--text-dim); font-size: 14px; margin-bottom: 16px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: 999px;
  background: var(--surface-2); color: var(--text-dim);
}

/* ============ DEMOS ============ */
.demo-grid { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: center; }
.demo-house, .demo-car {
  position: relative;
  aspect-ratio: 1.3/1;
  border-radius: 28px;
  background: radial-gradient(circle at 30% 20%, rgba(15,98,254,.18), transparent 60%), var(--surface);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.demo-house-glow {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(0,229,255,.12), transparent 70%);
}
.house-emoji { font-size: clamp(90px, 14vw, 160px); filter: drop-shadow(0 12px 30px rgba(0,0,0,.4)); }
.car-emoji { font-size: clamp(80px, 12vw, 140px); filter: drop-shadow(0 12px 30px rgba(0,0,0,.4)); }

.hotspot {
  position: absolute;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--glass); border: 1.5px solid var(--border);
  backdrop-filter: blur(6px);
  font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform .18s, background .18s, border-color .18s;
  z-index: 2;
}
.hotspot:hover { transform: scale(1.14); border-color: var(--accent); }
.hotspot.active { background: linear-gradient(135deg, var(--primary), var(--accent)); border-color: transparent; }

.hs-light  { top: 14%; left: 20%; } .hs-fan    { top: 12%; right: 22%; }
.hs-door   { bottom: 16%; left: 42%; } .hs-window { top: 42%; left: 12%; }
.hs-camera { top: 10%; left: 50%; } .hs-gate   { bottom: 10%; right: 14%; }
.hs-tank   { bottom: 30%; right: 10%; }

.vh-gps { top: 12%; left: 46%; } .vh-tpms { bottom: 18%; left: 20%; }
.vh-windows { top: 34%; left: 18%; } .vh-doors { top: 34%; right: 18%; }
.vh-battery { bottom: 18%; right: 20%; } .vh-engine { top: 60%; left: 46%; }
.vh-security { top: 14%; right: 16%; }

.demo-panel { padding: 26px; }
.demo-panel h4 { font-size: 16px; margin-bottom: 16px; }
.demo-status-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.demo-status-list li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; border-radius: 12px; background: var(--surface-2); font-size: 14px; font-weight: 600;
  transition: background .2s;
}
.status-on { color: var(--secondary); }
.status-off { color: var(--text-dim); }
.demo-hint { margin-top: 16px; font-size: 12.5px; color: var(--text-dim); }

/* ============ SCENARIOS ============ */
.scenario-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.scenario-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
  transition: transform .2s, border-color .2s;
}
.scenario-card:hover { transform: translateY(-5px); border-color: var(--secondary); }
.scenario-icon { font-size: 30px; margin-bottom: 10px; }
.scenario-card h4 { font-size: 15px; margin-bottom: 8px; }
.scenario-card p { font-size: 12.5px; color: var(--text-dim); }

/* ============ APP SHOWCASE ============ */
.app-grid { display: grid; grid-template-columns: 1fr 340px; gap: 60px; align-items: center; }
.app-copy p { color: var(--text-dim); margin: 14px 0 22px; }
.check-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; font-size: 14.5px; }

.phone-frame {
  width: 300px; margin: 0 auto;
  border-radius: 42px;
  background: #0a0f1c;
  border: 6px solid #0a0f1c;
  box-shadow: 0 30px 70px rgba(0,0,0,.5), 0 0 0 2px rgba(255,255,255,.06);
  padding: 10px;
}
.phone-notch {
  width: 100px; height: 20px; background: #0a0f1c; border-radius: 0 0 14px 14px;
  margin: 0 auto; position: relative; top: 2px; z-index: 3;
}
.phone-screen {
  background: var(--surface); border-radius: 32px; overflow: hidden; min-height: 560px;
  display: flex; flex-direction: column;
}
.phone-tabbar { display: flex; border-bottom: 1px solid var(--border); }
.ptab { flex: 1; text-align: center; padding: 12px 4px; font-size: 11.5px; font-weight: 700; color: var(--text-dim); cursor: pointer; }
.ptab.active { color: var(--accent); border-bottom: 2px solid var(--accent); }
.phone-content { padding: 18px; flex: 1; font-size: 13px; }
.pc-title { font-family: var(--font-head); font-size: 16px; margin-bottom: 14px; }
.pc-row {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--surface-2); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; font-weight: 600;
}
.pc-badge { font-size: 11px; padding: 3px 9px; border-radius: 999px; background: rgba(0,200,83,.15); color: var(--secondary); font-weight: 700; }

/* ============ PRODUCTS ============ */
.filter-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 34px; }
.filter-chip {
  padding: 9px 18px; border-radius: 999px; font-size: 13px; font-weight: 700;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-dim); cursor: pointer;
  transition: all .18s;
}
.filter-chip.active, .filter-chip:hover { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; border-color: transparent; }

.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 22px 18px; text-align: center; transition: transform .2s, box-shadow .2s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(0,0,0,.22); }
.product-icon { font-size: 30px; margin-bottom: 10px; }
.product-card h5 { font-size: 13.5px; margin-bottom: 4px; }
.product-card span { font-size: 11px; color: var(--text-dim); }

/* ============ TESTIMONIALS ============ */
.testimonial-wrap { max-width: 720px; margin: 0 auto; text-align: center; }
.testimonial-track { position: relative; min-height: 190px; }
.testimonial-card {
  position: absolute; inset: 0; opacity: 0; transform: translateX(24px); transition: opacity .4s, transform .4s;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px 30px;
}
.testimonial-card.active { opacity: 1; transform: translateX(0); position: relative; }
.stars { color: var(--highlight); font-size: 18px; margin-bottom: 14px; }
.testimonial-card p { font-size: 16px; margin-bottom: 16px; }
.t-author { font-weight: 700; color: var(--text-dim); font-size: 13.5px; }
.testimonial-dots { display: flex; gap: 8px; justify-content: center; margin-top: 20px; }
.testimonial-dots span {
  width: 8px; height: 8px; border-radius: 50%; background: var(--border); cursor: pointer; transition: background .2s, transform .2s;
}
.testimonial-dots span.active { background: var(--accent); transform: scale(1.3); }

/* ============ FAQ ============ */
.faq-wrap { max-width: 760px; }
.accordion { display: flex; flex-direction: column; gap: 12px; }
.acc-item { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.acc-q {
  width: 100%; text-align: left; background: none; border: none; color: var(--text);
  padding: 18px 22px; font-size: 15px; font-weight: 700; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
}
.acc-q span { color: var(--accent); font-size: 20px; transition: transform .2s; }
.acc-item.open .acc-q span { transform: rotate(45deg); }
.acc-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.acc-a p { padding: 0 22px 18px; color: var(--text-dim); font-size: 14px; }

/* ============ CONTACT ============ */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; }
.contact-form { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.form-row { display: flex; gap: 14px; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text); font-family: inherit; font-size: 14px; outline: none;
  transition: border-color .18s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--primary); }
.form-note { font-size: 13px; color: var(--secondary); font-weight: 600; min-height: 18px; }

.contact-side { display: flex; flex-direction: column; gap: 14px; }
.contact-item {
  display: flex; gap: 14px; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px;
  font-size: 13.5px; transition: transform .18s, border-color .18s;
}
a.contact-item:hover { transform: translateX(4px); border-color: var(--primary); }
.ci-icon { font-size: 22px; }
.map-embed { border-radius: 14px; overflow: hidden; border: 1px solid var(--border); height: 200px; }
.map-embed iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.3) invert(0); }

/* ============ FOOTER ============ */
.footer { background: var(--surface); border-top: 1px solid var(--border); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 40px; }
.footer-tag { color: var(--text-dim); font-size: 13.5px; margin: 12px 0 16px; }
.social-row { display: flex; gap: 10px; font-size: 18px; }
.social-row a {
  width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
}
.footer h5 { font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: var(--text-dim); margin-bottom: 14px; }
.footer-grid > div > a { display: block; font-size: 13.5px; color: var(--text-dim); padding: 6px 0; }
.footer-grid > div > a:hover { color: var(--text); }
.footer-bottom {
  text-align: center; font-size: 12.5px; color: var(--text-dim);
  padding: 20px 0; border-top: 1px solid var(--border);
}

/* ============ WHATSAPP FLOAT ============ */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 900;
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary), #17d16b);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; box-shadow: 0 10px 26px rgba(0,200,83,.4);
  animation: pulse 2.4s infinite;
}
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }

/* ============ SCROLL REVEAL ============ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .burger { display: block; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .demo-grid, .app-grid, .contact-grid { grid-template-columns: 1fr; }
  .scenario-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .services-grid, .scenario-grid, .products-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 120px 18px 60px; }
  .form-row { flex-direction: column; }
  .phone-frame { width: 100%; max-width: 300px; }
  .footer-grid { grid-template-columns: 1fr; }
}
