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

:root {
    /* LIGHT MODE - High Contrast */
    --bg-base: #ffffff;
    --bg-card: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #475569;
    --border-glass: #e2e8f0;
    --header-bg: rgba(255, 255, 255, 0.9);
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    --accent: #047857; /* Stronger, darker green */
    --accent-hover: #065f46;
    --accent-glow: rgba(4, 120, 87, 0.2);
    --btn-text: #ffffff;
}

html.dark {
    /* DARK MODE - Premium */
    --bg-base: #030712;
    --bg-card: rgba(17, 24, 39, 0.7);
    --text-main: #f9fafb;
    --text-muted: #9ca3af;
    --border-glass: rgba(255, 255, 255, 0.08);
    --header-bg: rgba(3, 7, 18, 0.8);
    --shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.8);
    --accent: #10b981; /* Brighter green for dark mode */
    --accent-hover: #34d399;
    --accent-glow: rgba(16, 185, 129, 0.4);
    --btn-text: #022c22; /* Dark text on bright green */
}

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

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

.font-mono { font-family: 'JetBrains Mono', monospace; }

/* Ambient Glow Background */
.aurora-bg {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1;
    background: radial-gradient(ellipse at 20% 0%, var(--accent-glow), transparent 40%),
                radial-gradient(ellipse at 80% 100%, rgba(6, 182, 212, 0.1), transparent 40%);
    pointer-events: none;
    opacity: 0.6;
}

/* Floating Header */
.header {
    position: fixed;
    top: 16px; left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 1200px;
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 100px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    box-shadow: var(--shadow);
}

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text-main); font-weight: 900; font-size: 1.25rem; }
.logo svg { width: 32px; height: 32px; border-radius: 8px; }

.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 0.95rem; font-weight: 600; transition: color 0.3s; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }

/* FIXED BUTTON COLORS */
.btn-primary {
    background: var(--accent);
    color: var(--btn-text) !important; /* Forces text to be visible */
    padding: 10px 24px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s;
    box-shadow: 0 0 20px var(--accent-glow);
    border: none;
    cursor: pointer;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 0 30px var(--accent-glow); }

/* Theme & Mobile Toggles */
.icon-btn { background: none; border: none; color: var(--text-main); cursor: pointer; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; padding: 8px; border-radius: 50%; transition: background 0.3s; }
.icon-btn:hover { background: var(--border-glass); }
.mobile-toggle { display: none; }

/* Typography & Layout */
.text-gradient { background: linear-gradient(to right, var(--accent), #06b6d4); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.section-padding { padding: 100px 20px; max-width: 1200px; margin: 0 auto; }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 900; line-height: 1.1; margin-bottom: 24px; letter-spacing: -0.03em; color: var(--text-main); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; margin-bottom: 24px; letter-spacing: -0.02em; color: var(--text-main); }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); font-weight: 700; margin-bottom: 16px; color: var(--text-main); }
p { font-size: clamp(1rem, 2vw, 1.15rem); color: var(--text-muted); }

/* Glass Cards & Grids */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 32px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 1 !important; /* Fallback if GSAP fails */
    transform: none !important; /* Fallback */
}
.glass-card:hover { border-color: var(--accent); transform: translateY(-5px) !important; box-shadow: 0 20px 40px -20px var(--accent-glow); }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    width: 100%;
}

/* Zig-Zag Layout for Long Form */
.zigzag-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 100px;
}
.zigzag-row.reverse { flex-direction: row-reverse; }
.zigzag-text { flex: 1; }
.zigzag-image { flex: 1; }

/* Mockup Dashboard UI */
.mockup-window { background: var(--bg-base); border: 1px solid var(--border-glass); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.mockup-header { background: var(--border-glass); padding: 12px 16px; display: flex; gap: 8px; }
.mockup-dot { width: 12px; height: 12px; border-radius: 50%; }
.mockup-body { padding: 24px; display: grid; grid-template-columns: 200px 1fr; gap: 24px; }
.mockup-sidebar { border-right: 1px solid var(--border-glass); padding-right: 24px; }
.mockup-content { display: flex; flex-direction: column; gap: 24px; width: 100%; overflow-x: auto; }

/* Cute Mascot */
.mascot-wrapper { position: relative; width: 220px; height: 220px; margin: 0 auto 48px; animation: float 4s ease-in-out infinite; }
.mascot-glow { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 140%; height: 140%; background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%); z-index: -1; }
.pupil { transition: transform 0.1s ease-out; }

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

/* Mega Footer */
.mega-footer { background: var(--bg-base); border-top: 1px solid var(--border-glass); padding: 60px 20px 30px; }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px; }
.footer-col h4 { color: var(--text-main); font-size: 0.95rem; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 800; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: var(--text-muted); text-decoration: none; transition: color 0.3s; font-size: 0.9rem; font-weight: 500; }
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom { max-width: 1200px; margin: 40px auto 0; padding-top: 24px; border-top: 1px solid var(--border-glass); text-align: center; color: var(--text-muted); font-size: 0.85rem; }

/* Mobile Fixes */
@media (max-width: 900px) {
    .mockup-body { grid-template-columns: 1fr; }
    .mockup-sidebar { border-right: none; border-bottom: 1px solid var(--border-glass); padding-right: 0; padding-bottom: 16px; }
    .footer-grid { grid-template-columns: repeat(3, 1fr); }
    .zigzag-row, .zigzag-row.reverse { flex-direction: column; gap: 32px; text-align: center; }
}

@media (max-width: 768px) {
    .header { padding: 10px 16px; border-radius: 20px; }
    .nav-links { display: none; position: absolute; top: 70px; left: 0; width: 100%; background: var(--header-bg); backdrop-filter: blur(20px); padding: 24px; border-radius: 20px; border: 1px solid var(--border-glass); box-shadow: var(--shadow); flex-direction: column; gap: 16px; text-align: center; }
    .nav-links.active { display: flex; }
    .header .btn-primary { display: none; }
    .mobile-toggle { display: block; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; text-align: center; }
    .mascot-wrapper { width: 160px; height: 160px; margin-bottom: 32px; }
    .glass-card { padding: 24px; }
}