/* ── Osnova ── */
:root {
    --bg-1: #0e1525;
    --bg-2: #111d2e;
    --bg-3: #0c1a26;
    --sky: #38bdf8;
    --teal: #2dd4bf;
    --purple: #a78bfa;
    --amber: #f59e0b;
    --pink: #f472b6;
    --brand-green: #00c87a;
    --glass-bg: rgba(255,255,255,0.025);
    --glass-border: rgba(255,255,255,0.05);
    --glass-border-top: rgba(255,255,255,0.12);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-tertiary: #64748b;
}

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; -webkit-tap-highlight-color: transparent; }
[x-cloak] { display: none !important; }
html {
    scroll-behavior: smooth;
    background-color: #0c1a26;
    overflow-x: hidden;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    background: linear-gradient(145deg, #0e1525 0%, #111d2e 50%, #0c1a26 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

.mesh-bg {
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    opacity: 0.4;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(56, 189, 248, 0.2), transparent),
        radial-gradient(ellipse 60% 50% at 80% 100%, rgba(45, 212, 191, 0.15), transparent),
        radial-gradient(ellipse 60% 50% at 20% 80%, rgba(167, 139, 250, 0.12), transparent);
}
.mesh-bg::before {
    content: ''; position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background:
        radial-gradient(circle at 20% 30%, rgba(56, 189, 248, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(45, 212, 191, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(167, 139, 250, 0.08) 0%, transparent 50%);
    animation: meshMove 30s ease-in-out infinite alternate;
}
@keyframes meshMove {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-5%, 3%) rotate(2deg); }
    100% { transform: translate(3%, -5%) rotate(-2deg); }
}

.noise-overlay {
    position: fixed; inset: 0; z-index: -1; opacity: 0.015; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Glass i dugmad ── */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    border-top: 1px solid var(--glass-border-top);
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-strong {
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255,255,255,0.08);
    border-top: 1px solid rgba(255,255,255,0.18);
}

.gradient-text {
    background: linear-gradient(135deg, #7dd3fc 0%, #38bdf8 45%, #2dd4bf 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    padding-right: 0.08em;
    margin-right: -0.08em;
}

.btn-primary {
    background: linear-gradient(135deg, #0ea5e9, #0d9488);
    color: white;
    padding: 14px 32px;
    border-radius: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 40px -10px rgba(14, 165, 233, 0.5);
    position: relative;
    overflow: hidden;
}
.btn-primary::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 60px -10px rgba(14, 165, 233, 0.7);
}
.btn-primary:hover::before { transform: translateX(100%); }

.btn-secondary {
    background: rgba(255,255,255,0.05);
    color: var(--text-primary);
    padding: 14px 32px;
    border-radius: 14px;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s;
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.2);
}

.feature-card {
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}
.feature-card::after {
    content: ''; position: absolute;
    top: -1px; left: -1px; right: -1px; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.6), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}
.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(56, 189, 248, 0.2);
    box-shadow: 0 30px 60px -20px rgba(56, 189, 248, 0.25);
}
.feature-card:hover::after { opacity: 1; }

.accent-sky { border-left: 3px solid var(--sky); }
.accent-teal { border-left: 3px solid var(--teal); }
.accent-purple { border-left: 3px solid var(--purple); }
.accent-amber { border-left: 3px solid var(--amber); }
.accent-pink { border-left: 3px solid var(--pink); }
.accent-green { border-left: 3px solid var(--brand-green); }

.icon-box {
    width: 56px; height: 56px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 20px;
}
.icon-sky { background: rgba(56, 189, 248, 0.1); color: var(--sky); }
.icon-teal { background: rgba(45, 212, 191, 0.1); color: var(--teal); }
.icon-purple { background: rgba(167, 139, 250, 0.1); color: var(--purple); }
.icon-amber { background: rgba(245, 158, 11, 0.1); color: var(--amber); }
.icon-pink { background: rgba(244, 114, 182, 0.1); color: var(--pink); }
.icon-green { background: rgba(0, 200, 122, 0.1); color: var(--brand-green); }

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
    color: var(--sky);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-fade { animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) both; }
.hero-fade:nth-child(2) { animation-delay: 0.15s; }
.hero-fade:nth-child(3) { animation-delay: 0.3s; }
.hero-fade:nth-child(4) { animation-delay: 0.45s; }
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.display-font {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    pointer-events: none;
    animation: float 20s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

/* ── Logo ── */
.vetora-wordmark {
    display: inline-flex;
    align-items: center;
    font-weight: 800;
    letter-spacing: 0.012em;
    line-height: 1;
    color: var(--text-primary);
    filter: drop-shadow(0 0 20px rgba(56, 189, 248, 0.15));
}
.vetora-wordmark .vetora-paw {
    width: 1em;
    height: 1em;
    margin: 0 -0.025em;
    flex-shrink: 0;
}

.promo-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: rgba(52, 211, 153, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.3);
    color: #34d399;
}

