/*
 * Smart AI Service — Premium Design System
 * Inspired by insightai.ru + neuro-core.ru aesthetic
 * Dark/Light theme, glassmorphism, animations
 */

/* ==========================================
   CSS VARIABLES — DARK/LIGHT THEMES
   ========================================== */
:root,
[data-theme="dark"] {
    /* Backgrounds */
    --bg-primary: #08080f;
    --bg-secondary: #0e0e1a;
    --bg-tertiary: #141425;
    --bg-card: rgba(20, 20, 42, 0.7);
    --bg-card-hover: rgba(30, 30, 60, 0.85);
    --bg-glass: rgba(255, 255, 255, 0.04);
    --bg-glass-border: rgba(255, 255, 255, 0.08);

    /* Text */
    --text-primary: #f0f0f8;
    --text-secondary: #a0a0c0;
    --text-muted: #6a6a8a;
    --text-inverse: #08080f;

    /* Accents */
    --accent-primary: #8b5cf6;
    --accent-primary-rgb: 139, 92, 246;
    --accent-secondary: #06b6d4;
    --accent-tertiary: #e040fb;
    --accent-gradient: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 50%, #e040fb 100%);
    --accent-gradient-btn: linear-gradient(135deg, #8b5cf6, #a855f7, #e040fb);
    --accent-glow: 0 0 30px rgba(139, 92, 246, 0.3);
    --accent-glow-strong: 0 0 60px rgba(139, 92, 246, 0.4), 0 0 120px rgba(139, 92, 246, 0.2);

    /* Cards */
    --card-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    --card-shadow-hover: 0 8px 50px rgba(139, 92, 246, 0.2);
    --card-border: 1px solid rgba(255, 255, 255, 0.06);

    /* Header */
    --header-bg: rgba(8, 8, 15, 0.8);
    --header-border: rgba(255, 255, 255, 0.05);

    /* Misc */
    --divider: rgba(255, 255, 255, 0.06);
    --stat-bg: rgba(139, 92, 246, 0.08);
    --stat-border: rgba(139, 92, 246, 0.2);
    --input-bg: rgba(255, 255, 255, 0.05);
    --input-border: rgba(255, 255, 255, 0.1);
    --input-focus: rgba(139, 92, 246, 0.5);
    --orbit-line: rgba(139, 92, 246, 0.2);
}

[data-theme="light"] {
    --bg-primary: #f8f9fc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f0f1f7;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-card-hover: rgba(255, 255, 255, 1);
    --bg-glass: rgba(255, 255, 255, 0.7);
    --bg-glass-border: rgba(0, 0, 0, 0.08);

    --text-primary: #1a1a2e;
    --text-secondary: #4a4a6a;
    --text-muted: #8a8aaa;
    --text-inverse: #ffffff;

    --accent-primary: #7c3aed;
    --accent-primary-rgb: 124, 58, 237;
    --accent-secondary: #0891b2;
    --accent-tertiary: #c026d3;
    --accent-gradient: linear-gradient(135deg, #7c3aed 0%, #0891b2 50%, #c026d3 100%);
    --accent-gradient-btn: linear-gradient(135deg, #7c3aed, #9333ea, #c026d3);
    --accent-glow: 0 4px 20px rgba(124, 58, 237, 0.15);
    --accent-glow-strong: 0 4px 40px rgba(124, 58, 237, 0.2);

    --card-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    --card-shadow-hover: 0 8px 40px rgba(124, 58, 237, 0.12);
    --card-border: 1px solid rgba(0, 0, 0, 0.06);

    --header-bg: rgba(248, 249, 252, 0.9);
    --header-border: rgba(0, 0, 0, 0.06);

    --divider: rgba(0, 0, 0, 0.06);
    --stat-bg: rgba(124, 58, 237, 0.06);
    --stat-border: rgba(124, 58, 237, 0.15);
    --input-bg: rgba(0, 0, 0, 0.03);
    --input-border: rgba(0, 0, 0, 0.1);
    --input-focus: rgba(124, 58, 237, 0.4);
    --orbit-line: rgba(124, 58, 237, 0.15);
}

/* ==========================================
   RESET & BASE
   ========================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.4s ease, color 0.4s ease;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-tertiary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
}

h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
}

h4 {
    font-size: 1.15rem;
}

p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 3.5rem;
}

/* ==========================================
   LAYOUT
   ========================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
    position: relative;
}

.section-alt {
    background: var(--bg-secondary);
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--header-border);
    transition: all 0.3s ease;
}

.header-scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.logo-icon {
    width: 38px;
    height: 38px;
    background: var(--accent-gradient-btn);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    box-shadow: var(--accent-glow);
}

.nav-desktop {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-desktop a {
    color: var(--text-secondary);
    font-size: 0.92rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-desktop a:hover {
    color: var(--text-primary);
}

.nav-desktop a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient-btn);
    border-radius: 1px;
    transition: width 0.3s ease;
}

.nav-desktop a:hover::after {
    width: 100%;
}

/* Dropdown Navigation */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.nav-dropdown-trigger::after {
    display: none !important;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 280px;
    background: var(--bg-secondary);
    border: 1px solid var(--bg-glass-border);
    border-radius: 16px;
    padding: 0.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    margin-top: 1rem;
}

.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    color: var(--text-secondary) !important;
    transition: all 0.2s ease !important;
}

.nav-dropdown-item::after {
    display: none !important;
}

.nav-dropdown-item:hover {
    background: var(--bg-glass);
    color: var(--text-primary) !important;
}

.nav-dropdown-arrow {
    margin-left: auto;
    font-size: 0.7rem;
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.2s ease;
}

.nav-dropdown-item:hover .nav-dropdown-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Page hero (for inner pages) */
.page-hero {
    padding-top: calc(72px + 4rem);
    padding-bottom: 3rem;
    position: relative;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 30%, rgba(var(--accent-primary-rgb), 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(6, 182, 212, 0.06) 0%, transparent 40%);
    pointer-events: none;
}

.page-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.page-hero .breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.page-hero .breadcrumb a {
    color: var(--text-muted);
}

.page-hero .breadcrumb a:hover {
    color: var(--accent-primary);
}

.page-hero h1 {
    margin-bottom: 1.2rem;
}

.page-hero p {
    font-size: 1.15rem;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
}

/* Pricing Table */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.pricing-card {
    padding: 2.5rem 2rem;
    border-radius: 20px;
    background: var(--bg-card);
    border: var(--card-border);
    box-shadow: var(--card-shadow);
    transition: all 0.4s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-shadow-hover);
}

.pricing-card.featured {
    border: 2px solid var(--accent-primary);
    box-shadow: var(--accent-glow);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gradient-btn);
    color: white;
    padding: 0.3rem 1.2rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-period {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--divider);
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li i {
    color: var(--accent-primary);
    font-size: 0.85rem;
    width: 18px;
    text-align: center;
}

/* Course cards */
.course-card {
    padding: 2.5rem 2rem;
    border-radius: 20px;
    background: var(--bg-card);
    border: var(--card-border);
    box-shadow: var(--card-shadow);
    transition: all 0.4s ease;
}

.course-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-shadow-hover);
}

