/* ===== Variables — White, Green, Black ===== */
:root {
  --black: #0a0a0a;
  --black-soft: #141414;
  --black-muted: #1f1f1f;
  --white: #ffffff;
  --white-soft: #f5f5f5;
  --green: #22c55e;
  --green-dark: #16a34a;
  --green-bright: #4ade80;

  --bg-dark: var(--black);
  --bg-card: var(--black-soft);
  --bg-elevated: var(--black-muted);
  --bg-light: var(--white);
  --bg-light-alt: var(--white-soft);

  --accent: var(--green);
  --accent-dim: var(--green-dark);
  --accent-glow: rgba(34, 197, 94, 0.15);
  --accent-border: rgba(34, 197, 94, 0.35);

  --text: var(--white);
  --text-on-light: var(--black);
  --text-muted: #a3a3a3;
  --text-muted-light: #525252;
  --text-dim: #737373;

  --border: rgba(255, 255, 255, 0.1);
  --border-light: rgba(0, 0, 0, 0.08);
  --gradient: linear-gradient(135deg, var(--green-bright) 0%, var(--green-dark) 100%);
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
  --shadow-dark: 0 4px 24px rgba(0, 0, 0, 0.4);
  --transition: 0.25s ease;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-display: 'Outfit', system-ui, sans-serif;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font-body);
  background: var(--page, #fff);
  color: var(--text-on-light);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.container {
  width: min(1140px, 92vw);
  margin-inline: auto;
  padding-inline: env(safe-area-inset-left) env(safe-area-inset-right);
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: var(--shadow-dark); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

body.menu-open {
  overflow: hidden;
  touch-action: none;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo-img {
  height: 42px;
  width: auto;
  max-width: min(160px, 45vw);
  object-fit: contain;
  display: block;
}
.footer-brand .logo-img {
  height: 48px;
  max-width: 180px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
  background: var(--green);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--green-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 8px;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--surface, #fff);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  min-height: 48px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary {
  background: var(--green);
  color: var(--white);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--green-dark);
  box-shadow: 0 8px 24px var(--accent-glow);
}
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border-light);
  color: var(--text-on-light);
}
.btn-outline:hover { border-color: var(--green); color: var(--green); }
.btn-full { width: 100%; }

/* ===== Hero (black section) ===== */
.hero {
  position: relative;
  padding: 140px 0 100px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--black);
  color: var(--white);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(34, 197, 94, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(34, 197, 94, 0.05) 0%, transparent 60%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}

.hero-badge {
  display: inline-block;
  background: var(--accent-glow);
  border: 1px solid var(--accent-border);
  color: var(--green-bright);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: 32px;
}

.hero .btn-outline {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--white);
}
.hero .btn-outline:hover {
  border-color: var(--green);
  color: var(--green-bright);
  background: rgba(34, 197, 94, 0.08);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 40px;
}
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}
.stat span {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Hero cards */
.hero-visual {
  position: relative;
  height: 420px;
}
.hero-card {
  position: absolute;
  background: var(--black-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 260px;
  box-shadow: var(--shadow-dark);
  transition: border-color var(--transition), transform var(--transition);
}
.hero-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-border);
}
.hero-card-main { top: 0; left: 0; z-index: 3; }
.hero-card-secondary { top: 120px; right: 0; z-index: 2; }
.hero-card-tertiary { bottom: 0; left: 60px; z-index: 1; }

.card-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-glow);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--accent);
}
.card-icon svg { width: 22px; height: 22px; }
.hero-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.hero-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===== Section shared ===== */
section { padding: 100px 0; }
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 16px;
}
.section-header p { color: var(--text-muted); }
.section-tag {
  display: inline-block;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

/* ===== Services (white section) ===== */
.services { background: var(--surface-2, #f5f5f5); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--surface, #fff);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  transition: border-color var(--transition), transform var(--transition);
  box-shadow: var(--shadow);
}
.service-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-4px);
}
.service-card.featured {
  border-color: var(--green);
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.06) 0%, var(--surface, #fff) 40%);
}
.service-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--green);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.service-icon svg { width: 26px; height: 26px; }
.service-icon-it { background: rgba(34, 197, 94, 0.12); color: var(--green-dark); }
.service-icon-cctv { background: rgba(34, 197, 94, 0.18); color: var(--green); }
.service-icon-network { background: rgba(34, 197, 94, 0.08); color: var(--green-bright); }

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--text-on-light);
}
.service-card > p {
  color: var(--text-muted-light);
  font-size: 0.925rem;
  margin-bottom: 20px;
}
.service-list li {
  font-size: 0.875rem;
  color: var(--text-dim);
  padding: 6px 0 6px 20px;
  position: relative;
}
.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* ===== Products ===== */
.products-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.products-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  margin-bottom: 16px;
}
.products-content > p {
  color: var(--text-muted);
  margin-bottom: 32px;
}

.product-categories { margin-bottom: 32px; }
.product-cat {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.product-cat-icon { font-size: 1.6rem; }
.product-cat strong { display: block; font-size: 0.95rem; }
.product-cat span { font-size: 0.85rem; color: var(--text-dim); }

.products-grid-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.pv-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition);
}
.pv-item:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
}
.pv-1 { grid-row: span 2; display: flex; align-items: center; justify-content: center; }

