:root {
    /* Dark Theme (Default) */
    --bg-color: #050507;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --accent-primary: #6366f1; /* Indigo */
    --accent-secondary: #a855f7; /* Purple */
    --accent-tertiary: #ec4899; /* Pink */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.05);
    --navbar-bg: rgba(5, 5, 7, 0.8);
    --card-bg: rgba(20, 20, 25, 0.6);
    --spotlight-color: rgba(255, 255, 255, 0.15);
    --font-main: 'Inter', sans-serif;
    --font-display: 'Outfit', sans-serif;
}

[data-theme="light"] {
    /* Light Theme (Blue/White tones) */
    --bg-color: #f0f4f8;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --accent-primary: #2563eb; /* Royal Blue */
    --accent-secondary: #0ea5e9; /* Sky Blue */
    --accent-tertiary: #3b82f6; /* Blue */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(37, 99, 235, 0.1);
    --navbar-bg: rgba(240, 244, 248, 0.85);
    --card-bg: rgba(255, 255, 255, 0.8);
    --spotlight-color: rgba(37, 99, 235, 0.1);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Background Blobs */
.blob-cont {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    filter: blur(80px);
    opacity: 0.4;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    animation: float 10s infinite ease-in-out;
}

.blob-one {
    width: 500px;
    height: 500px;
    background: var(--accent-primary);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.blob-two {
    width: 400px;
    height: 400px;
    background: var(--accent-secondary);
    bottom: -50px;
    right: -50px;
    animation-delay: 2s;
}

.blob-three {
    width: 300px;
    height: 300px;
    background: var(--accent-tertiary);
    top: 40%;
    left: 40%;
    animation-delay: 4s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

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

.logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.highlight {
    color: var(--accent-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: transform 0.3s ease, color 0.3s ease;
}

.theme-btn:hover {
    transform: rotate(30deg);
    color: var(--accent-primary);
}

.nav-cta {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid var(--glass-border);
    cursor: pointer;
}

[data-theme="light"] .nav-cta {
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.nav-cta:hover {
    background: var(--text-primary);
    color: var(--bg-color);
}

[data-theme="light"] .nav-cta:hover {
    background: var(--accent-primary);
    color: white;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 5%;
    padding-top: 100px;
    position: relative;
}

@media (min-width: 992px) {
    .hero {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 4rem;
    }
    
    .hero-content {
        flex: 1;
        max-width: 600px;
    }
    
    .hero-visual {
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--accent-primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    animation: fadeDown 0.8s ease-out;
}

.spotlight-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    position: relative;
    color: rgba(255,255,255,0.8); /* Fallback */
    color: var(--text-primary);
    opacity: 0.9;
}

.gradient-text {
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

[data-theme="light"] .gradient-text {
    background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Spotlight Effect Logic */
.spotlight-title::after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle 200px at var(--x, 50%) var(--y, 50%), 
        var(--spotlight-color), 
        transparent
    );
    pointer-events: none;
    mix-blend-mode: overlay;
    z-index: 2;
}

[data-theme="light"] .spotlight-title::after {
    mix-blend-mode: normal; /* Overlay doesn't work well on light bg */
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

/* Buttons */
.cta-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: black;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 1rem;
}

[data-theme="light"] .btn-primary {
    background: var(--accent-primary);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

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

.btn-primary:hover .glow-effect::before {
    opacity: 0.2;
    transform: scale(1);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.2);
    transition: background 0.3s;
}

[data-theme="light"] .btn-secondary {
    border-color: rgba(30, 41, 59, 0.2);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.05);
}

[data-theme="light"] .btn-secondary:hover {
    background: rgba(30, 41, 59, 0.05);
}

/* Stats */
.stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-val {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.stat-sep {
    width: 1px;
    height: 30px;
    background: var(--glass-border);
}

/* Visual Card Stack */
.card-stack {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 400px;
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    position: absolute;
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: transform 0.5s ease, background 0.3s ease, border-color 0.3s ease;
    color: var(--text-primary);
}

[data-theme="light"] .glass-card {
    box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.15);
}

.card-1 {
    top: 0;
    left: 0;
    z-index: 2;
    transform: rotate(-3deg);
}

.card-2 {
    top: 60px;
    left: 40px;
    z-index: 1;
    transform: rotate(3deg) scale(0.95);
    opacity: 0.6;
}

.card-stack:hover .card-1 {
    transform: rotate(0deg) translateY(-10px);
}

.card-stack:hover .card-2 {
    transform: rotate(0deg) translateY(10px) scale(0.95);
    opacity: 0.8;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.card-header i {
    font-size: 1.5rem;
}

.row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.positive { color: #4ade80; }
.negative { color: #f87171; }
.neutral { color: #60a5fa; font-weight: bold; }

.highlight-row {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem;
    border-radius: 6px;
    margin-top: 0.5rem;
}

.progress-bar {
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    margin-top: 1rem;
    overflow: hidden;
}

.fill {
    height: 100%;
    width: 60%;
    background: var(--accent-primary);
    animation: load 2s infinite ease-in-out;
}

@keyframes load {
    0% { width: 0%; }
    50% { width: 80%; }
    100% { width: 100%; }
}

/* Features */
.features {
    padding: 5rem 5%;
}

.section-title {
    text-align: center;
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 4rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: var(--glass-bg);
    border-color: var(--accent-primary);
}

.active-card {
    border-color: var(--accent-tertiary);
    box-shadow: 0 0 30px rgba(236, 72, 153, 0.1);
}

.active-card::before {
    content: 'YAKINDA';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.7rem;
    background: var(--accent-tertiary);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
}

.icon-box {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
}

[data-theme="light"] .icon-box {
    background: rgba(37, 99, 235, 0.1);
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-family: var(--font-display);
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Vision */
.vision {
    padding: 5rem 5%;
    text-align: center;
    background: linear-gradient(to bottom, transparent, rgba(99, 102, 241, 0.05));
}

.vision-content {
    max-width: 800px;
    margin: 0 auto;
}

.vision h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.vision-list {
    list-style: none;
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.vision-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.vision-list i {
    color: var(--accent-primary);
}

/* Footer */
footer {
    padding: 3rem 5%;
    border-top: 1px solid var(--glass-border);
    margin-top: 3rem;
    background: var(--navbar-bg);
    color: var(--text-secondary);
}

footer p {
    flex-grow: 1;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 1rem;
    margin-bottom: 2rem;
}

.socials {
    display: flex;
    gap: 1rem;
}

.socials a {
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: color 0.3s;
}

.socials a:hover {
    color: var(--text-primary);
}

.copyright {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    background-color: white;
    width: 90%;
    max-width: 680px;
    height: 90vh;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #333;
    font-size: 28px;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.close-modal:hover {
    background: #f0f0f0;
}

.iframe-container {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

iframe {
    width: 100%;
    min-height: 100%;
    border: none;
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .spotlight-title {
        font-size: 2.5rem;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-sub {
        margin: 0 auto 2rem auto;
    }
    
    .cta-group {
        justify-content: center;
    }
    
    .stats {
        justify-content: center;
    }
}