/* ── Mockup-i ── */
.phone-mock {
    width: 260px;
    padding: 10px;
    border-radius: 38px;
    background: linear-gradient(160deg, rgba(255,255,255,0.14), rgba(255,255,255,0.04));
    border: 1px solid rgba(255,255,255,0.16);
    box-shadow: 0 40px 90px -30px rgba(0,0,0,0.7), 0 0 80px -20px rgba(56,189,248,0.3);
    position: relative;
    transform: rotate(-3deg);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.phone-mock:hover { transform: rotate(0deg) scale(1.02); }
.phone-mock::before {
    content: '';
    position: absolute;
    top: 22px; left: 50%;
    transform: translateX(-50%);
    width: 74px; height: 16px;
    background: #0a0f1c;
    border-radius: 100px;
    z-index: 2;
}
.phone-mock img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 29px;
}

.phone-duo { position: relative; display: flex; justify-content: center; }
.phone-duo .phone-mock { position: relative; z-index: 1; }
.phone-duo .phone-back {
    position: absolute;
    left: 50%;
    top: 34px;
    margin-left: 44px;
    width: 210px;
    opacity: 0.85;
    transform: rotate(6deg);
    z-index: 0;
}
.phone-duo .phone-back:hover { transform: rotate(6deg); }
@media (max-width: 1023px) { .phone-duo .phone-back { display: none; } }

/* ── Browser mockup ── */
.browser-mock {
    max-width: 880px;
    border-radius: 20px;
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255,255,255,0.09);
    border-top: 1px solid rgba(255,255,255,0.16);
    box-shadow: 0 40px 100px -30px rgba(0,0,0,0.7), 0 0 90px -30px rgba(45,212,191,0.25);
    overflow: hidden;
}
.browser-bar {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.browser-bar .dot { width: 10px; height: 10px; border-radius: 50%; opacity: 0.8; }
.browser-url {
    margin-left: 12px;
    padding: 4px 14px;
    border-radius: 100px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.07);
    font-size: 11px;
    color: #94a3b8;
}
.browser-body { display: flex; min-height: 340px; }
.mock-sidebar {
    width: 150px;
    padding: 16px 12px;
    border-right: 1px solid rgba(255,255,255,0.05);
    background: rgba(10, 18, 32, 0.5);
    display: flex; flex-direction: column; gap: 10px;
}
.mock-nav { height: 26px; border-radius: 8px; background: rgba(255,255,255,0.04); }
.mock-nav.aktivna {
    background: rgba(56,189,248,0.15);
    border: 1px solid rgba(56,189,248,0.25);
}
.mock-content { flex: 1; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mock-stat {
    border-radius: 12px; padding: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
}
.mock-stat .mock-label {
    font-size: 10px; color: #64748b;
    text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 8px;
}
.mock-stat .mock-val {
    height: 10px; width: 60%; border-radius: 6px;
    background: linear-gradient(90deg, #38bdf8, #2dd4bf);
    opacity: 0.7;
}
.mock-chart {
    flex: 1; min-height: 130px;
    border-radius: 12px; padding: 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    display: flex; align-items: flex-end; gap: 8px;
}
.mock-bar {
    flex: 1;
    border-radius: 6px 6px 2px 2px;
    background: linear-gradient(180deg, rgba(56,189,248,0.75), rgba(45,212,191,0.25));
    transform-origin: bottom;
    transform: scaleY(0);
    transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.browser-mock.visible .mock-bar { transform: scaleY(1); }
.mock-rows { display: flex; flex-direction: column; gap: 8px; }
.mock-row {
    height: 22px; border-radius: 8px;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.05);
}
@media (max-width: 640px) { .mock-sidebar { display: none; } }

/* ── Kolačići baner ── */
.kolacici-banner {
    position: fixed;
    left: 16px; right: 16px; bottom: 16px;
    z-index: 60;
    max-width: 620px;
    margin: 0 auto;
    padding: 18px 22px;
    border-radius: 20px;
    background: rgba(14, 21, 37, 0.92);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255,255,255,0.1);
    border-top: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 20px 60px -20px rgba(0,0,0,0.8);
}

.stat-number {
    font-family: 'DM Serif Display', serif;
    background: linear-gradient(135deg, #38bdf8, #2dd4bf);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2.5s ease-in-out infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.4; }
    50% { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

.form-input {
    width: 100%;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 14px 18px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 15px;
    transition: all 0.3s;
}
.form-input:focus {
    outline: none;
    border-color: rgba(56, 189, 248, 0.4);
    background: rgba(255,255,255,0.05);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.08);
}
.form-input::placeholder { color: var(--text-tertiary); }

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.status-pill::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 10px currentColor;
}

section { position: relative; }

/* ── Mobilna optimizacija ── */
@media (max-width: 768px) {
    .display-font { letter-spacing: -0.03em; }
    section.py-20 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
    .glass, .glass-strong { backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
    .mesh-bg::before { animation: none; }
    .floating-shape { display: none; }
    .mock-stats { gap: 8px; }
    .mock-stat { padding: 10px; }
    .mock-stat .mock-label { white-space: nowrap; overflow: hidden; }
    .kolacici-banner { left: 12px; right: 12px; bottom: 12px; padding: 16px 18px; }
    .kolacici-banner .akcije { flex-direction: column; }
    .kolacici-banner .akcije button { width: 100%; }
}