
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0f1c;
  --bg2: #0e1525;
  --bg3: #131b2e;
  --bg-card: #151d32;
  --accent: #22c55e;
  --accent-dim: rgba(34,197,94,0.08);
  --accent-glow: rgba(34,197,94,0.25);
  --accent2: #4ade80;
  --text: #e8edf5;
  --text-secondary: #94a3b8;
  --muted: #64748b;
  --border: rgba(148,163,184,0.12);
  --border-hover: rgba(34,197,94,0.3);
  --glass: rgba(15,23,42,0.6);
  --white: #ffffff;
  --success: #22c55e;
  --radius: 10px;
  --font-head: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-body: 'Space Grotesk', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ===================== CURSOR ===================== */
.cursor {
  position: fixed; width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%); mix-blend-mode: difference;
  transition: transform 0.1s ease, width 0.2s, height 0.2s, opacity 0.2s;
}
.cursor-ring {
  position: fixed; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(34,197,94,0.4); pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.18s ease, width 0.2s, height 0.2s, opacity 0.2s;
}

/* ===================== UTILITY ===================== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* ===================== NAV ===================== */
nav#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 2rem; height: 76px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(10,15,28,0.85);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s, height 0.3s;
}
nav#navbar.scrolled {
  height: 64px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

/* ---- LOGO — BIGGER ---- */
.nav-logo img {
  height: 68px;           /* ← INCREASED from 42px */
  width: auto;
  display: block;
  padding: 6px 12px;
  border-radius: 14px;
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.22);
  box-shadow: 0 4px 18px rgba(34,197,94,0.15);
  transition: all 0.3s ease;
  filter: brightness(2.5);
}
.nav-logo:hover img {
  background: rgba(34,197,94,0.14);
  box-shadow: 0 6px 24px rgba(34,197,94,0.28);
  transform: scale(1.04);
}

@media (max-width: 768px) {
  .nav-logo img { height: 52px; padding: 4px 8px; }
  nav#navbar { height: 66px; }
}

.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a {
  color: var(--text-secondary); text-decoration: none; font-size: 0.85rem;
  font-weight: 500; transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -3px;
  width: 0; height: 1px; background: var(--accent);
  transition: width 0.25s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: var(--accent); color: #fff; border: none;
  padding: 0.5rem 1.2rem; border-radius: 6px; font-size: 0.82rem;
  font-weight: 600; cursor: pointer; text-decoration: none;
  transition: opacity 0.2s, box-shadow 0.2s;
}
.nav-cta:hover { opacity: 0.9; box-shadow: 0 0 16px var(--accent-glow); }

.hamburger { display: none; flex-direction: column; gap: 4px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text-secondary); transition: all 0.3s; }

/* ===================== HERO ===================== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: 120px 2rem 80px; overflow: hidden;
}

/* Animated grid */
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(34,197,94,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,197,94,0.045) 1px, transparent 1px);
  background-size: 80px 80px;
  animation: gridShift 20s linear infinite;
}
@keyframes gridShift {
  0% { background-position: 0 0; }
  100% { background-position: 80px 80px; }
}

/* Animated glows */
.hero-glow {
  position: absolute; top: -200px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(34,197,94,0.14) 0%, transparent 70%);
  pointer-events: none;
  animation: breathe 6s ease-in-out infinite;
}
.hero-glow2 {
  position: absolute; bottom: -100px; left: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(34,197,94,0.07) 0%, transparent 70%);
  pointer-events: none;
  animation: breathe 9s ease-in-out infinite reverse;
}
@keyframes breathe {
  0%,100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.7; }
}

/* Floating particles */
.particles {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.particle {
  position: absolute; width: 2px; height: 2px; border-radius: 50%;
  background: rgba(34,197,94,0.6);
  animation: floatUp linear infinite;
}
@keyframes floatUp {
  0% { transform: translateY(100vh) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 0.4; }
  100% { transform: translateY(-10vh) translateX(30px); opacity: 0; }
}

.hero-content {
  position: relative; z-index: 2; max-width: 1200px; margin: 0 auto;
  width: 100%; display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}

.hero-text { max-width: 560px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--accent-dim); border: 1px solid rgba(34,197,94,0.25);
  border-radius: 100px; padding: 0.35rem 1rem;
  font-size: 0.75rem; font-weight: 500; color: var(--accent2);
  margin-bottom: 1.5rem; letter-spacing: 0.02em;
  animation: fadeSlideIn 0.8s ease both;
}
.hero-badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success); animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(0.8)} }
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero h1 {
  font-family: var(--font-head); font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700; line-height: 1.15; margin-bottom: 1.2rem;
  letter-spacing: -0.03em; color: var(--white);
  animation: fadeSlideIn 0.8s 0.1s ease both;
}
.hero h1 .accent { color: var(--accent); }

