/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans SC', sans-serif;
  background: #0a0e1a;
  color: #e0e6f0;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

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

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
}

ul, ol {
  list-style: none;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #12182b;
}
::-webkit-scrollbar-thumb {
  background: #2a4a7a;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #4a7ab5;
}

/* ===== KEYFRAMES ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(42, 74, 122, 0.3); }
  50% { box-shadow: 0 0 40px rgba(74, 122, 181, 0.6); }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ===== HEADER & NAV ===== */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid rgba(42, 74, 122, 0.3);
  transition: background 0.4s ease, border-color 0.4s ease;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
  transition: opacity 0.3s;
}
.logo-link:hover {
  opacity: 0.85;
}
.site-title {
  background: linear-gradient(135deg, #6a9ad5, #a0c4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.nav-item {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #b0bccf;
  transition: all 0.3s ease;
  position: relative;
}
.nav-item::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, #4a7ab5, #6a9ad5);
  border-radius: 2px;
  transition: transform 0.3s ease;
}
.nav-item:hover,
.nav-item:focus-visible {
  color: #ffffff;
  background: rgba(74, 122, 181, 0.15);
}
.nav-item:hover::after,
.nav-item:focus-visible::after {
  transform: translateX(-50%) scaleX(1);
}

.dark-toggle,
.mobile-menu-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.2rem;
  background: rgba(42, 74, 122, 0.2);
  border: 1px solid rgba(42, 74, 122, 0.3);
  transition: all 0.3s ease;
  color: #e0e6f0;
}
.dark-toggle:hover,
.mobile-menu-btn:hover {
  background: rgba(74, 122, 181, 0.3);
  transform: scale(1.05);
}

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

/* ===== HERO ===== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  padding: 7rem 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(42, 74, 122, 0.15) 0%, transparent 60%),
              radial-gradient(circle at 70% 60%, rgba(106, 154, 213, 0.1) 0%, transparent 50%);
  animation: gradientShift 15s ease infinite;
  background-size: 200% 200%;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  flex: 1;
  max-width: 600px;
  z-index: 1;
  animation: fadeUp 0.8s ease;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff, #a0c4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #a0b4d0;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.hero-description {
  font-size: 1rem;
  color: #8899b3;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.btn-primary {
  background: linear-gradient(135deg, #2a4a7a, #4a7ab5);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(42, 74, 122, 0.3);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(42, 74, 122, 0.5);
}
.btn-secondary {
  background: transparent;
  color: #a0c4ff;
  border-color: rgba(74, 122, 181, 0.5);
}
.btn-secondary:hover {
  background: rgba(74, 122, 181, 0.1);
  border-color: #6a9ad5;
  transform: translateY(-3px);
}
.btn-small {
  padding: 0.55rem 1.3rem;
  font-size: 0.85rem;
  border-radius: 50px;
  background: linear-gradient(135deg, #2a4a7a, #4a7ab5);
  color: #fff;
  border: none;
  box-shadow: 0 2px 10px rgba(42, 74, 122, 0.2);
}
.btn-small:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(42, 74, 122, 0.4);
}

.hero-visual {
  flex-shrink: 0;
  z-index: 1;
  animation: fadeIn 1s ease, pulseGlow 4s ease-in-out infinite;
}
.hero-visual svg {
  width: clamp(200px, 25vw, 300px);
  height: auto;
  filter: drop-shadow(0 0 30px rgba(42, 74, 122, 0.4));
}

/* ===== SECTION COMMON ===== */
section {
  padding: 5rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.7s ease forwards;
}
section:nth-of-type(1) { animation-delay: 0.1s; }
section:nth-of-type(2) { animation-delay: 0.2s; }
section:nth-of-type(3) { animation-delay: 0.3s; }
section:nth-of-type(4) { animation-delay: 0.4s; }
section:nth-of-type(5) { animation-delay: 0.5s; }
section:nth-of-type(6) { animation-delay: 0.6s; }
section:nth-of-type(7) { animation-delay: 0.7s; }
section:nth-of-type(8) { animation-delay: 0.8s; }

