:root {
  --bg: #07080d;
  --bg2: #0d0f17;
  --bg-card: #111320;
  --border: rgba(255,255,255,0.06);
  --text: #f0f0f5;
  --muted: #8b8fa3;
  --blue: #3b82f6;
  --cyan: #06b6d4;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px 0;
  transition: background 0.3s, padding 0.3s, backdrop-filter 0.3s;
}
.nav.scrolled {
  background: rgba(7,8,13,0.85);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo img { height: 40px; width: auto; }
.nav-logo span { font-weight: 700; font-size: 1.1rem; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  color: var(--muted); font-size: 0.9rem; font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
}

/* HERO */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden;
}
#neural-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}
.hero-content {
  position: relative; z-index: 1; max-width: 800px;
  padding-top: 120px; padding-bottom: 80px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 100px;
  border: 1px solid rgba(59,130,246,0.3);
  background: rgba(59,130,246,0.08);
  color: var(--blue); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.05em; margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 800; line-height: 1.1; margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.hero h1 .gradient {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.2rem; color: var(--muted); max-width: 600px;
  margin-bottom: 40px;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 8px;
  background: var(--blue); color: #fff;
  font-weight: 600; font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none; cursor: pointer;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(59,130,246,0.3);
}
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 8px;
  background: transparent; color: var(--text);
  font-weight: 600; font-size: 0.95rem;
  border: 1px solid var(--border);
  transition: border-color 0.2s; cursor: pointer;
}
.btn-ghost:hover { border-color: var(--muted); }

.hero-certs {
  display: flex; gap: 24px; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--border);
}
.hero-cert {
  display: flex; align-items: center; gap: 8px;
  color: var(--muted); font-size: 0.85rem; font-weight: 500;
}
.hero-cert svg { color: var(--blue); flex-shrink: 0; }

/* SECTIONS */
section { padding: 100px 0; }
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 100px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: var(--muted); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.section-desc {
  font-size: 1.1rem; color: var(--muted); max-width: 600px;
  margin-bottom: 48px;
}

/* CARDS GRID */
.cards-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 32px;
  transition: border-color 0.3s, transform 0.3s;
}
.card:hover {
  border-color: rgba(59,130,246,0.3);
  transform: translateY(-2px);
}
.card-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(6,182,212,0.15));
  margin-bottom: 20px;
}
.card-icon svg { width: 22px; height: 22px; color: var(--blue); }
.card h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; }
.card p { font-size: 0.9rem; color: var(--muted); margin-bottom: 16px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.card-tag {
  font-size: 0.75rem; color: var(--muted);
  padding: 4px 10px; border-radius: 6px;
  background: rgba(255,255,255,0.04);
}

/* PRODUCT SECTION */
.product-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: center;
}
.product-info h3 {
  font-size: 1.8rem; font-weight: 700; margin-bottom: 12px;
}
.product-badge {
  display: inline-block; padding: 4px 12px; border-radius: 6px;
  background: rgba(59,130,246,0.1); color: var(--blue);
  font-size: 0.75rem; font-weight: 600; margin-bottom: 16px;
}
.product-info p { color: var(--muted); margin-bottom: 24px; }
.product-features {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.product-feature {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.9rem;
}
.product-feature svg { color: var(--blue); flex-shrink: 0; width: 18px; height: 18px; }

/* TERMINAL */
.terminal {
  background: #0c0d14; border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
}
.terminal-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}
.terminal-dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.terminal-dot.r { background: #ef4444; }
.terminal-dot.y { background: #eab308; }
.terminal-dot.g { background: #22c55e; }
.terminal-title {
  margin-left: 8px; font-size: 0.75rem; color: var(--muted);
  font-family: 'SF Mono', 'Fira Code', monospace;
}
.terminal-body {
  padding: 20px; font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.8rem; line-height: 2;
}
.t-green { color: #22c55e; }
.t-red { color: #ef4444; }
.t-blue { color: var(--blue); }
.t-muted { color: var(--muted); }
.t-cyan { color: var(--cyan); }

/* CERTIFICATIONS */
.certs-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.cert-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 40px; text-align: center;
  transition: border-color 0.3s;
}
.cert-card:hover { border-color: rgba(59,130,246,0.3); }
.cert-card img {
  max-width: 280px; width: 100%; height: auto;
  margin-bottom: 24px; border-radius: 8px;
}
.cert-std {
  font-size: 1.4rem; font-weight: 700; margin-bottom: 4px;
}
.cert-name {
  font-size: 0.95rem; color: var(--muted); margin-bottom: 16px;
}
.cert-meta {
  font-size: 0.8rem; color: var(--muted);
  padding-top: 16px; border-top: 1px solid var(--border);
}

/* STATS BAR */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  padding: 60px 0;
}
.stat { text-align: center; }
.stat-val {
  font-size: 2rem; font-weight: 800;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }

/* CONTACT */
.contact-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  max-width: 600px;
}
.contact-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 24px;
  transition: border-color 0.3s;
}
.contact-card:hover { border-color: rgba(59,130,246,0.3); }
.contact-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(59,130,246,0.1); flex-shrink: 0;
}
.contact-icon svg { width: 20px; height: 20px; color: var(--blue); }
.contact-label { font-weight: 600; font-size: 0.9rem; }
.contact-val { font-size: 0.85rem; color: var(--muted); }

/* FOOTER */
.footer {
  border-top: 1px solid var(--border); padding: 60px 0 40px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px;
  margin-bottom: 40px;
}
.footer-brand p { color: var(--muted); font-size: 0.9rem; margin-top: 12px; }
.footer h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 16px; }
.footer ul { list-style: none; }
.footer li { font-size: 0.85rem; color: var(--muted); margin-bottom: 8px; }
.footer-legal {
  font-size: 0.8rem; color: var(--muted); line-height: 1.8;
  padding: 24px 0; border-top: 1px solid var(--border);
  margin-bottom: 24px;
}
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 0.85rem; color: var(--muted);
}
.footer-bottom a { color: var(--blue); transition: opacity 0.2s; }
.footer-bottom a:hover { opacity: 0.8; }

/* COOKIE */
.cookie-banner.hidden { display: none; }
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: rgba(13,15,23,0.95); backdrop-filter: blur(12px);
  border-top: 1px solid var(--border); padding: 16px 0;
}
.cookie-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.cookie-inner p { font-size: 0.85rem; color: var(--muted); }
.cookie-inner a { color: var(--blue); font-weight: 600; }
.cookie-inner .btn-primary { padding: 10px 20px; font-size: 0.85rem; }

/* ANIMATIONS */
.fade-in {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .fade-in,
  .fade-in.visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* UTILITY */
.bg-alt { background: var(--bg2); }
.text-center { text-align: center; }
.section-desc.mx-auto { margin-left: auto; margin-right: auto; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(7,8,13,0.95); backdrop-filter: blur(12px);
    padding: 24px; gap: 20px;
    border-bottom: 1px solid var(--border);
  }
  .nav-toggle { display: block; }
  .cards-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .certs-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .hero-certs { flex-direction: column; align-items: flex-start; }
  .hero-content { padding-top: 100px; padding-bottom: 60px; }
  section { padding: 60px 0; }
  .cookie-inner { flex-direction: column; text-align: center; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .cards-grid { grid-template-columns: 1fr 1fr; }
}