.hero p {
  color: var(--text-secondary); font-size: 1.05rem; line-height: 1.8;
  margin-bottom: 2rem; font-weight: 400;
  animation: fadeSlideIn 0.8s 0.2s ease both;
}

.hero-btns {
  display: flex; gap: 0.75rem; flex-wrap: wrap;
  animation: fadeSlideIn 0.8s 0.3s ease both;
}

.btn-primary {
  background: var(--accent); color: var(--white); border: none;
  padding: 0.75rem 1.6rem; border-radius: 8px; font-weight: 600;
  font-size: 0.88rem; cursor: pointer; text-decoration: none;
  transition: box-shadow 0.3s, transform 0.2s; display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-primary:hover { box-shadow: 0 0 28px var(--accent-glow); transform: translateY(-2px); }

.btn-outline {
  background: transparent; color: var(--text-secondary);
  border: 1px solid var(--border); padding: 0.75rem 1.6rem; border-radius: 8px;
  font-weight: 500; font-size: 0.88rem; cursor: pointer; text-decoration: none;
  transition: border-color 0.2s, color 0.2s; display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-outline:hover { border-color: var(--accent); color: var(--text); }

/* HERO DIAGRAM */
.hero-diagram {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px;
  padding: 2rem; position: relative; overflow: hidden;
  animation: fadeSlideIn 0.9s 0.35s ease both;
}
.hero-diagram::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: shimmer 3s linear infinite;
  background-size: 200% 1px;
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.diagram-header {
  display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.5rem;
  padding-bottom: 1rem; border-bottom: 1px solid var(--border);
}
.diagram-dots { display: flex; gap: 4px; }
.diagram-dots span { width: 8px; height: 8px; border-radius: 50%; }
.diagram-dots span:nth-child(1) { background: #ef4444; }
.diagram-dots span:nth-child(2) { background: #eab308; }
.diagram-dots span:nth-child(3) { background: #22c55e; }
.diagram-title { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); }
.master-top { color: var(--accent); text-decoration: none; }

.protocol-flow { display: flex; flex-direction: column; gap: 0.75rem; }

.flow-row {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 0.8rem; background: rgba(34,197,94,0.05);
  border: 1px solid rgba(34,197,94,0.1); border-radius: 8px;
  text-decoration: none; color: inherit;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.flow-row:hover {
  border-color: var(--accent);
  background: rgba(34,197,94,0.1);
  transform: translateX(4px);
}
.flow-row:hover::after {
  content: '→ view topology';
  font-size: 0.55rem; letter-spacing: 0.1em; color: var(--accent);
  margin-left: auto; padding-right: 8px;
  font-family: var(--font-mono);
  white-space: nowrap;
}

.flow-icon {
  width: 28px; height: 28px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700; font-family: var(--font-mono);
  flex-shrink: 0;
}
.flow-icon.bacnet { background: rgba(34,197,94,0.15); color: var(--accent); }
.flow-icon.modbus { background: rgba(234,179,8,0.15); color: #eab308; }
.flow-icon.knx { background: rgba(168,85,247,0.15); color: #a855f7; }
.flow-icon.mqtt { background: rgba(34,197,94,0.15); color: var(--success); }

.flow-label { font-size: 0.78rem; color: var(--text-secondary); font-weight: 500; flex: 1; }
.flow-status { font-family: var(--font-mono); font-size: 0.68rem; color: var(--success); animation: pulse 2s infinite; }

.flow-arrow {
  text-align: center; color: var(--accent); font-size: 0.8rem;
  padding: 0.2rem 0; letter-spacing: 2px;
  animation: arrowBounce 1.8s ease-in-out infinite;
}
@keyframes arrowBounce {
  0%,100% { opacity: 0.5; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(3px); }
}

.flow-gateway {
  background: linear-gradient(135deg, rgba(34,197,94,0.12), rgba(34,197,94,0.04));
  border: 1px solid rgba(34,197,94,0.25); border-radius: 10px;
  padding: 0.8rem; text-align: center;
  text-decoration: none; color: inherit; display: flex; align-items: center; justify-content: center;
  transition: box-shadow 0.2s, background 0.2s;
}
.flow-gateway:hover { box-shadow: 0 0 20px rgba(34,197,94,0.25); background: rgba(34,197,94,0.14); }
.flow-gateway span {
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600;
  color: var(--accent); letter-spacing: 0.05em;
}

/* ===================== STATS BAR ===================== */
.stats-bar {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 3rem 0; background: var(--bg2); position: relative; overflow: hidden;
}
.stats-bar::before {
  content: ''; position: absolute; top: 0; left: -100%; right: -100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: scanLine 4s linear infinite;
}
@keyframes scanLine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.stats-grid { display: flex; justify-content: center; gap: 4rem; flex-wrap: wrap; }
.stat { text-align: center; position: relative; }
.stat-num {
  font-family: var(--font-head); font-size: 2.2rem; font-weight: 700;
  color: var(--white); display: block;
  background: linear-gradient(135deg, var(--white), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-label {
  font-size: 0.78rem; color: var(--muted); text-transform: uppercase;
  letter-spacing: 0.06em; margin-top: 0.2rem;
}

/* ===================== SECTION COMMON ===================== */
section { position: relative; }
.section-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 0.6rem;
}
.section-title {
  font-family: var(--font-head); font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700; line-height: 1.2; margin-bottom: 0.8rem; color: var(--white);
  letter-spacing: -0.02em;
}
.section-desc { color: var(--text-secondary); font-size: 1rem; max-width: 560px; line-height: 1.8; }
.divider { width: 48px; height: 2px; background: var(--accent); margin: 1rem 0 1.5rem; border-radius: 2px; }

/* ===================== ABOUT ===================== */
.about { padding: 100px 0; background: var(--bg2); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }

.about-features { display: flex; flex-direction: column; gap: 1rem; }
.about-feature {
  display: flex; gap: 1rem; padding: 1.2rem;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.about-feature:hover { border-color: var(--border-hover); transform: translateX(4px); box-shadow: -4px 0 16px rgba(34,197,94,0.08); }
.about-feature-icon {
  width: 40px; height: 40px; border-radius: 8px; flex-shrink: 0;
  background: var(--accent-dim); display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.about-feature h4 { font-family: var(--font-head); font-size: 0.9rem; color: var(--white); margin-bottom: 0.2rem; font-weight: 600; }
.about-feature p { color: var(--text-secondary); font-size: 0.82rem; line-height: 1.6; }

/* ===================== APPLICATIONS ===================== */
.applications { padding: 100px 0; background: var(--bg); }
.applications-header { text-align: center; margin-bottom: 4rem; }
.applications-header .section-desc { margin: 0 auto; }
.applications-header .divider { margin: 1rem auto 1.5rem; }

.apps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.2rem; }

.app-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; text-align: center;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  position: relative; overflow: hidden;
}
.app-card::before {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 0;
  background: linear-gradient(0deg, rgba(34,197,94,0.06), transparent);
  transition: height 0.3s;
}
.app-card:hover { border-color: var(--border-hover); transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.app-card:hover::before { height: 100%; }
.app-card-icon { font-size: 2.2rem; margin-bottom: 0.8rem; display: block; }
.app-card h3 { font-family: var(--font-head); font-size: 0.92rem; color: var(--white); margin-bottom: 0.4rem; font-weight: 600; }
.app-card p { color: var(--text-secondary); font-size: 0.82rem; line-height: 1.6; }

/* ===================== CTA ===================== */
.cta { padding: 80px 0; background: var(--bg2); }
.cta-inner {
  background: linear-gradient(135deg, rgba(34,197,94,0.08), rgba(34,197,94,0.02));
  border: 1px solid var(--border); border-radius: 16px;
  padding: 4rem 3rem; text-align: center; position: relative; overflow: hidden;
}
.cta-inner::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 50%; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.cta-inner h2 { font-family: var(--font-head); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; color: var(--white); margin-bottom: 0.8rem; }
.cta-inner p { color: var(--text-secondary); font-size: 1rem; margin-bottom: 2rem; max-width: 500px; margin-left: auto; margin-right: auto; margin-bottom: 2rem; }

/* ===================== CONTACT ===================== */
.contact-section { background: var(--bg); border-top: 1px solid var(--border); padding: 60px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 4rem; align-items: start; }

.contact-info h2 { font-family: var(--font-head); font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; color: var(--white); margin-bottom: 0.8rem; }
.contact-info > p { color: var(--text-secondary); line-height: 1.8; margin-bottom: 2rem; font-size: 0.92rem; }

.contact-cards { display: flex; flex-direction: column; gap: 0.8rem; }
.contact-card {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px;
}
.cc-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--accent-dim); display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; flex-shrink: 0;
}
.cc-text small { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); display: block; margin-bottom: 0.15rem; }
.cc-text span { color: var(--text-secondary); font-size: 0.85rem; }

.form-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px;
  padding: 2rem; position: relative; overflow: hidden;
}
.form-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.form-card h3 { font-family: var(--font-head); font-size: 0.95rem; color: var(--white); margin-bottom: 1.5rem; font-weight: 600; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 0.4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; background: rgba(148,163,184,0.06); border: 1px solid var(--border);
  border-radius: 8px; padding: 0.7rem 0.9rem; color: var(--text);
  font-family: var(--font-body); font-size: 0.88rem; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s; -webkit-appearance: none;
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(148,163,184,0.35); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(34,197,94,0.1);
}
.form-group select option { background: var(--bg-card); color: var(--text); }

.form-submit {
  width: 100%; background: var(--accent); color: var(--white); border: none;
  padding: 0.8rem; border-radius: 8px; font-family: var(--font-head);
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em;
  cursor: pointer; transition: opacity 0.2s, box-shadow 0.2s; margin-top: 0.5rem;
}
.form-submit:hover { opacity: 0.9; box-shadow: 0 0 20px var(--accent-glow); }

.form-success { display: none; text-align: center; padding: 2rem; }
.form-success .check { font-size: 2.5rem; display: block; margin-bottom: 0.8rem; }
.form-success h3 { font-family: var(--font-head); color: var(--accent); margin-bottom: 0.4rem; font-size: 1.1rem; }
.form-success p { color: var(--text-secondary); font-size: 0.88rem; }

/* ===================== FOOTER ===================== */
footer {
  background: var(--bg3); border-top: 1px solid var(--border); padding: 60px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.5fr; gap: 2.5rem; margin-bottom: 4rem; }
.footer-brand-name { font-family: var(--font-head); font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 0.8rem; }
.footer-brand-name span { color: var(--accent); }
.footer-brand p { color: var(--muted); font-size: 0.85rem; line-height: 1.7; margin-bottom: 1rem; }
.footer-col h4 {
  font-family: var(--font-head); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); margin-bottom: 1rem;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }
.footer-image { height: 60px; width: auto; display: block; margin-bottom: 1rem; filter: brightness(2.6); }
.footer-bottom {
  border-top: 1px solid var(--border); padding: 1.5rem 0;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { color: var(--muted); font-size: 0.78rem; }

/* ===================== REVEAL ANIMATIONS ===================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* ===================== THEME TOGGLE ===================== */
.theme-toggle {
  background: var(--accent-dim); border: 1px solid var(--border);
  border-radius: 8px; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s; font-size: 1rem; flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--accent); background: var(--accent-dim); }

/* ===================== LIGHT THEME ===================== */
body.light-theme {
  --bg: #f0f4f8; --bg2: #e8edf5; --bg3: #dde4ef; --bg-card: #ffffff;
  --accent: #16a34a; --accent-dim: rgba(22,163,74,0.08); --accent-glow: rgba(22,163,74,0.25);
  --accent2: #15803d; --text: #1e293b; --text-secondary: #475569; --muted: #64748b;
  --border: rgba(30,41,59,0.12); --border-hover: rgba(22,163,74,0.35);
  --glass: rgba(240,244,248,0.6); --white: #1e293b; --success: #16a34a;
}
body.light-theme nav { background: rgba(240,244,248,0.9); }
body.light-theme .hero-grid-bg {
  background-image:
    linear-gradient(rgba(22,163,74,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22,163,74,0.06) 1px, transparent 1px);
}
body.light-theme .form-group input, body.light-theme .form-group select, body.light-theme .form-group textarea {
  background: rgba(30,41,59,0.04); color: var(--text);
}
body.light-theme .flow-row { background: rgba(22,163,74,0.06); }
body.light-theme .hero-diagram { background: #ffffff; }

/* ===================== PRODUCT CARDS (blue accent) ===================== */
.products { padding: 100px 0; background: var(--bg); }
.products-header { text-align: center; margin-bottom: 4rem; }
.products-header .section-desc { margin: 0 auto; }
.products-header .divider { margin: 1rem auto 1.5rem; background: #3b82f6; }
.products-header .section-tag { color: #3b82f6; }

.products-tabs { display: flex; justify-content: center; gap: 0.5rem; margin-bottom: 3rem; }
.tab-btn {
  background: transparent; border: 1px solid rgba(148,163,184,0.12);
  color: #94a3b8; padding: 0.6rem 1.5rem; border-radius: 8px;
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 500;
  cursor: pointer; transition: all 0.2s;
}
.tab-btn.active, .tab-btn:hover { background: rgba(59,130,246,0.08); border-color: #3b82f6; color: #3b82f6; }

.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 1.5rem; }

.product-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.8rem; transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  position: relative; overflow: hidden;
}
.product-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, #3b82f6, transparent); opacity: 0;
  transition: opacity 0.3s;
}
.product-card:hover { border-color: rgba(59,130,246,0.3); transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,0.3); }
.product-card:hover::before { opacity: 1; }

.product-card-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 1rem; }
.product-icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: rgba(59,130,246,0.08); border: 1px solid rgba(59,130,246,0.15);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.product-badge {
  font-family: var(--font-mono); font-size: 0.65rem; font-weight: 600;
  background: rgba(34,197,94,0.1); color: var(--success);
  padding: 0.25rem 0.6rem; border-radius: 4px; letter-spacing: 0.05em;
}
.product-card h3 { font-family: var(--font-head); font-size: 1.05rem; font-weight: 600; color: #ffffff; margin-bottom: 0.5rem; }
.product-card > p { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.7; margin-bottom: 1rem; }
.product-specs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.2rem; }
.spec-tag {
  font-family: var(--font-mono); font-size: 0.7rem;
  background: rgba(148,163,184,0.08); border: 1px solid var(--border);
  color: var(--text-secondary); padding: 0.2rem 0.6rem; border-radius: 4px;
}
.product-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1rem; border-top: 1px solid rgba(148,163,184,0.12);
}
.product-link { color: #3b82f6; font-size: 0.82rem; font-weight: 600; text-decoration: none; display: flex; align-items: center; gap: 0.3rem; transition: gap 0.2s; }
.product-link:hover { gap: 0.6rem; }
.product-thumb { width: 150px; height: 130px; border-radius: 14px; overflow: hidden; background: rgba(255,255,255,0.04); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.product-view-btn { background: transparent; border: 1px solid #3b82f6; color: #3b82f6; padding: 8px 14px; border-radius: 6px; cursor: pointer; font-size: 0.85rem; transition: 0.3s ease; }
.product-view-btn:hover { background: #3b82f6; color: #fff; }

/* IMAGE MODAL */
.image-modal {
  display: none; position: fixed; z-index: 9999; inset: 0;
  background: rgba(0,0,0,0.85); justify-content: center; align-items: center; padding: 20px;
}
.image-modal-content { max-width: 95%; max-height: 90%; border-radius: 10px; object-fit: contain; }
.image-close { position: absolute; top: 20px; right: 30px; font-size: 32px; color: white; cursor: pointer; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column; position: fixed;
    top: 66px; left: 0; right: 0; background: rgba(10,15,28,0.97);
    backdrop-filter: blur(20px); padding: 1.5rem 2rem; gap: 1.2rem;
    border-bottom: 1px solid var(--border); z-index: 99;
  }
  .hero-content, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-content { gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stats-grid { gap: 2rem; }
  .products-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .products-tabs { flex-wrap: wrap; }
}
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-section { padding: 60px 0; }
  .form-card { padding: 1.4rem; }
}
