/* Reset & Base */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #0d1b2a;
  color: #e0e6ed;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: #f0c040; text-decoration: none; transition: color 0.3s; }
a:hover, a:focus { color: #ffd966; }
img, svg { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.75rem); }
p { margin-bottom: 1rem; }
small { font-size: 0.875rem; opacity: 0.8; }

/* Dark mode support (already dark by default) */
@media (prefers-color-scheme: light) {
  body { background: #0d1b2a; color: #e0e6ed; }
}

/* Scroll Animation (Intersection Observer fallback) */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
section {
  animation: fadeInUp 0.8s ease-out both;
}
section:nth-child(1) { animation-delay: 0.1s; }
section:nth-child(2) { animation-delay: 0.2s; }
section:nth-child(3) { animation-delay: 0.3s; }
section:nth-child(4) { animation-delay: 0.4s; }
section:nth-child(5) { animation-delay: 0.5s; }
section:nth-child(6) { animation-delay: 0.6s; }
section:nth-child(7) { animation-delay: 0.7s; }
section:nth-child(8) { animation-delay: 0.8s; }
section:nth-child(9) { animation-delay: 0.9s; }
section:nth-child(10) { animation-delay: 1.0s; }
section:nth-child(11) { animation-delay: 1.1s; }
section:nth-child(12) { animation-delay: 1.2s; }

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(13, 27, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(240, 192, 64, 0.15);
  padding: 0.5rem 1rem;
}
nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
nav > div:first-child {
  display: flex;
  align-items: center;
  gap: 1rem;
}
nav button {
  background: transparent;
  border: none;
  color: #f0c040;
  cursor: pointer;
  padding: 0.5rem;
  display: none;
  transition: transform 0.3s;
}
nav button:hover { transform: scale(1.1); }
#main-menu {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
#main-menu li a {
  display: block;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  color: #c0c8d4;
  font-weight: 500;
  transition: background 0.3s, color 0.3s, transform 0.2s;
}
#main-menu li a:hover,
#main-menu li a:focus {
  background: rgba(240, 192, 64, 0.15);
  color: #f0c040;
  transform: translateY(-2px);
}

/* Mobile Navigation */
@media (max-width: 768px) {
  nav button { display: block; }
  #main-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 0.5rem;
    background: rgba(13, 27, 42, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 1rem;
    border: 1px solid rgba(240, 192, 64, 0.2);
  }
  #main-menu.open { display: flex; }
  #main-menu li a { padding: 0.75rem 1rem; border-radius: 12px; }
}

/* Hero Section */
section[aria-labelledby="hero-title"] {
  background: linear-gradient(135deg, #0d1b2a 0%, #1b2838 50%, #0d1b2a 100%);
  position: relative;
  overflow: hidden;
  padding: 4rem 1rem;
}
section[aria-labelledby="hero-title"]::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(240, 192, 64, 0.08) 0%, transparent 60%);
  pointer-events: none;
}
section[aria-labelledby="hero-title"] > div {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 768px) {
  section[aria-labelledby="hero-title"] > div { grid-template-columns: 1fr; text-align: center; }
  section[aria-labelledby="hero-title"] > div > div:last-child { display: none; }
}
.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}
.hero-cta a[role="button"] {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  border: none;
}
.hero-cta a[role="button"]:first-child {
  background: linear-gradient(135deg, #f0c040, #d4a017);
  color: #0d1b2a;
  box-shadow: 0 4px 20px rgba(240, 192, 64, 0.4);
}
.hero-cta a[role="button"]:last-child {
  background: transparent;
  color: #f0c040;
  border: 2px solid #f0c040;
}
.hero-cta a[role="button"]:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 30px rgba(240, 192, 64, 0.5);
}

/* General Section Styles */
section {
  padding: 3rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}
