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

:root {
    --bg-dark: #10121a;
    --bg-card: rgba(255, 255, 255, 0.04);
    --primary: #1A9F87;
    --primary-rgb: 26, 159, 135;
    --primary-gradient: linear-gradient(135deg, #1A9F87 0%, #12826e 100%);
    --secondary-gradient: linear-gradient(135deg, #1d4ed8 0%, #1A9F87 100%);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.08);
}

body.light-mode {
    --bg-dark: #f8fafc;
    --bg-card: rgba(0, 0, 0, 0.03);
    --text-main: #1e293b;
    --text-muted: #475569;
    --border: rgba(0, 0, 0, 0.08);
}

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

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

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.animate-up { 
    opacity: 0; 
    will-change: transform, opacity;
}
.animate-up.visible { 
    animation: fadeInUp 0.8s ease-out forwards; 
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(15, 17, 21, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s, border 0.3s;
}

body.light-mode .navbar {
    background: rgba(248, 250, 252, 0.8);
}

body.light-mode .navbar .logo img {
    filter: invert(0);
}

body.light-mode .navbar .theme-language-container {
    background: rgba(0,0,0,0.05) !important;
    border-color: rgba(0,0,0,0.1) !important;
}

body.light-mode .navbar #theme-toggle-btn {
    border-right-color: rgba(0,0,0,0.1) !important;
    color: #1e293b !important;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover { color: var(--primary); }

@media (max-width: 768px) {
    .desktop-only { display: none !important; }
    .nav-links { display: flex !important; gap: 8px; margin-left: 0; }
    .btn-outline { padding: 0.5rem 0.8rem !important; margin-left: 0.3rem !important; font-size: 1rem; border-radius: 50% !important; aspect-ratio: 1; display: inline-flex !important; align-items: center; justify-content: center; width: 40px; height: 40px; }
    .btn-outline span { display: none; }
    .theme-language-container { margin-left: 0.3rem !important; padding: 5px 8px !important; }
    .mockup-container { width: 100% !important; margin-top: 50px !important; padding-bottom: 60px !important; }
    .hero { padding: 6rem 5% 2rem !important; }
    .features { padding: 40px 5% !important; }
    .mockup-container div { border-radius: 15px !important; }
    .mockup-container img { margin-bottom: -25px !important; }
}

.mockup-container {
    margin-top: 50px;
    padding-bottom: 60px;
}

.lang-select {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.1rem;
    cursor: pointer;
    outline: none;
    padding: 2px 5px;
    font-family: inherit;
    appearance: none; /* Hide default arrow to use emojis better */
}

.lang-select option {
    background: var(--bg-card);
    color: var(--text-main);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(var(--primary-rgb), 0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
}
.btn-outline:hover {
    background: var(--bg-card);
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 11rem 5% 6rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%; left: 50%;
    transform: translateX(-50%);
    width: 80vw; height: 80vw;
    max-width: 800px; max-height: 800px;
    background: radial-gradient(circle, rgba(var(--primary-rgb),0.2) 0%, rgba(15,17,21,0) 70%);
    z-index: -1;
    border-radius: 50%;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    max-width: 900px;
    opacity: 0;
}
.hero h1 span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 2.5rem;
    opacity: 0;
}

.hero-mockup {
    margin-top: 4rem;
    width: 90%;
    max-width: 1100px;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.8);
    border: 1px solid rgba(255,255,255,0.08);
    opacity: 0;
}
.hero-mockup.visible {
    animation-name: fadeInUp, float;
    animation-duration: 0.8s, 6s;
    animation-timing-function: ease-out, ease-in-out;
    animation-iteration-count: 1, infinite;
    animation-fill-mode: forwards, none;
    animation-delay: 0.4s, 1.2s; /* delay-2 = 0.4s delay, float starts after 0.4s + 0.8s = 1.2s */
}

/* Features */
.features, .pricing, .demo, .testimonials {
    padding: 6rem 0%;
}
.features-header {
    text-align: center;
    margin-bottom: 4rem;
    opacity: 0;
}
.features-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2.5rem;
    border-radius: 24px;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}
.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(var(--primary-rgb),0.15);
    border-color: rgba(var(--primary-rgb),0.4);
    background: rgba(255, 255, 255, 0.08);
}
.icon-box {
    width: 64px; height: 64px;
    border-radius: 16px;
    background: var(--primary-gradient);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* CTA */
.cta-section {
    padding: 6rem 5% 8rem;
    text-align: center;
    position: relative;
}
.cta-box {
    background: var(--primary-gradient);
    padding: 5rem 2rem;
    border-radius: 32px;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(var(--primary-rgb),0.3);
    opacity: 0;
}
.cta-box::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.5;
    pointer-events: none;
}
.cta-box h2 {
    font-size: clamp(2rem, 4vw, 3.5rem); 
    margin-bottom: 1.5rem;
    position: relative; z-index: 2;
    color: #fff !important;
}
.cta-box p {
    font-size: 1.25rem;
    opacity: 0.9 !important;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    position: relative; z-index: 2;
    color: #fff !important;
}

.cta-box .btn-primary {
    background: white !important;
    color: var(--primary) !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

.cta-box .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2) !important;
}

.btn-google {
    background: white; color: #111827;
    display: flex; align-items: center; gap: 12px;
    margin: 0 auto;
    width: max-content;
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    position: relative; z-index: 2;
}
.btn-google img { width: 24px; }
.btn-google:hover {
    background: #f8fafc;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

footer {
    padding: 3rem 5%;
    text-align: center;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
}
