: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); */
  background: #546E7A;
  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;
  min-height: 4.75rem;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
  flex-shrink: 0;
}

.logo img {
  height: clamp(2.4rem, 5.5vw, 3.15rem);
  width: auto;
  max-width: min(280px, 68vw);
  object-fit: contain;
  display: block;
  transition: opacity 0.3s;
  height: 100px;
}

.logo:hover img {
  opacity: 0.88;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.55rem;
  margin: 0;
  padding: 0.35rem;
  border-radius: 999px;
  background: rgba(10, 15, 31, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.nav-links a {
  color: rgba(240, 244, 250, 0.84);
  text-decoration: none;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.78rem 1.3rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  transition: color 0.25s, background-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.nav-links a:hover {
  color: #ffffff;
  background: rgba(0, 240, 255, 0.18);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

.nav-links a:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

.nav-links a[aria-current="page"] {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.28), rgba(255, 77, 255, 0.2));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16) inset;
}

.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-title .live-word:nth-of-type(1):hover {
  color: #EB1F26;
  text-shadow: 0 0 20px rgba(235, 31, 38, 0.45);
}

.hero-title .live-word:nth-of-type(2):hover {
  color: #EAE10F;
  text-shadow: 0 0 20px rgba(234, 225, 15, 0.45);
}

.hero-title .live-word:nth-of-type(3):hover {
  color: #2457A8;
  text-shadow: 0 0 20px rgba(36, 87, 168, 0.45);
}

.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: #1e2329;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #1e2329;
}

.product-image .product-image-ph {
  opacity: 0.45;
  font-size: 2.5rem;
}

.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 */
.testimonials {
  position: relative;
}

.testimonials-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(0, 240, 255, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 70%, rgba(255, 77, 255, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, rgba(10, 15, 31, 0.4) 0%, var(--bg-deep) 100%);
  pointer-events: none;
}

.testimonials .container {
  position: relative;
  z-index: 1;
}

.testimonials .section-title,
.testimonials .section-desc {
  text-align: center;
}

.testimonials .section-desc {
  margin-left: auto;
  margin-right: auto;
}

.testimonial-showcase {
  max-width: 52rem;
  margin: 0 auto;
}

.testimonial-slider {
  position: relative;
  min-height: 18rem;
}

@media (min-width: 640px) {
  .testimonial-slider {
    min-height: 16rem;
  }
}

.testimonial {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.75rem);
  transition: opacity 0.45s ease, transform 0.45s ease, visibility 0.45s;
  pointer-events: none;
}

.testimonial.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  z-index: 1;
}

.testimonial-card {
  position: relative;
  padding: 2rem 2rem 2rem 2.25rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.25rem;
  box-shadow:
    0 0 0 1px rgba(0, 240, 255, 0.06) inset,
    0 24px 48px rgba(0, 0, 0, 0.35);
}

@media (min-width: 640px) {
  .testimonial-card {
    padding: 2.5rem 2.75rem 2.5rem 3rem;
  }
}

.testimonial-quote-icon {
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(4rem, 12vw, 6.5rem);
  line-height: 1;
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-magenta) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.35;
  pointer-events: none;
  user-select: none;
}

.testimonial-avatar {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--bg-deep);
  background: linear-gradient(135deg, var(--accent-blue) 0%, #00c8d4 100%);
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.35);
  margin-bottom: 1.25rem;
}

.testimonial blockquote {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.15rem, 2.2vw, 1.65rem);
  font-weight: 600;
  line-height: 1.55;
  margin: 0 0 1.5rem;
  padding: 0;
  border: none;
  color: var(--text-primary);
}

.testimonial-footer {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.testimonial-name {
  font-style: normal;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.testimonial-role {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.testimonial-btn {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.25s;
}

.testimonial-btn:hover {
  background: rgba(0, 240, 255, 0.12);
  border-color: rgba(0, 240, 255, 0.4);
  color: var(--accent-blue);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
}

.testimonial-btn:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

.testimonial-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  min-height: 2.75rem;
}

.testimonial-dots span {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--text-muted);
  opacity: 0.45;
  cursor: pointer;
  transition: width 0.35s ease, opacity 0.35s, background 0.35s;
}

.testimonial-dots span:hover {
  opacity: 0.85;
}

.testimonial-dots span.active {
  width: 1.75rem;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-magenta));
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .testimonial {
    transition: opacity 0.2s ease, visibility 0.2s;
    transform: none;
  }

  .testimonial.active {
    transform: none;
  }
}

/* Contact */
.contact {
  padding-bottom: 4rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 2rem;
}

.contact-info-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.contact-info-lead {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.contact-emails {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.contact-emails li {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.contact-emails a {
  color: var(--accent-blue);
  text-decoration: none;
  font-size: 1.05rem;
  word-break: break-all;
}

.contact-emails a:hover {
  text-decoration: underline;
}

.contact-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.contact-note strong {
  color: var(--text-primary);
  font-weight: 600;
}

.contact-form {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 1.75rem;
}

.form-row {
  margin-bottom: 1.25rem;
}

.form-row label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
}

.form-row .req {
  color: var(--accent-magenta);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-primary);
  background: rgba(10, 15, 31, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(139, 155, 179, 0.6);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(0, 240, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.12);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  margin-top: 1.5rem;
}

.contact-form-status {
  margin-top: 1rem;
  font-size: 0.9rem;
  min-height: 1.4em;
}

.contact-form-status.is-success {
  color: #7ee787;
}

.contact-form-status.is-error {
  color: #ff8b8b;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* 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: 4.75rem;
    left: 0.75rem;
    right: 0.75rem;
    background: var(--bg-deep);
    flex-direction: column;
    padding: 1rem 0.8rem;
    gap: 0.35rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.35);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    width: 100%;
    border-radius: 0.7rem;
    font-size: 1.1rem;
    padding: 0.95rem 1.08rem;
  }
}
