/* ========== RESET & BASE ========== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --navy: #0f2740;
    --blue: #1e5f8c;
    --blue-light: #2b7bb0;
    --teal: #0d9488;
    --accent: #0ea5e9;
    --text: #2d3748;
    --text-muted: #5a6b7f;
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --border: #e2e8f0;
    --gradient-hero: linear-gradient(135deg, #0f2740 0%, #1e5f8c 55%, #0d9488 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--blue);
    text-decoration: none;
    transition: color .15s ease;
}

a:hover {
    color: var(--navy);
}

a.text-link {
    font-weight: 600;
    border-bottom: 1px solid rgba(30, 95, 140, .3);
}

a.text-link:hover {
    border-bottom-color: var(--navy);
}

/* ========== CONTAINER ========== */
.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== HEADER / NAV ========== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    max-width: 1120px;
    margin: 0 auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--navy);
}

.brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--gradient-hero);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: .95rem;
    font-weight: 800;
}

.nav-links {
    display: flex;
    gap: 26px;
    list-style: none;
    font-size: .92rem;
    font-weight: 500;
}

.nav-links a {
    color: var(--text-muted);
}

.nav-links a:hover {
    color: var(--blue);
}

/* ========== HAMBURGER / MOBILE NAV ========== */
.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    transition: background .15s ease;
}

.nav-toggle:hover {
    background: #f1f5f9;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    margin: 0 auto;
    transition: transform .2s ease, opacity .2s ease;
}

/* Hamburger → X animacija */
.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 820px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        gap: 0;
        padding: 0;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 8px 20px rgba(15, 39, 64, .08);

        /* animirano otvaranje */
        display: flex;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-6px);
        transition:
            max-height .3s ease,
            opacity .2s ease,
            transform .25s ease,
            visibility 0s linear .3s;
    }

    .nav-links.open {
        max-height: 520px;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        transition:
            max-height .35s ease,
            opacity .2s ease,
            transform .25s ease,
            visibility 0s;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 12px 24px;
        font-size: .98rem;
        color: var(--text);
        border-bottom: 1px solid #f1f5f9;
        transition: background .15s ease, color .15s ease;
    }

    .nav-links li:last-child a {
        border-bottom: none;
    }

    .nav-links a:hover {
        background: #f8fafc;
        color: var(--blue);
    }
}

/* ========== HERO ========== */
.hero {
    /* Gradijent ostaje kao fallback ako se slika ne učita */
    background-color: var(--navy); 
    background-image: 
        /* 1. Suptilni gradijent preko slike da tekst sa leve strane bude 100% čitljiv */
        linear-gradient(to right, rgba(15, 39, 64, 0.95) 0%, rgba(15, 39, 64, 0.7) 50%, rgba(13, 148, 136, 0.1) 100%),
        /* 2. Tvoja nova slika */
        url('../img/hero-bg.webp');
    background-size: cover;
    background-position: center right; /* Slika se poravnava udesno */
    background-repeat: no-repeat;
    color: #fff;
    padding: 100px 0 90px; /* Malo više vazduha jer je slika tu */
    position: relative;
    overflow: hidden;
}

/* Uklanjamo stari ::after efekat jer sada imamo pravu sliku */
.hero::after {
    display: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 880px;
}

.hero-eyebrow {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #a5e3ff;
    margin-bottom: 18px;
}

.hero h1 {
    font-size: clamp(1.8rem, 3.6vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}

.hero h1 .highlight {
    color: #7dd3fc;
}

.hero p {
    font-size: 1.1rem;
    color: #d7e6f2;
    max-width: 760px;
    margin-bottom: 14px;
}

.hero p strong {
    color: #fff;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.hero .hero-subtitle {
    font-size: 1.12rem;
    font-weight: 600;
    color: #a5e3ff;
    margin-bottom: 18px;
    line-height: 1.5;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 50px;
    font-size: .92rem;
    font-weight: 600;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
}

.btn-primary {
    background: #fff;
    color: var(--navy);
}

.btn-primary:hover {
    color: var(--navy);
}

.btn-ghost {
    background: rgba(255, 255, 255, .12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .35);
}

.btn-ghost:hover {
    color: #fff;
    background: rgba(255, 255, 255, .2);
}

/* ========== TRUST STRIP ========== */
.trust-strip {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 26px 0;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
    text-align: center;
}

.trust-num {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--blue);
    line-height: 1.1;
}

