:root {
    --primary: #2563EB;
    --primary-hover: #1D4ED8;
    --bg-light: #F8FAFC;
    --text-main: #0F172A;
    --text-muted: #64748B;
    --white: #FFFFFF;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px rgba(37, 99, 235, 0.08);
    --nav-glass: rgba(255, 255, 255, 0.85);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

[data-theme="dark"] {
    --primary: #3B82F6;
    --primary-hover: #60A5FA;
    --bg-light: #0B1120;
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --white: #1E293B;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4); 
    --nav-glass: rgba(15, 23, 42, 0.85);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
    transition: background-color 0.5s ease, color 0.5s ease;
}

h1, h2, h3, h4, .logo {
    font-family: 'Poppins', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

.text-center { text-align: center; }

/* Cursor Glow */
.cursor-glow {
    position: fixed;
    top: 0; left: 0;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(37,99,235,0.06) 0%, rgba(37,99,235,0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: opacity 0.5s ease;
    opacity: 0;
}
body:hover .cursor-glow {
    opacity: 1;
}

/* Background Shapes (Blur effect) */
.blob {
    position: absolute;
    filter: blur(80px);
    z-index: -1;
    border-radius: 50%;
    opacity: 0.5;
    animation: move 20s infinite alternate;
}

.shape1 {
    top: -10%; left: -10%;
    width: 600px; height: 600px;
    background: linear-gradient(135deg, rgba(37,99,235,0.4) 0%, rgba(139,92,246,0.3) 100%);
}

.shape2 {
    bottom: 20%; right: -20%;
    width: 500px; height: 500px;
    background: linear-gradient(135deg, rgba(139,92,246,0.3) 0%, rgba(37,99,235,0.4) 100%);
    animation-delay: -5s;
}

@keyframes move {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 150px) scale(1.2); }
}

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Buttons with Shimmer */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    gap: 8px;
    outline: none;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-primary, .btn-telegram {
    position: relative;
    overflow: hidden;
}

.btn-primary::after, .btn-telegram::after {
    content: '';
    position: absolute;
    top: 0; left: -150%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: skewX(-20deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -150%; }
    50% { left: 150%; }
    100% { left: 150%; }
}

.btn-primary {
    background: var(--primary);
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.btn-secondary {
    background: var(--white);
    color: var(--text-main);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.btn-telegram {
    background: linear-gradient(135deg, #0088cc 0%, #00aaff 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(0, 136, 204, 0.4);
    display: inline-flex;
}

.btn-telegram:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.5);
}

/* Header */
.header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    transition: var(--transition);
}

.header.scrolled {
    background: var(--nav-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 16px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.logo span {
    color: var(--primary);
}

.nav-list {
    display: flex;
    gap: 32px;
}

.nav-list li a {
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition);
}

.nav-list li a:hover {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-toggle {
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.1);
    color: var(--text-main);
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    outline: none;
}
.theme-toggle:hover {
    color: var(--primary);
    border-color: var(--primary);
}
[data-theme="dark"] .theme-toggle {
    border: 1px solid rgba(255,255,255,0.1);
}

.lang-select {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: var(--white);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
    outline: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}
[data-theme="dark"] .lang-select {
    border: 1px solid rgba(255,255,255,0.1);
}

.lang-select:hover {
    border-color: var(--primary);
}

.menu-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-main);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-main);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, #8B5CF6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 480px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

/* Mockup */
.hero-image {
    position: relative;
    perspective: 1000px;
}