section > div {
  background: rgba(27, 40, 56, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 24px;
  padding: 2rem;
  border: 1px solid rgba(240, 192, 64, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
}
section > div:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 48px rgba(240, 192, 64, 0.1);
}

/* Products Grid */
section[aria-labelledby="products-title"] > div > div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
section[aria-labelledby="products-title"] article {
  background: rgba(13, 27, 42, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 20px;
  padding: 1.5rem;
  border: 1px solid rgba(240, 192, 64, 0.08);
  transition: transform 0.3s, background 0.3s, border-color 0.3s;
}
section[aria-labelledby="products-title"] article:hover {
  transform: translateY(-6px);
  background: rgba(13, 27, 42, 0.7);
  border-color: rgba(240, 192, 64, 0.3);
}
section[aria-labelledby="products-title"] h3 {
  color: #f0c040;
  margin-bottom: 0.75rem;
}

/* Testimonials */
section[aria-labelledby="testimonials-title"] > div > div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
blockquote {
  background: rgba(13, 27, 42, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 20px;
  padding: 1.5rem;
  border-left: 4px solid #f0c040;
  transition: transform 0.3s, background 0.3s;
}
blockquote:hover {
  transform: translateY(-4px) scale(1.01);
  background: rgba(13, 27, 42, 0.6);
}
blockquote p { font-style: italic; margin-bottom: 0.5rem; }
blockquote footer { color: #f0c040; font-weight: 600; }

/* FAQ */
details {
  background: rgba(13, 27, 42, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 16px;
  padding: 1rem 1.5rem;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(240, 192, 64, 0.08);
  transition: background 0.3s, border-color 0.3s;
  cursor: pointer;
}
details:hover {
  background: rgba(13, 27, 42, 0.6);
  border-color: rgba(240, 192, 64, 0.2);
}
details[open] {
  background: rgba(13, 27, 42, 0.7);
  border-color: rgba(240, 192, 64, 0.3);
}
summary {
  font-weight: 600;
  color: #f0c040;
  outline: none;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+';
  font-size: 1.5rem;
  transition: transform 0.3s;
}
details[open] summary::after {
  content: '−';
  transform: rotate(180deg);
}
details p { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid rgba(240, 192, 64, 0.1); }

/* HowTo */
ol { counter-reset: step; list-style: none; padding: 0; }
ol li {
  counter-increment: step;
  padding: 0.75rem 1rem 0.75rem 3rem;
  position: relative;
  background: rgba(13, 27, 42, 0.3);
  border-radius: 12px;
  margin-bottom: 0.5rem;
  transition: background 0.3s, transform 0.2s;
}
ol li:hover {
  background: rgba(13, 27, 42, 0.5);
  transform: translateX(4px);
}
ol li::before {
  content: counter(step);
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  background: #f0c040;
  color: #0d1b2a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

/* Contact */
address p { margin-bottom: 0.5rem; }
address a { color: #f0c040; }

/* Features List */
section[aria-labelledby="features-title"] ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
section[aria-labelledby="features-title"] ul li {
  background: rgba(13, 27, 42, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 16px;
  padding: 1.25rem;
  border: 1px solid rgba(240, 192, 64, 0.06);
  transition: transform 0.3s, background 0.3s, border-color 0.3s;
}
section[aria-labelledby="features-title"] ul li:hover {
  transform: translateY(-4px);
  background: rgba(13, 27, 42, 0.6);
  border-color: rgba(240, 192, 64, 0.2);
}
section[aria-labelledby="features-title"] ul li strong {
  color: #f0c040;
  display: block;
  margin-bottom: 0.25rem;
}

/* Footer */
footer {
  background: rgba(13, 27, 42, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(240, 192, 64, 0.1);
  padding: 2rem 1rem;
  margin-top: 2rem;
}
footer > div {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}
footer nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}
footer nav ul li a {
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  transition: background 0.3s;
}
footer nav ul li a:hover { background: rgba(240, 192, 64, 0.1); }
footer p small { display: block; margin-top: 1rem; opacity: 0.6; }

/* Back to Top */
aside {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
}
aside a[role="button"] {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #f0c040, #d4a017);
  color: #0d1b2a;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(240, 192, 64, 0.4);
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
}
aside a[role="button"]:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 30px rgba(240, 192, 64, 0.6);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  section { padding: 2rem 0.75rem; }
  section > div { padding: 1.25rem; border-radius: 16px; }
  footer > div { flex-direction: column; text-align: center; }
  footer nav ul { justify-content: center; }
  aside { bottom: 1rem; right: 1rem; }
  aside a[role="button"] { width: 40px; height: 40px; font-size: 1.2rem; }
}

/* Smooth all hover effects */
@media (hover: hover) {
  * { transition-duration: 0.3s; }
}