.trust-label {
    font-size: .85rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: .02em;
}

/* ========== SECTIONS ========== */
.section {
    padding: 72px 0;
}

.section.alt {
    background: #fff;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-head {
    max-width: 760px;
    margin-bottom: 42px;
}

.section-head .kicker {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 10px;
    display: block;
}

h2 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--navy);
    margin-bottom: 14px;
}

.section-head p {
    color: var(--text-muted);
    font-size: 1.02rem;
}

h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
}

/* ========== CARD GRID ========== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 26px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(15, 39, 64, .08);
    border-color: #bfe3f5;
}

.card-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    margin-bottom: 16px;
    background: #e8f4fb;
    color: var(--blue);
}

.card p {
    color: var(--text-muted);
    font-size: .95rem;
}

/* ========== EXPERTISE TAGS ========== */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
}

.tag-list li {
    background: #eef6fb;
    border: 1px solid #cfe6f2;
    color: var(--blue);
    font-size: .85rem;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 50px;
}

/* ========== PLATFORM BLOCK ========== */
.platform {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 40px;
    align-items: start;
}

@media (max-width: 820px) {
    .platform {
        grid-template-columns: 1fr;
    }
}

.platform ul {
    list-style: none;
    display: grid;
    gap: 10px;
    margin-top: 6px;
}

.platform ul li {
    position: relative;
    padding-left: 26px;
    font-size: .96rem;
    color: var(--text);
}

.platform ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--teal);
    font-weight: 800;
}

.panel {
    background: linear-gradient(160deg, #f0f7fb 0%, #e7f3f1 100%);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
}

.panel .citation {
    background: #fff;
    border-left: 4px solid var(--blue);
    border-radius: 8px;
    padding: 16px 18px;
    font-size: .88rem;
    color: var(--text-muted);
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    line-height: 1.55;
    word-break: break-word;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.chip-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--navy);
    color: #fff;
    font-size: .84rem;
    font-weight: 600;
    padding: 9px 16px;
    border-radius: 50px;
    transition: background .2s, transform .15s;
}

.chip-btn:hover {
    background: var(--blue);
    color: #fff;
    transform: translateY(-1px);
}

.chip-btn.secondary {
    background: var(--blue);
}

.chip-btn.secondary:hover {
    background: var(--navy);
}

.chip-btn.tertiary {
    background: #fff;
    color: var(--navy);
    border: 1px solid var(--border);
}

.chip-btn.tertiary:hover {
    background: #f1f5f9;
    color: var(--navy);
}

/* ========== SPLIT (BRING / SEEK) ========== */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
}

@media (max-width: 820px) {
    .split {
        grid-template-columns: 1fr;
    }
}

.split-box {
    border-radius: 14px;
    padding: 28px;
}

.split-box.bring {
    background: #f0fdf9;
    border: 1px solid #b8ece0;
}

.split-box.seek {
    background: #f8fafc;
    border: 1px solid var(--border);
}

.split-box h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.split-box.bring h3 {
    color: #0f766e;
}

.split-box.seek h3 {
    color: var(--navy);
}

.split-box ul {
    list-style: none;
    display: grid;
    gap: 12px;
}

.split-box li {
    position: relative;
    padding-left: 24px;
    font-size: .94rem;
    color: var(--text);
}

.split-box li::before {
    content: "•";
    position: absolute;
    left: 4px;
    top: -2px;
    font-size: 1.2rem;
    color: var(--teal);
    font-weight: 800;
}

