/* ===== 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;
  line-height: 1.6;
  color: #e0e0e0;
  background: #0f0f1a;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.4rem); margin-bottom: 1.5rem; }
h3 { font-size: clamp(1.1rem, 3vw, 1.6rem); margin-bottom: 0.75rem; }
p { margin-bottom: 1rem; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
section { padding: 5rem 0; }

/* ===== Dark Mode (default) ===== */
body { background: #0f0f1a; color: #e0e0e0; }

/* ===== Scroll Animation Base ===== */
section { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
section.visible { opacity: 1; transform: translateY(0); }

/* ===== Header & Nav ===== */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(15, 15, 26, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
}
.logo-link svg { height: 40px; width: auto; }
.nav-list {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.nav-list a {
  font-size: 0.95rem;
  font-weight: 500;
  color: #b0b0c0;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s;
}
.nav-list a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #f5a623, #ff7e5f);
  transition: width 0.3s ease;
}
.nav-list a:hover { color: #f5a623; }
.nav-list a:hover::after { width: 100%; }

/* ===== Hero Section (Gradient Banner) ===== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 30%, #0f3460 60%, #1a1a2e 100%);
  position: relative;
  overflow: hidden;
  padding: 6rem 1.5rem 4rem;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(245, 166, 35, 0.08) 0%, transparent 50%);
  animation: heroGlow 8s ease-in-out infinite alternate;
}
@keyframes heroGlow {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(10%, 10%) scale(1.1); }
}
.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero-content h1 {
  background: linear-gradient(135deg, #f5a623, #ff7e5f, #f5a623);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}
.hero-subtitle { font-size: 1.2rem; color: #b0b0c0; margin-bottom: 2rem; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.5rem; }
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, #f5a623, #ff7e5f);
  color: #0f0f1a;
  box-shadow: 0 4px 20px rgba(245, 166, 35, 0.3);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(245, 166, 35, 0.5);
}
.btn-secondary {
  background: transparent;
  color: #f5a623;
  border: 2px solid #f5a623;
}
.btn-secondary:hover {
  background: rgba(245, 166, 35, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(245, 166, 35, 0.2);
}
.hero-meta { font-size: 0.9rem; color: #888; }

/* ===== Glassmorphism Cards ===== */
.product-card, .feature-item, .faq-item, .case-studies-section article, .insights-section article {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 1.8rem;
  transition: all 0.4s ease;
}
.product-card:hover, .feature-item:hover, .faq-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(245, 166, 35, 0.3);
  background: rgba(255, 255, 255, 0.07);
}

/* ===== Product Grid ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* ===== Features Grid ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.8rem;
  margin-top: 2rem;
}
.feature-item h3 { color: #f5a623; }

/* ===== FAQ ===== */
.faq-item { margin-bottom: 1.2rem; }
.faq-item h3 { cursor: pointer; position: relative; padding-right: 1.5rem; }
.faq-item h3::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.5rem;
  color: #f5a623;
  transition: transform 0.3s;
}
.faq-item.active h3::after { transform: rotate(45deg); }
.faq-item p { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-item.active p { max-height: 300px; }

/* ===== Testimonials ===== */
blockquote {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  border-left: 4px solid #f5a623;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.2rem;
  font-style: italic;
  transition: all 0.3s;
}
blockquote:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(6px);
}

/* ===== Lists ===== */
.services-section ul, .industries-section ul, .advantages-section ul, .knowledge-section ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}
.services-section li, .industries-section li, .advantages-section li, .knowledge-section li {
  margin-bottom: 0.5rem;
  color: #c0c0d0;
}

/* ===== HowTo ===== */
.howto-section ol {
  list-style: decimal;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}
.howto-section li { margin-bottom: 0.5rem; color: #c0c0d0; }

/* ===== Contact ===== */
address p { margin-bottom: 0.3rem; color: #b0b0c0; }

/* ===== Footer ===== */
#footer {
  background: #0a0a14;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 3rem 1.5rem;
  margin-top: 2rem;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}
.footer-links h3 { color: #f5a623; margin-bottom: 1rem; font-size: 1.1rem; }
.footer-links ul { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-links a { color: #888; transition: color 0.3s; }
.footer-links a:hover { color: #f5a623; }
.footer-legal { flex: 1 1 100%; text-align: center; color: #666; font-size: 0.85rem; }
.footer-legal a { color: #888; margin: 0 0.5rem; transition: color 0.3s; }
.footer-legal a:hover { color: #f5a623; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-list { display: none; }
  .nav-container { padding: 0.75rem 1rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn-primary, .btn-secondary { width: 80%; max-width: 280px; }
  section { padding: 3.5rem 0; }
  .product-grid, .features-grid { grid-template-columns: 1fr; }
  .footer-container { flex-direction: column; text-align: center; }
  .footer-links ul { justify-content: center; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.8rem; }
  .hero-subtitle { font-size: 1rem; }
  .container { padding: 0 1rem; }
  .product-card, .feature-item, .faq-item { padding: 1.2rem; }
}

/* ===== Hover animations for all links & buttons ===== */
a, button, .btn-primary, .btn-secondary {
  transition: all 0.3s ease;
}

/* ===== Utility ===== */
.text-gradient { background: linear-gradient(135deg, #f5a623, #ff7e5f); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.mt-2 { margin-top: 2rem; }

/* ===== Intersection Observer fallback (visible by default) ===== */
section { opacity: 1; transform: translateY(0); }
/* JS will handle animation, but we keep base for graceful degradation */