/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: #0b0b1a;
  color: #e0e0e0;
  line-height: 1.6;
  min-height: 100vh;
  transition: background 0.3s, color 0.3s;
}

/* Color Theme & Dark Mode Support */
:root {
  --bg-primary: #0b0b1a;
  --bg-secondary: #13132b;
  --bg-card: rgba(20, 20, 50, 0.7);
  --bg-glass: rgba(255, 255, 255, 0.06);
  --text-primary: #e0e0e0;
  --text-secondary: #b0b0c0;
  --accent-1: #6c63ff;
  --accent-2: #ff6584;
  --accent-3: #00d2ff;
  --gradient-1: linear-gradient(135deg, #6c63ff, #00d2ff);
  --gradient-2: linear-gradient(135deg, #ff6584, #ffb347);
  --gradient-banner: linear-gradient(135deg, #1a1a3e 0%, #2d1b69 50%, #0b0b1a 100%);
  --shadow-card: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-hover: 0 12px 40px rgba(108, 99, 255, 0.3);
  --border-glass: 1px solid rgba(255,255,255,0.1);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #fff;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}
h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--gradient-1);
  border-radius: 4px;
}
h3 {
  font-size: 1.4rem;
  color: #f0f0ff;
  margin-bottom: 0.8rem;
}
p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}
a {
  color: var(--accent-1);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--accent-3);
}

/* Layout & Container */
section {
  padding: 4rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}
section:nth-child(2) { animation-delay: 0.1s; }
section:nth-child(3) { animation-delay: 0.2s; }
section:nth-child(4) { animation-delay: 0.3s; }
section:nth-child(5) { animation-delay: 0.4s; }
section:nth-child(6) { animation-delay: 0.5s; }
section:nth-child(7) { animation-delay: 0.6s; }
section:nth-child(8) { animation-delay: 0.7s; }
section:nth-child(9) { animation-delay: 0.8s; }
section:nth-child(10) { animation-delay: 0.9s; }
section:nth-child(11) { animation-delay: 1.0s; }
section:nth-child(12) { animation-delay: 1.1s; }
section:nth-child(13) { animation-delay: 1.2s; }
section:nth-child(14) { animation-delay: 1.3s; }
section:nth-child(15) { animation-delay: 1.4s; }
section:nth-child(16) { animation-delay: 1.5s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Header & Navigation */
header {
  background: rgba(11, 11, 26, 0.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: var(--border-glass);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.6rem 1.5rem;
}
header nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}
header nav a {
  color: #c0c0d0;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  border-radius: 30px;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  white-space: nowrap;
}
header nav a:hover {
  background: rgba(108, 99, 255, 0.2);
  color: #fff;
  transform: translateY(-2px);
}

/* Hero Section */
#hero {
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  background: var(--gradient-banner);
  border-radius: 0 0 40px 40px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(108,99,255,0.15), transparent 60%),
              radial-gradient(circle at 70% 60%, rgba(255,101,132,0.1), transparent 60%);
  animation: heroGlow 10s ease infinite alternate;
}
@keyframes heroGlow {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-10%, 10%); }
}
#hero h1 {
  position: relative;
  z-index: 1;
  margin-bottom: 1rem;
}
#hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  color: #c0c0e0;
  position: relative;
  z-index: 1;
}
#hero img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  margin-top: 2rem;
  position: relative;
  z-index: 1;
  transition: transform var(--transition), box-shadow var(--transition);
}
#hero img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-hover);
}

/* About & Company */
#about, #company {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 2.5rem;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-card);
  margin-bottom: 2rem;
}
#about p, #company p {
  max-width: 800px;
}

/* Cards (Products, Services, etc.) */
#products, #services, #solutions, #industries, #features, #benefits, #workflow, #case-studies {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: var(--border-glass);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
  margin-bottom: 2rem;
}
#products:hover, #services:hover, #solutions:hover, #industries:hover, #features:hover, #benefits:hover, #workflow:hover, #case-studies:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
#products article, #services ul, #features ul, #benefits ul, #workflow ol, #case-studies p {
  margin-top: 1rem;
}
#products article {
  background: var(--bg-glass);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-left: 4px solid var(--accent-1);
  transition: background var(--transition), transform var(--transition);
}
#products article:hover {
  background: rgba(108, 99, 255, 0.1);
  transform: translateX(6px);
}
ul, ol {
  padding-left: 1.5rem;
  color: var(--text-secondary);
}
li {
  margin-bottom: 0.5rem;
}

