/* Системні змінні кольорів */
:root {
    --primary: #2563eb;
    --gold: #f59e0b;
    
    /* Світла тема (за замовчуванням) */
    --bg-body: #ffffff;
    --bg-header: #ffffff;
    --bg-section-alt: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #475569;
    --border-color: #e2e8f0;
    --gradient-hero: linear-gradient(180deg, #f1f5f9 0%, #ffffff 100%);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.05);
}

/* Темна тема */
body.dark-mode {
    --bg-body: #0f172a;
    --bg-header: #0f172a;
    --bg-section-alt: #1e293b;
    --bg-card: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --gradient-hero: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.3);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { color: var(--text-main); line-height: 1.6; background-color: var(--bg-body); transition: background-color 0.3s, color 0.3s; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
.header { background: var(--bg-header); border-bottom: 1px solid var(--border-color); padding: 20px 0; position: sticky; top: 0; z-index: 100; transition: 0.3s; }
.header-container { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; flex-direction: column; }
.logo-main { font-size: 24px; font-weight: 800; color: var(--primary); letter-spacing: -1px; }
.logo-sub { font-size: 10px; color: var(--text-muted); text-transform: uppercase; font-weight: 700; letter-spacing: 1px; }
.nav a { text-decoration: none; color: var(--text-muted); margin: 0 15px; font-weight: 600; font-size: 14px; transition: color 0.3s; }
.nav a:hover { color: var(--primary); }

.header-actions { display: flex; align-items: center; }
.theme-toggle { background: transparent; border: 1px solid var(--border-color); font-size: 18px; cursor: pointer; padding: 8px 12px; margin-right: 20px; border-radius: 8px; transition: 0.3s; }
.theme-toggle:hover { background: var(--bg-section-alt); }

/* Перемикач мов */
.lang-switch { display: flex; align-items: center; margin-right: 20px; font-size: 15px; font-weight: 700; text-transform: uppercase; }
.lang-switch a { color: var(--text-muted); text-decoration: none; transition: 0.3s; }
.lang-switch a:hover { color: var(--primary); }
.lang-switch .active { color: var(--text-main); pointer-events: none; }
.lang-switch .separator { color: var(--border-color); font-weight: 400; font-size: 14px; margin: 0 8px; }

/* Hero */
.hero { padding: 100px 0; background: var(--gradient-hero); transition: 0.3s; }
.hero-container { display: flex; align-items: center; gap: 50px; }
.hero-content { flex: 1.2; }
.hero h1 { font-size: 56px; font-weight: 800; line-height: 1.1; margin: 20px 0; letter-spacing: -2px; color: var(--text-main); }
.badge { background: var(--primary); color: #fff; padding: 5px 15px; border-radius: 20px; font-size: 12px; font-weight: 700; display: inline-block; text-transform: uppercase; }
.dark-badge { background: #0f172a; color: #fff; }
body.dark-mode .dark-badge { background: #334155; }
.description { font-size: 18px; color: var(--text-muted); margin-bottom: 30px; }

/* Hero Form */
.hero-form { display: flex; gap: 12px; max-width: 550px; margin-top: 30px; margin-bottom: 15px; }
.hero-input { 
    height: 56px; 
    min-height: 56px; 
    padding: 0 20px; 
    border: 2px solid var(--border-color); 
    border-radius: 12px; 
    flex: 1; 
    font-size: 16px; 
    outline: none; 
    background: var(--bg-body); 
    color: var(--text-main); 
    transition: all 0.3s ease; 
    -webkit-appearance: none; 
    appearance: none; 
}
.hero-input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1); }
.btn-large { 
    height: 56px; 
    min-height: 56px;
    padding: 0 32px; 
    font-size: 16px; 
    border-radius: 12px; 
    white-space: nowrap; 
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.hero-note { font-size: 13px; color: var(--text-muted); margin-top: 10px; }

.interface-preview { background: var(--bg-card); border-radius: 12px; padding: 10px; box-shadow: var(--shadow-md); overflow: hidden; height: 400px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border-color); transition: 0.3s; }
.interface-preview img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }

/* Basic Sections */
.section { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 36px; font-weight: 800; margin-bottom: 15px; margin-top: 15px; color: var(--text-main); }
.section-header p { font-size: 18px; color: var(--text-muted); max-width: 700px; margin: 0 auto; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.card { padding: 40px; background: var(--bg-card); border-radius: 16px; border: 1px solid var(--border-color); transition: 0.3s; }
.card h3 { margin-bottom: 15px; font-size: 22px; font-weight: 700; color: var(--text-main); }
.card p { color: var(--text-muted); }

/* Advanced Features */
.advanced-features { background-color: var(--bg-section-alt); padding: 100px 0; border-radius: 30px; margin-bottom: 80px; transition: 0.3s; }
.advanced-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.adv-card { background: var(--bg-card); padding: 35px; border-radius: 16px; box-shadow: var(--shadow-md); border: 1px solid var(--border-color); transition: transform 0.3s, background 0.3s, border-color 0.3s; }
.adv-card:hover { transform: translateY(-5px); }
.adv-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 15px; color: var(--text-main); line-height: 1.3; }
.adv-card p { font-size: 14px; color: var(--text-muted); }
.highlight-card { border: 2px solid var(--primary); box-shadow: 0 10px 30px rgba(37, 99, 235, 0.1); }
.highlight-card h3 { color: var(--primary); }

/* Метрики ефективності (Бейджі) */
.metric-badge { display: inline-flex; align-items: center; margin-top: 18px; padding: 8px 14px; background: rgba(37, 99, 235, 0.08); color: var(--primary); border-radius: 8px; font-size: 13px; font-weight: 700; border: 1px solid rgba(37, 99, 235, 0.15); transition: 0.3s; }
body.dark-mode .metric-badge { background: rgba(37, 99, 235, 0.15); color: #60a5fa; border-color: rgba(37, 99, 235, 0.3); }

/* Portfolio Section */
.portfolio-section { background-color: var(--bg-body); padding: 100px 0; transition: 0.3s; }
.portfolio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.portfolio-card { background: var(--bg-card); border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow-md); transition: all 0.3s ease; border: 1px solid var(--border-color); display: block; }
.portfolio-card:hover { transform: translateY(-10px); border-color: var(--primary); }
.portfolio-image { width: 100%; aspect-ratio: 1920 / 911; overflow: hidden; border-bottom: 1px solid var(--border-color); background: var(--bg-section-alt); display: block; transition: 0.3s; }
.portfolio-image img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 0.5s ease; display: block; }
.portfolio-card:hover .portfolio-image img { transform: scale(1.03); }
.portfolio-info { padding: 25px; display: flex; justify-content: space-between; align-items: center; }
.portfolio-info h3 { font-size: 20px; font-weight: 700; color: var(--text-main); margin: 0; }
.portfolio-link { font-size: 14px; font-weight: 600; color: var(--primary); }

/* Enterprise Section */
.enterprise-section { background: #0f172a; color: #fff; padding: 120px 0; border-radius: 40px; margin: 0 20px; border: 1px solid #1e293b; }
.enterprise-wrapper { display: flex; gap: 100px; align-items: center; }
.enterprise-content { flex: 1.5; }
.badge-gold { border: 1px solid var(--gold); color: var(--gold); padding: 5px 15px; border-radius: 20px; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.enterprise-content h2 { font-size: 48px; margin: 20px 0; font-weight: 800; line-height: 1.1; color: #ffffff; }
.enterprise-content p { color: #94a3b8; }
.list { list-style: none; margin: 30px 0; }
.list li { margin-bottom: 15px; padding-left: 30px; position: relative; color: #cbd5e1; }
.list li::before { content: "→"; position: absolute; left: 0; color: var(--gold); font-weight: 800; }
.list strong { color: #ffffff; }
.enterprise-stats { flex: 1; display: grid; gap: 20px; }
.stat-item { background: rgba(255,255,255,0.05); padding: 30px; border-radius: 12px; text-align: center; }
.stat-item span { font-size: 40px; font-weight: 800; color: var(--gold); display: block; }
.stat-item p { color: #cbd5e1; font-size: 14px; margin-top: 5px; }

/* Studio Section */
.studio-box { background: var(--bg-card); border: 2px solid var(--primary); padding: 60px; border-radius: 24px; display: flex; justify-content: space-between; align-items: center; gap: 40px; box-shadow: var(--shadow-md); margin-bottom: 60px; transition: 0.3s; }
.studio-perks { display: flex; flex-direction: column; gap: 20px; }
.perk { background: var(--bg-section-alt); padding: 15px 25px; border-radius: 10px; font-weight: 600; border-left: 4px solid var(--primary); transition: 0.3s; color: var(--text-main); }

/* Buttons */
.btn-primary { background: var(--primary); color: #fff; padding: 12px 25px; border-radius: 8px; font-weight: 700; text-decoration: none; border: none; cursor: pointer; transition: background 0.3s; display: inline-block; }
.btn-primary:hover { background: #1d4ed8; }
.btn-white { background: #fff; color: #0f172a; padding: 15px 30px; border-radius: 8px; font-weight: 700; text-decoration: none; display: inline-block; transition: 0.3s; }
.btn-white:hover { background: #e2e8f0; }

.footer { padding: 40px 0; text-align: center; font-size: 14px; color: var(--text-muted); border-top: 1px solid var(--border-color); background: var(--bg-body); transition: 0.3s; }

/* Адаптивність */
@media (max-width: 992px) {
    .hero-container, .enterprise-wrapper, .studio-box { flex-direction: column; text-align: center; }
    .features-grid, .advanced-grid, .portfolio-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 38px; }
    .nav { display: none; } 
    
    .hero-form { display: flex; flex-direction: column; width: 100%; max-width: 100%; }
    .hero-input, .btn-large { width: 100%; height: 56px; min-height: 56px; }

    .header-actions { display: flex; align-items: center; }
    .header-actions .btn-primary { display: none; }
    .theme-toggle { margin-right: 0; padding: 10px 15px; font-size: 20px; }
    .lang-switch { margin-right: 15px; }
}
@media (max-width: 768px) {
    .nav { display: none; }
}