/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; background: #0f0f1a; color: #e0e0e0; line-height: 1.7; min-height: 100vh; }

/* Dark Mode (default) */
:root { --bg-primary: #0f0f1a; --bg-secondary: #1a1a2e; --bg-card: rgba(255,255,255,0.05); --bg-glass: rgba(255,255,255,0.08); --text-primary: #e0e0e0; --text-secondary: #a0a0b0; --accent: #6c63ff; --accent-hover: #5a52e0; --border: rgba(255,255,255,0.12); --shadow: 0 8px 32px rgba(0,0,0,0.4); --radius: 16px; --transition: 0.3s cubic-bezier(0.4,0,0.2,1); }

/* Light Mode (optional, but we keep dark as primary) */
@media (prefers-color-scheme: light) {
  :root { --bg-primary: #f5f5fa; --bg-secondary: #ffffff; --bg-card: rgba(0,0,0,0.04); --bg-glass: rgba(255,255,255,0.7); --text-primary: #1a1a2e; --text-secondary: #555; --border: rgba(0,0,0,0.1); --shadow: 0 8px 32px rgba(0,0,0,0.1); }
  body { background: var(--bg-primary); color: var(--text-primary); }
}

/* Typography */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.3; }
h1 { font-size: clamp(2rem, 6vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 1.2rem; position: relative; display: inline-block; }
h2::after { content: ''; display: block; width: 60px; height: 4px; background: linear-gradient(135deg, var(--accent), #ff6b9d); border-radius: 4px; margin-top: 8px; }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); margin-bottom: 0.8rem; }
p { margin-bottom: 1rem; color: var(--text-secondary); }
a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-hover); }
ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.5rem; }
blockquote { border-left: 4px solid var(--accent); padding: 0.8rem 1.2rem; margin: 1rem 0; background: var(--bg-card); border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; }

/* Header & Navigation */
header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(15,15,26,0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); }
nav { display: flex; align-items: center; justify-content: space-between; max-width: 1200px; margin: 0 auto; padding: 0.8rem 1.5rem; }
.logo { font-size: 1.6rem; font-weight: 800; background: linear-gradient(135deg, var(--accent), #ff6b9d); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
nav ul { list-style: none; display: flex; gap: 1.2rem; padding: 0; margin: 0; }
nav ul li a { color: var(--text-secondary); font-weight: 500; padding: 0.4rem 0.6rem; border-radius: 8px; transition: var(--transition); position: relative; }
nav ul li a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--accent); transition: var(--transition); }
nav ul li a:hover { color: var(--text-primary); background: var(--bg-card); }
nav ul li a:hover::after { width: 100%; }
.menu-toggle { display: none; background: none; border: none; color: var(--text-primary); font-size: 1.8rem; cursor: pointer; padding: 0.2rem; }

/* Hero Section */
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 6rem 1.5rem 4rem; background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%); position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle at 30% 50%, rgba(108,99,255,0.15), transparent 60%), radial-gradient(circle at 70% 30%, rgba(255,107,157,0.1), transparent 50%); animation: heroGlow 12s ease-in-out infinite alternate; }
@keyframes heroGlow { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(5%,5%) scale(1.1); } }
.hero-content { position: relative; z-index: 1; max-width: 800px; }
.hero h1 { margin-bottom: 1rem; background: linear-gradient(135deg, #fff, var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p { font-size: 1.2rem; margin-bottom: 2rem; color: var(--text-secondary); }
.cta-button { display: inline-block; padding: 0.9rem 2.4rem; background: linear-gradient(135deg, var(--accent), #ff6b9d); color: #fff; border-radius: 50px; font-weight: 600; font-size: 1.1rem; transition: var(--transition); box-shadow: 0 4px 20px rgba(108,99,255,0.4); border: none; cursor: pointer; }
.cta-button:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 8px 30px rgba(108,99,255,0.6); color: #fff; }

/* Sections General */
main { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
section { padding: 5rem 0; 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; }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

/* Card Styles (Glassmorphism & Rounded) */
.brand, .products, .services, .news, .cases, .faq, .howto, .contact, aside { background: var(--bg-card); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: var(--radius); padding: 2.5rem; margin-bottom: 2rem; border: 1px solid var(--border); box-shadow: var(--shadow); transition: var(--transition); }
.brand:hover, .products:hover, .services:hover, .news:hover, .cases:hover, .faq:hover, .howto:hover, .contact:hover, aside:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.5); }

/* Product List Grid */
.product-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; margin: 2rem 0; }
.product-list article { background: var(--bg-glass); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: var(--radius); padding: 1.8rem; border: 1px solid var(--border); transition: var(--transition); }
.product-list article:hover { transform: translateY(-6px); background: rgba(108,99,255,0.1); border-color: var(--accent); }
.product-list h3 { margin-bottom: 0.6rem; }
.product-list p { margin-bottom: 0; }

/* News Articles */
.news article { background: var(--bg-glass); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem; border: 1px solid var(--border); transition: var(--transition); }
.news article:hover { transform: translateX(6px); background: rgba(108,99,255,0.05); }
.news article h3 { margin-bottom: 0.3rem; }
.news article p { font-size: 0.95rem; }
.news article a { font-weight: 600; }

/* FAQ Details */
details { background: var(--bg-glass); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); border-radius: 12px; padding: 1rem 1.2rem; margin-bottom: 0.8rem; border: 1px solid var(--border); transition: var(--transition); cursor: pointer; }
details[open] { background: rgba(108,99,255,0.08); border-color: var(--accent); }
summary { font-weight: 600; font-size: 1.05rem; outline: none; }
summary::-webkit-details-marker { color: var(--accent); }
details p { margin-top: 0.8rem; padding-left: 0.5rem; }

/* Howto Steps */
.howto ol li, .howto ul li { margin-bottom: 0.6rem; }
.howto ol { counter-reset: step; }
.howto ol li { list-style: none; counter-increment: step; position: relative; padding-left: 2.5rem; }
.howto ol li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 1.8rem; height: 1.8rem; background: linear-gradient(135deg, var(--accent), #ff6b9d); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 0.9rem; }

/* Aside */
aside { background: var(--bg-glass); }
aside ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.8rem; }
aside ul li a { padding: 0.3rem 0.8rem; border-radius: 20px; background: var(--bg-card); border: 1px solid var(--border); transition: var(--transition); }
aside ul li a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Footer */
footer { text-align: center; padding: 2rem 1.5rem; background: var(--bg-secondary); border-top: 1px solid var(--border); margin-top: 2rem; }
footer p { margin: 0; color: var(--text-secondary); font-size: 0.9rem; }

/* Responsive */
@media (max-width: 768px) {
  nav ul { display: none; flex-direction: column; background: rgba(15,15,26,0.95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); position: absolute; top: 100%; left: 0; right: 0; padding: 1rem 1.5rem; gap: 0.5rem; border-bottom: 1px solid var(--border); }
  nav ul.show { display: flex; }
  .menu-toggle { display: block; }
  .hero { padding: 5rem 1rem 3rem; }
  .brand, .products, .services, .news, .cases, .faq, .howto, .contact, aside { padding: 1.5rem; }
  .product-list { grid-template-columns: 1fr; }
  aside ul { flex-direction: column; }
}

/* Scroll Animation - Intersection Observer fallback via CSS */
@media (prefers-reduced-motion: reduce) {
  section { opacity: 1; transform: none; animation: none; }
}

/* Extra polish */
::selection { background: var(--accent); color: #fff; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* Hover animations for all interactive elements */
button, a, details, article, .product-list article, .news article, aside a { transition: var(--transition); }