/* ===== CSS Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; background: #0f172a; color: #e2e8f0; line-height: 1.6; transition: background .3s, color .3s; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: 2rem; font-weight: 800; background: linear-gradient(135deg, #facc15, #f97316); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 12px; }
.section-header p { font-size: 1.1rem; color: #94a3b8; }
.card { background: rgba(30, 41, 59, 0.7); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,0.06); border-radius: 20px; padding: 28px; transition: transform .3s, box-shadow .3s, border-color .3s; }
.card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,0.4); border-color: rgba(250,204,21,0.2); }
.btn { display: inline-flex; align-items: center; justify-content: center; font-weight: 600; border-radius: 12px; transition: all .3s; cursor: pointer; text-align: center; }
.btn-primary { background: linear-gradient(135deg, #facc15, #f97316); color: #0f172a; border: none; }
.btn-primary:hover { transform: scale(1.04); box-shadow: 0 8px 24px rgba(250,204,21,0.3); }
.btn-accent { background: linear-gradient(135deg, #3b82f6, #8b5cf6); color: #fff; border: none; }
.btn-accent:hover { transform: scale(1.04); box-shadow: 0 8px 24px rgba(59,130,246,0.3); }
.btn-outline { background: transparent; border: 2px solid #facc15; color: #facc15; }
.btn-outline:hover { background: #facc15; color: #0f172a; }
.btn-sm { padding: 8px 20px; font-size: 0.9rem; }
.btn-lg { padding: 14px 32px; font-size: 1.1rem; }

/* ===== Header & Nav ===== */
header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(15,23,42,0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid rgba(255,255,255,0.05); transition: background .3s, box-shadow .3s; }
header.sticky { background: rgba(15,23,42,0.95); box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; max-width: 1200px; margin: 0 auto; padding: 12px 20px; }
.logo { flex-shrink: 0; }
.logo svg { height: 36px; width: auto; }
.nav-links { display: flex; gap: 8px; }
.nav-links li a { padding: 8px 16px; border-radius: 10px; font-weight: 500; font-size: 0.95rem; color: #cbd5e1; transition: background .3s, color .3s; }
.nav-links li a:hover, .nav-links li a[aria-current="page"] { background: rgba(250,204,21,0.1); color: #facc15; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.dark-mode-toggle { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; transition: background .3s; }
.dark-mode-toggle:hover { background: rgba(255,255,255,0.1); }
.mobile-menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.mobile-menu-toggle span { display: block; width: 24px; height: 2.5px; background: #e2e8f0; border-radius: 4px; transition: .3s; }

/* ===== Hero ===== */
.hero { padding: 140px 0 80px; background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%); position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -30%; right: -20%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(250,204,21,0.08) 0%, transparent 70%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero-text h1 { font-size: 2.8rem; font-weight: 900; line-height: 1.2; background: linear-gradient(135deg, #facc15, #f97316, #ef4444); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 16px; }
.hero-sub { font-size: 1.3rem; color: #facc15; font-weight: 600; margin-bottom: 12px; }
.hero-desc { font-size: 1.05rem; color: #94a3b8; max-width: 520px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-stats { display: flex; gap: 28px; flex-wrap: wrap; }
.hero-stats span { font-size: 0.95rem; color: #94a3b8; }
.hero-stats strong { color: #facc15; font-weight: 700; }
.hero-visual svg { width: 100%; height: auto; max-width: 480px; margin: 0 auto; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3)); }

/* ===== About ===== */
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.about-grid .card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; color: #facc15; }
.about-grid .card p { color: #94a3b8; font-size: 0.95rem; }

/* ===== Products ===== */
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.product-card { text-align: center; }
.product-icon { margin-bottom: 16px; display: flex; justify-content: center; }
.product-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; }
.product-card p { color: #94a3b8; font-size: 0.95rem; margin-bottom: 20px; }

/* ===== Features ===== */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.feature-item { background: rgba(30, 41, 59, 0.5); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.05); border-radius: 20px; padding: 28px; transition: transform .3s, border-color .3s; text-align: center; }
.feature-item:hover { transform: translateY(-4px); border-color: rgba(250,204,21,0.15); }
.feature-item svg { margin: 0 auto 16px; }
.feature-item h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.feature-item p { color: #94a3b8; font-size: 0.95rem; }

/* ===== FAQ ===== */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: rgba(30, 41, 59, 0.6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.05); border-radius: 16px; overflow: hidden; transition: border-color .3s; }
.faq-item[open] { border-color: rgba(250,204,21,0.2); }
.faq-item summary { padding: 18px 24px; font-weight: 600; font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: space-between; list-style: none; transition: color .3s; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.4rem; color: #facc15; transition: transform .3s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: #facc15; }
.faq-item p { padding: 0 24px 18px; color: #94a3b8; font-size: 0.95rem; line-height: 1.7; }

/* ===== HowTo ===== */
.howto-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; counter-reset: step; }
.step { background: rgba(30, 41, 59, 0.5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.05); border-radius: 20px; padding: 28px 20px; text-align: center; transition: transform .3s; }
.step:hover { transform: translateY(-4px); }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, #facc15, #f97316); color: #0f172a; font-weight: 800; font-size: 1.2rem; margin-bottom: 16px; }
.step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.step p { color: #94a3b8; font-size: 0.9rem; }

/* ===== Knowledge ===== */
.knowledge-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.knowledge-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.knowledge-card p { color: #94a3b8; font-size: 0.92rem; margin-bottom: 16px; }
.read-more { color: #facc15; font-weight: 600; font-size: 0.9rem; transition: color .3s; }
.read-more:hover { color: #f97316; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; max-width: 800px; margin: 0 auto; }
.contact-info p { margin-bottom: 12px; font-size: 1rem; color: #94a3b8; }
.contact-info strong { color: #e2e8f0; }
.contact-form { display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.contact-form p { color: #94a3b8; }

/* ===== Footer ===== */
footer { background: #0a0f1a; border-top: 1px solid rgba(255,255,255,0.05); padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; align-items: start; }
.footer-brand p { margin-top: 12px; color: #64748b; font-size: 0.9rem; }
.footer-links h4 { font-size: 1rem; font-weight: 700; margin-bottom: 16px; color: #e2e8f0; }
.footer-links ul li { margin-bottom: 10px; }
.footer-links ul li a { color: #94a3b8; font-size: 0.9rem; transition: color .3s; }
.footer-links ul li a:hover { color: #facc15; }
.footer-newsletter p { color: #475569; font-size: 0.85rem; grid-column: 1 / -1; text-align: center; margin-top: 24px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.05); }

/* ===== Back to Top ===== */
.back-to-top { position: fixed; bottom: 30px; right: 30px; width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, #facc15, #f97316); color: #0f172a; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transform: translateY(20px); transition: all .3s; box-shadow: 0 4px 16px rgba(250,204,21,0.3); z-index: 999; }
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: scale(1.1); }

/* ===== Dark Mode ===== */
body.dark-mode { background: #0a0f1a; }
body.dark-mode header { background: rgba(10,15,26,0.9); }
body.dark-mode .card, body.dark-mode .feature-item, body.dark-mode .faq-item, body.dark-mode .step { background: rgba(15,23,42,0.7); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-text h1 { font-size: 2.2rem; }
    .hero-desc { margin: 0 auto 28px; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-visual { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-newsletter p { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: rgba(15,23,42,0.98); backdrop-filter: blur(20px); flex-direction: column; padding: 16px; gap: 4px; border-bottom: 1px solid rgba(255,255,255,0.05); }
    .nav-links.active { display: flex; }
    .nav-links li a { padding: 12px 16px; font-size: 1rem; }
    .mobile-menu-toggle { display: flex; }
    .nav-actions .btn { display: none; }
    .nav-actions .dark-mode-toggle { display: flex; }
    .hero { padding: 120px 0 60px; }
    .hero-text h1 { font-size: 1.8rem; }
    .hero-sub { font-size: 1.1rem; }
    .section { padding: 60px 0; }
    .section-header h2 { font-size: 1.6rem; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-links ul li a { justify-content: center; }
    .back-to-top { bottom: 20px; right: 20px; width: 42px; height: 42px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-text h1 { font-size: 1.5rem; }
    .hero-stats { gap: 16px; flex-direction: column; align-items: center; }
    .btn-lg { padding: 12px 24px; font-size: 1rem; }
    .card { padding: 20px; }
    .section-header { margin-bottom: 32px; }
}