.course-level {
    display: inline-block;
    padding: 0.25rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.course-card h3 {
    margin-bottom: 0.6rem;
}

.course-meta {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.2rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.course-meta i {
    margin-right: 0.3rem;
    color: var(--accent-primary);
}

/* Contact page form */
.contact-page-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* SEO text block */
.seo-content {
    max-width: 800px;
    margin: 0 auto;
}

.seo-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-align: left;
}

.seo-content h3 {
    font-size: 1.3rem;
    margin: 2rem 0 0.8rem;
}

.seo-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.seo-content ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.seo-content ul li {
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
}

.seo-content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: 700;
}

/* News card (blog page) */
.news-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2rem;
    border-radius: 20px;
    background: var(--bg-card);
    border: var(--card-border);
    box-shadow: var(--card-shadow);
    align-items: center;
}

.news-featured-image {
    border-radius: 16px;
    overflow: hidden;
    height: 300px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-featured-image i {
    font-size: 4rem;
    color: var(--accent-primary);
    opacity: 0.4;
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .contact-page-grid {
        grid-template-columns: 1fr;
    }

    .news-featured {
        grid-template-columns: 1fr;
    }

    .nav-dropdown-menu {
        display: none;
    }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Theme Toggle & Tooltip */
.theme-toggle-wrapper {
    position: relative;
    display: flex;
}

.tooltip {
    position: relative;
}

.tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-gradient-btn);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.tooltip::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 6px 6px 6px;
    border-style: solid;
    border-color: transparent transparent #a855f7 transparent;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.tooltip:hover::before,
.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: -40px;
}