/* Testimonials */
#testimonials {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  margin-bottom: 2rem;
}
blockquote {
  background: var(--bg-glass);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  margin: 1rem 0;
  border-left: 4px solid var(--accent-2);
  font-style: italic;
  transition: background var(--transition), transform var(--transition);
}
blockquote:hover {
  background: rgba(255, 101, 132, 0.08);
  transform: scale(1.01);
}
blockquote cite {
  display: block;
  margin-top: 0.5rem;
  color: var(--accent-2);
  font-style: normal;
  font-weight: 500;
}

/* Knowledge Center */
#knowledge-center {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: var(--border-glass);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  margin-bottom: 2rem;
}
#knowledge-center ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}
#knowledge-center ul li a {
  display: inline-block;
  background: var(--bg-glass);
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  font-size: 0.95rem;
  border: var(--border-glass);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
#knowledge-center ul li a:hover {
  background: rgba(108, 99, 255, 0.2);
  color: #fff;
  transform: translateY(-3px);
}

/* FAQ */
#faq {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  margin-bottom: 2rem;
}
details {
  background: var(--bg-glass);
  border-radius: var(--radius-sm);
  padding: 1rem 1.5rem;
  margin-bottom: 0.8rem;
  border: var(--border-glass);
  transition: background var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
details:hover {
  background: rgba(108, 99, 255, 0.05);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
details summary {
  font-weight: 600;
  color: #f0f0ff;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
details summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--accent-1);
  transition: transform var(--transition);
}
details[open] summary::after {
  content: '−';
  transform: rotate(180deg);
}
details p {
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* HowTo */
#howto {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: var(--border-glass);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  margin-bottom: 2rem;
}
#howto ol {
  counter-reset: step;
  list-style: none;
  padding: 0;
}
#howto ol li {
  counter-increment: step;
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1.2rem;
  font-weight: 500;
}
#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  background: var(--gradient-1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(108, 99, 255, 0.3);
}
#howto ol li strong {
  color: #fff;
}

/* Contact */
#contact {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  margin-bottom: 2rem;
}
#contact ul {
  list-style: none;
  padding: 0;
}
#contact ul li {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Footer */
footer {
  background: rgba(11, 11, 26, 0.95);
  backdrop-filter: blur(12px);
  border-top: var(--border-glass);
  padding: 2rem 1.5rem;
  text-align: center;
}
footer p {
  color: #8888aa;
  font-size: 0.9rem;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
  margin: 1rem 0;
}
footer nav a {
  color: #aaaacc;
  font-size: 0.9rem;
  transition: color var(--transition);
}
footer nav a:hover {
  color: var(--accent-3);
}
#legal {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}
#legal h3 {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}
#legal p {
  font-size: 0.85rem;
  color: #7777aa;
}

/* Back to Top */
a[href="#hero"] {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--gradient-1);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 20px rgba(108, 99, 255, 0.4);
  transition: transform var(--transition), box-shadow var(--transition);
  z-index: 999;
  text-decoration: none;
}
a[href="#hero"]:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 30px rgba(108, 99, 255, 0.6);
}

/* Responsive */
@media (max-width: 768px) {
  header {
    padding: 0.4rem 0.8rem;
  }
  header nav {
    gap: 0.3rem 0.6rem;
  }
  header nav a {
    font-size: 0.78rem;
    padding: 0.3rem 0.6rem;
  }
  section {
    padding: 2.5rem 1rem;
  }
  #hero {
    padding: 4rem 1rem 3rem;
    border-radius: 0 0 24px 24px;
  }
  #hero p {
    font-size: 1rem;
  }
  #products article, #services, #solutions, #industries, #features, #benefits, #workflow, #case-studies,
  #about, #company, #testimonials, #knowledge-center, #faq, #howto, #contact {
    padding: 1.5rem;
  }
  details {
    padding: 0.8rem 1rem;
  }
  #knowledge-center ul {
    flex-direction: column;
  }
  a[href="#hero"] {
    bottom: 1.2rem;
    right: 1.2rem;
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  html { font-size: 15px; }
  header nav a {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
  }
  #hero h1 {
    font-size: 1.8rem;
  }
  section {
    padding: 2rem 0.8rem;
  }
}