/* ========================================
   Vistula AI — Cinematic Dark Theme (Polish LTR)
   Palette: Deep Navy + Electric Blue + Crimson Accent
   ======================================== */

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

:root {
    --accent: #2b6cff;
    --accent-light: #5a8dff;
    --accent-deep: #1a4fd6;
    --accent-glow: rgba(43, 108, 255, 0.45);
    --crimson: #dc1f3a;
    --crimson-light: #ff3a55;
    --crimson-deep: #a8152b;
    --navy: #0b1428;
    --navy-light: #16243f;
    --surface: rgba(255, 255, 255, 0.05);
    --surface-hover: rgba(255, 255, 255, 0.09);
    --border: rgba(255, 255, 255, 0.09);
    --border-accent: rgba(90, 141, 255, 0.3);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.45);
    --radius: 14px;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 22px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.65;
    background: #06090f;
    overflow-x: hidden;
    direction: ltr;
}

/* ---- IMAGE BACKGROUND ---- */
.image-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background-image: url('../images/bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.image-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(6,12,24,0.85) 0%, rgba(6,12,24,0.6) 40%, rgba(6,12,24,0.82) 100%),
        linear-gradient(135deg, rgba(43,108,255,0.14) 0%, transparent 55%),
        linear-gradient(225deg, rgba(220,31,58,0.08) 0%, transparent 60%);
}

/* ---- DECORATIVE GRID ---- */
.grid-lines {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    display: flex;
    justify-content: space-evenly;
}

.grid-line {
    width: 1px;
    height: 100%;
    background: rgba(90, 141, 255, 0.05);
}

/* ---- TOP BAR ---- */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 40px;
    height: 64px;
    display: flex;
    align-items: center;
    background: rgba(6, 12, 24, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.top-bar-inner {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    height: 53px;
    width: auto;
    object-fit: contain;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 100px;
    background: rgba(43, 108, 255, 0.12);
    border: 1px solid rgba(43, 108, 255, 0.32);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-light);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--accent-glow); }
    50% { opacity: 0.7; box-shadow: 0 0 0 6px transparent; }
}

.live-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-light);
    letter-spacing: 0.01em;
    font-family: 'Inter', sans-serif;
}

/* ---- MAIN LAYOUT ---- */
.main {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 110px 40px 60px;
}

.main-grid {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 480px;
    gap: 70px;
    align-items: center;
}

/* ---- LEFT COLUMN — INFO ---- */
.info-col {
    display: flex;
    flex-direction: column;
    gap: 26px;
    max-width: 620px;
}

.tag-line {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    padding: 8px 16px 8px 14px;
    border-radius: 100px;
    background: rgba(43, 108, 255, 0.1);
    border: 1px solid rgba(43, 108, 255, 0.25);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--accent-light);
    letter-spacing: 0.01em;
}

.tag-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-light);
    box-shadow: 0 0 0 4px rgba(90, 141, 255, 0.18);
}

.hero-title {
    font-family: 'Manrope', 'Inter', sans-serif;
    font-size: clamp(36px, 4.4vw, 54px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--text-primary);
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--accent-light) 0%, #8eb1ff 50%, #c4d6ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 16.5px;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 560px;
    font-weight: 400;
}

/* Stats Row */
.stats-row {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 20px 26px;
    background: var(--surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    width: fit-content;
}

.stat-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 24px;
}

.stat-card:first-child {
    padding-left: 0;
    padding-right: 24px;
}

.stat-card:last-child {
    padding-right: 0;
    padding-left: 24px;
}

.stat-value {
    font-family: 'Manrope', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--accent-light);
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 11.5px;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.01em;
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: var(--border);
}

/* Trust Row */
.trust-row {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.trust-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.trust-item svg {
    color: var(--accent-light);
    flex-shrink: 0;
}

/* ---- RIGHT COLUMN — FORM ---- */
.form-col {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.form-card {
    width: 100%;
    padding: 26px 30px 30px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.07) 0%, rgba(43, 108, 255, 0.05) 60%, rgba(220, 31, 58, 0.03) 100%);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 0 1px rgba(43, 108, 255, 0.06);
}

