/* 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 Neue', Arial, sans-serif; line-height: 1.6; color: #e0e0e0; background: #0a0a1a; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, h5, h6 { line-height: 1.2; }

/* Scroll Animation Base */
[data-animate] { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
[data-animate].visible { opacity: 1; transform: translateY(0); }

/* Dark Mode Support (already dark by default) */
@media (prefers-color-scheme: light) {
  body { background: #f0f2f5; color: #1a1a2e; }
  header { background: rgba(255,255,255,0.85) !important; backdrop-filter: blur(12px) !important; }
  .nav-logo { color: #e94560 !important; }
  .nav-list a { color: #1a1a2e !important; }
  .nav-list a:hover { color: #e94560 !important; }
  section { background: rgba(255,255,255,0.7) !important; backdrop-filter: blur(8px) !important; box-shadow: 0 8px 32px rgba(0,0,0,0.08) !important; }
  h1, h2 { color: #1a1a2e !important; }
  #hero h1 { color: #fff !important; }
  #hero p { color: #ddd !important; }
  .btn { background: #e94560 !important; color: #fff !important; }
  .btn:hover { background: #d63850 !important; transform: scale(1.05) !important; }
  footer { background: #1a1a2e !important; color: #ccc !important; }
  #back-to-top { background: #e94560 !important; color: #fff !important; }
  details summary { color: #1a1a2e !important; }
  blockquote { border-left-color: #e94560 !important; color: #333 !important; }
}

/* Header & Nav */
header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; background: rgba(10,10,26,0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(233,69,96,0.2); padding: 0.5rem 2rem; }
nav { display: flex; align-items: center; justify-content: space-between; max-width: 1200px; margin: 0 auto; }
.nav-logo { font-size: 1.4rem; font-weight: 800; color: #e94560; letter-spacing: 1px; white-space: nowrap; }
.nav-list { display: flex; gap: 0.8rem; flex-wrap: wrap; justify-content: flex-end; }
.nav-list a { font-size: 0.85rem; font-weight: 500; color: #ccc; padding: 0.4rem 0.6rem; border-radius: 8px; transition: color 0.3s, background 0.3s; }
.nav-list a:hover { color: #e94560; background: rgba(233,69,96,0.1); }

/* Main content */
main { padding: 80px 1.5rem 2rem; max-width: 1200px; margin: 0 auto; }

/* Sections */
section { background: rgba(20,20,40,0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 20px; padding: 2.5rem 2rem; margin-bottom: 2rem; box-shadow: 0 8px 32px rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.05); transition: transform 0.3s, box-shadow 0.3s; }
section:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(233,69,96,0.15); }

/* Headings */
h1 { font-size: 2.8rem; font-weight: 800; background: linear-gradient(135deg, #e94560, #0f3460); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 1rem; }
h2 { font-size: 2rem; font-weight: 700; color: #e94560; margin-bottom: 1.5rem; border-left: 4px solid #e94560; padding-left: 1rem; }
h3 { font-size: 1.3rem; font-weight: 600; color: #ddd; margin-bottom: 0.8rem; }

/* Hero */
#hero { text-align: center; background: linear-gradient(135deg, rgba(15,52,96,0.7), rgba(233,69,96,0.3)), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 400"><rect width="800" height="400" fill="%230a0a1a"/><circle cx="200" cy="150" r="80" fill="%23e94560" opacity="0.1"/><circle cx="600" cy="250" r="100" fill="%230f3460" opacity="0.15"/></svg>') center/cover; padding: 5rem 2rem; border: none; }
#hero h1 { font-size: 3.2rem; -webkit-text-fill-color: #fff; background: none; text-shadow: 0 4px 20px rgba(0,0,0,0.5); }
#hero p { font-size: 1.2rem; color: #ddd; max-width: 700px; margin: 0 auto 2rem; }
.btn { display: inline-block; background: linear-gradient(135deg, #e94560, #d63850); color: #fff; padding: 0.9rem 2.5rem; border-radius: 50px; font-weight: 700; font-size: 1.1rem; box-shadow: 0 8px 20px rgba(233,69,96,0.4); transition: all 0.3s; cursor: pointer; border: none; }
.btn:hover { transform: scale(1.05); box-shadow: 0 12px 30px rgba(233,69,96,0.6); }

/* Lists & Details */
ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.5rem; position: relative; }
ul li::before { content: '▸'; color: #e94560; font-weight: bold; position: absolute; left: -1.2rem; }
ol { counter-reset: step; }
ol li { counter-increment: step; }
ol li::before { content: counter(step) '.'; color: #e94560; font-weight: bold; position: absolute; left: -1.5rem; }

details { background: rgba(255,255,255,0.03); border-radius: 12px; padding: 0.8rem 1.2rem; margin-bottom: 0.8rem; border: 1px solid rgba(255,255,255,0.06); transition: background 0.3s; }
details[open] { background: rgba(233,69,96,0.08); }
summary { font-weight: 600; color: #e0e0e0; cursor: pointer; padding: 0.3rem 0; }
details p { margin-top: 0.8rem; color: #bbb; }

blockquote { background: rgba(233,69,96,0.08); border-left: 4px solid #e94560; padding: 1rem 1.5rem; border-radius: 0 12px 12px 0; margin-bottom: 1rem; font-style: italic; color: #ccc; }

/* Footer */
footer { background: #0a0a1a; border-top: 1px solid rgba(233,69,96,0.2); padding: 2rem 1.5rem; text-align: center; font-size: 0.9rem; color: #888; margin-top: 2rem; }
footer nav ul { display: flex; justify-content: center; gap: 1.5rem; padding: 0; margin-bottom: 1rem; }
footer nav a { color: #aaa; transition: color 0.3s; }
footer nav a:hover { color: #e94560; }

/* Legal */
#legal { background: rgba(20,20,40,0.4); backdrop-filter: blur(4px); border-radius: 16px; padding: 2rem; margin: 2rem auto; max-width: 1200px; border: 1px solid rgba(255,255,255,0.05); }
#legal h2 { font-size: 1.5rem; }
#legal p { font-size: 0.9rem; color: #999; margin-bottom: 0.5rem; }

/* Back to Top */
#back-to-top { position: fixed; bottom: 2rem; right: 2rem; width: 48px; height: 48px; background: linear-gradient(135deg, #e94560, #d63850); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; box-shadow: 0 4px 20px rgba(233,69,96,0.4); opacity: 0.9; transition: all 0.3s; z-index: 999; }
#back-to-top:hover { transform: scale(1.1); opacity: 1; }

/* Responsive */
@media (max-width: 768px) {
  header { padding: 0.4rem 1rem; }
  nav { flex-direction: column; gap: 0.5rem; }
  .nav-list { justify-content: center; gap: 0.4rem; }
  .nav-list a { font-size: 0.75rem; padding: 0.3rem 0.5rem; }
  main { padding: 100px 0.8rem 1.5rem; }
  section { padding: 1.5rem 1rem; }
  h1 { font-size: 2rem; }
  #hero h1 { font-size: 2.2rem; }
  h2 { font-size: 1.5rem; }
  #hero { padding: 3rem 1rem; }
  #hero p { font-size: 1rem; }
  .btn { padding: 0.7rem 1.8rem; font-size: 1rem; }
  footer nav ul { flex-wrap: wrap; gap: 0.8rem; }
  #back-to-top { bottom: 1rem; right: 1rem; width: 40px; height: 40px; font-size: 1.2rem; }
}

@media (max-width: 480px) {
  .nav-logo { font-size: 1.1rem; }
  .nav-list a { font-size: 0.7rem; padding: 0.2rem 0.4rem; }
  h1 { font-size: 1.6rem; }
  #hero h1 { font-size: 1.8rem; }
  section { padding: 1rem 0.8rem; border-radius: 14px; }
}