:root {
  --bg: #0b0d12;
  --bg-soft: #12151d;
  --card: #161a24;
  --card-hover: #1b2030;
  --border: #262b38;
  --text: #e7e9ee;
  --muted: #9aa3b2;
  --faint: #6b7280;
  --accent: #22d3ee;   /* cyan */
  --accent-2: #a78bfa; /* violet */
  --accent-3: #f472b6; /* pink */
  --radius: 16px;
  --max: 1080px;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* --- Decorative background --- */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}
.bg-glow {
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  z-index: -1;
  background: radial-gradient(circle at 30% 30%, rgba(34, 211, 238, 0.18), transparent 60%),
              radial-gradient(circle at 70% 40%, rgba(167, 139, 250, 0.18), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}

/* --- Layout helpers --- */
main { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.section { padding: 80px 0; }
.section-title {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.section-sub { color: var(--muted); margin: 0 0 36px; font-size: 1.05rem; }

/* --- Nav --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 24px;
  backdrop-filter: blur(10px);
  background: rgba(11, 13, 18, 0.6);
  border-bottom: 1px solid transparent;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.25rem; }
.brand-mark {
  font-size: 1.3rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 0.97rem; }
.nav-links a { color: var(--muted); transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  color: var(--text) !important;
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 999px;
  transition: border-color 0.15s, background 0.15s;
}
.nav-cta:hover { border-color: var(--accent); background: rgba(34, 211, 238, 0.08); }

/* --- Hero --- */
.hero { text-align: center; padding: 90px 0 70px; }
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--accent);
  margin: 0 0 18px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
}
.hero-title {
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
}
.grad {
  background: linear-gradient(120deg, var(--accent), var(--accent-2) 50%, var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  max-width: 560px;
  margin: 0 auto 34px;
  color: var(--muted);
  font-size: 1.15rem;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}
.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #0b0d12;
  box-shadow: 0 6px 24px rgba(34, 211, 238, 0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(167, 139, 250, 0.35); }
.btn-ghost { border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); transform: translateY(-2px); }

/* --- Product cards --- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s, border-color 0.18s, background 0.18s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(34, 211, 238, 0.4); background: var(--card-hover); }
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.card-emoji { font-size: 2rem; }
.card-title { font-size: 1.35rem; font-weight: 600; margin: 0 0 10px; }
.card-desc { color: var(--muted); margin: 0 0 20px; flex: 1; }
.card-link { color: var(--accent); font-weight: 600; }
.card-link:hover { color: var(--accent-2); }
.card-link-muted { color: var(--faint); font-weight: 500; }

/* --- Badges --- */
.badge {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.badge-live { color: #34d399; background: rgba(52, 211, 153, 0.12); border-color: rgba(52, 211, 153, 0.3); }
.badge-soon { color: var(--accent-2); background: rgba(167, 139, 250, 0.12); border-color: rgba(167, 139, 250, 0.3); }
.badge-lab { color: #fbbf24; background: rgba(251, 191, 36, 0.12); border-color: rgba(251, 191, 36, 0.3); }

/* --- About --- */
.about-body { max-width: 680px; font-size: 1.1rem; }
.about-body p { margin: 0 0 18px; }
.about-def { color: var(--muted); font-weight: 400; font-style: italic; }

/* --- Contact --- */
.contact { text-align: center; }

/* --- Footer --- */
.footer { border-top: 1px solid var(--border); margin-top: 40px; }
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-brand { font-size: 1.1rem; font-weight: 700; }
.footer-copy { color: var(--faint); font-size: 0.9rem; }

/* --- Responsive --- */
@media (max-width: 560px) {
  .nav-links { gap: 16px; font-size: 0.9rem; }
  .nav-links a:not(.nav-cta) { display: none; }
  .section { padding: 60px 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; transition: none !important; }
}