.form-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    background: rgba(43, 108, 255, 0.1);
    border: 1px solid rgba(43, 108, 255, 0.22);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.badge-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--crimson-light);
    animation: pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

.badge-text {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.badge-text strong {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-light);
    letter-spacing: 0.01em;
}

.badge-text span {
    font-size: 12px;
    color: var(--text-muted);
    font-feature-settings: 'tnum';
}

/* Form Image (under badge) */
.form-image {
    position: relative;
    width: 100%;
    aspect-ratio: 455 / 262;
    overflow: hidden;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    margin-bottom: 22px;
    background: var(--navy);
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.35),
        inset 0 0 0 1px rgba(43, 108, 255, 0.08);
}

.form-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.form-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(11,20,40,0.35) 100%);
    pointer-events: none;
}

.form-title {
    font-family: 'Manrope', sans-serif;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
    line-height: 1.2;
}

.form-subtitle {
    font-size: 13.5px;
    color: var(--text-secondary);
    margin-bottom: 22px;
}

.form-subtitle strong {
    color: var(--accent-light);
    font-weight: 700;
}

/* Form */
.leadform {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.field input {
    width: 100%;
    padding: 13px 14px;
    font-size: 14.5px;
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all 0.25s ease;
    outline: none;
}

.field input::placeholder {
    color: var(--text-muted);
}

.field input:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(43, 108, 255, 0.18);
}

.field input.error {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
}

/* CTA Button */
.cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px 24px;
    font-size: 15.5px;
    font-weight: 700;
    font-family: 'Manrope', sans-serif;
    letter-spacing: 0.01em;
    color: #ffffff;
    background: linear-gradient(135deg, var(--crimson-deep) 0%, var(--crimson) 50%, var(--crimson-light) 100%);
    background-size: 200% 200%;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.4s ease;
    margin-top: 4px;
    position: relative;
    overflow: hidden;
}

.cta-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.22) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 30px rgba(220, 31, 58, 0.45),
        0 0 60px rgba(220, 31, 58, 0.2);
    background-position: 100% 100%;
}

.cta-btn:hover::before {
    opacity: 1;
}

.cta-btn:active {
    transform: translateY(0);
}

/* Form Footer */
.form-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 12px;
    color: var(--text-muted);
}

.form-legal {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    font-size: 11.5px;
    line-height: 1.6;
    color: var(--text-muted);
}

/* ---- FOOTER ---- */
.site-footer {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 24px 20px;
    font-size: 13px;
    color: var(--text-muted);
}

/* ---- intl-tel-input ---- */
.iti {
    width: 100%;
}

/* ---- ANIMATIONS ---- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.7s ease forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }

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

/* ---- LOADER ---- */
.loader {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.hide {
    display: none;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1200px) {
    .main-grid {
        grid-template-columns: minmax(0, 1fr) 440px;
        gap: 50px;
    }
}

@media (max-width: 1024px) {
    .main {
        padding: 100px 24px 40px;
    }

    .main-grid {
        grid-template-columns: 1fr;
        gap: 48px;
        max-width: 560px;
    }

    .info-col {
        max-width: 100%;
        align-items: flex-start;
    }

    .form-col {
        justify-content: center;
    }

    .form-card {
        max-width: 520px;
    }

    .hero-title {
        font-size: clamp(32px, 5.5vw, 48px);
    }

    .stats-row {
        width: 100%;
        max-width: 520px;
        justify-content: space-between;
    }
}

@media (max-width: 640px) {
    .top-bar {
        padding: 0 18px;
    }

    .main {
        padding: 84px 16px 32px;
    }

    .hero-title {
        font-size: 28px;
        line-height: 1.18;
    }

    .hero-desc {
        font-size: 15px;
    }

    .stats-row {
        flex-direction: column;
        gap: 16px;
        padding: 18px;
    }

    .stat-card,
    .stat-card:first-child,
    .stat-card:last-child {
        padding: 0;
        align-items: center;
        text-align: center;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

    .trust-row {
        gap: 14px;
    }

    .field-row {
        grid-template-columns: 1fr;
    }

    .form-card {
        padding: 22px 20px 24px;
    }

    .form-title {
        font-size: 22px;
    }

    .live-indicator {
        display: none;
    }
}