:root {
    --bg-color: #0f172a;
    --text-color: #f8fafc;
    --primary: #0ea5e9;
    --secondary: #8b5cf6;
    --accent: #f43f5e;
    --success: #10b981;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(14, 165, 233, 0.2);
    --glass-border-hover: rgba(14, 165, 233, 0.6);
}

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

html {
    scroll-behavior: smooth;
}

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

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Background Effects */
.bg-grid {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-size: 50px 50px;
    background-image: linear-gradient(to right, rgba(14, 165, 233, 0.04) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(14, 165, 233, 0.04) 1px, transparent 1px);
    z-index: -3;
    pointer-events: none;
    animation: grid-move 20s linear infinite;
}

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

.particles {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 100px 100px;
    z-index: -2;
    opacity: 0.5;
    animation: particle-drift 30s linear infinite;
}

@keyframes particle-drift {
    0% { background-position: 0 0; }
    100% { background-position: 100px 100px; }
}

/* Gradient Blobs */
.gradient-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    animation: blob-float 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.6;
}

.blob-1 {
    top: -10%; left: -10%;
    width: 60vw; height: 60vw;
    background: radial-gradient(circle, rgba(99,102,241,0.4) 0%, rgba(139,92,246,0) 70%);
}

.blob-2 {
    bottom: -20%; right: -10%;
    width: 70vw; height: 70vw;
    background: radial-gradient(circle, rgba(236,72,153,0.3) 0%, rgba(99,102,241,0) 70%);
    animation-delay: -10s;
}

@keyframes blob-float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(10%, 20%) scale(1.1); }
    100% { transform: translate(-10%, -10%) scale(0.9); }
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav a {
    color: #a3a3a3;
    text-decoration: none;
    margin: 0 1.5rem;
    font-weight: 600;
    transition: color 0.3s;
}

nav a:hover { color: #fff; }

/* Buttons */
.glowing-btn, .secondary-btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 50px;
    font-family: inherit;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    position: relative;
    z-index: 1;
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

.glowing-btn {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: white;
}

.glowing-btn::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent), var(--primary));
    background-size: 400%;
    border-radius: 50px;
    z-index: -1;
    filter: blur(15px);
    opacity: 0;
    transition: opacity 0.3s;
    animation: glow-move 10s linear infinite;
}

.glowing-btn:hover { transform: translateY(-3px) scale(1.02); }
.glowing-btn:hover::before { opacity: 0.8; }
.glowing-btn:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
}

.pulse-btn {
    animation: button-pulse 2s infinite;
}

@keyframes button-pulse {
    0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(99, 102, 241, 0); }
    100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

.secondary-btn {
    background: var(--glass-bg);
    color: white;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}
.secondary-btn:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-3px);
}

