@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;600;700;800&display=swap');

:root {
    --bg-color: #080b11;
    --card-bg: rgba(17, 26, 46, 0.45);
    --border-color: rgba(31, 42, 68, 0.6);
    --accent-blue: #3b82f6;
    --accent-cyan: #06b6d4;
    --text-primary: #f3f4f6;
    --text-muted: #9ca3af;
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.glow-bg {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(8, 11, 17, 0) 70%);
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
    pointer-events: none;
}

.glow-bg-bottom {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, rgba(8, 11, 17, 0) 70%);
    bottom: -100px;
    right: -100px;
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}

/* Header & Nav */
header {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8, 11, 17, 0.8);
}

.nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    font-family: 'Outfit', sans-serif;
}

.logo span {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #fff;
}

/* Language Switcher Styling */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 4px 12px;
    border-radius: 999px;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: color 0.2s, text-shadow 0.2s;
}

.lang-btn:hover {
    color: #fff;
}

body.lang-en .lang-btn-en {
    color: #fff;
    text-shadow: 0 0 8px rgba(59, 130, 246, 0.6);
}

body.lang-sr .lang-btn-sr {
    color: #fff;
    text-shadow: 0 0 8px rgba(6, 182, 212, 0.6);
}

/* Language Visibility Rules */
body.lang-en .lang-sr { display: none !important; }
body.lang-en .lang-sr-inline { display: none !important; }
body.lang-sr .lang-en { display: none !important; }
body.lang-sr .lang-en-inline { display: none !important; }

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    color: #fff;
    padding: 10px 24px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 24px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.3s, border-color 0.3s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero {
    padding: 80px 0 100px;
    text-align: center;
    position: relative;
}

.hero h1 {
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: var(--text-muted);
    font-size: 18px;
    max-width: 640px;
    margin: 0 auto 32px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 60px;
}

.hero-mockup {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 12px;
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    max-width: 900px;
    margin: 0 auto;
    transition: transform 0.5s;
}

.hero-mockup img {
    width: 100%;
    border-radius: 8px;
    display: block;
}

.hero-mockup:hover {
    transform: scale(1.01) translateY(-5px);
}

/* Stats section */
.stats-bar {
    display: flex;
    justify-content: space-around;
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 80px;
    background: rgba(17, 26, 46, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    color: var(--text-muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

/* Features Grid */
.features {
    padding-bottom: 80px;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 16px;
}

.section-desc {
    text-align: center;
    color: var(--text-muted);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.3s, border-color 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.4);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue);
    font-size: 22px;
    margin-bottom: 20px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* Feature highlight section (Split layout) */
.feature-highlight {
    padding: 80px 0;
    display: flex;
    align-items: center;
    gap: 60px;
}

.feature-highlight.reverse {
    flex-direction: row-reverse;
}

.highlight-text {
    flex: 1;
}

.highlight-text h2 {
    font-size: 36px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.highlight-text p {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 24px;
}

.highlight-features {
    list-style: none;
}

.highlight-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 500;
}

.highlight-features li svg {
    color: var(--accent-cyan);
    flex-shrink: 0;
}

.highlight-image {
    flex: 1.2;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 10px;
    box-shadow: var(--glass-shadow);
}

.highlight-image img {
    width: 100%;
    border-radius: 8px;
    display: block;
}

/* Legal Pages styling */
.legal-content {
    padding: 60px 0 100px;
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h1 {
    font-size: 42px;
    margin-bottom: 30px;
    text-align: center;
}

.legal-content h2 {
    font-size: 22px;
    margin: 32px 0 16px;
    color: #fff;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.legal-content p {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 16px;
}

.legal-content ul {
    margin-left: 20px;
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 15px;
}

.legal-content li {
    margin-bottom: 8px;
}

/* Footer */
footer {
    padding: 60px 0 40px;
    border-top: 1px solid var(--border-color);
    background: rgba(6, 9, 15, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 12px;
    max-width: 320px;
}

.footer-col h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    color: var(--text-muted);
    font-size: 13px;
}

/* Premium Animations & Effects */
.fade-in-up {
    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);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }

.floating {
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: perspective(1000px) rotateY(-2deg) rotateX(2deg) translateY(0px); }
    50% { transform: perspective(1000px) rotateY(-2deg) rotateX(2deg) translateY(-15px); }
    100% { transform: perspective(1000px) rotateY(-2deg) rotateX(2deg) translateY(0px); }
}

.pulse-glow {
    animation: pulse-glow 4s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
    0% { opacity: 0.6; transform: translateX(-50%) scale(1); }
    100% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

.btn-primary.glow {
    position: relative;
    overflow: hidden;
}

.btn-primary.glow::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%);
    opacity: 0;
    transform: scale(0.5);
    transition: transform 0.3s, opacity 0.3s;
}

.btn-primary.glow:hover::after {
    opacity: 1;
    transform: scale(1);
    animation: buttonGlow 2s infinite linear;
}

@keyframes buttonGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    border-top: 1px solid var(--border-color);
}

.faq-list {
    max-width: 800px;
    margin: 40px auto 0;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.faq-item:hover {
    border-color: rgba(59, 130, 246, 0.4);
}

.faq-question {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    user-select: none;
}

.faq-icon {
    transition: transform 0.3s;
    color: var(--accent-blue);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    padding: 0 24px 20px;
    max-height: 200px; /* Adjust if content is longer */
}

/* Responsive */
@media (max-width: 992px) {
    .feature-highlight, .feature-highlight.reverse {
        flex-direction: column;
        gap: 40px;
    }
    .hero h1 {
        font-size: 40px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .nav-links {
        gap: 16px;
    }
}