.tooltip:hover::after {
    bottom: -20px;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--bg-glass-border);
    background: var(--bg-glass);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

/* Subtle attention pulse for theme toggle */
.pulse-attention::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 12px;
    border: 1px solid var(--accent-primary);
    opacity: 0;
    animation: attentionPulse 3s infinite;
    pointer-events: none;
}

@keyframes attentionPulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.15);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}

.theme-toggle:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    box-shadow: var(--accent-glow);
}


/* Lang Switcher */
.lang-switch {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--bg-glass-border);
}

.lang-switch a {
    padding: 0.4rem 0.7rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-glass);
    transition: all 0.3s ease;
}

.lang-switch a:hover,
.lang-switch a.active {
    color: white;
    background: var(--accent-primary);
}

/* Mobile Menu Button */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.burger span {
    display: block;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.burger-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger-active span:nth-child(2) {
    opacity: 0;
}

.burger-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    z-index: 999;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mobile-menu-open {
    transform: translateX(0);
}

.mobile-menu a {
    display: block;
    padding: 1rem 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--divider);
}

.menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overlay-active {
    opacity: 1;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-gradient-btn);
    color: white;
    box-shadow: 0 4px 20px rgba(var(--accent-primary-rgb), 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(var(--accent-primary-rgb), 0.4);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--bg-glass-border);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    box-shadow: var(--accent-glow);
}

.btn-sm {
    padding: 0.6rem 1.4rem;
    font-size: 0.9rem;
    border-radius: 10px;
}

.btn-success {
    background: linear-gradient(135deg, #059669, #10b981) !important;
}

.btn-header {
    padding: 0.6rem 1.5rem;
    font-size: 0.88rem;
    border-radius: 10px;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 72px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 30% 40%, rgba(var(--accent-primary-rgb), 0.12) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(6, 182, 212, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 50% 80%, rgba(224, 64, 251, 0.06) 0%, transparent 40%);
    animation: heroGlow 15s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes heroGlow {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-2%, -2%) scale(1.05);
    }

    100% {
        transform: translate(2%, 1%) scale(1);
    }
}

.hero-canvas {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    max-width: 600px;
}

.hero-text h1 {
    margin-bottom: 1.5rem;
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    line-height: 1.15;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================
   ORBIT ANIMATION (Hero visual)
   ========================================== */
.orbit-container {
    position: relative;
    width: 400px;
    height: 400px;
}

.orbit-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    background: var(--accent-gradient-btn);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--accent-glow-strong);
    z-index: 3;
    animation: pulse 3s ease-in-out infinite;
}

.orbit-center span {
    font-size: 2rem;
    font-weight: 900;
    color: white;
    letter-spacing: -0.02em;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: var(--accent-glow-strong);
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        box-shadow: 0 0 80px rgba(var(--accent-primary-rgb), 0.5), 0 0 160px rgba(var(--accent-primary-rgb), 0.3);
        transform: translate(-50%, -50%) scale(1.03);
    }
}

/* Orbit ring */
.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 340px;
    height: 340px;
    border: 1.5px dashed var(--orbit-line);
    border-radius: 50%;
    animation: orbitSpin 30s linear infinite;
}

@keyframes orbitSpin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Orbit icons */
.orbit-icon {
    position: absolute;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--bg-glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    animation: orbitCounterSpin 30s linear infinite;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.orbit-icon:hover {
    box-shadow: var(--accent-glow);
    border-color: var(--accent-primary);
    transform: scale(1.15);
}

@keyframes orbitCounterSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(-360deg);
    }
}

/* Position orbit icons */
.orbit-icon:nth-child(1) {
    top: -26px;
    left: 50%;
    margin-left: -26px;
}

.orbit-icon:nth-child(2) {
    top: 15%;
    right: -10px;
}

.orbit-icon:nth-child(3) {
    bottom: 15%;
    right: -10px;
}

.orbit-icon:nth-child(4) {
    bottom: -26px;
    left: 50%;
    margin-left: -26px;
}

.orbit-icon:nth-child(5) {
    bottom: 15%;
    left: -10px;
}

.orbit-icon:nth-child(6) {
    top: 15%;
    left: -10px;
}

/* ==========================================
   STATS BAR
   ========================================== */
