/* ==========================================================
   Zen Computers — main stylesheet
   Colors and spacing are controlled by the variables below.
   ========================================================== */
:root {
  --bg-dark: #0a1020;
  --bg-dark-2: #111a30;
  --bg-light: #f5f7fb;
  --white: #ffffff;
  --text: #1c2437;
  --text-muted: #5b667d;
  --text-light: #c6cfe1;
  --primary: #14b8a6;
  --primary-dark: #0e8f81;
  --accent: #38bdf8;
  --border: #e3e8f1;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(10, 16, 32, 0.08);
  --shadow-lg: 0 20px 50px rgba(10, 16, 32, 0.18);
  --container: 1200px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.6em; color: inherit; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 800; letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 90px 0; }
.section-sm { padding: 60px 0; }
.bg-light { background: var(--bg-light); }
.bg-dark { background: var(--bg-dark); color: var(--white); }
.bg-dark p { color: var(--text-light); }
.text-center { text-align: center; }
.muted { color: var(--text-muted); }

.section-head { max-width: 720px; margin: 0 auto 50px; text-align: center; }
.section-head p { color: var(--text-muted); font-size: 1.08rem; }
.bg-dark .section-head p { color: var(--text-light); }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none !important;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: var(--white); box-shadow: 0 8px 20px rgba(20, 184, 166, 0.35); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { border-color: currentColor; color: var(--primary-dark); background: transparent; }
.bg-dark .btn-outline, .hero .btn-outline, .page-hero .btn-outline { color: var(--white); }
.btn-dark { background: var(--bg-dark); color: var(--white); }
.btn-sm { padding: 9px 18px; font-size: 0.88rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 16, 32, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.topbar {
  background: var(--bg-dark-2);
  color: var(--text-light);
  font-size: 0.85rem;
}
.topbar .container { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.topbar a { color: var(--text-light); }
.topbar-links { display: flex; gap: 20px; flex-wrap: wrap; }

.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--white); font-weight: 800; font-size: 1.25rem; text-decoration: none !important; }
.logo-mark {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: grid; place-items: center; color: var(--bg-dark); font-weight: 900; font-size: 1.2rem;
}
.logo small { display: block; font-size: 0.7rem; font-weight: 500; color: var(--text-light); letter-spacing: 0.08em; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--text-light);
  padding: 10px 13px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); background: rgba(255, 255, 255, 0.07); }
.nav-links .btn { margin-left: 8px; color: var(--white); }
.nav-links .btn:hover { background: var(--primary-dark); }

.nav-toggle {
  display: none;
  background: none; border: 0; color: var(--white); cursor: pointer; padding: 8px;
}
.nav-toggle span { display: block; width: 26px; height: 2px; background: currentColor; margin: 6px 0; transition: 0.2s; }

