/* ==========================================================================
   Design System Variables & Core Styles
   ========================================================================== */
:root {
    /* Brand Palette (Matching Flutter app_theme.dart) */
    --primary: #6366f1;         /* Modern Indigo */
    --secondary: #8b5cf6;       /* Vibrant Violet */
    --accent: #f43f5e;          /* Rose (Debit) */
    --success: #10b981;         /* Emerald (Credit) */
    
    /* Backgrounds & Surfaces */
    --background: #090a0f;      /* Deep Space Dark */
    --surface: #151622;         /* Sleek Slate */
    --surface-light: #1e2030;   /* Light Slate */
    --border: #26293b;          /* Dark Slate Border */
    
    /* Text Colors */
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    
    /* Gradients */
    --grad-primary: linear-gradient(135deg, var(--primary), var(--secondary));
    --grad-hero: radial-gradient(circle at top right, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.05) 50%, transparent 100%);
    
    /* Timing & Animations */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--background);
    color: var(--text-primary);
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==========================================================================
   Ambient Decorative Glows
   ========================================================================== */
.ambient-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.45;
}

.bg-glow-1 {
    top: -150px;
    left: -150px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
}

.bg-glow-2 {
    top: 400px;
    right: -200px;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(9, 10, 15, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--text-primary);
}

.logo span {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a, 
.nav-links button {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.nav-links a:hover, 
.nav-links button:hover {
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-primary {
    background: var(--grad-primary);
    color: white;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.1);
}

.store-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
}

.store-button:hover {
    background: var(--surface-light);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.1);
}

.store-button .icon {
    width: 24px;
    height: 24px;
}

.store-button .btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.store-button .btn-sub {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.store-button .btn-main {
    font-size: 1rem;
    font-weight: 600;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    padding-top: 150px;
    padding-bottom: 80px;
    background: var(--grad-hero);
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.badge-ai {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #a5b4fc;
    margin-bottom: 1.5rem;
}

.badge-ai .ai-stars {
    color: var(--secondary);
    animation: sparkle 2s infinite ease-in-out;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
}

.text-gradient {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-lead {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ==========================================================================
   App Mockup UI (Interactive HTML Preview)
   ========================================================================== */
.hero-mockup-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.mockup-frame {
    width: 320px;
    background: var(--surface);
    border: 6px solid var(--border);
    border-radius: 40px;
    padding: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8),
                0 0 40px rgba(99, 102, 241, 0.15);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.mockup-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 18px;
    background: var(--border);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 10;
}

.mockup-frame:hover {
    transform: translateY(-5px) rotate(1deg);
    box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.9),
                0 0 50px rgba(139, 92, 246, 0.25);
}

.mockup-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 10px;
    margin-bottom: 1.5rem;
}

.mockup-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--grad-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: white;
}

.mockup-title h3 {
    font-size: 0.9rem;
    font-weight: 600;
}

.mockup-title span {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.mockup-badge {
    margin-left: auto;
    font-size: 0.65rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    color: var(--text-secondary);
}

.mockup-card {
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.card-hero {
    background: linear-gradient(145deg, var(--surface-light) 0%, rgba(99, 102, 241, 0.1) 100%);
    border-color: rgba(99, 102, 241, 0.2);
}

.card-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: #a5b4fc;
    letter-spacing: 0.5px;
}

.card-balance {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0.25rem 0 0.75rem;
}

.card-flow-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
}

.flow-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.flow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.accent-dot { background-color: var(--accent); }
.success-dot { background-color: var(--success); }

/* Card Chart */
.chart-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.ratio-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.ratio-progress {
    height: 100%;
    background: var(--accent);
    border-radius: 4px;
}

.chart-legend {
    display: flex;
    gap: 1rem;
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.legend-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 4px;
}

.debit-bg { background-color: var(--accent); }
.credit-bg { background-color: var(--success); }

/* Mockup list items */
.mockup-transactions h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.mockup-list-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: var(--transition);
}

.mockup-list-item:hover {
    padding-left: 4px;
    background: rgba(255, 255, 255, 0.01);
}

.item-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.item-info h5 {
    font-size: 0.8rem;
    font-weight: 500;
}

.item-info span {
    font-size: 0.65rem;
    color: var(--text-secondary);
}

.item-amount {
    margin-left: auto;
    font-size: 0.8rem;
    font-weight: 600;
}

.success-text { color: var(--success); }
.error-text { color: var(--accent); }

/* ==========================================================================
   Features Section
   ========================================================================== */
.features-section {
    padding: 100px 0;
    border-top: 1px solid var(--border);
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 4.5rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

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

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 2.25rem;
    border-radius: 20px;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.1);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

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

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    border-top: 1px solid var(--border);
    background: rgba(9, 10, 15, 0.5);
    padding: 60px 0 20px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 3rem;
}