.glass-mockup {
    width: 100%;
    height: 400px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    transform: rotateY(-10deg) rotateX(5deg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.1s ease-out;
}

.mockup-header {
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 8px;
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.red { background: #FF5F56; }
.yellow { background: #FFBD2E; }
.green { background: #27C93F; }

.mockup-body {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dashboard-chart {
    height: 120px;
    background: linear-gradient(135deg, rgba(37,99,235,0.1) 0%, rgba(139,92,246,0.1) 100%);
    border-radius: 12px;
    border: 1px dashed rgba(37,99,235,0.3);
    display: flex;
    align-items: flex-end;
    padding: 16px;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    width: 100%;
    height: 100%;
}

.bar {
    flex: 1;
    background: var(--primary);
    border-radius: 4px 4px 0 0;
    opacity: 0.8;
    transform-origin: bottom;
    animation: barGrow 1.5s ease-out forwards;
}

@keyframes barGrow {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}

.dashboard-stats {
    display: flex;
    gap: 16px;
    flex: 1;
}

.stat-card {
    flex: 1;
    background: var(--white);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.stat-icon {
    font-size: 2rem;
    color: var(--primary);
    background: rgba(37,99,235,0.1);
    padding: 8px;
    border-radius: 8px;
}

.stat-card h4 {
    font-size: 1.1rem;
    line-height: 1.2;
    color: var(--text-main);
}

.stat-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Scroll Down Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    animation: bounce 2s infinite;
    z-index: 10;
}
.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 20px;
    position: relative;
}
.wheel {
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 4px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}
@keyframes scrollWheel {
    0% { top: 6px; opacity: 1; }
    100% { top: 20px; opacity: 0; }
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-10px) translateX(-50%); }
    60% { transform: translateY(-5px) translateX(-50%); }
}

/* Sections General */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
    max-width: 600px;
    margin-inline: auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Services Bento Grid */
.bento-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(220px, auto);
    gap: 32px;
}

.service-card {
    padding: 0;
    text-align: left;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.service-content {
    padding: 32px;
    flex: 1;
}

/* Bento Wide (Takes 2 cols) */
.bento-wide {
    grid-column: span 2;
    flex-direction: row;
}

.bento-wide .service-image {
    width: 50%;
    height: 100%;
}

.bento-wide .service-image img {
    height: 100%;
    object-fit: cover;
}

.bento-wide .service-content {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Bento Tall (Takes 2 rows) */
.bento-tall {
    grid-row: span 2;
}

.bento-tall .service-image {
    height: 300px;
}

/* Standard Services image */
.service-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.12);
}

.service-icon {
    width: 48px;
    height: 48px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 0;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: #FFFFFF;
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.service-title {
    font-size: 1.25rem;
    margin-bottom: 0;
}

.service-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Advantages */
.advantages-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.illustration-container {
    width: 100%;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: 450px;
    margin: 0 auto;
}

.pb-cluster {
    position: relative;
}

.circle-pulse {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(37,99,235,0.15) 0%, rgba(37,99,235,0) 70%);
    border-radius: 50%;
    animation: pulse 3s infinite;
}

.glass-icon {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--nav-glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.1);
    color: var(--primary);
    transition: transform 0.3s ease;
}

.glass-icon:hover {
    transform: translateY(-5px) scale(1.05);
}

.center-main {
    width: 140px; height: 140px;
    font-size: 5rem;
    z-index: 3;
}

.top-left {
    top: 15%; left: 10%;
    width: 100px; height: 100px;
    font-size: 3rem;
    z-index: 2;
    animation: float 4s ease-in-out infinite;
}

.bottom-right {
    bottom: 15%; right: 10%;
    width: 110px; height: 110px;
    font-size: 3.5rem;
    z-index: 4;
    animation: float 5s ease-in-out infinite reverse;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(0.95); opacity: 0.5; }
}

.adv-list {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.adv-list li {
    display: flex;
    gap: 20px;
}

.adv-icon {
    flex-shrink: 0;
    width: 48px; height: 48px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
}

.adv-text h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.adv-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* CTA */
.cta {
    padding-bottom: 120px;
}

.cta-box {
    padding: 64px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
    border-radius: 24px;
}

.cta-title {
    font-size: 3rem;
    margin-bottom: 16px;
    color: var(--text-main);
}

.cta-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 500px;
    margin-inline: auto;
}

/* Footer */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--glass-border);
}

.footer-contacts {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 24px;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-main);
    font-weight: 500;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--primary);
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container, .advantages-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title { font-size: 3.5rem; }
    .hero-subtitle { margin: 0 auto 32px; }
    .hero-buttons { justify-content: center; }
    .hero-image, .adv-image { order: -1; }
    .hero { padding-top: 140px; }
    .adv-list li { text-align: left; }
    
    .bento-layout {
        grid-template-columns: 1fr;
    }
    .bento-wide, .bento-tall {
        grid-column: span 1;
        grid-row: span 1;
    }
    .bento-wide {
        flex-direction: column;
    }
    .bento-wide .service-image {
        width: 100%;
        height: 200px;
        border-radius: 24px 24px 0 0;
    }
    .bento-wide .service-content {
        width: 100%;
    }
    .bento-tall .service-image {
        height: 200px;
    }
    .glass-mockup {
        height: auto;
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none; position: absolute;
        top: 100%; left: 0; width: 100%;
        background: var(--nav-glass);
        backdrop-filter: blur(12px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        padding: 24px;
    }
    .nav.active {
        display: block;
        animation: fadeIn 0.3s ease forwards;
    }
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    .nav-list { flex-direction: column; align-items: center; }
    .menu-toggle { display: block; }
    .nav-btn { display: none; }
    .hero-title { font-size: 2.5rem; }
    .cta-box { padding: 40px 24px; }
    .cta-title { font-size: 2rem; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .btn { width: 100%; }
    .footer-contacts { flex-direction: column; gap: 16px; }
    .dashboard-stats { flex-direction: column; }
    .mockup-body { padding: 16px; }
    .glass-mockup { transform: rotateY(0deg) rotateX(0deg); padding-bottom: 16px; }
    .cursor-glow { display: none; }
}

@media (max-width: 480px) {
    .header-actions { gap: 8px; }
    .theme-toggle, .lang-select { height: 36px; padding: 0 8px; }
    .theme-toggle { width: 36px; font-size: 1rem; justify-content: center; }
    .logo { font-size: 1.2rem; }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    .dashboard-chart { display: none; }
}
