:root {
    --bg-dark: #070a13;
    --bg-card: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 255, 255, 0.08);
    --primary: #8b5cf6;
    --primary-glow: rgba(139, 92, 246, 0.4);
    --secondary: #06b6d4;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --font-sans: 'Outfit', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.section {
    padding: 80px 0;
}

/* Navbar */
.navbar {
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: rgba(7, 10, 19, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Poppins', var(--font-sans);
    background: linear-gradient(135deg, #fff 30%, var(--primary) 70%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.btn-outline {
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-main);
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    border: none;
    padding: 16px 32px;
    font-size: 1.1rem;
    box-shadow: 0 0 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--primary);
}

.btn-scrolled {
    color: #fff;
    border-color: transparent !important;
    box-shadow: 0 0 20px var(--primary-glow);
}

.btn-scrolled::before {
    opacity: 1;
}

.pulse-btn {
    animation: breathing 3s infinite ease-in-out;
}

@keyframes breathing {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px var(--primary-glow);
    }
    50% {
        transform: scale(1.04);
        box-shadow: 0 0 35px rgba(139, 92, 246, 0.6);
    }
}

/* Hero Section */
.hero {
    padding: 150px 0 100px;
    background: radial-gradient(circle at 50% -20%, rgba(139, 92, 246, 0.2) 0%, transparent 60%);
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.badge {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    display: inline-block;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px auto;
}

/* Magic Feature */
.magic-feature {
    background: rgba(255, 255, 255, 0.01);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.magic-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.magic-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.magic-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.magic-visual {
    position: relative;
    height: 400px;
    background: rgba(15, 23, 42, 0.4) url('map_bg.png') center/cover no-repeat;
    background-blend-mode: overlay;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.radar-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.zone-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border: 2px dashed var(--primary);
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.1);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.2);
}

.landmark-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--primary);
}

.speaker-icon {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.user-speaker {
    color: var(--secondary);
    filter: drop-shadow(0 0 10px var(--secondary));
}

.car-speaker {
    color: #ffffff;
    filter: drop-shadow(0 0 10px #ffffff);
}

.user-dot {
    position: absolute;
    width: 32px;
    height: 32px;
    background: rgba(6, 182, 212, 0.2);
    border-radius: 50%;
    border: 2px solid var(--secondary);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px var(--secondary-glow);
    transform: translate(-50%, -50%);
    animation: walkStreets 8s infinite linear;
}

.user-dot svg {
    width: 18px;
    height: 18px;
    color: #fff;
    filter: drop-shadow(0 0 5px var(--secondary));
}

@keyframes walkStreets {
    0%   { left: 15%; top: 100%; }   /* Start na dnu leve ulice (Obrenovićeva) */
    40%  { left: 22%; top: 60%; }    /* Ide malo više na gore pre raskrsnice */
    60%  { left: 45%; top: 57%; }    /* Staje na ulici ispred same tačke */
    100% { left: 45%; top: 57%; }    /* Ostaje na ulici, ne ide u centar */
}

.car-dot {
    position: absolute;
    width: 32px;
    height: 32px;
    background: rgba(16, 185, 129, 0.2);
    border-radius: 50%;
    border: 2px solid #10b981;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
    transform: translate(-50%, -50%);
    animation: driveCar 8s infinite linear;
    opacity: 0;
    z-index: 2; /* Iznad mape */
}

.car-dot svg {
    width: 18px;
    height: 18px;
    color: #ffffff;
    filter: drop-shadow(0 0 5px #10b981);
}

@keyframes driveCar {
    0%   { left: 75%; top: 110%; opacity: 0; }
    59%  { left: 85%; top: 110%; opacity: 0; }
    60%  { left: 80%; top: 100%; opacity: 1; }  /* Kreće iz donjeg desnog ugla */
    
    100% { left: 50%; top: 0%; opacity: 1; }  /* Nastavlja pravo gore-levo i izlazi van mape */
}

/* Add active state for speaker handled by JS */
.speaker-icon.active {
    opacity: 1;
    animation: pulseSpeaker 1s infinite alternate;
}

@keyframes pulseSpeaker {
    from { transform: translateX(-50%) scale(1); filter: brightness(1); }
    to { transform: translateX(-50%) scale(1.1); filter: brightness(1.3); }
}

/* Benefits */
.benefits h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(139, 92, 246, 0.3);
}

.glass-card .icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.glass-card .icon svg {
    color: var(--primary);
}

.glass-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.glass-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* How It Works */
.how-it-works h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    position: relative;
}

.step-card {
    text-align: center;
    padding: 30px;
}

.step-num {
    width: 60px;
    height: 60px;
    background: rgba(139, 92, 246, 0.1);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 auto 20px;
    box-shadow: 0 0 15px var(--primary-glow);
}

.step-card h3 {
    margin-bottom: 10px;
}

.step-card p {
    color: var(--text-muted);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 60px 0 40px;
    margin-top: 80px;
    background: #03050a;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
}

.footer-col h4 {
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .footer-contact li {
        justify-content: center;
    }
}

.footer-contact svg {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

@media (max-width: 768px) {
    .footer-bottom {
        justify-content: center;
        flex-direction: column;
        text-align: center;
    }
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .magic-grid {
        grid-template-columns: 1fr;
    }
    
    .magic-visual {
        height: 300px;
    }
}

/* 4 Cards Grid */
.features-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

@media (max-width: 992px) {
    .features-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .features-grid-4 {
        grid-template-columns: 1fr;
    }
}

.feature-card-small {
    padding: 30px 20px;
    text-align: center;
}

.feature-card-small .icon {
    margin: 0 auto 20px auto;
}

.feature-card-small h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.feature-card-small p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-card {
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
}

.premium-card {
    border: 1px solid rgba(6, 182, 212, 0.4);
    box-shadow: 0 10px 40px rgba(6, 182, 212, 0.1);
}

.pricing-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.premium-card .pricing-header h3 {
    color: var(--secondary);
}

.pricing-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-main);
    font-size: 0.95rem;
}

.pricing-features svg {
    width: 20px;
    height: 20px;
    color: var(--secondary);
    flex-shrink: 0;
    margin-top: 2px;
}

/* FAQ Accordion */
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(139, 92, 246, 0.3);
}

.faq-item.active {
    border-color: var(--primary);
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.1);
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
}

.faq-question .chevron {
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-item.active .chevron {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-answer p {
    padding: 0 25px 25px 25px;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* Contact Form */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
    background: rgba(0, 0, 0, 0.4);
}

.form-message-success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.form-message-error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}