.stats-bar {
    background: var(--bg-secondary);
    border-top: 1px solid var(--divider);
    border-bottom: 1px solid var(--divider);
    padding: 3rem 0;
    position: relative;
    z-index: 2;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: 16px;
    background: var(--stat-bg);
    border: 1px solid var(--stat-border);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--accent-glow);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ==========================================
   SERVICES GRID
   ========================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    position: relative;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    background: var(--bg-card);
    border: var(--card-border);
    box-shadow: var(--card-shadow);
    transition: all 0.4s ease;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--card-accent, var(--accent-gradient-btn));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-6px);
    box-shadow: var(--card-shadow-hover);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: white;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(-5deg);
}

.service-card h3 {
    margin-bottom: 0.8rem;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.65;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--accent-primary);
    transition: gap 0.3s ease;
}

.service-card:hover .service-link {
    gap: 0.8rem;
}

/* ==========================================
   WHY AI SECTION
   ========================================== */
.why-section {
    position: relative;
    overflow: hidden;
}

.why-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(var(--accent-primary-rgb), 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(6, 182, 212, 0.06) 0%, transparent 40%);
    pointer-events: none;
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.why-text h2 {
    margin-bottom: 1.2rem;
    font-size: clamp(2rem, 4vw, 2.8rem);
}

.why-text p {
    margin-bottom: 2rem;
}

.why-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.why-feature {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    padding: 1.5rem;
    border-radius: 16px;
    background: var(--bg-glass);
    border: 1px solid var(--bg-glass-border);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.why-feature:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--accent-glow);
    transform: translateX(4px);
}

.why-feature-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    background: var(--accent-gradient-btn);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.why-feature h4 {
    margin-bottom: 0.3rem;
    color: var(--text-primary);
}

.why-feature p {
    font-size: 0.92rem;
    margin: 0;
}

/* ==========================================
   PROCESS / HOW WE WORK
   ========================================== */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    position: relative;
}

/* Connecting line */
.process-grid::before {
    content: '';
    position: absolute;
    top: 65px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: var(--accent-gradient);
    opacity: 0.3;
    z-index: 0;
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 2rem 1.5rem;
}

.process-number {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-primary);
    margin: 0 auto 1.5rem;
    box-shadow: var(--accent-glow);
    transition: all 0.3s ease;
}

.process-step:hover .process-number {
    background: var(--accent-gradient-btn);
    color: white;
    transform: scale(1.1);
}

.process-step h3 {
    margin-bottom: 0.6rem;
    font-size: 1.15rem;
}

.process-step p {
    font-size: 0.92rem;
}

/* ==========================================
   CASE STUDIES
   ========================================== */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.case-card {
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-card);
    border: var(--card-border);
    box-shadow: var(--card-shadow);
    transition: all 0.4s ease;
}

.case-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-shadow-hover);
}

.case-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}

.case-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, var(--bg-card), transparent);
}

.case-body {
    padding: 1.5rem;
}

.case-tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(var(--accent-primary-rgb), 0.15);
    color: var(--accent-primary);
    margin-bottom: 0.8rem;
}

.case-body h3 {
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
}

.case-body p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* ==========================================
   TESTIMONIALS
   ========================================== */
.testimonials-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 24px;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.testimonial-slide {
    min-width: 100%;
    padding: 3rem;
    text-align: center;
}

.testimonial-quote {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    position: relative;
}

.testimonial-quote::before {
    content: '"';
    font-size: 4rem;
    font-style: normal;
    color: var(--accent-primary);
    opacity: 0.3;
    position: absolute;
    top: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: Georgia, serif;
}