@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--bg-dark); padding: 12px 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 10px; }
  .nav-links .btn { margin: 10px 0 0; }
  .topbar-hide-mobile { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(circle at 15% 20%, rgba(20, 184, 166, 0.22), transparent 45%),
    radial-gradient(circle at 85% 70%, rgba(56, 189, 248, 0.18), transparent 45%),
    var(--bg-dark);
  color: var(--white);
  padding: 100px 0 110px;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.hero p.lead { font-size: 1.18rem; color: var(--text-light); max-width: 560px; }
.hero h1 span, .page-hero h1 span { background: linear-gradient(90deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 34px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem; color: var(--text-light);
}
.badge-light { background: rgba(20, 184, 166, 0.1); border-color: rgba(20, 184, 166, 0.25); color: var(--primary-dark); font-weight: 600; }

/* Mock camera monitoring dashboard */
.monitor {
  background: #0d1528;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 16px;
  box-shadow: var(--shadow-lg);
}
.monitor-bar { display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: var(--text-light); margin-bottom: 12px; }
.live-dot { display: inline-flex; align-items: center; gap: 6px; color: #f87171; font-weight: 700; }
.live-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #f87171; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: 0.3; } }
.cams { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cam {
  position: relative; aspect-ratio: 16/10; border-radius: 10px; overflow: hidden;
  background: linear-gradient(135deg, #1b2a48, #0f1a30);
}
.cam::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 2px, transparent 2px 4px);
}
.cam svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.55; }
.cam-label { position: absolute; left: 8px; bottom: 6px; font-size: 0.7rem; color: #d7e0f2; z-index: 1; }
.cam-time { position: absolute; right: 8px; top: 6px; font-size: 0.65rem; color: #9fb0cf; z-index: 1; font-variant-numeric: tabular-nums; }
.monitor-report {
  margin-top: 12px; padding: 12px 14px; border-radius: 10px;
  background: rgba(20, 184, 166, 0.1); border: 1px solid rgba(20, 184, 166, 0.25);
  font-size: 0.82rem; color: #c9f5ef; display: flex; justify-content: space-between; gap: 10px;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background:
    radial-gradient(circle at 80% 0%, rgba(20, 184, 166, 0.25), transparent 50%),
    var(--bg-dark);
  color: var(--white);
  padding: 80px 0 70px;
}
.page-hero p { color: var(--text-light); font-size: 1.12rem; max-width: 680px; }
.breadcrumb { font-size: 0.85rem; color: var(--text-light); margin-bottom: 14px; }
.breadcrumb a { color: var(--text-light); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: -50px; position: relative; z-index: 2; }
.stat { background: var(--white); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); text-align: center; }
.stat strong { display: block; font-size: 2rem; font-weight: 800; color: var(--primary-dark); }
.stat span { color: var(--text-muted); font-size: 0.92rem; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(20, 184, 166, 0.4); }
.card p { color: var(--text-muted); }
.card .card-link { margin-top: auto; font-weight: 600; }
.icon {
  width: 54px; height: 54px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.15), rgba(56, 189, 248, 0.15));
  color: var(--primary-dark);
}
.icon svg { width: 28px; height: 28px; }
.bg-dark .card { background: var(--bg-dark-2); border-color: rgba(255, 255, 255, 0.08); }
.bg-dark .card h3 { color: var(--white); }

.check-list { list-style: none; padding: 0; margin: 0 0 1.2em; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* Industries */
.industry { text-align: center; padding: 28px 18px; }
.industry .icon { margin: 0 auto 14px; }

/* Split section */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-visual {
  border-radius: 20px; min-height: 340px; overflow: hidden;
  background: linear-gradient(135deg, var(--bg-dark-2), #1a2b4d);
  display: grid; place-items: center; color: var(--white); padding: 30px;
  box-shadow: var(--shadow-lg);
}
.split-visual img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Software cards ---------- */
.software-card { padding: 0; overflow: hidden; }
.software-card .sw-top {
  padding: 28px 30px; color: var(--white);
  background: linear-gradient(135deg, var(--bg-dark-2), #1d3557);
  display: flex; align-items: center; gap: 16px;
}
.software-card .sw-top .icon { margin: 0; background: rgba(255, 255, 255, 0.1); color: var(--primary); }
.software-card .sw-top h3 { margin: 0; color: var(--white); }
.software-card .sw-top small { color: var(--text-light); }
.software-card .sw-body { padding: 26px 30px 30px; display: flex; flex-direction: column; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tag { font-size: 0.75rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--bg-light); color: var(--text-muted); border: 1px solid var(--border); }
.tag-live { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.tag-new { background: #e0f2fe; color: #075985; border-color: #bae6fd; }
.sw-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 10px; }

/* Software detail page */
.detail-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 50px; align-items: start; }
.sidebar-box { background: var(--bg-light); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; position: sticky; top: 100px; }
.sidebar-box h3 { margin-bottom: 14px; }
.sidebar-box .btn { margin-bottom: 10px; }
.spec-table { width: 100%; border-collapse: collapse; margin: 10px 0 30px; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.spec-table th { width: 38%; color: var(--text-muted); font-weight: 600; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 20px 0 40px; }
.feature { padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.feature h4 { margin-bottom: 6px; font-size: 1.02rem; }
.feature p { color: var(--text-muted); margin: 0; font-size: 0.95rem; }

/* Store badges */
.store-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: #000; color: #fff !important; padding: 9px 18px; border-radius: 12px;
  text-decoration: none !important; min-width: 170px; border: 1px solid #333;
}
.store-badge svg { width: 26px; height: 26px; flex-shrink: 0; }
.store-badge small { display: block; font-size: 0.65rem; line-height: 1; opacity: 0.85; }
.store-badge strong { display: block; font-size: 1.05rem; line-height: 1.2; }

/* ---------- Pricing / payment ---------- */
.price-card { text-align: center; position: relative; }
.price-card .price { font-size: 2.4rem; font-weight: 800; color: var(--text); margin: 6px 0 2px; }
.price-card .price small { font-size: 1rem; color: var(--text-muted); font-weight: 500; }
.price-card .check-list { text-align: left; margin: 20px 0 26px; }
.price-card.featured { border: 2px solid var(--primary); box-shadow: var(--shadow); }
.ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 4px 14px; border-radius: 999px; }
.notice { background: #fff8e6; border: 1px solid #fde4a6; border-radius: var(--radius-sm); padding: 16px 20px; color: #7a5a00; font-size: 0.95rem; }

/* ---------- Projects gallery ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 36px; }
.filter-btn { background: var(--white); border: 1px solid var(--border); padding: 9px 18px; border-radius: 999px; cursor: pointer; font-family: inherit; font-weight: 600; color: var(--text-muted); }
.filter-btn.active, .filter-btn:hover { background: var(--bg-dark); color: var(--white); border-color: var(--bg-dark); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.project { border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--border); cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; }
.project:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.project img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--bg-light); }
.project-info { padding: 16px 18px; }
.project-info h3 { font-size: 1.05rem; margin-bottom: 4px; }
.project-info p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }
.project.hidden { display: none; }

.lightbox { position: fixed; inset: 0; background: rgba(5, 8, 16, 0.92); display: none; align-items: center; justify-content: center; z-index: 500; padding: 30px; flex-direction: column; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 80vh; border-radius: 12px; }
.lightbox p { color: #fff; margin-top: 14px; text-align: center; }
.lightbox-close { position: absolute; top: 18px; right: 24px; background: none; border: 0; color: #fff; font-size: 2.4rem; cursor: pointer; line-height: 1; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 10px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: #fff; font-weight: 800; margin-bottom: 16px;
}

/* ---------- Testimonials ---------- */
.quote { font-size: 1.02rem; }
.quote p { color: var(--text); font-style: italic; }
.quote footer { margin-top: auto; font-weight: 700; font-size: 0.92rem; }
.quote footer span { display: block; font-weight: 500; color: var(--text-muted); }
.stars { color: #f5b301; letter-spacing: 2px; margin-bottom: 10px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 12px; padding: 4px 22px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--primary); line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--text-muted); }

/* ---------- CTA band ---------- */
.cta {
  background: linear-gradient(135deg, var(--primary-dark), #0b6e8a);
  color: var(--white); border-radius: 24px; padding: 56px; display: flex;
  justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap;
}
.cta h2 { margin-bottom: 8px; }
.cta p { color: rgba(255, 255, 255, 0.85); margin: 0; }
.cta .btn-primary { background: var(--white); color: var(--primary-dark); box-shadow: none; }
.cta .btn-outline { color: var(--white); }

/* ---------- Forms ---------- */
.form-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 1rem; background: var(--bg-light); color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.18); background: #fff; }
.field textarea { min-height: 140px; resize: vertical; }
.hp-field { position: absolute; left: -9999px; }
.form-status { margin-top: 14px; padding: 14px 16px; border-radius: var(--radius-sm); display: none; font-weight: 500; }
.form-status.success { display: block; background: #dcfce7; color: #166534; }
.form-status.error { display: block; background: #fee2e2; color: #991b1b; }

.contact-info { display: grid; gap: 18px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item .icon { margin: 0; flex-shrink: 0; }
.contact-item strong { display: block; }
.contact-item span, .contact-item a { color: var(--text-muted); }
.map-embed { border: 0; width: 100%; height: 300px; border-radius: var(--radius); margin-top: 24px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-dark); color: var(--text-light); padding: 70px 0 0; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: var(--text-light); }
.site-footer a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); margin-top: 50px; padding: 22px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.85rem; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, 0.07); display: grid; place-items: center; }
.socials svg { width: 18px; height: 18px; }

/* Floating WhatsApp / call button */
.float-btn {
  position: fixed; right: 20px; bottom: 20px; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}
.float-btn svg { width: 30px; height: 30px; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid, .split, .detail-grid { grid-template-columns: 1fr; }
  .grid-4, .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .sidebar-box { position: static; }
}
@media (max-width: 680px) {
  .section { padding: 64px 0; }
  .grid-2, .grid-3, .grid-4, .gallery, .stats, .form-row, .feature-grid, .footer-grid { grid-template-columns: 1fr; }
  .cta { padding: 36px 26px; }
  .form-card { padding: 24px; }
  .hero { padding: 70px 0 90px; }
}