/* ===== Why Us ===== */
.why-us { background: var(--bg-card); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.why-card {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-dark);
  transition: border-color var(--transition);
}
.why-card:hover { border-color: rgba(56, 189, 248, 0.25); }
.why-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.4;
  margin-bottom: 12px;
}
.why-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.why-card p { font-size: 0.875rem; color: var(--text-muted); }

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: start;
}
.about-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  margin-bottom: 20px;
}
.about-lead {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 16px;
}
.about-content p { color: var(--text-muted); margin-bottom: 16px; }
.about-content blockquote {
  margin-top: 24px;
  padding: 20px 24px;
  border-left: 3px solid var(--accent);
  background: var(--bg-card);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.about-features { display: flex; flex-direction: column; gap: 16px; }
.about-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.925rem;
}
.about-feature svg { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; }

/* ===== Contact ===== */
.contact { background: var(--bg-card); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: start;
}
.contact-info h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  margin-bottom: 16px;
}
.contact-info > p { color: var(--text-muted); margin-bottom: 32px; }

.contact-details { display: flex; flex-direction: column; gap: 20px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}
.contact-item:hover { border-color: rgba(56, 189, 248, 0.3); }
.contact-item svg { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; }
.contact-item strong { display: block; font-size: 0.85rem; color: var(--text-dim); margin-bottom: 2px; }
.contact-item span { font-size: 0.95rem; }

.contact-form {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-muted);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  min-height: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color var(--transition);
  font-size: 16px;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-note {
  text-align: center;
  margin-top: 16px;
  color: #34d399;
  font-weight: 500;
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 16px;
  max-width: 300px;
}
.footer-links h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  text-align: center;
}
.footer-bottom p { font-size: 0.85rem; color: var(--text-dim); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero-grid,
  .products-layout,
  .about-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-inline: auto;
  }

  .hero-visual {
    height: auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 32px;
  }

  .hero-card {
    position: static;
    width: 100%;
    padding: 20px;
  }

  .hero-card:hover { transform: none; }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-grid-visual {
    max-width: 480px;
    margin-inline: auto;
  }
}

@media (max-width: 768px) {
  html { scroll-padding-top: 68px; }

  .header {
    padding-top: env(safe-area-inset-top);
  }

  .nav {
    height: 64px;
  }

  .logo-img {
    height: 36px;
    max-width: 130px;
  }

  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    inset: 0;
    top: calc(64px + env(safe-area-inset-top));
    background: rgba(10, 22, 40, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: stretch;
    padding: 24px 20px 32px;
    gap: 8px;
    border-bottom: 1px solid var(--border);
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links.open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-links li { width: 100%; }

  .nav-links a {
    display: block;
    padding: 14px 16px;
    font-size: 1rem;
    border-radius: 10px;
  }

  .nav-links a:not(.nav-cta):hover,
  .nav-links a:not(.nav-cta):active {
    background: var(--bg-elevated);
  }

  .nav-cta {
    text-align: center;
    margin-top: 8px;
    padding: 14px 20px !important;
  }

  .nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .hero {
    padding: calc(88px + env(safe-area-inset-top)) 0 56px;
    min-height: auto;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 7vw, 2.4rem);
  }

  .hero-desc {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    margin-bottom: 36px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    text-align: center;
  }

  .stat strong { font-size: 1.25rem; }
  .stat span { font-size: 0.75rem; }

  .hero-visual {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 8px;
  }

  .hero-card {
    padding: 18px 20px;
  }

  .card-icon {
    width: 40px;
    height: 40px;
  }

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

  .products-layout { gap: 40px; }

  .products-grid-visual {
    grid-template-columns: 1fr 1fr;
    max-width: none;
  }

  .pv-1 { grid-row: span 1; padding: 28px 16px; }
  .pv-item { padding: 28px 16px; font-size: 0.9rem; }

  .about-grid { gap: 32px; }

  .contact-grid { gap: 36px; }

  .contact-form { padding: 24px 20px; }

  .form-row { grid-template-columns: 1fr; }

  section { padding: 64px 0; }

  .section-header {
    margin-bottom: 40px;
    text-align: left;
  }

  .section-header h2 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .service-card { padding: 24px 20px; }

  .footer {
    padding-top: 48px;
  }

  .footer-grid {
    gap: 32px;
    text-align: center;
  }

  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-brand p {
    max-width: none;
  }

  .footer-links h4 { margin-bottom: 12px; }
}

@media (max-width: 480px) {
  .container {
    width: min(1140px, 94vw);
  }

  .hero-badge {
    font-size: 0.72rem;
    padding: 5px 12px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: left;
  }

  .stat {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
  }

  .stat strong { font-size: 1.1rem; min-width: 48px; }

  .products-grid-visual {
    grid-template-columns: 1fr;
  }

  .product-cat {
    align-items: flex-start;
  }

  .contact-item {
    align-items: flex-start;
  }

  .footer-bottom p {
    font-size: 0.8rem;
    padding-inline: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-card:hover { transform: none; }
}
