/* Reset and base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #6c63ff;
  --secondary: #f093fb;
  --accent: #f5576c;
  --bg-dark: #0f0f1a;
  --bg-card: rgba(255, 255, 255, 0.06);
  --glass: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.18);
  --text-primary: #f0f0f5;
  --text-secondary: #b0b0c0;
  --radius: 20px;
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #1a1a2e;
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}

/* Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  background: rgba(15, 15, 26, 0.7);
  border-bottom: 1px solid var(--glass-border);
  padding: 0.6rem 1.5rem;
  transition: var(--transition);
}

header nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 0.8rem;
  max-width: 1200px;
  margin: 0 auto;
}

header nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  border-radius: 30px;
  transition: var(--transition);
  background: transparent;
  white-space: nowrap;
}

header nav a:hover,
header nav a[aria-current="page"] {
  color: #fff;
  background: var(--glass);
  backdrop-filter: blur(4px);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(108, 99, 255, 0.3);
}

/* Sections */
main {
  padding-top: 80px;
}

section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 0.6s ease forwards;
}

section:nth-child(1) { animation-delay: 0.05s; }
section:nth-child(2) { animation-delay: 0.1s; }
section:nth-child(3) { animation-delay: 0.15s; }
section:nth-child(4) { animation-delay: 0.2s; }
section:nth-child(5) { animation-delay: 0.25s; }
section:nth-child(6) { animation-delay: 0.3s; }
section:nth-child(7) { animation-delay: 0.35s; }
section:nth-child(8) { animation-delay: 0.4s; }
section:nth-child(9) { animation-delay: 0.45s; }
section:nth-child(10) { animation-delay: 0.5s; }
section:nth-child(11) { animation-delay: 0.55s; }
section:nth-child(12) { animation-delay: 0.6s; }
section:nth-child(13) { animation-delay: 0.65s; }

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

/* Headings */
h1, h2, h3 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.8rem;
  background: linear-gradient(135deg, var(--secondary), var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: 2rem;
  color: #fff;
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
}

h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 4px;
}

h3 {
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 1rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent);
}

/* Hero section */
#hero {
  text-align: center;
  padding: 6rem 1.5rem 5rem;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 20% 30%, rgba(108,99,255,0.15) 0%, transparent 60%),
              radial-gradient(circle at 80% 70%, rgba(245,87,108,0.12) 0%, transparent 50%);
  border-radius: 0 0 var(--radius) var(--radius);
  margin-bottom: 1rem;
}

#hero::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -10%;
  width: 60%;
  height: 80%;
  background: linear-gradient(135deg, rgba(108,99,255,0.08), rgba(240,147,251,0.05));
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

#hero h1 {
  font-size: 3rem;
  margin-bottom: 1.2rem;
}

#hero p {
  max-width: 700px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  color: #c0c0d0;
}

#hero a[role="button"] {
  display: inline-block;
  margin: 0.5rem;
  padding: 0.8rem 2.2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  background: linear-gradient(135deg, var(--primary), #8b7eff);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(108,99,255,0.3);
  text-decoration: none;
}

#hero a[role="button"]:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 30px rgba(108,99,255,0.5);
}

#hero a[role="button"]:last-child {
  background: var(--glass);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  box-shadow: none;
}

#hero a[role="button"]:last-child:hover {
  background: rgba(255,255,255,0.18);
  border-color: var(--primary);
}

/* Cards & articles */
article, details, .card-like {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.8rem;
  margin-bottom: 1.5rem;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

article:hover, details:hover {
  transform: translateY(-6px);
  border-color: rgba(108,99,255,0.4);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

/* Lists */
ul, ol {
  padding-left: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Products grid */
#products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

#products h2 {
  grid-column: 1 / -1;
}

#products article {
  margin-bottom: 0;
}

/* FAQ details */
details {
  cursor: pointer;
  padding: 1.2rem 1.8rem;
}

details summary {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-primary);
  outline: none;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::after {
  content: '▾';
  font-size: 1.2rem;
  transition: var(--transition);
  color: var(--primary);
}

details[open] summary::after {
  transform: rotate(180deg);
}

details p {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--glass-border);
}

/* Contact */
#contact ul {
  list-style: none;
  padding-left: 0;
}

#contact ul li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Footer */
footer {
  background: rgba(15,15,26,0.9);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--glass-border);
  padding: 2.5rem 1.5rem;
  text-align: center;
  margin-top: 2rem;
}

footer nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}

footer nav a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

footer nav a:hover {
  color: var(--primary);
}

footer p {
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: #7a7a8a;
}

/* Responsive */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  header {
    padding: 0.5rem 1rem;
  }

  header nav {
    gap: 0.3rem 0.5rem;
  }

  header nav a {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
  }

  section {
    padding: 3rem 1rem;
  }

  #hero {
    padding: 4rem 1rem 3rem;
  }

  #hero h1 {
    font-size: 2.2rem;
  }

  #hero p {
    font-size: 1rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  #products {
    grid-template-columns: 1fr;
  }

  article, details {
    padding: 1.2rem;
  }

  details summary {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  #hero h1 {
    font-size: 1.8rem;
  }

  #hero a[role="button"] {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }

  header nav a {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
  }
}

/* Dark mode support (default is dark, but ensure consistency) */
@media (prefers-color-scheme: light) {
  :root {
    --bg-dark: #0f0f1a;
    --text-primary: #f0f0f5;
    --text-secondary: #b0b0c0;
    --bg-card: rgba(255, 255, 255, 0.06);
    --glass: rgba(255, 255, 255, 0.12);
  }
  body {
    background: var(--bg-dark);
    color: var(--text-primary);
  }
}