/* 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, 'Noto Sans SC', sans-serif; line-height: 1.6; color: #1a1a2e; background-color: #ffffff; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img, svg { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; outline: none; border: none; background: none; }
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f0f0f5; }
::-webkit-scrollbar-thumb { background: #e94560; border-radius: 4px; }

/* Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInLeft { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
@keyframes float { 0% { transform: translateY(0); } 50% { transform: translateY(-8px); } 100% { transform: translateY(0); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(233, 69, 96, 0.5); } 70% { box-shadow: 0 0 0 15px rgba(233, 69, 96, 0); } 100% { box-shadow: 0 0 0 0 rgba(233, 69, 96, 0); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes gradientShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

/* Scroll-triggered animation classes (use IntersectionObserver via JS or CSS-only with prefers-reduced-motion) */
.animate-on-scroll { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .animate-on-scroll { opacity: 1; transform: none; transition: none; } }

/* Header / Navigation */
header[role="banner"] nav { position: sticky; top: 0; background: rgba(26, 26, 46, 0.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); padding: 0.8rem 2rem; display: flex; justify-content: space-between; align-items: center; z-index: 1000; border-bottom: 1px solid rgba(255,255,255,0.05); transition: background 0.3s ease; }
header[role="banner"] nav .logo-area { display: flex; align-items: center; gap: 0.75rem; }
header[role="banner"] nav .logo-area svg { transition: transform 0.3s ease; }
header[role="banner"] nav .logo-area svg:hover { transform: rotate(-5deg) scale(1.05); }
header[role="banner"] nav .logo-area span { font-size: 1.5rem; font-weight: 700; color: #ffffff; letter-spacing: 0.5px; }
header[role="banner"] nav ul { display: flex; gap: 2rem; font-weight: 500; }
header[role="banner"] nav ul li a { color: #d0d0e0; text-decoration: none; transition: color 0.3s ease, transform 0.2s ease; position: relative; padding: 0.25rem 0; }
header[role="banner"] nav ul li a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: #e94560; transition: width 0.3s ease; }
header[role="banner"] nav ul li a:hover { color: #ffffff; }
header[role="banner"] nav ul li a:hover::after { width: 100%; }
header[role="banner"] nav .action-buttons { display: flex; gap: 0.8rem; }
header[role="banner"] nav .action-buttons button { background: transparent; border: 1px solid rgba(255,255,255,0.2); color: #ffffff; padding: 0.4rem 1.2rem; border-radius: 24px; font-size: 0.9rem; transition: all 0.3s ease; }
header[role="banner"] nav .action-buttons button:hover { background: rgba(233, 69, 96, 0.2); border-color: #e94560; transform: scale(1.02); }

/* Hero Section */
#hero { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 70%, #1a1a2e 100%); background-size: 200% 200%; animation: gradientShift 8s ease infinite; padding: 5rem 2rem 7rem; text-align: center; color: #ffffff; 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(233, 69, 96, 0.08) 0%, transparent 60%), radial-gradient(circle at 70% 60%, rgba(15, 52, 96, 0.15) 0%, transparent 50%); pointer-events: none; }
#hero > div { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; animation: fadeInUp 0.8s ease-out; }
#hero h1 { font-size: 3.5rem; font-weight: 800; margin-bottom: 1rem; line-height: 1.2; text-shadow: 0 2px 20px rgba(0,0,0,0.3); }
#hero h1 span { color: #e94560; background: linear-gradient(135deg, #e94560, #ff6b6b); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
#hero p { font-size: 1.25rem; color: #b0b0c8; margin-bottom: 2rem; max-width: 700px; margin-left: auto; margin-right: auto; }
#hero .cta-buttons { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
#hero .cta-buttons a { padding: 0.9rem 2.5rem; border-radius: 50px; font-weight: 600; font-size: 1.05rem; transition: all 0.3s ease; display: inline-block; }
#hero .cta-buttons a:first-child { background: #e94560; color: #ffffff; box-shadow: 0 4px 20px rgba(233, 69, 96, 0.4); }
#hero .cta-buttons a:first-child:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 8px 30px rgba(233, 69, 96, 0.5); animation: pulse 1.5s infinite; }
#hero .cta-buttons a:last-child { background: transparent; border: 2px solid #e94560; color: #e94560; }
#hero .cta-buttons a:last-child:hover { background: rgba(233, 69, 96, 0.1); transform: translateY(-3px); }
#hero .stats { margin-top: 3rem; display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; }
#hero .stats div { animation: fadeInUp 0.8s ease-out 0.3s both; }
#hero .stats div span:first-child { font-size: 2rem; font-weight: 700; color: #e94560; display: block; }
#hero .stats div span:last-child { font-size: 1rem; color: #b0b0c8; }

/* Section defaults */
section { padding: 5rem 2rem; }
section h2 { font-size: 2.2rem; font-weight: 700; color: #1a1a2e; text-align: center; margin-bottom: 1rem; }
section > div > p:first-of-type { text-align: center; color: #555; max-width: 800px; margin: 0 auto 2.5rem; font-size: 1.1rem; }

/* About Section */
#about { background: #f5f5fa; }
#about .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
#about article { background: #ffffff; border-radius: 16px; padding: 2rem; box-shadow: 0 4px 24px rgba(0,0,0,0.06); transition: all 0.3s ease; animation: fadeInUp 0.6s ease-out both; }
#about article:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,0.1); }
#about article:nth-child(1) { animation-delay: 0.1s; }
#about article:nth-child(2) { animation-delay: 0.2s; }
#about article:nth-child(3) { animation-delay: 0.3s; }
#about article h3 { color: #e94560; font-size: 1.4rem; margin-bottom: 0.5rem; }
#about article p { color: #444; }

/* Products Section */
#products { background: #ffffff; }
#products .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
#products .product-card { background: #f9f9fc; border-radius: 16px; padding: 2rem; text-align: center; transition: all 0.3s ease; animation: fadeInUp 0.6s ease-out both; border: 1px solid transparent; }
#products .product-card:hover { transform: translateY(-8px); box-shadow: 0 16px 48px rgba(0,0,0,0.08); border-color: rgba(233, 69, 96, 0.2); background: #ffffff; }
#products .product-card svg { margin: 0 auto; transition: transform 0.3s ease; }
#products .product-card:hover svg { transform: scale(1.1) rotate(3deg); }
#products .product-card h3 { color: #1a1a2e; font-size: 1.3rem; margin: 1rem 0 0.5rem; }
#products .product-card p { color: #555; }

/* Services Section */
#services { background: #f5f5fa; }
#services .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }
#services .service-card { background: #ffffff; border-radius: 16px; padding: 1.5rem; box-shadow: 0 2px 16px rgba(0,0,0,0.04); transition: all 0.3s ease; animation: fadeInUp 0.6s ease-out both; }
#services .service-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,0.08); }
#services .service-card h3 { color: #e94560; font-size: 1.2rem; margin-bottom: 0.5rem; }
#services .service-card p { color: #555; }

/* Advantages Section */
#advantages { background: #ffffff; }
#advantages .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
#advantages article { border-left: 4px solid #e94560; padding-left: 1.5rem; transition: all 0.3s ease; animation: fadeInLeft 0.6s ease-out both; }
#advantages article:hover { border-left-color: #ff6b6b; transform: translateX(4px); }
#advantages article h3 { font-size: 1.3rem; color: #1a1a2e; margin-bottom: 0.3rem; }
#advantages article p { color: #555; }

/* Testimonials Section */
#testimonials { background: #f5f5fa; }
#testimonials .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
#testimonials blockquote { background: #ffffff; border-radius: 16px; padding: 2rem; box-shadow: 0 2px 16px rgba(0,0,0,0.04); font-style: italic; transition: all 0.3s ease; animation: scaleIn 0.6s ease-out both; position: relative; }
#testimonials blockquote::before { content: '"'; font-size: 3rem; color: #e94560; position: absolute; top: 0.5rem; left: 1rem; opacity: 0.15; font-family: Georgia, serif; }
#testimonials blockquote:hover { transform: scale(1.02); box-shadow: 0 8px 32px rgba(0,0,0,0.08); }
#testimonials blockquote p { color: #555; }

/* Insights Section */
#insights { background: #ffffff; }
#insights .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
#insights article { background: #f9f9fc; border-radius: 16px; padding: 1.5rem; transition: all 0.3s ease; animation: fadeInUp 0.6s ease-out both; }
#insights article:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,0.06); background: #ffffff; }
#insights article h3 { color: #e94560; font-size: 1.2rem; margin-bottom: 0.5rem; }
#insights article p { color: #555; }
#insights article time { color: #999; font-size: 0.9rem; display: block; margin-top: 0.5rem; }

/* FAQ Section */
#faq { background: #f5f5fa; }
#faq details { background: #ffffff; border-radius: 12px; padding: 1rem 1.5rem; box-shadow: 0 2px 12px rgba(0,0,0,0.04); transition: all 0.3s ease; margin-bottom: 0.8rem; animation: fadeInUp 0.5s ease-out both; }
#faq details:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); transform: translateY(-2px); }
#faq details[open] { box-shadow: 0 4px 24px rgba(0,0,0,0.08); }
#faq details summary { font-weight: 600; color: #1a1a2e; cursor: pointer; padding: 0.3rem 0; transition: color 0.3s ease; display: flex; justify-content: space-between; align-items: center; }
#faq details summary::after { content: '+'; font-size: 1.2rem; color: #e94560; transition: transform 0.3s ease; }
#faq details[open] summary::after { content: '−'; transform: rotate(180deg); }
#faq details summary:hover { color: #e94560; }
#faq details p { color: #555; margin-top: 0.8rem; padding-top: 0.8rem; border-top: 1px solid #eee; }

/* HowTo Section */
#howto { background: #ffffff; }
#howto ol { list-style: none; counter-reset: step; padding: 0; max-width: 600px; margin: 0 auto; }
#howto ol li { counter-increment: step; margin-bottom: 1.5rem; padding-left: 3.5rem; position: relative; animation: fadeInRight 0.5s ease-out both; }
#howto ol li .step-number { position: absolute; left: 0; top: 0; background: #e94560; color: #ffffff; width: 2.2rem; height: 2.2rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.95rem; transition: transform 0.3s ease; }
#howto ol li:hover .step-number { transform: scale(1.1); }
#howto ol li h3 { color: #1a1a2e; font-size: 1.2rem; margin: 0 0 0.2rem; }
#howto ol li p { color: #555; }

/* Contact Section */
#contact { background: #1a1a2e; color: #ffffff; }
#contact h2 { color: #ffffff; }
#contact p { color: #b0b0c8; margin-bottom: 2rem; }
#contact .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
#contact .grid div { padding: 1rem; background: rgba(255,255,255,0.04); border-radius: 12px; backdrop-filter: blur(6px); transition: all 0.3s ease; }
#contact .grid div:hover { background: rgba(255,255,255,0.08); transform: translateY(-2px); }
#contact .grid div span:first-child { font-weight: 600; display: block; margin-bottom: 0.3rem; color: #e94560; }

/* Footer */
footer[role="contentinfo"] { background: #0f0f1a; color: #a0a0b0; padding: 2rem; text-align: center; }
footer[role="contentinfo"] > div { max-width: 1100px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; }
footer[role="contentinfo"] a { color: #a0a0b0; text-decoration: none; transition: color 0.3s ease; position: relative; }
footer[role="contentinfo"] a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 1px; background: #e94560; transition: width 0.3s ease; }
footer[role="contentinfo"] a:hover { color: #ffffff; }
footer[role="contentinfo"] a:hover::after { width: 100%; }
footer[role="contentinfo"] p { margin: 0; }

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    body { background-color: #12121a; color: #e0e0e8; }
    section { background-color: #1a1a2e; }
    #about, #services, #testimonials, #faq { background: #16162a; }
    #products, #advantages, #insights, #howto { background: #1a1a2e; }
    section h2 { color: #f0f0f8; }
    section > div > p:first-of-type { color: #b0b0c8; }
    #about article, #services .service-card, #testimonials blockquote, #faq details, #contact .grid div { background: #22223a; box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
    #about article p, #services .service-card p, #testimonials blockquote p, #faq details p, #howto ol li p, #insights article p { color: #c0c0d0; }
    #products .product-card { background: #22223a; }
    #products .product-card p { color: #c0c0d0; }
    #products .product-card:hover { background: #2a2a44; }
    #insights article { background: #22223a; }
    #insights article:hover { background: #2a2a44; }
    #insights article time { color: #888; }
    #howto ol li h3 { color: #f0f0f8; }
    #advantages article p { color: #c0c0d0; }
    #advantages article h3 { color: #f0f0f8; }
    #faq details summary { color: #f0f0f8; }
    #faq details p { border-top-color: #333; }
    #contact { background: #0f0f1a; }
    #contact h2 { color: #ffffff; }
    footer[role="contentinfo"] { background: #0a0a14; }
    header[role="banner"] nav { background: rgba(15, 15, 26, 0.92); }
    header[role="banner"] nav ul li a { color: #b0b0c8; }
    header[role="banner"] nav ul li a:hover { color: #ffffff; }
}

/* Responsive */
@media (max-width: 1024px) {
    header[role="banner"] nav { padding: 0.8rem 1.5rem; }
    header[role="banner"] nav ul { gap: 1.2rem; }
    #hero h1 { font-size: 2.8rem; }
}

@media (max-width: 768px) {
    html { font-size: 15px; }
    header[role="banner"] nav { flex-wrap: wrap; gap: 0.8rem; padding: 0.8rem 1rem; }
    header[role="banner"] nav ul { order: 3; width: 100%; justify-content: center; gap: 1rem; flex-wrap: wrap; padding-top: 0.5rem; border-top: 1px solid rgba(255,255,255,0.05); }
    header[role="banner"] nav ul li a { font-size: 0.9rem; }
    header[role="banner"] nav .action-buttons { gap: 0.5rem; }
    header[role="banner"] nav .action-buttons button { padding: 0.3rem 0.8rem; font-size: 0.8rem; }
    #hero { padding: 3rem 1.5rem 5rem; }
    #hero h1 { font-size: 2.2rem; }
    #hero p { font-size: 1.05rem; }
    #hero .stats { gap: 1.5rem; }
    #hero .stats div span:first-child { font-size: 1.6rem; }
    section { padding: 3rem 1.5rem; }
    section h2 { font-size: 1.8rem; }
    #about .grid, #products .grid, #services .grid, #advantages .grid, #testimonials .grid, #insights .grid { grid-template-columns: 1fr; }
    #contact .grid { grid-template-columns: 1fr; }
    footer[role="contentinfo"] > div { flex-direction: column; text-align: center; }
    footer[role="contentinfo"] > div div { justify-content: center; flex-wrap: wrap; gap: 1rem; }
    #howto ol li { padding-left: 3rem; }
}

@media (max-width: 480px) {
    #hero h1 { font-size: 1.8rem; }
    #hero .cta-buttons a { padding: 0.7rem 1.8rem; font-size: 0.95rem; }
    header[role="banner"] nav .logo-area span { font-size: 1.2rem; }
    header[role="banner"] nav ul { gap: 0.6rem; }
    header[role="banner"] nav ul li a { font-size: 0.8rem; }
}

/* Utility for smooth transitions */
* { transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease; }