/* --- 1. VARIABLES & RESET --- */
:root {
    /* Clean Future Palette (Light Mode) */
    --bg-deep: #ffffff;
    --bg-surface: #f8fafc; /* Slate 50 */
    --bg-card: rgba(255, 255, 255, 0.7);
    --bg-card-hover: #ffffff;
    
    /* Electric Blue Accents */
    --primary: #2563eb;      /* Royal Blue */
    --primary-light: #eff6ff; /* Blue 50 */
    --primary-glow: #60a5fa;
    --accent: #4f46e5;       /* Indigo */
    
    /* Text */
    --text-main: #0f172a;    /* Slate 900 */
    --text-muted: #64748b;   /* Slate 500 */
    --text-on-primary: #ffffff;

    /* Spacing & Borders */
    --radius-md: 16px;
    --radius-lg: 24px;
    --border-light: #e2e8f0; /* Slate 200 */
    --border-hover: #cbd5e1; /* Slate 300 */
    
    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.05), 0 4px 6px -4px rgb(0 0 0 / 0.05);
    --shadow-glow: 0 20px 40px -10px rgba(37, 99, 235, 0.15); /* Blue glow shadow */
    
    /* Fonts */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    /* Subtle geometric grid pattern for tech feel */
    background-image: 
        linear-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

/* --- 2. GLOBAL EFFECTS --- */

/* Gradient Text (Dark to Blue) */
.text-gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Background Aurora (Subtle Blue Blob) */
.ambient-glow {
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    top: -300px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
    pointer-events: none;
    filter: blur(80px);
}

/* --- 3. NAVBAR (Frosted Glass Pill) --- */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    height: 64px;
    z-index: 1000;
    
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-light);
    border-radius: 100px;
    padding: 0 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 24px;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0; /* FIXED: Removed gap to ensure Tax and Aible touch */
}

.logo svg, .logo img { /* ADDED: To ensure icon has space only on its right */
    margin-right: 8px;
}
.logo .highlight { color: var(--primary); }

.nav-links { display: flex; gap: 32px; }

.nav-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}
.nav-links a:hover { color: var(--primary); }

/* Auth Buttons */
.btn-login {
    background: var(--primary-light);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.btn-login:hover {
    background: var(--primary);
    color: white;
}

/* User Dropdown */
.auth-buttons { position: relative; display: flex; align-items: center; }
.dropdown { position: relative; }

.dropbtn {
    background: transparent;
    color: var(--text-main);
    padding: 8px 16px;
    border-radius: 100px;
    border: 1px solid var(--border-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    transition: 0.2s;
}
.dropbtn:hover { border-color: var(--primary); background: var(--bg-surface); }
.dropbtn svg { width: 16px; height: 16px; color: var(--text-muted); }

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    /* FIX: Use a negative margin to overlap the dropdown button area slightly, ensuring the hover state doesn't drop when moving the mouse down. */
    margin-top: -2px; 
    
    background: white;
    min-width: 220px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    z-index: 999;
}

.dropdown:hover .dropdown-content { display: block; animation: slideDown 0.2s ease; }
.dropdown-content a {
    color: var(--text-muted);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.dropdown-content a:hover { background: var(--bg-surface); color: var(--primary); }
.logout-link { border-top: 1px solid var(--border-light); color: #ef4444 !important; }
.logout-link svg { color: #ef4444; }

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- 4. HERO SECTION --- */
.hero {
    padding-top: 180px;
    padding-bottom: 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 100px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 32px;
    box-shadow: var(--shadow-sm);
    transition: 0.3s;
}
.hero-badge:hover { border-color: var(--primary); color: var(--primary); }
.hero-badge .icon { color: var(--primary); }

.hero h1 {
    font-size: 4.5rem; 
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    color: var(--text-main);
}
.hero h1 .block-text { display: block; }

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 40px;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
}

/* Hero Buttons */
.btn-primary {
    background: var(--primary);
    color: white;
    padding: 14px 32px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    border: none;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: #1d4ed8; /* Darker blue */
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--text-main);
    padding: 14px 32px;
    border-radius: 100px;
    font-weight: 600;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}
.btn-secondary:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* Bottom Fade Mask */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 120px;
    background: linear-gradient(to bottom, transparent, var(--bg-deep));
    pointer-events: none;
}

/* --- 5. BENTO GRID FEATURES --- */
.features {
    padding: 80px 0;
    position: relative;
}

.section-header { text-align: center; margin-bottom: 80px; }
.section-header h2 {
    font-size: 2.5rem; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.02em;
}
.section-header p { color: var(--text-muted); font-size: 1.1rem; }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Clean Cards */
.feature-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 40px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-glow);
    box-shadow: var(--shadow-glow);
}

.feature-card.wide { grid-column: span 2; }

/* Icon Styling */
.icon-box {
    width: 48px; height: 48px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 24px;
}
.icon-box svg { width: 24px; height: 24px; }

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--text-main);
}
.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* --- 6. PROCESS SECTION (Connected Dots) --- */
.process-section {
    padding: 120px 0;
    border-top: 1px solid var(--border-light);
    background: var(--bg-surface);
}

.process-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-top: 60px;
    position: relative;
}

/* Connecting Line */
.process-grid::before {
    content: '';
    position: absolute;
    top: 24px; 
    left: 15%; right: 15%;
    height: 2px;
    background: var(--border-light);
    z-index: 0;
}

.process-card {
    position: relative;
    z-index: 1;
    text-align: center;
}

.step-number {
    width: 48px; height: 48px;
    margin: 0 auto 24px;
    background: white;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 0 0 8px var(--bg-surface); /* Mask the line with ring */
}

.process-card h3 { font-size: 1.15rem; margin-bottom: 10px; color: var(--text-main); font-weight: 600; }
.process-card p { color: var(--text-muted); font-size: 0.95rem; }
.process-arrow { display: none; } 

/* --- 7. FOOTER --- */
footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--border-light);
    background: white;
}

.footer-content { display: flex; justify-content: space-between; margin-bottom: 60px; }
.footer-col h4 { color: var(--text-main); font-size: 1rem; font-weight: 600; margin-bottom: 20px; }
.footer-col p, .footer-col a { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 12px; display: block; }
.footer-col a:hover { color: var(--primary); }
.copyright { text-align: center; color: var(--text-muted); padding-top: 20px; border-top: 1px solid var(--border-light); font-size: 0.85rem; }

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 1024px) {
    .feature-card.wide { grid-column: span 1; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .navbar { width: 95%; top: 10px; height: 60px; }
    .nav-links, .auth-buttons .dropdown { display: none; }
    .btn-login { margin-left: auto; }
    
    .hero { padding-top: 140px; }
    .hero h1 { font-size: 2.8rem; }
    .hero-buttons { flex-direction: column; width: 100%; max-width: 300px; margin: 0 auto; }
    .btn-primary, .btn-secondary { width: 100%; }

    .feature-grid { grid-template-columns: 1fr; }
    
    .process-grid { grid-template-columns: 1fr; gap: 40px; }
    .process-grid::before { display: none; }
    
    .footer-content { flex-direction: column; gap: 40px; text-align: center; }
}