/* ═══════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --blue: #70BEFC;
  --blue-dim: #4A9EE0;
  --blue-glow: rgba(112, 190, 252, 0.15);
  --blue-glow-strong: rgba(112, 190, 252, 0.25);
  --bg: #000000;
  --bg-elevated: #0A0A0A;
  --bg-card: #111111;
  --bg-card-hover: #161616;
  --border: #1a1a1a;
  --border-hover: #2a2a2a;
  --text: #EDEDED;
  --text-secondary: #888888;
  --text-tertiary: #666666;
  --mono: 'JetBrains Mono', monospace;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1200px;
  --section-padding: 140px;
  --nav-height: 64px;
  --card-radius: 16px;
  --card-radius-sm: 10px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background: rgba(112, 190, 252, 0.3);
  color: #fff;
}

a { color: inherit; text-decoration: none; }

/* ═══════════════════════════════════════
   LAYOUT
═══════════════════════════════════════ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.grid-bg { position: relative; }

.grid-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 20%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.divider {
  height: 1px;
  background: var(--border);
  border: none;
}

section {
  padding: var(--section-padding) 0;
  position: relative;
}

/* ═══════════════════════════════════════
   TYPOGRAPHY
═══════════════════════════════════════ */
.section-label {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  font-weight: 500;
}

.section-title {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.6;
}

.section-header { margin-bottom: 64px; }
.section-header.center { text-align: center; }
.section-header.center .section-subtitle { margin: 0 auto; }

/* ═══════════════════════════════════════
   BUTTONS
═══════════════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  background: #fff;
  color: #000;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--sans);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary:hover {
  background: #e0e0e0;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255,255,255,0.1);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  font-family: var(--sans);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  color: var(--text);
  background: rgba(255,255,255,0.03);
}

.btn-mega {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 20px 40px;
  border-radius: 100px;
  background: #fff;
  color: #000;
  font-size: 18px;
  font-weight: 600;
  font-family: var(--sans);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 0 40px rgba(255,255,255,0.05);
}

.btn-mega:hover {
  background: #e8e8e8;
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(255,255,255,0.15);
}

.btn-mega .arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.btn-mega:hover .arrow { background: rgba(0,0,0,0.15); }

/* Link arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--blue);
  transition: gap 0.2s;
}

.link-arrow:hover { gap: 10px; }

/* ═══════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  background: rgba(0, 0, 0, 0.7);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo .logo-mark {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--blue), var(--blue-dim));
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #000;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a,
.nav-links button {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
}

.nav-links a:hover,
.nav-links button:hover { color: var(--text); }

.nav-dropdown-trigger { position: relative; }

.nav-dropdown-trigger button {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
}

.nav-chevron {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
}

.nav-dropdown-trigger.active .nav-chevron {
  transform: rotate(180deg);
}

.nav-cta {
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  background: #fff;
  color: #000;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-family: var(--sans);
}

.nav-cta:hover {
  background: #e0e0e0;
  transform: translateY(-1px);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn svg { width: 24px; height: 24px; }

/* ═══════════════════════════════════════
   MEGA-MENU
═══════════════════════════════════════ */
.mega-menu {
  position: absolute;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 999;
}

.mega-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-menu-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 48px;
}

.mega-col-label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  margin-bottom: 16px;
  padding-left: 12px;
}

.mega-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  transition: background 0.15s;
}

.mega-item:hover { background: rgba(255, 255, 255, 0.04); }

.mega-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--blue-glow);
  border: 1px solid rgba(112, 190, 252, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue);
}

.mega-item-text { flex: 1; }

.mega-item-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 2px;
}

.mega-item-desc {
  font-size: 13px;
  color: var(--text-tertiary);
  line-height: 1.4;
}

/* ═══════════════════════════════════════
   MOBILE NAV
═══════════════════════════════════════ */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  padding: 24px;
  overflow-y: auto;
}

.mobile-nav.open { display: block; }

.mobile-nav a {
  display: block;
  font-size: 18px;
  color: var(--text-secondary);
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}

.mobile-nav a:hover { color: var(--text); }

.mobile-products-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.mobile-products-toggle .chevron-icon {
  width: 18px;
  height: 18px;
  color: var(--text-tertiary);
  transition: transform 0.3s;
}

.mobile-products-toggle.open .chevron-icon {
  transform: rotate(180deg);
}

.mobile-products-list {
  display: none;
  padding: 0 0 8px;
}

.mobile-products-list.open { display: block; }

.mobile-products-list a {
  font-size: 15px;
  padding: 12px 0 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text-tertiary);
}

.mobile-products-list a:last-child { border-bottom: 1px solid var(--border); }

.mobile-nav .nav-cta {
  display: block;
  text-align: center;
  margin-top: 24px;
  padding: 14px;
  font-size: 16px;
}

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 40px;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 60px;
  gap: 80px;
}

.footer-brand { max-width: 300px; }
.footer-brand .nav-logo { margin-bottom: 16px; }

.footer-brand p {
  font-size: 14px;
  color: var(--text-tertiary);
  line-height: 1.6;
}

.footer-columns {
  display: flex;
  gap: 80px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ═══════════════════════════════════════
   FAQ (shared, used on product pages)
═══════════════════════════════════════ */
.faq-grid { max-width: 720px; margin: 0 auto; }

.faq-item { border-bottom: 1px solid var(--border); }

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  text-align: left;
  padding: 24px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color 0.2s;
}

.faq-question:hover { color: var(--blue); }

.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--text-tertiary);
  transition: transform 0.3s ease, color 0.2s;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--blue);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-inner {
  padding: 0 0 24px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ═══════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--blue); }
  50% { opacity: 0.6; box-shadow: 0 0 16px var(--blue); }
}

@keyframes shimmer {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 200% center; }
}

@keyframes hub-pulse {
  0%, 100% { box-shadow: 0 0 40px rgba(112, 190, 252, 0.2); }
  50% { box-shadow: 0 0 80px rgba(112, 190, 252, 0.4); }
}

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 968px) {
  :root { --section-padding: 100px; }

  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }

  .mega-menu { display: none; }

  .footer-top {
    flex-direction: column;
    gap: 40px;
  }

  .footer-columns { gap: 40px; }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 640px) {
  :root { --section-padding: 80px; }
  .container { padding: 0 16px; }
}