.footer-brand {
    max-width: 320px;
}

.footer-brand p {
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links button {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.95rem;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
}

.footer-links button:hover {
    color: var(--text-primary);
}

.footer-bottom {
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   Legal Modal (Privacy & Terms Tab System)
   ========================================================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    width: 90%;
    max-width: 720px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    z-index: 10;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    z-index: 20;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    background: var(--surface-light);
    padding: 0.75rem 1.5rem 0;
    gap: 1rem;
}

.modal-tab-btn {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.modal-tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.modal-body {
    padding: 2.5rem;
    overflow-y: auto;
    flex: 1;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-pane h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.meta-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.tab-pane h3 {
    font-size: 1.2rem;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    color: #a5b4fc;
}

.tab-pane p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* ==========================================================================
   Deep Dive Detailed Feature Showcase
   ========================================================================== */
.deep-dive-section {
    padding: 100px 0;
    border-top: 1px solid var(--border);
    position: relative;
}

.deep-dive-row {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 5rem;
    align-items: center;
    margin-bottom: 120px;
}

.deep-dive-row:last-child {
    margin-bottom: 0;
}

.deep-dive-row.reverse {
    grid-template-columns: 0.85fr 1.15fr;
}

.deep-dive-row.reverse .deep-dive-content {
    order: 2;
}

.deep-dive-row.reverse .deep-dive-interactive {
    order: 1;
}

.deep-dive-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.deep-dive-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.deep-dive-content > p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.feature-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.feature-bullets li {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.bullet-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.feature-bullets strong {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.25rem;
}

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

/* Deep Dive Interactive Container */
.deep-dive-interactive {
    display: flex;
    justify-content: center;
    width: 100%;
}

.interactive-glass-card {
    width: 100%;
    max-width: 380px;
    background: rgba(21, 22, 34, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 1.75rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
                0 0 30px rgba(99, 102, 241, 0.05);
    transition: var(--transition);
}

.interactive-glass-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5),
                0 0 40px rgba(99, 102, 241, 0.1);
}

.widget-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.widget-header h4 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dot-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.date-tag, .status-indicator {
    margin-left: auto;
    font-size: 0.7rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
}

/* Donut Chart Simulation */
.donut-chart-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1.5rem 0;
}

.donut-svg {
    transform: rotate(-90deg);
}

.donut-segment {
    transition: stroke-width 0.3s ease;
    cursor: pointer;
}

.donut-segment:hover {
    stroke-width: 4.5;
}

.donut-center {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.donut-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
}

.donut-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-bars {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.cat-bar-item {
    cursor: pointer;
}

.cat-bar-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.35rem;
}

.cat-bar-bg {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

.cat-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* AI Chat Demo Styling */
.ai-sparkle-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--secondary);
    box-shadow: 0 0 10px var(--secondary);
    animation: sparkle 2s infinite ease-in-out;
}

.chat-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 200px;
    margin-bottom: 1.5rem;
}

.chat-bubble {
    max-width: 85%;
    padding: 0.85rem 1.15rem;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.user-bubble {
    align-self: flex-end;
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 4px;
}

.ai-bubble {
    align-self: flex-start;
    background: var(--surface-light);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
    border: 1px solid var(--border);
    animation: slideIn 0.3s ease-out;
}

.loading-bubble {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0.65rem 1rem;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background-color: var(--text-secondary);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

.filtered-items-preview {
    margin-top: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.mini-trans-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding-bottom: 0.25rem;
}

.mini-trans-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.preset-queries {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.query-chip {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-family: inherit;
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}

.query-chip:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary);
    color: var(--text-primary);
}

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

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

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes sparkle {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); filter: drop-shadow(0 0 4px var(--secondary)); }
}

/* ==========================================================================
   Media Queries & Responsiveness
   ========================================================================== */
@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-content {
        align-items: center;
    }

    .hero-content h1 {
        font-size: 2.75rem;
    }

    .hero-lead {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .deep-dive-row, .deep-dive-row.reverse {
        grid-template-columns: 1fr;
        gap: 3rem;
        margin-bottom: 80px;
    }

    .deep-dive-row.reverse .deep-dive-content {
        order: 1;
    }

    .deep-dive-row.reverse .deep-dive-interactive {
        order: 2;
    }
}

@media (max-width: 600px) {
    .nav-links {
        display: none;
    }
    
    .nav-btn {
        display: none;
    }

    .hero-content h1 {
        font-size: 2.25rem;
    }

    .modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .modal-body {
        padding: 1.5rem;
    }
}
