:root {
  --bg-deep:    #080c12;
  --bg-panel:   #0d1520;
  --bg-card:    #111d2e;
  --bg-hover:   #152234;
  --border:     #1e3048;
  --border-glow:#1e4a78;
  --blue-core:  #1a7de8;
  --blue-light: #3d9fff;
  --blue-faint: #0d2a45;
  --text-head:  #e8f2ff;
  --text-body:  #8aaccc;
  --text-muted: #4a6680;
  --accent-teal:#00d4c8;
  --accent-warn:#f0a020;
  --success:    #22c77a;
  --radius:     6px;
  --radius-lg:  12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg-deep);
  color: var(--text-body);
  line-height: 1.65;
  overflow-x: hidden;
}

/* ─── NOISE OVERLAY ─── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.022;
  pointer-events: none;
  z-index: 9999;
}

/* ─── TYPOGRAPHY ─── */
h1,h2,h3,h4 {
  font-family: 'Rajdhani', sans-serif;
  color: var(--text-head);
  letter-spacing: 0.02em;
  line-height: 1.15;
}
.mono { font-family: 'Space Mono', monospace; }

/* ─── GRID LINES BG ─── */
.grid-bg {
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  background-position: center center;
}

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: #ffffff;
  backdrop-filter: none;
  border-bottom: 1px solid #e0e8f0;
  padding: 0 2.5rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}
.nav-logo {
  display: flex; align-items: center; gap: 0;
  text-decoration: none;
}
.nav-logo-icon {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--blue-core), var(--accent-teal));
  clip-path: polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.nav-logo-icon::after {
  content: '';
  position: absolute;
  width: 60%; height: 2px;
  background: white;
  box-shadow: 0 0 8px white;
}
.nav-logo-text {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-head);
  letter-spacing: 0.08em;
}
.nav-logo-text span { color: var(--blue-light); }
.nav-links {
  display: flex; align-items: center; gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: #1a2a3a;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--blue-core); }

/* ─── DROPDOWN ─── */
.nav-dropdown { position: relative; }
.nav-dropdown > a {
  display: flex; align-items: center; gap: 4px; cursor: pointer;
}
.nav-dropdown > a::after {
  content: '▾';
  font-size: 0.7rem;
  transition: transform 0.2s;
  color: #1a2a3a;
}
.nav-dropdown:hover > a::after { transform: rotate(180deg); color: var(--blue-core); }
.dropdown-menu {
  display: none;
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  border: 1px solid #e0e8f0;
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
  min-width: 180px;
  overflow: hidden;
  z-index: 200;
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: 0.75rem 1.25rem;
  color: #1a2a3a !important;
  font-size: 0.82rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid #f0f4f8;
  transition: background 0.15s, color 0.15s !important;
}
.dropdown-menu a:last-child { border-bottom: none; }
.dropdown-menu a:hover { background: #f0f6ff; color: var(--blue-core) !important; }
.nav-cta {
  background: var(--blue-core);
  color: white !important;
  padding: 0.5rem 1.3rem !important;
  border-radius: var(--radius);
  transition: background 0.2s !important;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--blue-light) !important; }

/* ─── PAGE SYSTEM ─── */
.page { display: none; }
.page.active { display: block; }

/* ─── SECTIONS ─── */
section { padding: 6rem 2.5rem; max-width: 1200px; margin: 0 auto; }
.section-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 0.75rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 20px; height: 1px;
  background: var(--blue-light);
}

/* ─── HERO ─── */
.hero-wrap {
  min-height: 88vh;
  display: flex; flex-direction: column; justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 72px;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 75% 50%, rgba(26,125,232,0.12) 0%, transparent 65%),
    radial-gradient(ellipse 40% 35% at 20% 80%, rgba(0,212,200,0.06) 0%, transparent 60%),
    var(--bg-deep);
}
.circuit-lines {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 50%;
  opacity: 0.07;
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto;
  padding: 0 2.5rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.hero-tagline {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-teal);
  margin-bottom: 1.25rem;
}
.hero-h1 {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 1rem;
}
.hero-h1 .highlight {
  background: linear-gradient(90deg, var(--blue-core), var(--blue-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--text-body);
  max-width: 460px;
  margin-bottom: 2.5rem;
  font-weight: 300;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius);
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  border: none;
}
.btn-primary {
  background: var(--blue-core);
  color: white;
  box-shadow: 0 0 24px rgba(26,125,232,0.35);
}
.btn-primary:hover {
  background: var(--blue-light);
  box-shadow: 0 0 32px rgba(26,125,232,0.5);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--text-head);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--blue-core);
  color: var(--blue-light);
  background: var(--blue-faint);
}
.hero-visual {
  position: relative;
}
.hero-board {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  box-shadow: 0 0 60px rgba(26,125,232,0.1), inset 0 1px 0 rgba(255,255,255,0.05);
}
.hero-board::before {
  content: 'PWR-DIST-v3.2';
  position: absolute; top: -10px; left: 20px;
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  background: var(--blue-core);
  color: white;
  padding: 2px 8px;
  border-radius: 3px;
  letter-spacing: 0.1em;
}
.board-svg {
  width: 100%;
  height: auto;
}
.stat-pills {
  display: flex; gap: 0.75rem; flex-wrap: wrap;
  margin-top: 1rem;
}
.stat-pill {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.4rem 0.75rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  color: var(--accent-teal);
  letter-spacing: 0.08em;
}

