/* ===== 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; background: #0f0f1a; color: #e0e0e0; line-height: 1.6; overflow-x: hidden; transition: background 0.3s, color 0.3s; }
a { color: #ff6b35; text-decoration: none; transition: color 0.3s; }
a:hover { color: #ff8c5a; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); margin-bottom: 1.5rem; color: #ff6b35; }
h3 { font-size: clamp(1.2rem, 3vw, 1.8rem); margin-bottom: 0.75rem; color: #ff8c5a; }
p { margin-bottom: 1rem; }
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; }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

/* ===== Header & Navigation ===== */
header { background: rgba(15, 15, 26, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 20px rgba(0,0,0,0.5); border-bottom: 1px solid rgba(255,107,53,0.2); transition: background 0.3s; }
nav { display: flex; align-items: center; justify-content: space-between; max-width: 1200px; margin: 0 auto; padding: 0.75rem 1.5rem; }
nav > a { font-size: 1.5rem; font-weight: 800; color: #ff6b35; letter-spacing: 1px; transition: transform 0.3s; }
nav > a:hover { transform: scale(1.05); }
nav ul { display: flex; gap: 1.5rem; }
nav ul li a { color: #ccc; font-weight: 500; padding: 0.5rem 0; position: relative; transition: color 0.3s; }
nav ul li a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: #ff6b35; transition: width 0.3s; }
nav ul li a:hover { color: #ff6b35; }
nav ul li a:hover::after { width: 100%; }
#dark-mode-toggle, #mobile-menu-toggle { background: none; border: 2px solid #ff6b35; color: #ff6b35; font-size: 1.3rem; cursor: pointer; padding: 0.4rem 0.8rem; border-radius: 30px; transition: all 0.3s; }
#dark-mode-toggle:hover, #mobile-menu-toggle:hover { background: #ff6b35; color: #0f0f1a; }
#mobile-menu-toggle { display: none; }

/* ===== Hero ===== */
#hero { display: flex; flex-wrap: wrap; align-items: center; gap: 2rem; padding-top: 3rem; padding-bottom: 3rem; background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); border-radius: 24px; margin: 1.5rem; box-shadow: 0 20px 60px rgba(0,0,0,0.6); 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(255,107,53,0.15), transparent 60%); pointer-events: none; }
#hero > div { flex: 1 1 300px; position: relative; z-index: 1; }
#hero h1 { background: linear-gradient(135deg, #ff6b35, #ff8c5a, #ffb347); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 1rem; }
#hero p { font-size: 1.2rem; color: #bbb; max-width: 500px; }
#hero a[role="button"] { display: inline-block; margin: 0.5rem 0.5rem 0 0; padding: 0.8rem 2rem; border-radius: 50px; font-weight: 700; background: linear-gradient(135deg, #ff6b35, #ff8c5a); color: #fff; border: none; transition: transform 0.3s, box-shadow 0.3s; box-shadow: 0 8px 25px rgba(255,107,53,0.4); }
#hero a[role="button"]:hover { transform: translateY(-3px); box-shadow: 0 12px 35px rgba(255,107,53,0.6); }
#hero a[role="button"]:last-of-type { background: transparent; border: 2px solid #ff6b35; color: #ff6b35; box-shadow: none; }
#hero a[role="button"]:last-of-type:hover { background: rgba(255,107,53,0.1); }
#hero img { border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.5); transition: transform 0.5s; }
#hero img:hover { transform: scale(1.02); }

/* ===== About ===== */
#about { background: rgba(255,255,255,0.03); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 24px; padding: 3rem 2rem; border: 1px solid rgba(255,107,53,0.1); }

/* ===== Products ===== */
#products > div { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: center; }
#products article { background: rgba(255,255,255,0.05); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 24px; padding: 2rem; flex: 1 1 280px; max-width: 360px; border: 1px solid rgba(255,107,53,0.15); transition: transform 0.4s, box-shadow 0.4s; box-shadow: 0 8px 30px rgba(0,0,0,0.3); }
#products article:hover { transform: translateY(-10px); box-shadow: 0 20px 50px rgba(255,107,53,0.2); border-color: #ff6b35; }
#products article a { display: inline-block; margin-top: 1rem; font-weight: 600; color: #ff6b35; border-bottom: 2px solid transparent; transition: border-color 0.3s; }
#products article a:hover { border-bottom-color: #ff6b35; }

/* ===== Services ===== */
#services ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; }
#services li { background: rgba(255,255,255,0.04); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 1.2rem 1.5rem; border-radius: 16px; border-left: 4px solid #ff6b35; transition: background 0.3s, transform 0.3s; }
#services li:hover { background: rgba(255,107,53,0.1); transform: translateX(5px); }

/* ===== Features & Advantages ===== */
#features ul, #advantages ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; }
#features li, #advantages li { background: rgba(255,255,255,0.03); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 1.5rem; border-radius: 20px; border: 1px solid rgba(255,107,53,0.1); transition: all 0.3s; }
#features li:hover, #advantages li:hover { background: rgba(255,107,53,0.08); border-color: #ff6b35; transform: scale(1.02); }

/* ===== Testimonials ===== */
#testimonials { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: center; }
#testimonials blockquote { background: rgba(255,255,255,0.04); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 24px; padding: 2rem; flex: 1 1 300px; max-width: 500px; border: 1px solid rgba(255,107,53,0.1); position: relative; transition: transform 0.3s; }
#testimonials blockquote::before { content: '“'; font-size: 4rem; color: #ff6b35; opacity: 0.3; position: absolute; top: -0.5rem; left: 1rem; }
#testimonials blockquote:hover { transform: translateY(-5px); }
#testimonials cite { display: block; margin-top: 1rem; font-style: normal; color: #ff8c5a; font-weight: 600; }

/* ===== Resources & Knowledge Base ===== */
#resources ul, #knowledge-base { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.2rem; }
#resources li, #knowledge-base article { background: rgba(255,255,255,0.03); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 1.5rem; border-radius: 20px; border: 1px solid rgba(255,107,53,0.1); transition: all 0.3s; }
#resources li:hover, #knowledge-base article:hover { background: rgba(255,107,53,0.07); border-color: #ff6b35; transform: translateY(-4px); }

/* ===== FAQ ===== */
#faq details { background: rgba(255,255,255,0.03); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-radius: 16px; margin-bottom: 0.8rem; padding: 0.8rem 1.2rem; border: 1px solid rgba(255,107,53,0.1); transition: all 0.3s; }
#faq details[open] { border-color: #ff6b35; background: rgba(255,107,53,0.05); }
#faq summary { font-weight: 600; cursor: pointer; color: #ff8c5a; padding: 0.5rem 0; transition: color 0.3s; }
#faq summary:hover { color: #ff6b35; }
#faq details p { padding-top: 0.5rem; color: #ccc; }

/* ===== How To & Guides ===== */
#howto ol { padding-left: 1.5rem; counter-reset: step; }
#howto li { counter-increment: step; margin-bottom: 1rem; padding: 0.8rem 1.2rem 0.8rem 2.5rem; background: rgba(255,255,255,0.03); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-radius: 16px; border-left: 4px solid #ff6b35; position: relative; transition: background 0.3s; }
#howto li::before { content: counter(step); position: absolute; left: 0.8rem; top: 0.8rem; font-weight: 800; color: #ff6b35; }
#howto li:hover { background: rgba(255,107,53,0.08); }

#guides article { background: rgba(255,255,255,0.03); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-radius: 20px; padding: 1.5rem; margin-bottom: 1.5rem; border: 1px solid rgba(255,107,53,0.1); transition: all 0.3s; }
#guides article:hover { border-color: #ff6b35; background: rgba(255,107,53,0.05); }
#guides ul { padding-left: 1.2rem; }
#guides li { margin-bottom: 0.5rem; list-style: disc; color: #ccc; }

/* ===== Contact ===== */
#contact address { background: rgba(255,255,255,0.03); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 24px; padding: 2rem; border: 1px solid rgba(255,107,53,0.1); }
#contact a { color: #ff8c5a; font-weight: 500; }
#contact a:hover { color: #ff6b35; }

/* ===== Footer ===== */
footer { background: rgba(15, 15, 26, 0.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid rgba(255,107,53,0.2); padding: 2rem 1.5rem; }
footer > div { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; }
footer p { color: #888; margin: 0; }
footer nav ul { display: flex; gap: 1.5rem; flex-wrap: wrap; }
footer nav ul li a { color: #aaa; font-size: 0.9rem; transition: color 0.3s; }
footer nav ul li a:hover { color: #ff6b35; }

/* ===== Dark Mode Toggle (via body class) ===== */
body.dark { background: #0a0a14; color: #d0d0d0; }
body.dark header { background: rgba(10,10,20,0.9); }
body.dark #hero { background: linear-gradient(135deg, #0d0d1a 0%, #111827 50%, #0a1a2e 100%); }
body.dark #about, body.dark #products article, body.dark #services li, body.dark #features li, body.dark #advantages li, body.dark #testimonials blockquote, body.dark #resources li, body.dark #knowledge-base article, body.dark #faq details, body.dark #howto li, body.dark #guides article, body.dark #contact address { background: rgba(255,255,255,0.02); border-color: rgba(255,107,53,0.08); }
body.dark footer { background: rgba(10,10,20,0.95); }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    nav ul { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background: rgba(15,15,26,0.98); backdrop-filter: blur(12px); padding: 1rem; border-bottom: 1px solid rgba(255,107,53,0.2); }
    nav ul.open { display: flex; }
    #mobile-menu-toggle { display: block; }
    #hero { flex-direction: column; text-align: center; margin: 1rem; padding: 2rem 1rem; }
    #hero p { max-width: 100%; }
    #hero a[role="button"] { width: 100%; margin: 0.5rem 0; }
    section { padding: 2.5rem 1rem; }
    h2 { font-size: 1.8rem; }
    #products article { flex: 1 1 100%; max-width: 100%; }
    #testimonials blockquote { flex: 1 1 100%; }
    footer > div { flex-direction: column; text-align: center; }
    footer nav ul { justify-content: center; }
}

@media (max-width: 480px) {
    html { font-size: 14px; }
    nav { padding: 0.5rem 1rem; }
    #hero { padding: 1.5rem 1rem; margin: 0.5rem; }
    #hero h1 { font-size: 1.8rem; }
    #hero p { font-size: 1rem; }
    section { padding: 2rem 0.8rem; }
}