/*
 * Protinga Įstaiga - Scandinavian Minimalist Design
 * Colors: Nordic Blue (#2563EB), Fresh Green (#10B981), Pure White (#FFFFFF)
 */

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563EB;
    --primary-dark: #1E40AF;
    --secondary: #10B981;
    --secondary-dark: #059669;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-600: #4B5563;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --white: #FFFFFF;
    --red: #EF4444;
    --yellow: #F59E0B;
    --green: #10B981;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 8rem 0;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
}

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

p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--gray-600);
}

.center {
    text-align: center;
}

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

/* ===== HEADER ===== */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

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

.nav-link {
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
}

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

.lang-switcher {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s;
}

.flag-icon {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    flex-shrink: 0;
}

.lang-btn:hover, .lang-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.mobile-menu-toggle {
    display: none;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-large {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ===== HERO SECTION ===== */
.hero {
    padding-top: 10rem;
    padding-bottom: 8rem;
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--gray-100);
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 2rem;
}

.hero-title {
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 2.5rem;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--gray-700);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.trust-badges {
    display: flex;
    gap: 1.5rem;
    opacity: 0.6;
}

/* ===== DEMO ===== */
.hero-demo {
    position: relative;
}

.demo-container {
    background: var(--white);
    border-radius: 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.demo-tabs {
    display: flex;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.demo-tab {
    flex: 1;
    padding: 1rem;
    background: transparent;
    border: none;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s;
}

.demo-tab.active {
    background: var(--white);
    color: var(--primary);
}

.demo-panel {
    padding: 2rem;
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
    min-height: 200px;
}

.chat-message {
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    max-width: 85%;
}

.chat-message.user {
    background: var(--primary);
    color: var(--white);
    align-self: flex-end;
    border-bottom-right-radius: 0.25rem;
}

.chat-message.ai {
    background: var(--gray-100);
    color: var(--gray-800);
    align-self: flex-start;
    border-bottom-left-radius: 0.25rem;
}

.source {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 0.5rem;
}

.chat-input {
    display: flex;
    gap: 0.75rem;
}

.chat-input input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.75rem;
    font-size: 1rem;
}

.chat-input button {
    padding: 0.875rem 1.5rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
}

.upload-area {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--gray-50);
    border: 2px dashed var(--gray-300);
    border-radius: 1rem;
    margin-bottom: 1.5rem;
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.upload-area h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.upload-area p {
    color: var(--gray-500);
    margin-bottom: 1.5rem;
}

.file-example {
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: 0.75rem;
}

.file-item {
    font-size: 0.875rem;
    color: var(--gray-700);
}

.progress {
    font-size: 0.75rem;
    color: var(--primary);
    margin-top: 0.5rem;
}

.demo-note {
    text-align: center;
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 1rem;
}

/* ===== OPPORTUNITY ===== */
.opportunity {
    background: var(--gray-50);
}

.opportunity-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.card {
    padding: 2.5rem;
    background: var(--white);
    border-radius: 1rem;
    border-left: 4px solid;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card.red {
    border-color: var(--red);
}

.card.yellow {
    border-color: var(--yellow);
}

.card.green {
    border-color: var(--green);
}

.card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.urgency {
    text-align: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border-radius: 1rem;
    font-size: 1.125rem;
    margin-top: 3rem;
}

/* ===== SOLUTION STEPS ===== */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

.step {
    text-align: center;
    position: relative;
}

.step .number {
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 4rem;
    font-weight: 700;
    color: var(--gray-100);
    z-index: 0;
}

.step .icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

/* ===== INSTITUTIONS GRID ===== */
.inst-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.inst-card {
    padding: 2.5rem 2rem;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.inst-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.1);
}

.inst-card .icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.inst-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.inst-card p {
    font-size: 0.95rem;
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.more {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
}

/* ===== SOCIAL PROOF ===== */
.social-proof {
    background: var(--gray-50);
}

.clients {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
    margin: 3rem 0 4rem;
}

.client {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 1rem;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.client:hover {
    opacity: 1;
}

.placeholder {
    text-align: center;
    font-size: 0.75rem;
    color: var(--gray-400);
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat {
    text-align: center;
}

.num {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.label {
    color: var(--gray-600);
}

/* ===== VIDEO ===== */
.video-wrapper {
    max-width: 900px;
    margin: 3rem auto;
}

.video-placeholder {
    aspect-ratio: 16/9;
    background: var(--gray-100);
    border-radius: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.play {
    width: 80px;
    height: 80px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.3s;
}

.play:hover {
    transform: scale(1.1);
}

/* ===== PRICING ===== */
.pricing {
    background: var(--gray-50);
}

.pricing-card {
    max-width: 600px;
    margin: 3rem auto;
    padding: 3rem;
    background: var(--white);
    border-radius: 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.pricing-card h3 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.price {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2rem;
}

.price span {
    font-size: 1rem;
    color: var(--gray-500);
}

.pricing-card ul {
    list-style: none;
    margin: 2rem 0;
}

.pricing-card li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 1.05rem;
}

.note {
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: 0.75rem;
    font-size: 0.95rem;
    margin: 2rem 0;
}

.comparison {
    text-align: center;
    padding: 1.5rem 2rem;
    background: var(--gray-100);
    border-radius: 1rem;
    margin-top: 2rem;
}

/* ===== CTA FORM ===== */
.cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.cta-text h2 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.cta-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.cta .features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cta .features div {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.05rem;
}

.cta-form {
    background: var(--white);
    padding: 3rem;
    border-radius: 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.cta-form h3 {
    margin-bottom: 2rem;
}

.cta-form input,
.cta-form select,
.cta-form textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.75rem;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.cta-form input:focus,
.cta-form select:focus,
.cta-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.checkbox {
    display: flex;
    gap: 0.75rem;
    margin: 1.5rem 0;
    font-size: 0.875rem;
    cursor: pointer;
}

.checkbox input {
    width: auto;
    margin: 0;
}

#form-success,
#form-error {
    text-align: center;
    padding: 3rem 2rem;
}

#form-success h4 {
    color: var(--green);
    margin-bottom: 1rem;
}

#form-error h4 {
    color: var(--red);
    margin-bottom: 1rem;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer h4 {
    color: var(--white);
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.footer p,
.footer a {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 2;
    transition: color 0.2s;
}

.footer a:hover {
    color: var(--white);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--gray-800);
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
}

/* ===== MODAL ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 2rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: 1.5rem;
    padding: 3rem;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    background: var(--gray-100);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.2s;
}

.modal-close:hover {
    background: var(--gray-200);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    section {
        padding: 5rem 0;
    }

    .hero-grid,
    .opportunity-grid,
    .steps,
    .inst-grid,
    .cta-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .clients {
        grid-template-columns: repeat(3, 1fr);
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    section {
        padding: 3rem 0;
    }

    .hero {
        padding-top: 8rem;
    }

    .main-nav .btn {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
        background: transparent;
        border: none;
        cursor: pointer;
    }

    .hero-cta {
        flex-direction: column;
    }

    .clients {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* ===== UTILITY ===== */
.hidden {
    display: none !important;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}