/* ─── STRIP ─── */
.strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-panel);
  padding: 1.25rem 2.5rem;
  overflow: hidden;
}
.strip-inner {
  display: flex; gap: 4rem; align-items: center;
  white-space: nowrap;
  animation: marquee 22s linear infinite;
  width: max-content;
}
.strip-item {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.strip-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--blue-core); flex-shrink: 0; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ─── ABOUT ─── */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start;
}
.about-h2 { font-size: clamp(2rem, 3.5vw, 3rem); margin-bottom: 1.5rem; }
.about-p { margin-bottom: 1rem; }
.about-vals { margin-top: 2.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.val-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.val-card:hover {
  border-color: var(--border-glow);
  box-shadow: 0 0 20px rgba(26,125,232,0.08);
}
.val-icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
.val-title { font-family: 'Rajdhani',sans-serif; font-size: 1rem; font-weight: 600; color: var(--text-head); margin-bottom: 0.25rem; }
.val-desc { font-size: 0.85rem; }

/* ─── TEAM ─── */
.team-section { background: var(--bg-panel); padding: 6rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.team-inner { max-width: 1200px; margin: 0 auto; padding: 0 2.5rem; }
.team-h2 { font-size: clamp(2rem, 3.5vw, 3rem); margin-bottom: 0.5rem; }
.team-sub { font-size: 1rem; margin-bottom: 3rem; max-width: 560px; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.team-card {
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
}
.team-card:hover { border-color: var(--border-glow); transform: translateY(-3px); }
.team-avatar {
  height: 180px;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem;
  position: relative;
  overflow: hidden;
}
.team-avatar::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, var(--bg-deep));
}
.team-info { padding: 1.25rem 1.5rem 1.5rem; }
.team-name { font-family: 'Rajdhani',sans-serif; font-size: 1.25rem; font-weight: 700; color: var(--text-head); }
.team-role { font-family: 'Space Mono',monospace; font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue-light); margin-bottom: 0.75rem; }
.team-bio { font-size: 0.875rem; }

/* ─── PRODUCT PAGE ─── */
.products-hero {
  padding-top: 120px;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(26,125,232,0.1) 0%, transparent 70%),
    var(--bg-deep);
  text-align: center;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--border);
}
.products-hero h1 { font-size: clamp(2.5rem, 4vw, 3.5rem); margin-bottom: 0.75rem; }
.products-hero p { max-width: 540px; margin: 0 auto; }

.product-showcase { max-width: 1200px; margin: 0 auto; padding: 5rem 2.5rem; }
.product-block {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start;
  margin-bottom: 6rem;
  padding-bottom: 6rem;
  border-bottom: 1px solid var(--border);
}
.product-block:nth-child(even) { direction: rtl; }
.product-block:nth-child(even) > * { direction: ltr; }
.product-block:last-child { border-bottom: none; margin-bottom: 0; }

.product-img-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(26,125,232,0.08);
}
.product-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--blue-core);
  color: white;
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  padding: 3px 8px;
  border-radius: 3px;
  letter-spacing: 0.1em;
}
.product-img-inner {
  width: 100%; aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.product-label { font-family: 'Space Mono',monospace; font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--blue-light); margin-bottom: 0.5rem; }
