:root {
    --primary: #3b82f6;
    --primary-dark: #1d4ed8;
    --accent: #06b6d4;
    --green: #10b981;
    --dark: #0a0a14;
    --glass: rgba(10, 10, 20, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
    --white: #ffffff;
    --gray: #94a3b8;
    --gold: #f59e0b;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Vazirmatn', sans-serif;
    background: var(--dark);
    color: var(--white);
    line-height: 1.9;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

#bg-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -1;
    pointer-events: none;
}
.floating-particles {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none; z-index: -1;
}
.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.10;
    animation: floatUp linear infinite;
}
@keyframes floatUp {
    0% { transform: translateY(105vh) scale(0); opacity: 0; }
    10% { opacity: 0.20; }
    90% { opacity: 0.04; }
    100% { transform: translateY(-10vh) scale(2); opacity: 0; }
}

.glass-header {
    position: fixed; top: 16px; left: 50%;
    transform: translateX(-50%);
    width: 92%; max-width: 1200px;
    background: var(--glass);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 12px 30px;
    display: flex; align-items: center; justify-content: space-between;
    z-index: 1000;
    transition: all 0.3s;
}
.logo-area { display: flex; align-items: center; gap: 14px; }
.logo-icon {
    width: 46px; height: 46px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    box-shadow: 0 8px 22px rgba(59,130,246,0.4);
}
.logo-text h1 {
    font-size: 18px; font-weight: 800;
    background: linear-gradient(135deg, #ffffff, #a5d8ff);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    margin: 0;
}
.logo-link { text-decoration: none; }
.logo-text span { font-size: 11px; color: #94a3b8; display: block; }
.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a { color: #cbd5e1; text-decoration: none; font-weight: 600; font-size: 14px; transition: 0.3s; }
.nav-links a:hover { color: var(--accent); }
.btn-glass {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff !important; padding: 10px 22px; border-radius: 30px;
    font-weight: 700; box-shadow: 0 6px 18px rgba(6,182,212,0.3);
    transition: all 0.3s;
}
.btn-glass:hover { box-shadow: 0 10px 30px rgba(6,182,212,0.55); transform: translateY(-2px); }
.menu-toggle { display: none; font-size: 26px; cursor: pointer; color: #fff; background: none; border: none; }

.hero-section {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 140px 20px 80px;
}
.hero-content { max-width: 850px; z-index: 2; }
.hero-badge {
    display: inline-block; border: 1px solid var(--accent); color: var(--accent);
    padding: 7px 20px; border-radius: 30px; font-size: 13px; margin: 6px;
    backdrop-filter: blur(10px); background: rgba(6,182,212,0.05);
}
.hero-title {
    font-size: 54px; font-weight: 900; line-height: 1.35; margin: 28px 0 24px;
    background: linear-gradient(180deg, #FFFFFF 0%, #93c5fd 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub { font-size: 18px; color: #b0bec5; margin-bottom: 36px; line-height: 2.1; max-width: 650px; margin-left: auto; margin-right: auto; }
.btn-hero {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff; padding: 17px 38px; border-radius: 50px;
    font-size: 17px; font-weight: 700; text-decoration: none;
    box-shadow: 0 12px 32px rgba(59,130,246,0.5); transition: all 0.4s;
    margin: 6px;
}
.btn-hero:hover { box-shadow: 0 16px 42px rgba(6,182,212,0.7); transform: translateY(-3px); }
.btn-outline-hero {
    display: inline-block; border: 2px solid var(--accent); color: var(--accent);
    padding: 15px 36px; border-radius: 50px; font-size: 17px; font-weight: 700;
    text-decoration: none; margin: 6px; transition: all 0.4s;
}
.btn-outline-hero:hover { background: rgba(6,182,212,0.1); }

section { padding: 90px 20px; scroll-margin-top: 100px; }
.container { max-width: 1150px; margin: auto; }
.section-header { text-align: center; margin-bottom: 65px; }
.section-header h2 {
    font-size: 38px; font-weight: 800;
    background: linear-gradient(135deg, #fff, #93c5fd);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    display: inline-block; margin-bottom: 14px;
}
.section-header p { color: #94a3b8; font-size: 17px; }

.glass-card {
    background: var(--glass); backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px); border: 1px solid var(--glass-border);
    border-radius: 30px; padding: 44px; transition: all 0.4s;
}
.glass-card:hover { border-color: rgba(6,182,212,0.22); box-shadow: 0 22px 55px rgba(0,0,0,0.5); }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 26px; }
.service-card {
    background: var(--glass); backdrop-filter: blur(14px);
    border: 1px solid var(--glass-border); border-radius: 26px;
    padding: 36px 28px; transition: all 0.35s; text-align: center;
}
.service-card:hover { transform: translateY(-10px); border-color: var(--accent); box-shadow: 0 18px 40px rgba(6,182,212,0.12); }
.service-icon {
    font-size: 42px; color: var(--accent); margin-bottom: 22px;
    display: inline-block; background: rgba(6,182,212,0.07);
    width: 85px; height: 85px; line-height: 85px; border-radius: 24px;
}
.service-card h3 { font-size: 21px; margin-bottom: 14px; font-weight: 700; }
.service-card h3 a { color: #fff; text-decoration: none; }
.service-card h3 a:hover { color: var(--accent); }
.service-card p { color: #b0bec5; font-size: 14.5px; line-height: 1.9; }

.product-highlight { display: grid; grid-template-columns: 1fr 1.3fr; gap: 34px; align-items: center; }
.product-visual {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-radius: 32px; height: 420px;
    display: flex; align-items: center; justify-content: center;
    font-size: 130px; position: relative; overflow: hidden;
    border: 1px solid var(--glass-border);
}
.product-visual::after {
    content: ''; position: absolute; width: 280px; height: 280px;
    border-radius: 50%; border: 2px dashed rgba(6,182,212,0.18);
    animation: rotateSlow 25s linear infinite;
}
@keyframes rotateSlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.badge { background: var(--green); color: #fff; padding: 6px 18px; border-radius: 30px; font-size: 13px; font-weight: 700; display: inline-block; margin-bottom: 14px; }
.product-content h3 { font-size: 32px; margin: 16px 0; font-weight: 800; }
.product-content p { color: #b0bec5; margin-bottom: 22px; line-height: 2; }
.product-features { list-style: none; margin: 22px 0; }
.product-features li { margin-bottom: 13px; display: flex; align-items: center; gap: 12px; color: #cbd5e1; font-size: 15px; }
.product-features i { color: var(--green); font-size: 19px; }

.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.why-item {
    background: var(--glass); border: 1px solid var(--glass-border);
    border-radius: 22px; padding: 30px; display: flex; align-items: center;
    gap: 16px; backdrop-filter: blur(12px); transition: all 0.3s;
}
.why-item:hover { border-color: var(--accent); }
.why-item i { color: var(--accent); font-size: 26px; }
.why-item p { font-weight: 600; }

.contact-form { max-width: 680px; margin: auto; display: grid; gap: 20px; }
.contact-form input, .contact-form textarea, .contact-form select {
    background: rgba(255,255,255,0.04); border: 1px solid var(--glass-border);
    border-radius: 16px; padding: 16px; color: #fff;
    font-family: inherit; font-size: 15px; transition: all 0.3s; outline: none; width: 100%;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(6,182,212,0.06); }
.btn-submit {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff; border: none; padding: 16px; border-radius: 16px;
    font-size: 17px; font-weight: 700; cursor: pointer; transition: all 0.3s; width: 100%;
}
.btn-submit:hover { box-shadow: 0 12px 32px rgba(6,182,212,0.5); }

footer { padding: 60px 20px 30px; background: rgba(0,0,0,0.5); }
footer a { color: var(--accent); text-decoration: none; }
footer a:hover { text-decoration: underline; }

@media(max-width:900px) {
    .hero-title { font-size: 34px; }
    .product-highlight { grid-template-columns: 1fr; }
    .product-visual { height: 260px; font-size: 90px; }
    .menu-toggle { display: block; }
    .nav-links {
        position: fixed; top: 90px; right: -100%;
        width: 100%; height: calc(100vh - 90px);
        background: rgba(10,10,20,0.96); backdrop-filter: blur(20px);
        flex-direction: column; align-items: center; justify-content: center;
        gap: 36px; transition: 0.3s;
    }
    .nav-links.active { right: 0; }
}
