:root {
  --bg-deep: #0A0F1F;
  --accent-blue: #00F0FF;
  --accent-magenta: #FF4DFF;
  --text-primary: #F0F4FA;
  --text-muted: #8B9BB3;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 15, 31, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.logo {
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s;
}

.logo:hover {
  color: var(--accent-blue);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--accent-blue);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 6rem 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--bg-deep) 0%, #0d1430 50%, var(--bg-deep) 100%);
  background-size: 200% 200%;
  animation: gradient-shift 15s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.live-word {
  color: var(--accent-blue);
  transition: color 0.3s, text-shadow 0.3s;
}

.live-word:hover {
  color: var(--accent-magenta);
  text-shadow: 0 0 20px rgba(255, 77, 255, 0.5);
}

.hero-subtitle {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 400;
  color: var(--text-muted);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 0.3s;
}

.btn-primary {
  background: var(--accent-blue);
  color: var(--bg-deep);
}

.btn-primary:hover {
  transform: scale(1.02);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

.btn-outline {
  border: 2px solid var(--accent-blue);
  color: var(--accent-blue);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(0, 240, 255, 0.1);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-size: 1.5rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 36rem;
  margin-bottom: 3rem;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  padding: 1.5rem 2rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.service-card.featured {
  grid-column: span 2;
}

.service-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .service-card.featured {
    grid-column: span 1;
  }
}

/* Products */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.product-image {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, rgba(0,240,255,0.2), rgba(255,77,255,0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  opacity: 0.5;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-body {
  padding: 1.5rem;
}

.product-category {
  font-size: 0.75rem;
  color: var(--accent-blue);
  margin-bottom: 0.5rem;
}

.product-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.product-card .product-spec {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.product-card .product-details {
  font-size: 0.875rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-group {
  margin-bottom: 3rem;
}

.product-group h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  color: var(--accent-blue);
  margin-bottom: 1rem;
}

.loading {
  color: var(--text-muted);
}

.products-cta {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  width: 100%;
}

.btn-icon {
  margin-left: 0.5rem;
  transition: transform 0.3s;
}

.btn:hover .btn-icon {
  transform: translateX(4px);
}

.back-link {
  display: inline-block;
  color: var(--accent-blue);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  transition: color 0.3s;
}

.back-link:hover {
  color: var(--text-primary);
}

.products-page .section:first-of-type {
  padding-top: 8rem;
}

.products-page #products-container {
  display: block;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-value {
  font-family: 'Syne', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-blue);
  display: block;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* Testimonials */
.testimonial-slider {
  position: relative;
  min-height: 200px;
}

.testimonial {
  display: none;
  max-width: 48rem;
}

.testimonial.active {
  display: block;
}

.testimonial blockquote {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.25rem, 2vw, 2rem);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.testimonial-author {
  color: var(--text-muted);
  font-size: 1rem;
}

.testimonial-dots {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.testimonial-dots span {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.5;
  transition: all 0.3s;
}

.testimonial-dots span.active {
  width: 2rem;
  background: var(--accent-blue);
  opacity: 1;
}

/* Footer */
.footer {
  padding: 3rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--accent-blue);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  text-align: center;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Mobile nav */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 4rem;
    left: 0;
    right: 0;
    background: var(--bg-deep);
    flex-direction: column;
    padding: 1rem;
    gap: 0.5rem;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}
