/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans SC', sans-serif;
    background: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}
body.dark { background: #0f172a; color: #e2e8f0; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Glassmorphism */
.glass {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}
body.dark .glass {
    background: rgba(15,23,42,0.6);
    border-color: rgba(255,255,255,0.08);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #0f172a;
    box-shadow: 0 4px 15px rgba(245,158,11,0.3);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(245,158,11,0.4); }
.btn-outline {
    background: transparent;
    border: 2px solid #f59e0b;
    color: #f59e0b;
    box-shadow: none;
}
.btn-outline:hover { background: #f59e0b; color: #0f172a; }

/* Section titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}
.section-title span { color: #f59e0b; }
.section-sub {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: #64748b;
    font-size: 1.1rem;
}
body.dark .section-sub { color: #94a3b8; }

/* Header / Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 12px 0;
    transition: background 0.3s, box-shadow 0.3s;
}
header.scrolled {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
body.dark header.scrolled {
    background: rgba(15,23,42,0.85);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: #f59e0b;
    letter-spacing: -0.03em;
}
.logo small { font-size: 0.7rem; color: #64748b; font-weight: 400; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #f59e0b;
    transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: #f59e0b; }
.dark-toggle {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 30px;
    transition: background 0.2s;
    color: inherit;
}
.dark-toggle:hover { background: rgba(245,158,11,0.15); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { width: 28px; height: 3px; background: #1e293b; border-radius: 6px; transition: 0.3s; }
body.dark .hamburger span { background: #e2e8f0; }

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    color: #fff;
}
.hero .bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245,158,11,0.15), transparent 70%);
    top: -100px;
    right: -100px;
    pointer-events: none;
}
.hero .bg-glow2 {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99,102,241,0.1), transparent 70%);
    bottom: -80px;
    left: -80px;
    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}
.hero h1 {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}
.hero h1 span { color: #f59e0b; }
.hero p {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 2.5rem;
    max-width: 560px;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

/* Banner Carousel */
.banner-carousel {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}
.banner-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 20px;
    background: linear-gradient(135deg, #0f172a, #1e293b);
}
.banner-slide.active { opacity: 1; }
.banner-slide h2 { font-size: 3.5rem; color: #fff; font-weight: 800; margin-bottom: 1rem; }
.banner-slide p { color: #94a3b8; font-size: 1.2rem; max-width: 600px; text-align: center; }
.banner-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 5;
}
.banner-dots button {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #f59e0b;
    background: transparent;
    cursor: pointer;
    transition: 0.3s;
}
.banner-dots button.active { background: #f59e0b; }

/* About / Intro */
.about { padding: 100px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 1.5rem; }
.about-text p { color: #475569; margin-bottom: 1.2rem; }
body.dark .about-text p { color: #cbd5e1; }
.about-stats { display: flex; gap: 40px; margin-top: 30px; }
.stat-item { text-align: center; }
.stat-number { font-size: 2.8rem; font-weight: 900; color: #f59e0b; }
.stat-label { font-size: 0.9rem; color: #64748b; }

/* Products */
.products { padding: 100px 0; background: #f1f5f9; }
body.dark .products { background: #1e293b; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.product-card {
    background: #fff;
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.02);
}
body.dark .product-card { background: #0f172a; border-color: rgba(255,255,255,0.05); }
.product-card:hover { transform: translateY(-12px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); }
.product-card .icon { font-size: 3rem; margin-bottom: 1rem; }
.product-card h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.8rem; }
.product-card p { color: #64748b; font-size: 0.95rem; }

/* Solutions */
.solutions { padding: 100px 0; }
.solution-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.solution-item {
    background: #fff;
    border-radius: 20px;
    padding: 35px;
    transition: 0.3s;
    border-left: 4px solid #f59e0b;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
body.dark .solution-item { background: #1e293b; }
.solution-item h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.8rem; }
.solution-item p { color: #64748b; }

/* Services */
.services { padding: 100px 0; background: #f1f5f9; }
body.dark .services { background: #1e293b; }
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; }
.service-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    transition: 0.3s;
}
body.dark .service-card { background: #0f172a; }
.service-card:hover { transform: scale(1.03); }
.service-card .num { font-size: 2.5rem; font-weight: 900; color: #f59e0b; }
.service-card h4 { margin: 10px 0 8px; font-weight: 600; }

/* Partners */
.partners { padding: 80px 0; }
.partner-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; align-items: center; }
.partner-logos span { font-size: 1.8rem; font-weight: 700; color: #94a3b8; opacity: 0.5; transition: 0.3s; }
.partner-logos span:hover { opacity: 1; color: #f59e0b; }

/* Cases */
.cases { padding: 100px 0; background: #f1f5f9; }
body.dark .cases { background: #1e293b; }
.case-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.case-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
body.dark .case-card { background: #0f172a; }
.case-card:hover { transform: translateY(-8px); }
.case-card .case-img { height: 200px; background: linear-gradient(135deg, #1e293b, #0f172a); display: flex; align-items: center; justify-content: center; color: #f59e0b; font-size: 2rem; }
.case-card .case-body { padding: 25px; }
.case-card h3 { font-weight: 700; margin-bottom: 8px; }
.case-card p { color: #64748b; font-size: 0.9rem; }

/* Testimonials */
.testimonials { padding: 100px 0; }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.testimonial-card {
    background: #fff;
    border-radius: 24px;
    padding: 35px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
body.dark .testimonial-card { background: #1e293b; }
.testimonial-card .quote { font-style: italic; color: #475569; margin-bottom: 20px; }
body.dark .testimonial-card .quote { color: #cbd5e1; }
.testimonial-card .author { font-weight: 600; }
.testimonial-card .role { font-size: 0.85rem; color: #94a3b8; }

/* FAQ */
.faq { padding: 100px 0; background: #f1f5f9; }
body.dark .faq { background: #1e293b; }
.faq-item {
    background: #fff;
    border-radius: 16px;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}
body.dark .faq-item { background: #0f172a; }
.faq-question {
    padding: 20px 25px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.2s;
}
.faq-question:hover { background: rgba(245,158,11,0.05); }
.faq-question .arrow { transition: 0.3s; font-size: 1.2rem; }
.faq-question.open .arrow { transform: rotate(180deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s;
    padding: 0 25px;
    color: #475569;
}
body.dark .faq-answer { color: #cbd5e1; }
.faq-answer.open { max-height: 300px; padding: 0 25px 20px; }

/* HowTo */
.howto { padding: 100px 0; }
.howto-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; counter-reset: step; }
.howto-step {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
body.dark .howto-step { background: #1e293b; }
.howto-step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #f59e0b;
    color: #0f172a;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
}
.howto-step h4 { margin: 15px 0 8px; font-weight: 700; }
.howto-step p { color: #64748b; font-size: 0.9rem; }

/* News */
.news { padding: 100px 0; background: #f1f5f9; }
body.dark .news { background: #1e293b; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.news-card {
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    transition: 0.3s;
}
body.dark .news-card { background: #0f172a; }
.news-card .date { font-size: 0.85rem; color: #94a3b8; margin-bottom: 8px; }
.news-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.news-card p { color: #64748b; font-size: 0.9rem; }

/* Contact */
.contact { padding: 100px 0; }
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-info h3 { font-size: 1.8rem; font-weight: 800; margin-bottom: 1rem; }
.contact-info p { color: #475569; margin-bottom: 0.8rem; }
body.dark .contact-info p { color: #cbd5e1; }
.contact-info .item { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.contact-info .item strong { min-width: 80px; }
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
    margin-bottom: 16px;
    font-size: 1rem;
    transition: 0.3s;
}
body.dark .contact-form input, body.dark .contact-form textarea { background: #1e293b; border-color: #334155; color: #e2e8f0; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,0.2); }
.contact-form textarea { min-height: 120px; resize: vertical; }

/* Footer */
footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 60px 0 30px;
}
footer .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
footer h4 { color: #f1f5f9; font-weight: 700; margin-bottom: 1rem; font-size: 1.1rem; }
footer a { display: block; margin-bottom: 8px; transition: color 0.2s; font-size: 0.9rem; }
footer a:hover { color: #f59e0b; }
footer .copyright { margin-top: 40px; padding-top: 20px; border-top: 1px solid #1e293b; text-align: center; font-size: 0.85rem; }
footer .copyright .links { display: flex; justify-content: center; gap: 20px; margin-bottom: 10px; flex-wrap: wrap; }

/* Back to top */
.back-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #f59e0b;
    color: #0f172a;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(245,158,11,0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}
.back-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { transform: translateY(-4px); }

/* Search */
.search-wrap { position: relative; }
.search-input {
    padding: 8px 16px;
    border-radius: 30px;
    border: 1px solid #e2e8f0;
    background: rgba(255,255,255,0.1);
    color: inherit;
    font-size: 0.9rem;
    width: 180px;
    transition: 0.3s;
}
.search-input:focus { outline: none; border-color: #f59e0b; width: 220px; }
body.dark .search-input { border-color: #334155; }

/* Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; flex-direction: column; position: absolute; top: 70px; left: 20px; right: 20px; background: rgba(255,255,255,0.95); backdrop-filter: blur(20px); border-radius: 20px; padding: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
    body.dark .nav-links { background: rgba(15,23,42,0.95); }
    .nav-links.open { display: flex; }
    .hamburger { display: flex; }
    .hero h1 { font-size: 2.5rem; }
    .about-grid { grid-template-columns: 1fr; }
    .contact-wrap { grid-template-columns: 1fr; }
    .section-title { font-size: 2rem; }
    .banner-slide h2 { font-size: 2.2rem; }
    .search-input { width: 120px; }
}
@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }
    .btn { padding: 12px 24px; font-size: 0.9rem; }
}

/* Animation classes */
.fade-up { opacity: 0; transform: translateY(40px); transition: all 0.7s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-in { opacity: 0; transition: opacity 0.7s ease; }
.fade-in.visible { opacity: 1; }