:root {
  --bg: #07080f;
  --bg-elevated: #0f111a;
  --surface: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.1);
  --text: #f4f6fb;
  --muted: rgba(244, 246, 251, 0.68);
  --cyan: #22d3ee;
  --purple: #a78bfa;
  --orange: #fb923c;
  --green: #34d399;
  --radius: 20px;
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Instrument Serif", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 1000;
}

a { color: inherit; text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1.25rem, 4vw, 3rem);
  backdrop-filter: blur(16px);
  background: rgba(7, 8, 15, 0.72);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.2), rgba(167, 139, 250, 0.2));
  border: 1px solid rgba(34, 211, 238, 0.35);
  color: var(--cyan);
  font-size: 0.95rem;
}

.logo-text { letter-spacing: -0.02em; }

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav a:hover { color: var(--text); }

.nav-cta {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.35);
  color: var(--cyan) !important;
  font-weight: 600;
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  width: 2rem;
  height: 2rem;
  position: relative;
}

.menu-toggle span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.menu-toggle span:first-child { top: 0.55rem; }
.menu-toggle span:last-child { bottom: 0.55rem; }

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(3rem, 8vw, 6rem) clamp(1.25rem, 4vw, 3rem) 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.eyebrow {
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  line-height: 1.02;
  font-weight: 400;
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
}

.lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 34rem;
  margin: 0 0 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), #0891b2);
  color: #041016;
  box-shadow: 0 12px 40px rgba(34, 211, 238, 0.22);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--surface);
}

.hero-visual {
  position: relative;
  min-height: 420px;
  border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(circle at 30% 20%, rgba(34, 211, 238, 0.16), transparent 45%),
    radial-gradient(circle at 70% 80%, rgba(167, 139, 250, 0.14), transparent 40%),
    var(--bg-elevated);
  border: 1px solid var(--border);
  overflow: hidden;
}

.orbit-core {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  background: rgba(7, 8, 15, 0.85);
  border: 1px solid rgba(34, 211, 238, 0.4);
  box-shadow: 0 0 60px rgba(34, 211, 238, 0.15);
}

.orbit-core strong {
  font-size: 2rem;
  color: var(--cyan);
}

.orbit-core span {
  font-size: 0.75rem;
  color: var(--muted);
}

.orbit-card {
  position: absolute;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  animation: float 6s ease-in-out infinite;
}

.orbit-card span {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
}

.orbit-card small {
  color: var(--muted);
  font-size: 0.75rem;
}

.orbit-1 { top: 12%; left: 8%; animation-delay: 0s; }
.orbit-2 { top: 18%; right: 6%; animation-delay: -2s; }
.orbit-3 { bottom: 14%; left: 14%; animation-delay: -4s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) clamp(1.25rem, 4vw, 3rem);
}

.section-label {
  color: var(--purple);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.08;
  margin: 0 0 1rem;
}

.section-intro {
  color: var(--muted);
  max-width: 40rem;
  margin: 0 0 2rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.about-copy p {
  color: var(--muted);
  font-size: 1.05rem;
}

.about-aside {
  display: grid;
  gap: 1rem;
}

.stat {
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.stat strong {
  display: block;
  font-size: 1.5rem;
  color: var(--cyan);
  margin-bottom: 0.25rem;
}

.stat span { color: var(--muted); font-size: 0.92rem; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.35rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.35);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}

.product-card.featured {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.08), rgba(167, 139, 250, 0.08));
  border-color: rgba(34, 211, 238, 0.25);
}

@media (min-width: 720px) {
  .product-card.featured {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
  }
  .product-card.featured .product-icon { flex-shrink: 0; }
}

.product-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.25);
  font-size: 1.1rem;
}

.product-icon.hub {
  background: rgba(34, 211, 238, 0.12);
  border-color: rgba(34, 211, 238, 0.25);
}

.product-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.product-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  flex: 1;
}

.product-link {
  color: var(--cyan);
  font-size: 0.85rem;
  font-weight: 600;
}

.community-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.08), rgba(34, 211, 238, 0.06));
  border: 1px solid rgba(52, 211, 153, 0.2);
}

.community-panel p {
  color: var(--muted);
  max-width: 36rem;
  margin: 0;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem clamp(1.25rem, 4vw, 3rem) 3rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-inner p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links a:hover { color: var(--cyan); }

@media (max-width: 900px) {
  .hero, .about-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 320px; }
}

@media (max-width: 720px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1rem;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
  }
  .nav.open { display: flex; }
  .menu-toggle { display: block; }
}