.product-name { font-size: clamp(1.75rem, 2.5vw, 2.5rem); margin-bottom: 0.5rem; }
.product-desc { margin-bottom: 1.5rem; line-height: 1.7; }
.product-features { list-style: none; margin-bottom: 2rem; display: flex; flex-direction: column; gap: 0.6rem; }
.product-features li {
  display: flex; align-items: flex-start; gap: 0.65rem;
  font-size: 0.9rem;
}
.feature-check {
  width: 18px; height: 18px; border-radius: 3px;
  background: var(--blue-faint); border: 1px solid var(--blue-core);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
  font-size: 0.65rem; color: var(--blue-light);
}
.spec-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.spec-chip {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.3rem 0.7rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

/* ─── CONTACT ─── */
.contact-section { background: var(--bg-panel); border-top: 1px solid var(--border); }
.contact-inner { max-width: 1200px; margin: 0 auto; padding: 6rem 2.5rem; display: grid; grid-template-columns: 1fr 1.4fr; gap: 5rem; align-items: start; }
.contact-h2 { font-size: clamp(2rem, 3vw, 2.75rem); margin-bottom: 0.75rem; }
.contact-detail { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2rem; }
.cd-item { display: flex; gap: 1rem; align-items: flex-start; }
.cd-icon {
  width: 38px; height: 38px; border-radius: var(--radius); flex-shrink: 0;
  background: var(--blue-faint); border: 1px solid var(--border-glow);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.cd-label { font-family: 'Space Mono',monospace; font-size: 0.6rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.2rem; }
.cd-value { color: var(--text-head); font-size: 0.95rem; }

/* ─── FORM ─── */
.form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.form-group label { font-family: 'Space Mono',monospace; font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.form-group input,
.form-group textarea,
.form-group select {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.7rem 1rem;
  color: var(--text-head);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--blue-core);
  box-shadow: 0 0 0 3px rgba(26,125,232,0.15);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.recaptcha-box {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
}
.recap-left { display: flex; align-items: center; gap: 0.75rem; }
.recap-checkbox {
  width: 22px; height: 22px; border: 2px solid var(--border);
  border-radius: 3px; cursor: pointer; background: var(--bg-card);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; flex-shrink: 0;
  font-size: 0; color: white;
}
.recap-checkbox.checked { background: var(--blue-core); border-color: var(--blue-core); font-size: 0.9rem; }
.recap-label { font-size: 0.875rem; color: var(--text-head); cursor: pointer; user-select: none; }
.recap-logo { text-align: right; }
.recap-logo-top { font-family: 'Space Mono',monospace; font-size: 0.55rem; color: var(--text-muted); }
.recap-logo-brand { font-family: 'Rajdhani',sans-serif; font-size: 0.75rem; color: var(--text-muted); font-weight: 600; }
.form-msg { padding: 0.75rem 1rem; border-radius: var(--radius); font-size: 0.875rem; margin-bottom: 1rem; display: none; }
.form-msg.success { background: rgba(34,199,122,0.1); border: 1px solid rgba(34,199,122,0.3); color: var(--success); display: flex; align-items: center; gap: 0.5rem; }
.form-msg.error { background: rgba(220,80,60,0.1); border: 1px solid rgba(220,80,60,0.3); color: #e05050; display: flex; align-items: center; gap: 0.5rem; }

/* ─── FOOTER ─── */
footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  padding: 3rem 2.5rem 2rem;
}
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 2.5rem; }
.footer-brand p { font-size: 0.875rem; margin-top: 0.75rem; max-width: 280px; }
.footer-col h4 { font-family: 'Rajdhani',sans-serif; font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-head); margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul li a { color: var(--text-muted); text-decoration: none; font-size: 0.875rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--blue-light); }
.footer-bottom { padding-top: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.footer-copy { font-size: 0.8rem; color: var(--text-muted); }
.footer-badge { font-family: 'Space Mono',monospace; font-size: 0.6rem; letter-spacing: 0.12em; color: var(--text-muted); }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.6s ease both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ─── PULSE DOT ─── */
.pulse { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-teal); box-shadow: 0 0 0 0 rgba(0,212,200,0.4); animation: pulse 2.5s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(0,212,200,0.4); } 70% { box-shadow: 0 0 0 10px rgba(0,212,200,0); } 100% { box-shadow: 0 0 0 0 rgba(0,212,200,0); } }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .product-block, .product-block:nth-child(even) { grid-template-columns: 1fr; direction: ltr; }
  .contact-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  nav { padding: 0 1.25rem; }
  .nav-links { display: none; }
  .team-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  section { padding: 4rem 1.25rem; }
}

/* Divider line accent */
.line-accent {
  display: block; width: 48px; height: 3px;
  background: linear-gradient(90deg, var(--blue-core), var(--accent-teal));
  border-radius: 2px;
  margin-bottom: 2rem;
}