h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 2.5rem;
  text-align: center;
  background: linear-gradient(135deg, #ffffff, #a0c4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}
h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #2a4a7a, #6a9ad5);
  border-radius: 4px;
  margin: 1rem auto 0;
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.about-card {
  background: rgba(18, 24, 43, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(42, 74, 122, 0.3);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.4s ease;
  text-align: center;
}
.about-card:hover {
  transform: translateY(-8px);
  border-color: rgba(74, 122, 181, 0.6);
  box-shadow: 0 12px 40px rgba(42, 74, 122, 0.2);
}
.about-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: #ffffff;
}
.about-card p {
  color: #a0b4d0;
  line-height: 1.7;
}

/* ===== PRODUCTS ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: rgba(18, 24, 43, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(42, 74, 122, 0.3);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(74, 122, 181, 0.6);
  box-shadow: 0 12px 40px rgba(42, 74, 122, 0.2);
}
.product-card svg {
  transition: transform 0.4s ease;
}
.product-card:hover svg {
  transform: scale(1.1) rotate(5deg);
}
.product-card h3 {
  font-size: 1.2rem;
  color: #ffffff;
}
.product-card p {
  color: #a0b4d0;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: rgba(18, 24, 43, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(42, 74, 122, 0.2);
  border-radius: 16px;
  padding: 1.8rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2a4a7a, #6a9ad5);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.service-card:hover::before {
  transform: scaleX(1);
}
.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(74, 122, 181, 0.5);
  box-shadow: 0 8px 30px rgba(42, 74, 122, 0.15);
}
.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  color: #ffffff;
}
.service-card p {
  color: #a0b4d0;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== RESOURCES ===== */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.resource-card {
  background: rgba(18, 24, 43, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(42, 74, 122, 0.25);
  border-radius: 18px;
  padding: 1.8rem;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
}
.resource-card:hover {
  transform: translateY(-6px);
  border-color: rgba(74, 122, 181, 0.5);
  box-shadow: 0 10px 35px rgba(42, 74, 122, 0.15);
}
.resource-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: #ffffff;
}
.resource-card p {
  color: #8899b3;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}
.read-more {
  color: #6a9ad5;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.read-more:hover {
  color: #a0c4ff;
  gap: 0.6rem;
}

/* ===== HOWTO ===== */
.howto-intro {
  text-align: center;
  color: #a0b4d0;
  margin-bottom: 2rem;
  font-size: 1rem;
}

.howto-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.step {
  background: rgba(18, 24, 43, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(42, 74, 122, 0.2);
  border-radius: 18px;
  padding: 1.8rem;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
}
.step:hover {
  transform: translateY(-6px);
  border-color: rgba(74, 122, 181, 0.5);
  box-shadow: 0 8px 30px rgba(42, 74, 122, 0.15);
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2a4a7a, #4a7ab5);
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}
.step:hover .step-number {
  transform: scale(1.1);
}
.step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: #ffffff;
}
.step p {
  color: #a0b4d0;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: rgba(18, 24, 43, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(42, 74, 122, 0.2);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}
.faq-item:hover {
  border-color: rgba(74, 122, 181, 0.4);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #e0e6f0;
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.3s ease;
  gap: 1rem;
}
.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: #6a9ad5;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.faq-question[aria-expanded="true"]::after {
  content: '−';
  transform: rotate(180deg);
}
.faq-question:hover {
  color: #ffffff;
}

.faq-answer {
  padding: 0 1.5rem 1.2rem;
  color: #a0b4d0;
  font-size: 0.95rem;
  line-height: 1.7;
}
.faq-answer[hidden] {
  display: none;
}

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.contact-info {
  background: rgba(18, 24, 43, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(42, 74, 122, 0.25);
  border-radius: 18px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-info p {
  color: #a0b4d0;
  font-size: 0.95rem;
}
.contact-info strong {
  color: #e0e6f0;
}

.contact-form-sim {
  background: rgba(18, 24, 43, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(42, 74, 122, 0.25);
  border-radius: 18px;
  padding: 2rem;
  display: flex;
  align-items: center;
}
.contact-form-sim p {
  color: #8899b3;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== FOOTER ===== */
footer {
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(42, 74, 122, 0.2);
  padding: 3rem 1.5rem 2rem;
  margin-top: 2rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  color: #8899b3;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}
.footer-links a:hover {
  color: #a0c4ff;
}

.footer-legal p {
  color: #5a6a80;
  font-size: 0.85rem;
  line-height: 1.6;
}
.footer-legal a {
  color: #6a9ad5;
  text-decoration: underline;
  transition: color 0.3s ease;
}
.footer-legal a:hover {
  color: #a0c4ff;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2a4a7a, #4a7ab5);
  color: #ffffff;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(42, 74, 122, 0.4);
  transition: all 0.3s ease;
  z-index: 999;
  opacity: 0.9;
}
.back-to-top:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 30px rgba(42, 74, 122, 0.6);
  opacity: 1;
}

/* ===== DARK MODE (native) ===== */
/* Already dark by default; light mode toggle would invert colors */
/* For demonstration, we keep dark as primary. A toggle could flip class on body. */

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-section {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
    padding-top: 6rem;
  }
  .hero-actions {
    justify-content: center;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 1rem;
    border-bottom: 1px solid rgba(42, 74, 122, 0.3);
    gap: 0.5rem;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-item {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    text-align: center;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .main-nav {
    padding: 0.6rem 1rem;
  }
  section {
    padding: 3rem 1rem;
  }
  .about-grid,
  .products-grid,
  .services-grid,
  .resources-grid,
  .howto-steps {
    grid-template-columns: 1fr;
  }
  .footer-links {
    gap: 1rem;
  }
  .back-to-top {
    bottom: 1.2rem;
    right: 1.2rem;
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.85rem;
  }
  .faq-question {
    font-size: 0.9rem;
    padding: 1rem 1.2rem;
  }
  .faq-answer {
    padding: 0 1.2rem 1rem;
  }
}

/* ===== UTILITY ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ===== HOVER ANIMATIONS (global) ===== */
@media (hover: hover) {
  .product-card,
  .service-card,
  .resource-card,
  .step,
  .about-card {
    will-change: transform, box-shadow;
  }
}