/* ==========================================
   TELEGRAM BOT LANDING PAGE - MODERN STYLES
   ========================================== */

:root {
    /* Brand Colors */
    --primary: #0088cc;
    --primary-dark: #006699;
    --primary-light: #00a8ff;
    --accent: #22c55e;
    --accent-dark: #16a34a;
    --purple: #a855f7;
    --pink: #ec4899;

    /* Background */
    --bg-dark: #0a0e1a;
    --bg-darker: #050a14;
    --card-bg: #1a1f2e;
    --card-hover: #222938;

    /* Text */
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent) 0%, #10b981 100%);
    --gradient-warm: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --gradient-mesh: radial-gradient(at 20% 30%, rgba(0, 136, 204, 0.2) 0px, transparent 50%),
        radial-gradient(at 80% 70%, rgba(168, 85, 247, 0.15) 0px, transparent 50%),
        radial-gradient(at 50% 50%, rgba(34, 197, 94, 0.1) 0px, transparent 50%);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(0, 136, 204, 0.4);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'Courier New', 'Consolas', monospace;

    /* ==========================================
       N8N CHAT WIDGET CUSTOM STYLES
       ========================================== */

    /* Chat Colors - Matching Telegram Bot Theme */
    --chat--color--primary: #0088cc;
    --chat--color--primary-shade-50: #006699;
    --chat--color--primary--shade-100: #0077b3;
    --chat--color--secondary: #22c55e;
    --chat--color-secondary-shade-50: #16a34a;
    --chat--color-white: #fff;
    --chat--color-light: #1a1f2e;
    --chat--color-light-shade-50: #222938;
    --chat--color-light-shade-100: #2a3142;
    --chat--color-medium: #cbd5e1;
    --chat--color-dark: #0a0e1a;
    --chat--color-disabled: #94a3b8;
    --chat--color-typing: #cbd5e1;

    /* Chat Base Layout */
    --chat--spacing: 1rem;
    --chat--border-radius: 12px;
    --chat--transition-duration: 0.3s;
    --chat--font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Chat Window Dimensions */
    --chat--window--width: 400px;
    --chat--window--height: 600px;
    --chat--window--bottom: 1.5rem;
    --chat--window--right: 1.5rem;
    --chat--window--z-index: 9999;
    --chat--window--border: 1px solid rgba(255, 255, 255, 0.1);
    --chat--window--border-radius: 16px;
    --chat--window--margin-bottom: var(--chat--spacing);

    /* Chat Header Styles */
    --chat--header-height: auto;
    --chat--header--padding: 1.5rem;
    --chat--header--background: linear-gradient(135deg, #0088cc 0%, #a855f7 100%);
    --chat--header--color: #ffffff;
    --chat--header--border-top: none;
    --chat--header--border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    --chat--header--border-left: none;
    --chat--header--border-right: none;
    --chat--heading--font-size: 1.5em;
    --chat--subtitle--font-size: 0.9em;
    --chat--subtitle--line-height: 1.6;

    /* Chat Message Styles */
    --chat--message--font-size: 1rem;
    --chat--message--padding: 1rem;
    --chat--message--border-radius: 12px;
    --chat--message-line-height: 1.6;
    --chat--message--margin-bottom: 0.75rem;
    --chat--message--bot--background: rgba(255, 255, 255, 0.05);
    --chat--message--bot--color: #f8fafc;
    --chat--message--bot--border: 1px solid rgba(255, 255, 255, 0.1);
    --chat--message--user--background: #0088cc;
    --chat--message--user--color: #ffffff;
    --chat--message--user--border: none;
    --chat--message--pre--background: rgba(0, 0, 0, 0.3);
    --chat--messages-list--padding: 1.5rem;

    /* Chat Toggle Button */
    --chat--toggle--size: 64px;
    --chat--toggle--width: var(--chat--toggle--size);
    --chat--toggle--height: var(--chat--toggle--size);
    --chat--toggle--border-radius: 50%;
    --chat--toggle--background: linear-gradient(135deg, #0088cc 0%, #a855f7 100%);
    --chat--toggle--hover--background: linear-gradient(135deg, #006699 0%, #9333ea 100%);
    --chat--toggle--active--background: linear-gradient(135deg, #0077b3 0%, #7e22ce 100%);
    --chat--toggle--color: #ffffff;

    /* Chat Input Area */
    --chat--textarea--height: 50px;
    --chat--textarea--max-height: 200px;
    --chat--input--font-size: 1rem;
    --chat--input--border: 1px solid rgba(255, 255, 255, 0.1);
    --chat--input--border-radius: 12px;
    --chat--input--padding: 0.875rem 1rem;
    --chat--input--background: rgba(255, 255, 255, 0.05);
    --chat--input--text-color: #f8fafc;
    --chat--input--line-height: 1.5;
    --chat--input--placeholder--font-size: var(--chat--input--font-size);
    --chat--input--border-active: 1px solid #0088cc;
    --chat--input--left--panel--width: 2.5rem;

    /* Chat Button Styles */
    --chat--button--padding: 0.75rem 1.5rem;
    --chat--button--border-radius: 12px;
    --chat--button--font-size: 1rem;
    --chat--button--line-height: 1.5;
    --chat--button--color--primary: #ffffff;
    --chat--button--background--primary: #22c55e;
    --chat--button--border--primary: none;
    --chat--button--color--primary--hover: #ffffff;
    --chat--button--background--primary--hover: #16a34a;
    --chat--button--border--primary--hover: none;
    --chat--button--color--primary--disabled: rgba(255, 255, 255, 0.5);
    --chat--button--background--primary--disabled: rgba(34, 197, 94, 0.5);
    --chat--button--border--primary--disabled: none;
    --chat--button--color--secondary: #f8fafc;
    --chat--button--background--secondary: rgba(255, 255, 255, 0.1);
    --chat--button--border--secondary: 1px solid rgba(255, 255, 255, 0.2);
    --chat--button--color--secondary--hover: #ffffff;
    --chat--button--background--secondary--hover: rgba(255, 255, 255, 0.15);
    --chat--button--border--secondary--hover: 1px solid rgba(255, 255, 255, 0.3);
    --chat--button--color--secondary--disabled: rgba(248, 250, 252, 0.5);
    --chat--button--background--secondary--disabled: rgba(255, 255, 255, 0.05);
    --chat--button--border--secondary--disabled: 1px solid rgba(255, 255, 255, 0.1);
    --chat--close--button--color-hover: #0088cc;

    /* Chat Send and File Buttons */
    --chat--input--send--button--background: transparent;
    --chat--input--send--button--color: #22c55e;
    --chat--input--send--button--background-hover: rgba(34, 197, 94, 0.1);
    --chat--input--send--button--color-hover: #16a34a;
    --chat--input--file--button--background: transparent;
    --chat--input--file--button--color: #0088cc;
    --chat--input--file--button--background-hover: rgba(0, 136, 204, 0.1);
    --chat--input--file--button--color-hover: #006699;
    --chat--files-spacing: 0.5rem;

    /* Chat Body and Footer */
    --chat--body--background: #0a0e1a;
    --chat--footer--background: rgba(26, 31, 46, 0.8);
    --chat--footer--color: #f8fafc;
}

/* ==========================================
   LIGHT THEME
   ========================================== */

:root[data-theme="light"] {
    /* Brand Colors - Same */
    --primary: #0088cc;
    --primary-dark: #006699;
    --primary-light: #00a8ff;
    --accent: #22c55e;
    --accent-dark: #16a34a;
    --purple: #a855f7;
    --pink: #ec4899;

    /* Background - Light */
    --bg-dark: #f8f9fa;
    --bg-darker: #ffffff;
    --card-bg: #ffffff;
    --card-hover: #f1f3f5;

    /* Text - Dark on Light */
    --text-primary: #1a1f2e;
    --text-secondary: #4a5568;
    --text-muted: #6b7280;

    /* Gradients - Updated for light */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent) 0%, #10b981 100%);
    --gradient-warm: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --gradient-mesh: radial-gradient(at 20% 30%, rgba(0, 136, 204, 0.08) 0px, transparent 50%),
        radial-gradient(at 80% 70%, rgba(168, 85, 247, 0.06) 0px, transparent 50%),
        radial-gradient(at 50% 50%, rgba(34, 197, 94, 0.04) 0px, transparent 50%);

    /* Shadows - Softer for light */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-glow: 0 0 20px rgba(0, 136, 204, 0.2);

    /* Update chat widget for light theme */
    --chat--color-light: #f8f9fa;
    --chat--color-light-shade-50: #e9ecef;
    --chat--color-light-shade-100: #dee2e6;
    --chat--color-dark: #1a1f2e;
    --chat--color-typing: #6b7280;
    --chat--message--bot--background: #f1f3f5;
    --chat--message--bot--color: #1a1f2e;
    --chat--message--bot--border: 1px solid #dee2e6;
    --chat--body--background: #ffffff;
    --chat--footer--background: #f8f9fa;
    --chat--footer--color: #1a1f2e;
    --chat--input--background: #f8f9fa;
    --chat--input--text-color: #1a1f2e;
    --chat--input--border: 1px solid #dee2e6;
}

/* ==========================================
   THEME TRANSITION
   ========================================== */

body,
.navbar,
.card,
.service-card,
.price-card,
.use-case-card,
.faq-item,
.why-item,
footer {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* ==========================================
   BASE RESET & TYPOGRAPHY
   ========================================== */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background: var(--bg-dark);
    background-image: var(--gradient-mesh);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================
   NAVBAR
   ========================================== */

.navbar {
    background: rgba(10, 14, 26, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 5%;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: rgba(10, 14, 26, 0.95);
    box-shadow: var(--shadow-md);
    padding: 0.7rem 5%;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.badge {
    display: inline-block;
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.08);
    padding: 4px 8px;
    border-radius: 6px;
    color: var(--text-muted);
    font-weight: 500;
    margin-left: 8px;
    vertical-align: middle;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.badge:hover {
    background: rgba(0, 136, 204, 0.2);
    border-color: var(--primary);
    color: var(--primary-light);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-list a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

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

.nav-list a:hover::after {
    width: 100%;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 24px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    gap: 4px;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-main);
}

.lang-btn:hover:not(.active) {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.lang-btn.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
}

/* Theme Toggle Button */
.theme-toggle {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    margin-left: 1rem;
}

.theme-toggle:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.theme-toggle i {
    font-size: 1.1rem;
    color: var(--text-primary);
    position: absolute;
    transition: all 0.3s ease;
}

.theme-toggle .fa-sun {
    opacity: 0;
    transform: rotate(-90deg) scale(0);
}

.theme-toggle .fa-moon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

:root[data-theme="light"] .theme-toggle .fa-sun {
    opacity: 1;
    transform: rotate(0deg) scale(1);
    color: #f59e0b;
}

:root[data-theme="light"] .theme-toggle .fa-moon {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.bar {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 5% 60px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    max-width: 650px;
    z-index: 2;
}

.hero-content h1 {
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-light) 50%, var(--purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.cta-buttons {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.btn {
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 8px 24px rgba(0, 136, 204, 0.4);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 136, 204, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    transform: translateY(-4px);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 100%;
    max-width: 600px;
    filter: drop-shadow(0 20px 40px rgba(0, 136, 204, 0.3));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-30px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   SECTIONS
   ========================================== */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-xl) 5%;
}

section {
    position: relative;
}

h2 {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lead-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ==========================================
   SERVICE CARDS (Glassmorphism)
   ========================================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: rgba(26, 31, 46, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.service-card:hover::before {
    opacity: 0.05;
}

.service-card:hover {
    background: rgba(26, 31, 46, 0.8);
    border-color: var(--primary);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 136, 204, 0.2);
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* ==========================================
   PRICING SECTION
   ========================================== */

.pricing-section {
    background: var(--bg-darker);
    padding: var(--spacing-xl) 5%;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.price-card {
    background: rgba(26, 31, 46, 0.6);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

.price-card.featured {
    border-color: var(--primary);
    background: rgba(0, 136, 204, 0.05);
    transform: scale(1.05);
}

.price-card.featured::before {
    content: 'POPULAR';
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--gradient-primary);
    color: white;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 0.75rem;
    font-weight: 700;
}

.price-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.price-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary-light);
    box-shadow: 0 20px 50px rgba(0, 136, 204, 0.3);
}

.price-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.price-card .price {
    font-size: 3rem;
    font-weight: 800;
    margin: 1.5rem 0;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-card .price-from {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.price-card .currency {
    font-size: 1.5rem;
    margin-left: 0.5rem;
}

.price-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    min-height: 50px;
}

.price-features {
    text-align: left;
    margin: 2rem 0;
    color: var(--text-secondary);
    line-height: 2;
}

/* ==========================================
   USE CASES
   ========================================== */

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.use-case-card {
    background: rgba(26, 31, 46, 0.4);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
}

.use-case-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.use-case-card:hover {
    background: rgba(26, 31, 46, 0.7);
    border-color: var(--accent);
    transform: translateY(-8px);
}

.use-case-card .icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.use-case-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.use-case-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==========================================
   TECHNOLOGY STACK
   ========================================== */

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 3rem auto;
}

.tech-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.9);
}

.tech-icon.visible {
    opacity: 1;
    transform: scale(1);
}

.tech-icon:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    transform: scale(1.05);
}

.tech-icon i {
    font-size: 2.5rem;
    color: var(--primary-light);
}

.tech-icon span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ==========================================
   FAQ ACCORDION
   ========================================== */

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(26, 31, 46, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.faq-item.active {
    border-color: var(--primary);
    background: rgba(0, 136, 204, 0.05);
}

.faq-question {
    padding: 1.5rem 2rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: var(--primary-light);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    color: var(--text-secondary);
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 2rem 1.5rem;
}

/* ==========================================
   WHY CHOOSE US
   ========================================== */

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.why-item {
    text-align: center;
    padding: 2rem 1rem;
}

.why-item .number {
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.why-item h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.why-item p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==========================================
   FEATURES LIST
   ========================================== */

.split-view {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.text-block,
.image-block {
    flex: 1;
}

.image-block img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-list {
    list-style: none;
    margin-top: 2rem;
}

.feature-list li {
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
}

.feature-list i {
    color: var(--accent);
    font-size: 1.3rem;
    min-width: 24px;
}

/* ==========================================
   CONTACT FORM (Terminal Style)
   ========================================== */

.contact-section {
    background: var(--bg-darker);
    padding: var(--spacing-xl) 5%;
}

/* ==========================================
   TELEGRAM-STYLE CONTACT FORM
   ========================================== */

.telegram-chat-container {
    max-width: 700px;
    margin: 3rem auto 0;
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Chat Header */
.chat-header {
    background: linear-gradient(135deg, #0088cc 0%, #0077b3 100%);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-avatar {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.chat-info h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.chat-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Chat Messages Area */
.chat-messages {
    padding: 2rem;
    min-height: 250px;
    max-height: 400px;
    overflow-y: auto;
    background: var(--bg-dark);
}

.bot-message {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.user-message {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.message-bubble {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px 12px 12px 4px;
    padding: 1rem 1.25rem;
    max-width: 85%;
    color: var(--text-primary);
    line-height: 1.6;
}

.user-message .message-bubble {
    background: #0088cc;
    border: none;
    border-radius: 12px 12px 4px 12px;
    color: white;
}

:root[data-theme="light"] .message-bubble {
    background: #f1f3f5;
    border-color: #dee2e6;
}

:root[data-theme="light"] .user-message .message-bubble {
    background: #0088cc;
    color: white;
    border: none;
}

.message-bubble p {
    margin: 0;
}

.message-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    margin-left: 0.5rem;
}

.user-message .message-time {
    margin-left: 0;
    margin-right: 0.5rem;
}

/* Typing Indicator */
.typing-indicator .message-bubble {
    padding: 1rem 1.5rem;
}

.typing-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typing 1.4s ease-in-out infinite;
}

.typing-dots span:nth-child(1) {
    animation-delay: 0s;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.7;
    }

    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Chat Input Form */
.chat-input-form {
    padding: 0;
}

.chat-input-area {
    padding: 2rem;
    background: var(--card-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Input Row for Side-by-Side Fields */
.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* Modern Input Groups with Floating Labels */
.input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-main);
    transition: all 0.3s ease;
}

:root[data-theme="light"] .input-group input,
:root[data-theme="light"] .input-group textarea {
    background: #f8f9fa;
    border-color: #dee2e6;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: #0088cc;
    background: rgba(0, 136, 204, 0.05);
    box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.1);
}

.input-group textarea {
    resize: vertical;
    min-height: 120px;
    padding-top: 1rem;
}

/* Floating Labels */
.input-group label {
    position: absolute;
    left: 3rem;
    top: 1rem;
    color: var(--text-muted);
    font-size: 1rem;
    transition: all 0.3s ease;
    pointer-events: none;
    background: var(--card-bg);
    padding: 0 0.5rem;
}

.input-group input:focus+label,
.input-group textarea:focus+label,
.input-group input:not(:placeholder-shown)+label,
.input-group textarea:not(:placeholder-shown)+label {
    top: -0.75rem;
    left: 2.5rem;
    font-size: 0.85rem;
    color: #0088cc;
}

/* Input Icons */
.input-icon {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: var(--text-muted);
    font-size: 1.1rem;
    pointer-events: none;
}

.input-group textarea~.input-icon {
    top: 1rem;
}

/* Validation Messages */
.validation-message {
    display: block;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    margin-left: 3rem;
    color: #ef4444;
}

.validation-message.success {
    color: #22c55e;
}

/* Cloudflare Turnstile Wrapper */
.turnstile-wrapper {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
}

/* Send Button */
.chat-send-button {
    width: 100%;
    background: linear-gradient(135deg, #0088cc 0%, #0077b3 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-main);
    margin-top: 1.5rem;
}

.chat-send-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #006699 0%, #005580 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 136, 204, 0.4);
}

.chat-send-button:active:not(:disabled) {
    transform: translateY(0);
}

.chat-send-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

.chat-send-button i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.chat-send-button:hover:not(:disabled) i {
    transform: translateX(3px);
}

/* Form Status Messages */
.form-status {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-status.success {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.2);
    display: block;
}

.form-status.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
    display: block;
}

/* International Phone Input Customization */
.iti {
    width: 100%;
    display: block;
}

/* Fix for phone input - remove left padding conflict */
.iti input.iti__tel-input {
    padding-left: 52px !important;
    /* Space for flag */
    width: 100%;
}

.iti__flag-container {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    padding: 1rem 0;
}

:root[data-theme="light"] .iti__flag-container {
    border-right-color: #dee2e6;
}

.iti__selected-flag {
    background: transparent;
    padding: 0 0 0 12px;
    height: 100%;
    display: flex;
    align-items: center;
}

.iti__arrow {
    margin-left: 6px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid var(--text-muted);
}

.iti__country-list {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg);
    border-radius: 12px;
    color: var(--text-primary);
    margin-top: 4px;
    max-height: 200px;
    overflow-y: auto;
}

:root[data-theme="light"] .iti__country-list {
    border-color: #dee2e6;
}

.iti__country {
    padding: 8px 12px;
}

.iti__country:hover {
    background: rgba(0, 136, 204, 0.1);
}

.iti__country.iti__highlight {
    background: rgba(0, 136, 204, 0.2);
}

.iti__dial-code {
    color: var(--text-muted);
}

.iti__country-name {
    color: var(--text-primary);
}

/* ==========================================
   FOOTER
   ========================================== */

footer {
    background: var(--bg-darker);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4rem 5% 3rem;
    text-align: center;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-content p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.socials {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.socials a {
    color: var(--text-secondary);
    font-size: 1.8rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.socials a:hover {
    color: var(--primary-light);
    transform: translateY(-4px);
}

/* ==========================================
   ANIMATIONS & UTILITIES
   ========================================== */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    animation: fadeIn 1s ease forwards;
}

.fade-in-right {
    animation: fadeInRight 1s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Loading Spinner */
.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 1024px) {
    .hero-section {
        padding: 100px 5% 50px;
        gap: 3rem;
    }

    .split-view {
        flex-direction: column;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-list {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        max-width: 300px;
        height: calc(100vh - 70px);
        background: rgba(10, 14, 26, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        padding: 3rem 2rem;
        gap: 1.5rem;
        transition: right 0.4s ease;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav-list.active {
        right: 0;
    }

    .nav-list a {
        font-size: 1.2rem;
        width: 100%;
        padding: 0.8rem 0;
    }

    .hero-section {
        flex-direction: column-reverse;
        padding-top: 100px;
        text-align: center;
        gap: 2rem;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-desc {
        font-size: 1.1rem;
    }

    .cta-buttons {
        justify-content: center;
    }

    .container {
        padding: var(--spacing-lg) 5%;
    }

    .services-grid,
    .pricing-grid,
    .use-cases-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .price-card.featured {
        transform: scale(1);
    }

    .tech-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 1.5rem;
    }

    form {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .logo {
        font-size: 1.2rem;
    }

    .badge {
        display: block;
        margin: 0.5rem 0 0 0;
    }

    .nav-right {
        gap: 1rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .btn {
        padding: 14px 24px;
        font-size: 0.95rem;
    }

    .service-card,
    .price-card,
    .use-case-card {
        padding: 2rem 1.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    /* Telegram Chat Form Mobile */
    .telegram-chat-container {
        margin: 2rem 0;
        border-radius: 16px;
    }

    .chat-header {
        padding: 1rem 1.5rem;
    }

    .chat-avatar {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .chat-info h3 {
        font-size: 1rem;
    }

    .chat-messages {
        padding: 1.5rem;
        min-height: 200px;
    }

    .chat-input-area {
        padding: 1.5rem;
    }

    .input-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .chat-send-button {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}