.shine-btn::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.2), transparent);
    transform: skewX(-20deg);
    transition: 0.5s;
}
.shine-btn:hover::after { left: 150%; }

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple-anim 0.6s linear;
    background-color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
}
@keyframes ripple-anim {
    to { transform: scale(4); opacity: 0; }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    padding-top: 80px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.highlight {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    color: #a3a3a3;
    margin-bottom: 2.5rem;
    min-height: 1.8em;
}

.typing-text { color: #fff; font-weight: 600; }
.cursor {
    display: inline-block;
    width: 2px;
    animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.btn-group { display: flex; gap: 1rem; }

.hero-visual {
    flex: 1;
    position: relative;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.floating-cards-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    padding: 0.5rem 0;
}

.marquee-track.left { animation: scroll-left 30s linear infinite; }
.marquee-track.right { animation: scroll-right 30s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes scroll-right {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* Floating Tool Cards */
.tool-card {
    background: rgba(15, 15, 15, 0.6);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 0.8rem 1.2rem;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
    width: max-content;
}

.tool-card:hover {
    transform: scale(1.05);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3), 0 15px 30px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.tool-card:hover .icon {
    animation: bounce 0.5s ease;
}

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

.tool-card .icon {
    font-size: 1.5rem;
    background: var(--glass-bg);
    border-radius: 12px;
    padding: 0.5rem;
}

.tool-card h4 { font-size: 0.95rem; margin-bottom: 0.2rem; }
.tool-card p { color: #a3a3a3; font-size: 0.75rem; }

/* Stats Section */
.stats-section {
    padding: 5rem 5%;
    display: flex;
    justify-content: space-around;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.02), transparent);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.stat-item { text-align: center; }
.stat-item h2, .stat-item .counter {
    font-size: 3.5rem;
    display: inline-block;
    background: linear-gradient(to right, #fff, #a3a3a3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}
.stat-item span { font-size: 2rem; font-weight: 800; color: var(--primary); }
.stat-item p { color: #a3a3a3; font-size: 1rem; text-transform: uppercase; letter-spacing: 2px; }

/* Tools & Results Sections */
.tools-section, .results-section {
    padding: 6rem 5%;
    text-align: center;
}

.tools-section h2, .results-section h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: #a3a3a3;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Category Filter */
.category-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}
.cat-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: #a3a3a3;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}
.cat-btn:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}
.cat-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

.navbar nav a.active {
    color: #fff;
}

/* Hide filtered items */
.tool-demo-card {
    scroll-margin-top: 7rem;
}

.tool-demo-card.hidden {
    display: none !important;
}

.tools-grid, .results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    text-align: left;
}

.tools-grid.is-filtered {
    grid-template-columns: repeat(auto-fit, minmax(300px, 380px));
    justify-content: center;
    align-items: start;
}

.tools-grid.is-filtered .ad-inline {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(100%, 760px);
}

/* Result Cards / Tool Demo Cards */
.result-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s;
}

.result-card.active:hover {
    transform: translateY(-15px) scale(1.08);
    box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 30px rgba(99, 102, 241, 0.4);
    border-color: var(--primary);
    z-index: 5;
}

.card-glow {
    position: absolute;
    top: -50px; right: -50px;
    width: 150px; height: 150px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    opacity: 0.2;
    border-radius: 50%;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.result-card:hover .card-glow {
    transform: scale(2.5) translate(-10px, 10px);
    opacity: 0.4;
}

.result-card h3 { font-size: 1.4rem; margin-bottom: 0.5rem; position: relative; z-index: 1; letter-spacing: -0.5px; }
.result-card p { color: #a3a3a3; font-size: 1rem; position: relative; z-index: 1; margin-bottom: 1.5rem; }

/* Mock Tool UI */
.tool-ui {
    background: rgba(0,0,0,0.3);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}

/* Tool Inputs */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}
.tool-input {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-color);
    font-family: 'Outfit', sans-serif;
    transition: all 0.3s;
    color-scheme: dark; /* Forces native dark mode for date pickers/scrollbars */
}
.tool-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.2);
}

/* Input with Unit Suffix */
.input-wrapper {
    position: relative;
    width: 100%;
}
.input-wrapper .tool-input {
    width: 100%;
    padding-right: 2.5rem;
}
.input-suffix {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #a3a3a3;
    font-size: 0.9rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s, color 0.3s;
}
.input-wrapper:focus-within .input-suffix,
.tool-input:not(:placeholder-shown) + .input-suffix {
    opacity: 1;
    color: var(--primary);
}

/* Date Picker Calendar Icon Styling */
input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
    transition: 0.3s ease;
}
input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
    filter: drop-shadow(0 0 5px var(--primary));
}

.tool-input option {
    background: var(--bg-color);
    color: var(--text-color);
}

/* Food List */
.food-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    max-height: 120px;
    overflow-y: auto;
}

.food-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 3px solid var(--primary);
}

.demo-btn { width: 100%; margin-top: 0.5rem; }