.split-box.seek li::before {
    color: var(--blue);
}

/* ========== CONTACT / CTA ========== */
.cta {
    background: var(--gradient-hero);
    color: #fff;
    border-radius: 18px;
    padding: 48px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 120%, rgba(14, 165, 233, .25), transparent 60%);
    pointer-events: none;
}

.cta h2 {
    color: #fff;
    position: relative;
    z-index: 1;
}

.cta p {
    color: #d7e6f2;
    max-width: 640px;
    margin: 0 auto 26px;
    position: relative;
    z-index: 1;
}

.cta .btn-row {
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* ========== FOOTER ========== */
.site-footer {
    background: #0b1c2e;
    color: #a9bccd;
    padding: 42px 0 30px;
    font-size: .9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 28px;
}

@media (max-width: 720px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.site-footer h4 {
    color: #fff;
    font-size: .95rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.site-footer ul {
    list-style: none;
    display: grid;
    gap: 8px;
}

.site-footer a {
    color: #a9bccd;
}

.site-footer a:hover {
    color: #fff;
}

.footer-brand {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 9px;
}

.footer-brand .brand-mark {
    width: 28px;
    height: 28px;
    font-size: .8rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    font-size: .82rem;
    color: #7f95a8;
}

.brand-logo {
    height: 40px;
    width: auto;
    display: block;
}

.app-btn-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
    flex-shrink: 0;
}

.app-btn-platform {
    background: #2b6cb0;
    color: #fff;
}
.app-btn-platform:hover {
    background: #1a365d;
}

/* ========== HERO APP BUTTONS (light on dark) ========== */
.hero .app-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
    margin-bottom: 4px;
}

.hero .app-btn {
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(4px);
    padding: 12px 20px;
}

.hero .app-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: #ffffff;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.hero .app-btn-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
    flex-shrink: 0;
}

.hero .app-btn-platform {
    background: #ffffff;
    color: #0f2740;
    border: 1px solid #ffffff;
    font-weight: 700;
}

.hero .app-btn-platform:hover {
    background: #e8f4fb;
    border-color: #e8f4fb;
    color: #0f2740;
}

/* ========== TECH STACK / INDUSTRIES ========== */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
}

.tech-stack li {
    background: #f1f5f9;
    border: 1px solid var(--border);
    color: var(--text);
    font-size: .85rem;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 6px;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.industries-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    list-style: none;
}

.industries-list li {
    background: #fff;
    border: 1px solid var(--border);
    border-left: 3px solid var(--blue);
    border-radius: 8px;
    padding: 14px 18px;
    font-size: .95rem;
    font-weight: 600;
    color: var(--navy);
}


/* ========== RESPONSIVE TWEAKS ========== */
@media (max-width: 600px) {
    .hero {
        padding: 60px 0 52px;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero .hero-subtitle {
        font-size: 1rem;
    }

    .section {
        padding: 52px 0;
    }

    .cta {
        padding: 36px 22px;
    }

    .trust-num {
        font-size: 1.6rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
    .brand-logo { 
        height: 32px; 
    }
}

/* ========== HERO BUTTONS — MOBILE ========== */
@media (max-width: 720px) {
    .hero .app-buttons {
        gap: 12px;
        margin-top: 26px;
    }

    .hero .app-btn {
        padding: 11px 18px;
        font-size: 0.82rem;
    }
}

@media (max-width: 560px) {
    .hero .app-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-top: 24px;
    }

    .hero .app-btn {
        width: 100%;
        justify-content: center;
        padding: 13px 18px;
        font-size: 0.88rem;
        white-space: normal;
        text-align: center;
        line-height: 1.3;
    }

    .hero .app-btn-icon {
        width: 18px;
        height: 18px;
    }

    .btn-row {
        gap: 10px;
    }

    .chip-btn {
        width: 100%;
        justify-content: center;
        text-align: center;
        white-space: normal;
        line-height: 1.35;
        padding: 11px 16px;
    }
}