/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #07111E;
  --bg-nav:      rgba(7, 17, 30, 0.85);
  --bg-card:     #0D1B2E;
  --bg-card-dim: #091422;
  --blue:        #2563EB;
  --blue-light:  #3B82F6;
  --cyan:        #22D3EE;
  --text:        #EFF4FF;
  --text-sub:    #6B82A0;
  --text-dim:    #3A5068;
  --border:      #132035;
  --border-glow: rgba(59, 130, 246, 0.25);
  --radius:      14px;
  --nav-h:       64px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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


/* ── Nav ──────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--bg-nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

nav.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 4px 32px rgba(0,0,0,0.4);
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-text {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.logo-labs {
  font-weight: 400;
  color: var(--text-sub);
  font-size: 13px;
  letter-spacing: 0.06em;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
  margin-left: auto;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-sub);
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}

.nav-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-cta:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(59, 130, 246, 0.4);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-sub);
  border-radius: 2px;
}


/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 80px) 0 100px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center,
    rgba(37, 99, 235, 0.18) 0%,
    rgba(34, 211, 238, 0.08) 40%,
    transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 760px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: italic;
  background: linear-gradient(135deg, var(--blue-light), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-sub);
  max-width: 580px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  background: linear-gradient(135deg, var(--blue), #1D4ED8);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(59,130,246,0.3), 0 4px 16px rgba(37,99,235,0.35);
  transition: opacity 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  opacity: 0.9;
  box-shadow: 0 0 0 1px rgba(59,130,246,0.5), 0 4px 24px rgba(37,99,235,0.5);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-sub);
  border: 1px solid var(--border);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(59,130,246,0.3);
  background: rgba(255,255,255,0.03);
}


/* ── Products ─────────────────────────────────────────────── */
.products {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-sub);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.product-card.featured {
  border-color: rgba(59,130,246,0.3);
  box-shadow: 0 0 0 1px rgba(59,130,246,0.1), 0 8px 32px rgba(0,0,0,0.3);
}

.product-card.featured:hover {
  border-color: rgba(59,130,246,0.5);
  box-shadow: 0 0 0 1px rgba(59,130,246,0.2), 0 8px 40px rgba(37,99,235,0.2);
}

.product-card.dim {
  background: var(--bg-card-dim);
  border-color: rgba(19,32,53,0.8);
  opacity: 0.55;
}

.product-icon-wrap {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.dim-icon {
  width: 44px;
  height: 44px;
  background: #0D1B2E;
  border-radius: 9px;
  border: 1px dashed var(--border);
}

.product-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.product-card h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.badge {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--cyan);
  background: rgba(34,211,238,0.1);
  border: 1px solid rgba(34,211,238,0.2);
  padding: 2px 8px;
  border-radius: 999px;
}

.product-card p {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.6;
}

.learn-more-placeholder {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-light);
  opacity: 0.5;
  margin-top: 4px;
  cursor: default;
}

.dim-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
}

.dim-sub {
  font-size: 12px;
  color: var(--text-dim);
}


/* ── Philosophy ───────────────────────────────────────────── */
.philosophy {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 32px;
}

.value-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.value-icon {
  width: 38px;
  height: 38px;
  background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.15);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.value-card h4 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.value-card p {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.7;
}


/* ── Footer ───────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-dim);
  margin-left: auto;
}

.footer-email {
  font-size: 13px;
  color: var(--text-sub);
  transition: color 0.2s;
}

.footer-email:hover {
  color: var(--cyan);
}


/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .nav-links, .nav-cta {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .footer-copy {
    margin-left: 0;
    order: 3;
    flex-basis: 100%;
  }
}

@media (max-width: 560px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

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

  .hero {
    padding-top: calc(var(--nav-h) + 48px);
    padding-bottom: 64px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-copy {
    margin-left: 0;
  }
}
