/* Smart Email Parser - Main Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Colors - Dark Premium Theme */
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --bg-card-hover: #334155;

    --text-main: #f8fafc;
    --text-muted: #94a3b8;

    --primary: #8b5cf6;
    /* Violet */
    --primary-hover: #7c3aed;
    --secondary: #10b981;
    /* Emerald */
    --accent: #38bdf8;
    /* Sky Blue */

    --border: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(255, 255, 255, 0.2);

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --glow: 0 0 20px rgba(139, 92, 246, 0.15);
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* Typography Utility */
.text-gradient {
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-4 {
    margin-bottom: 4rem;
}

/* Layout */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
}

/* Header */
header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    background: rgba(15, 23, 42, 0.8);
    border-bottom: 1px solid var(--border);
}

/* Product Sub-Nav */
.product-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid var(--border);
    z-index: 999;
    padding: 0.75rem 0;
    backdrop-filter: blur(10px);
}

.product-nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-brand {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.product-menu {
    display: flex;
    gap: 1.5rem;
}

.product-menu a {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
    padding: 0.25rem 0;
    position: relative;
}

.product-menu a:hover,
.product-menu a.active {
    color: var(--text-main);
}

.product-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

/* Adjust main content padding to account for double header */
body.has-product-nav main {
    padding-top: 60px;
    /* Height of sub-nav */
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--primary);
}

nav ul {
    display: flex;
    gap: 30px;
}

nav a {
    color: var(--text-muted);
    font-weight: 500;
}

nav a:hover,
nav a.active {
    color: var(--text-main);
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.5rem 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    /* Override flex from nav ul if needed, but here it's absolute */
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background: var(--bg-card-hover);
    color: var(--text-main);
}

/* Components */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: white;
    box-shadow: var(--glow);
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.1);
}

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

.card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg), var(--glow);
}


/* Home Page Styles */

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    text-align: center;
    background: radial-gradient(circle at top center, rgba(139, 92, 246, 0.15), transparent 70%);
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.hero-visual {
    margin-top: 2rem;
    perspective: 1000px;
}

.hero-image {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
    background: var(--bg-card);
    aspect-ratio: 16/9;
    /* Placeholder aspect ratio */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.5rem;
    transform: rotateX(2deg);
    transition: all 0.5s ease;
}

.hero-image:hover {
    transform: rotateX(0deg) scale(1.02);
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    text-align: left;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(139, 92, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.icon-secondary {
    background: rgba(16, 185, 129, 0.1);
    color: var(--secondary);
}

.icon-accent {
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-muted);
}

/* How It Works */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
    text-align: center;
}

.step-item {
    position: relative;
    padding: 2rem;
}

.step-number {
    font-size: 5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.03);
    position: absolute;
    top: -20px;
    left: 10px;
    z-index: 0;
}

.step-content {
    position: relative;
    z-index: 1;
}

.step-icon {
    font-size: 2rem;
    color: var(--text-main);
    margin-bottom: 1rem;
    display: inline-block;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
}

/* Responsive */

.logo-img {
    height: 32px;
    width: auto;
}
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    header .container {
        padding: 0 16px;
    }

    nav {
        /* Simple mobile menu fallback for now */
        display: none;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .product-nav .container {
        overflow-x: auto;
        padding-bottom: 5px;
        /* Scrollbar space */
    }

    .product-nav-wrapper {
        min-width: 500px;
        /* Ensure horizontal scroll on small screens */
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-detail {
        flex-direction: column !important;
        /* Force column layout on mobile */
        gap: 2rem !important;
        margin-bottom: 4rem !important;
        text-align: center;
    }

    .feature-detail .feature-icon {
        margin: 0 auto 1.5rem;
    }

    .feature-detail ul {
        text-align: left;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Footer Improvements */
footer {
    background: #0b1120;
    /* Darker than body */
    padding: 5rem 0 2rem;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    /* Subtle primary border */
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.5), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-col h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-col h4 {
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-col a {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: all 0.2s;
}

.footer-col a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border: 1px solid transparent;
}

.social-links a:hover {
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary);
    border-color: rgba(139, 92, 246, 0.2);
    padding-left: 0;
    /* Reset hover move for icons */
    transform: translateY(-2px);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}