.testimonial-author {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.testimonial-role {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.testimonial-stars {
    color: #fbbf24;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

/* Controls */
.testimonial-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.testimonial-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--bg-glass-border);
    background: var(--bg-glass);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.testimonial-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.testimonial-dots {
    display: flex;
    gap: 0.5rem;
}

.testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bg-glass-border);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot-active {
    background: var(--accent-primary);
    box-shadow: 0 0 10px rgba(var(--accent-primary-rgb), 0.5);
}

/* ==========================================
   BLOG PREVIEW
   ========================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.blog-card {
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-card);
    border: var(--card-border);
    box-shadow: var(--card-shadow);
    transition: all 0.4s ease;
    text-decoration: none;
    display: block;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-shadow-hover);
}

.blog-image {
    width: 100%;
    height: 180px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.blog-image-gradient {
    background: linear-gradient(135deg, rgba(var(--accent-primary-rgb), 0.2), rgba(6, 182, 212, 0.15));
}

.blog-image i {
    font-size: 2.5rem;
    color: var(--accent-primary);
    opacity: 0.5;
}

.blog-body {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.blog-category {
    color: var(--accent-primary);
    font-weight: 600;
}

.blog-body h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.blog-body p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ==========================================
   CTA / CONTACT SECTION
   ========================================== */
.cta-section {
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 50%, rgba(var(--accent-primary-rgb), 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(224, 64, 251, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.cta-wrapper {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.cta-info h2 {
    margin-bottom: 1rem;
    font-size: clamp(2rem, 4vw, 2.8rem);
}

.cta-info p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.cta-contacts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cta-contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    background: var(--bg-glass);
    border: 1px solid var(--bg-glass-border);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.cta-contact-item:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--accent-glow);
    color: var(--text-primary);
}

.cta-contact-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 10px;
    background: var(--accent-gradient-btn);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.cta-contact-label {
    font-weight: 600;
    font-size: 0.95rem;
}

/* Contact Form */
.contact-form {
    padding: 2.5rem;
    border-radius: 24px;
    background: var(--bg-card);
    border: var(--card-border);
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.95rem 1.2rem;
    border-radius: 12px;
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(var(--accent-primary-rgb), 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--divider);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: var(--text-primary);
}

.footer-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.92rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-primary);
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.footer-contact-item i {
    color: var(--accent-primary);
    width: 20px;
    text-align: center;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--divider);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-copyright {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--bg-glass);
    border: 1px solid var(--bg-glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    color: white;
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    box-shadow: var(--accent-glow);
}

/* ==========================================
   SCROLL ANIMATIONS
   ========================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays */
.animate-on-scroll[data-delay="100"] {
    transition-delay: 0.1s;
}

.animate-on-scroll[data-delay="200"] {
    transition-delay: 0.2s;
}

.animate-on-scroll[data-delay="300"] {
    transition-delay: 0.3s;
}

.animate-on-scroll[data-delay="400"] {
    transition-delay: 0.4s;
}

.animate-on-scroll[data-delay="500"] {
    transition-delay: 0.5s;
}

/* Hero-specific animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-text h1 {
    animation: fadeInUp 0.8s ease forwards;
}

.hero-subtitle {
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-ctas {
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.orbit-container {
    animation: fadeInUp 1s ease 0.6s forwards;
    opacity: 0;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-ctas {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-grid::before {
        display: none;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .cta-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section {
        padding: 4rem 0;
    }

    .nav-desktop {
        display: none;
    }

    .burger {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }

    .menu-overlay {
        display: block;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid .stat-item:last-child {
        grid-column: span 2;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .cases-grid {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .process-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .hero {
        min-height: auto;
        padding-top: 120px;
        padding-bottom: 3rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .testimonial-slide {
        padding: 2rem 1rem;
    }

    .btn-header {
        display: none;
    }

    .lang-switch {
        display: none;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stat-item {
        padding: 1rem 0.5rem;
    }

    .stat-number {
        font-size: 1.6rem;
    }
}

/* ==========================================
   SERVICE PAGE
   ========================================== */
.service-hero {
    padding-top: calc(72px + 4rem);
    padding-bottom: 4rem;
    position: relative;
}

.service-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 30%, rgba(var(--accent-primary-rgb), 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.service-hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.service-hero .breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.service-hero .breadcrumb a {
    color: var(--text-muted);
}

.service-hero .breadcrumb a:hover {
    color: var(--accent-primary);
}

.service-hero h1 {
    margin-bottom: 1.2rem;
}

.service-hero p {
    font-size: 1.15rem;
    line-height: 1.8;
}

.sub-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.sub-service-card {
    padding: 2rem;
    border-radius: 16px;
    background: var(--bg-card);
    border: var(--card-border);
    transition: all 0.3s ease;
}

.sub-service-card:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--accent-glow);
    transform: translateY(-4px);
}

.sub-service-card h4 {
    margin-bottom: 0.5rem;
}

.sub-service-card p {
    font-size: 0.92rem;
}

/* Benefits list */
.benefits-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    border-radius: 12px;
    background: var(--bg-glass);
    border: 1px solid var(--bg-glass-border);
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.benefits-list li i {
    color: var(--accent-primary);
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .benefits-list {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   COOKIE BANNER (GDPR)
   ========================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--bg-glass-border);
    z-index: 9999;
    padding: 1rem;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
}

.cookie-content {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.cookie-buttons {
    display: flex;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .cookie-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}