/* ===== DIZAJN VARIJABLE ===== */
:root {
    --pink: #e83e8c;
    --pink-glow: rgba(232, 62, 140, 0.25);
    --gradient: linear-gradient(135deg, #e83e8c, #d63384);
    --glass: rgba(20, 20, 30, 0.55);
    --glass-border: rgba(255, 255, 255, 0.08);
    --white: #ffffff;
    --muted: #c0c0c0;
    --dark: #0b090a;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--white);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--dark);
    overflow-x: hidden;
}

/* ===== POZADINA SA GLOW EFEKTIMA ===== */
.bg {
    position: fixed; inset: 0;
    background: radial-gradient(circle at center, #2b1422 0%, var(--dark) 100%);
    z-index: -2;
}
.bg::before, .bg::after {
    content: '';
    position: absolute;
    width: 420px; height: 420px;
    border-radius: 50%;
    filter: blur(130px);
    z-index: -1;
    animation: drift 20s infinite alternate ease-in-out;
}
.bg::before { background: rgba(232, 62, 140, 0.15); top: -120px; left: -120px; }
.bg::after  { background: rgba(111, 66, 193, 0.15); bottom: -120px; right: -120px; animation-delay: -10s; }

@keyframes drift {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(80px, 80px) scale(1.3); }
}

/* ===== GLAVNA KARTICA (GLASSMORPHISM) ===== */
.card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3.5rem;
    max-width: 650px;
    width: 90%;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===== BADGE ===== */
.badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: rgba(232, 62, 140, 0.1);
    color: #ff85c0;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(232, 62, 140, 0.2);
}

/* ===== LOGO (NASLOV) ===== */
.logo {
    font-family: 'Playfair Display', serif;
    font-size: 5.5rem;
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1;
    margin-bottom: 1.8rem;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.logo span { color: var(--pink); font-size: 4.5rem; }

.card h2 {
    font-size: 1.55rem;
    font-weight: 400;
    margin-bottom: 1rem;
}
.desc {
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--muted);
    margin-bottom: 2.4rem;
    font-weight: 300;
}

/* ===== PILL BENEFITI ===== */
.pills { display: flex; justify-content: center; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 2.8rem; }
.pill {
    font-size: 0.88rem; font-weight: 500;
    background: rgba(255, 255, 255, 0.04);
    padding: 0.65rem 1.1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.3s, transform 0.3s;
}
.pill:hover { background: rgba(255, 255, 255, 0.09); transform: translateY(-2px); }

/* ===== CTA DUGME ===== */
.cta {
    display: inline-block;
    padding: 1.1rem 3rem;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    background: var(--gradient);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 25px var(--pink-glow);
    transition: transform 0.35s, box-shadow 0.35s;
}
.cta:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 16px 38px rgba(232, 62, 140, 0.45); }
.cta:active { transform: scale(0.97); }

.hint { margin-top: 1.2rem; font-size: 0.85rem; color: #777; letter-spacing: 0.5px; }

/* ===== SEO FAQ SEKCIJA ===== */
.seo-faq {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 3px solid var(--pink);
    border-radius: 14px;
    padding: 1.6rem 1.8rem 1.4rem;
    text-align: left;
    position: relative;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    animation: faqFadeIn 0.6s ease forwards;
    opacity: 0;
}
.faq-item:nth-child(1) { animation-delay: 0.1s; }
.faq-item:nth-child(2) { animation-delay: 0.25s; }
.faq-item:nth-child(3) { animation-delay: 0.4s; }

@keyframes faqFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
.faq-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(232, 62, 140, 0.1);
}
.faq-icon {
    font-size: 1.6rem;
    margin-bottom: 0.6rem;
    line-height: 1;
}
.seo-faq h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.55rem;
    color: var(--white);
}
.seo-faq p {
    font-size: 0.88rem;
    line-height: 1.75;
    color: var(--muted);
    margin: 0;
    font-weight: 300;
}
.seo-faq strong { color: var(--white); font-weight: 500; }
.seo-faq em { color: #ff85c0; font-style: normal; }

footer { margin-top: 3.2rem; font-size: 0.82rem; color: #555; }

/* ===== MODAL OVERLAY ===== */
.overlay {
    position: fixed; inset: 0;
    z-index: 1000;
    display: flex;                        /* uvek flex, NE menjamo display */
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    /* Sakriveno po default-u */
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}
.overlay.open {
    visibility: visible;
    opacity: 1;
}

/* ===== MODAL KARTICA ===== */
.modal {
    background: rgba(18, 16, 24, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    width: 92%;
    max-width: 440px;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7);
    text-align: left;
    /* Animacija ulaska */
    transform: translateY(30px) scale(0.96);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.overlay.open .modal {
    transform: translateY(0) scale(1);
}

/* ===== MODAL X DUGME ===== */
.modal-x {
    position: absolute; top: 14px; right: 18px;
    background: none; border: none;
    font-size: 2rem; color: var(--muted);
    cursor: pointer; line-height: 1;
    transition: color 0.2s;
}
.modal-x:hover { color: var(--pink); }

/* ===== MODAL TEKST ===== */
.modal h2 { font-size: 1.45rem; margin-bottom: 0.4rem; text-align: center; }
.modal p  { font-size: 0.88rem; color: var(--muted); text-align: center; margin-bottom: 1.8rem; }

/* ===== FORMA ===== */
.modal label {
    display: block;
    font-size: 0.82rem;
    margin-bottom: 0.35rem;
    color: var(--muted);
    font-weight: 500;
}
.modal input,
.modal textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.modal input::placeholder,
.modal textarea::placeholder { color: #666; }

.modal input:focus,
.modal textarea:focus {
    outline: none;
    border-color: var(--pink);
    box-shadow: 0 0 0 3px rgba(232, 62, 140, 0.25);
    background: rgba(0, 0, 0, 0.5);
}

.cta-submit {
    width: 100%; padding: 0.95rem;
    margin-top: 0.5rem;
    font-size: 1rem;
}
.cta-submit:disabled { opacity: 0.65; cursor: not-allowed; }

/* ===== PORUKA ISPOD FORME ===== */
.form-msg { text-align: center; font-size: 0.92rem; font-weight: 500; min-height: 22px; margin-top: 0.8rem; }
.form-msg.ok  { color: #4ade80; }
.form-msg.err { color: #f87171; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .logo { font-size: 4rem; }
    .logo span { font-size: 3rem; }
    .card { padding: 2.5rem 1.5rem; }
}
@media (max-width: 480px) {
    .logo { font-size: 3.2rem; }
    .logo span { font-size: 2.4rem; }
    .card h2 { font-size: 1.3rem; }
    .pills { flex-direction: column; gap: 0.7rem; }
    .cta, .cta-submit { width: 100%; padding: 1rem 2rem; }
    .modal { padding: 2rem 1.4rem; }
}