/* BMI Progress */
.progress-track {
    width: 100%; height: 10px;
    background: #222;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}
.bmi-bar {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, #10b981, #f59e0b, #ef4444);
    transition: width 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.bar-labels {
    display: flex; justify-content: space-between;
    font-size: 0.75rem; color: #666;
}

/* EMI Chart */
.chart-container {
    height: 60px; width: 100%;
    display: flex; align-items: flex-end;
    gap: 10px; margin-bottom: 1rem;
    border-bottom: 1px solid #333;
}
.chart-bar {
    flex: 1; width: 100%;
    border-radius: 4px 4px 0 0;
    transition: height 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    height: 0;
}
.chart-bar.principal { background: var(--primary); }
.chart-bar.interest { background: var(--secondary); }

.legend { display: flex; gap: 1rem; font-size: 0.85rem; color: #a3a3a3; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.dot-p { background: var(--primary); }
.dot-i { background: var(--secondary); }
.dot-i { background: var(--secondary); }

/* Daily Needs / Macros */
.meal-split-container {
    height: 30px; width: 100%;
    display: flex; gap: 2px;
    margin-bottom: 1rem;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
}
.meal-bar {
    height: 100%;
    display: flex; justify-content: center; align-items: center;
    color: #fff; font-size: 0.75rem; font-weight: 600;
    transition: width 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    width: 0%;
}
.meal-bar span { opacity: 0; transition: opacity 0.3s; transition-delay: 1s; }
.meal-bar.calculated span { opacity: 1; }
.meal-bar.carbs { background: var(--primary); }
.meal-bar.protein { background: var(--success); }
.meal-bar.fat { background: var(--secondary); }

.dot-c { background: var(--primary); }
.dot-pr { background: var(--success); }
.dot-f { background: var(--secondary); }

/* QR UI */
.qr-placeholder {
    width: 100px; height: 100px;
    background: var(--glass-bg);
    border: 2px dashed #444;
    border-radius: 8px;
    margin: 0 auto;
    display: flex; justify-content: center; align-items: center;
    color: #666; font-size: 0.9rem;
    transition: all 0.5s;
}
.qr-ui.generated .qr-placeholder {
    background: #fff;
    border: none;
    background-image: repeating-linear-gradient(45deg, #000 25%, transparent 25%, transparent 75%, #000 75%, #000), repeating-linear-gradient(45deg, #000 25%, #fff 25%, #fff 75%, #000 75%, #000);
    background-position: 0 0, 5px 5px;
    background-size: 10px 10px;
    color: transparent;
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
}

/* Standard Calculator */
.calc-display {
    background: var(--dark-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 1rem;
    font-size: 1.5rem;
    text-align: right;
    margin-bottom: 1rem;
    color: #fff;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    overflow-x: auto;
}

.rate-source {
    min-height: 34px;
    margin: 0 0 0.85rem;
    color: #a3a3a3;
    font-size: 0.78rem;
    line-height: 1.45;
    text-align: right;
}

.rate-source a {
    color: var(--primary);
    text-decoration: none;
}

.rate-source a:hover {
    color: #fff;
    text-shadow: 0 0 12px rgba(14, 165, 233, 0.55);
}

.calc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.calc-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    padding: 1rem 0;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
}
.calc-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}
.calc-btn:active {
    transform: translateY(1px);
}
.calc-btn.op { color: var(--primary); font-weight: bold; }
.calc-btn.clear { color: #ef4444; }
.calc-btn.equals { background: var(--primary); color: #fff; border: none; }
.calc-btn.equals:hover { background: #4f46e5; }

/* Footer */
.site-footer {
    position: relative;
    padding: 4rem 5% 2rem;
    border-top: 1px solid var(--glass-border);
    overflow: hidden;
}
.footer-glow {
    position: absolute; top: -50px; left: 50%; transform: translateX(-50%);
    width: 300px; height: 100px;
    background: var(--primary);
    filter: blur(80px);
    opacity: 0.3;
}
.footer-content {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 2rem; position: relative; z-index: 1;
}
.footer-brand p { color: #a3a3a3; }
.social-links { display: flex; gap: 1rem; }
.social-icon {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex; justify-content: center; align-items: center;
    color: #fff; text-decoration: none;
    transition: all 0.3s;
}
.social-icon:hover {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary);
    transform: translateY(-3px);
}
.copyright { text-align: center; color: #666; font-size: 0.9rem; position: relative; z-index: 1; }

/* Toasts */
.toast-container {
    position: fixed; bottom: 30px; right: 30px;
    display: flex; flex-direction: column; gap: 10px;
    z-index: 1000; pointer-events: none;
}
.toast {
    background: rgba(20, 20, 20, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-left: 4px solid var(--success);
    color: #fff; padding: 1rem 1.5rem; border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transform: translateX(120%);
    animation: toast-slide 0.5s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.toast.hide { animation: toast-fade 0.5s forwards; }

@keyframes toast-slide { to { transform: translateX(0); } }
@keyframes toast-fade { to { opacity: 0; transform: translateX(100%); } }

/* Scroll Reveals & Animations */
.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal-text.active { opacity: 1; transform: translateY(0); }

.scroll-reveal { 
    opacity: 0; 
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); 
}
.scroll-reveal:nth-child(3n+1) { transform: translateY(40px) translateX(-30px) scale(0.95); } /* Left Column slides from bottom-left */
.scroll-reveal:nth-child(3n+2) { transform: translateY(50px) scale(0.95); } /* Center Column slides straight up */
.scroll-reveal:nth-child(3n+3) { transform: translateY(40px) translateX(30px) scale(0.95); } /* Right Column slides from bottom-right */

.scroll-reveal.active { 
    opacity: 1; 
    transform: translateY(0) translateX(0) scale(1); 
}

/* Google Ads Placement Containers */
.ad-space {
    width: 100%;
    min-height: 90px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px dashed rgba(14, 165, 233, 0.3);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem auto;
    position: relative;
    overflow: hidden;
}

.ad-space::before {
    content: 'Advertisement Space';
    color: rgba(248, 250, 252, 0.3);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: absolute;
    z-index: 0;
}

.ad-space > ins {
    position: relative;
    z-index: 1;
}

.ad-leaderboard { max-width: 1124px; height: 132px; }
.ad-inline { grid-column: span 1; height: 280px; margin: 0; }
@media (min-width: 900px) {
    .ad-inline { grid-column: span 2; }
}

/* Delays */
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* Footer Links & Modals */
.footer-links a {
    color: #a3a3a3;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}
.footer-links a:hover { color: var(--primary); }

.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--bg-color);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 40px rgba(14, 165, 233, 0.1);
}
.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 2rem;
    color: #a3a3a3;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}
.close-modal:hover { color: var(--accent); }

/* Responsive */
@media (max-width: 900px) {
    .hero { flex-direction: column; text-align: center; padding-top: 120px; }
    .hero-content { align-items: center; display: flex; flex-direction: column; }
    .hero-visual { width: 100%; height: 400px; margin-top: 2rem; transform: scale(0.8); }
    .stats-section { flex-direction: column; gap: 3rem; }
    nav { display: none; }
}
