/* 
   Render Mail Premium Design System
   Theme: Modern Dark SaaS with 'WOW' Factor
*/

:root {
    /* Brand Colors */
    --primary: #1E88E5;
    --primary-hover: #1976D2;
    --primary-light: rgba(30, 136, 229, 0.2);
    --secondary: #10B981;
    --accent: #F472B6;
    /* Pink accent for gradients */

    /* Backgrounds */
    --bg-dark: #0F172A;
    --bg-card: #1E293B;
    --bg-glass: rgba(30, 41, 59, 0.7);

    /* Text */
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;

    /* Spacing */
    --container-padding: 2rem;
    --max-width: 1200px;

    /* Effects */
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --glow-shadow: 0 0 40px rgba(30, 136, 229, 0.2);
    --transition: all 0.3s ease;
}

/* Reset & Base */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
p {
    margin: 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Utilities */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.text-gradient {
    background: linear-gradient(135deg, #1E88E5 0%, #60A5FA 50%, #F472B6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(30, 136, 229, 0.39);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 136, 229, 0.23);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2rem;
    display: none;
    /* Mobile first hidden */
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-link {
    color: var(--text-muted);
    font-weight: 500;
}

.nav-link:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    padding-top: 140px;
    padding-bottom: 100px;
    position: relative;
    overflow: hidden;
}

/* Background Gradients */
.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(30, 136, 229, 0.2) 0%, rgba(15, 23, 42, 0) 70%);
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(30, 136, 229, 0.1);
    border: 1px solid rgba(30, 136, 229, 0.2);
    border-radius: 100px;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    animation: fadeInDown 0.8s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

/* Dashboard Preview */
.dashboard-preview {
    margin-top: 4rem;
    position: relative;
    perspective: 1000px;
    animation: fadeInUp 1s ease-out 0.8s backwards;
}

.preview-container {
    background: #1e293b;
    border-radius: 12px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: rotateX(10deg);
    transition: transform 0.5s ease;
}

.preview-container:hover {
    transform: rotateX(0deg);
}

.preview-img {
    width: 100%;
    border-radius: 8px;
    display: block;
}

/* Features Grid */
.features {
    padding: 6rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.125rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    border: var(--glass-border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--glow-shadow);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(30, 136, 229, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
}

/* Outlook Section */
.outlook-section {
    padding: 8rem 0;
    background: #0B1120;
}

.outlook-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.outlook-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.outlook-list li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 1.125rem;
}

.check-icon {
    color: var(--secondary);
    font-weight: bold;
}

/* Pricing */
.pricing {
    padding: 6rem 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.price-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 20px;
    border: var(--glass-border);
    text-align: center;
    transition: var(--transition);
}

.price-card.popular {
    border-color: var(--primary);
    background: linear-gradient(180deg, rgba(30, 136, 229, 0.1) 0%, var(--bg-card) 100%);
    transform: scale(1.05);
    position: relative;
}

.price-card.popular::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.price-amount {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.price-amount span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.price-features li {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

/* Footer */
.footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: #0B1120;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    display: block;
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.footer-desc {
    color: var(--text-muted);
    max-width: 300px;
}

.footer-title {
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: block;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--primary);
}

.copyright {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .outlook-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        gap: 2rem;
    }

    .price-card.popular {
        transform: scale(1);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Mobile Logo Fix */
    .logo img {
        height: 40px;
    }
}

/* =========================================
   Empathy Section (Premium V2) 
   ========================================= */

.empathy-section {
    padding: 8rem 0;
    position: relative;
    background: #0f172a;
    /* Fallback */
    background: radial-gradient(circle at top right, rgba(30, 136, 229, 0.08), transparent 40%),
        radial-gradient(circle at bottom left, rgba(244, 114, 182, 0.05), transparent 40%),
        var(--bg-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    overflow: hidden;
}

/* Background Shine Effect */
.empathy-section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.4;
    z-index: 0;
    pointer-events: none;
}

.empathy-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.empathy-content h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.empathy-content>p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 4rem;
    line-height: 1.8;
}

.empathy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
    text-align: left;
}

.empathy-card {
    background: rgba(30, 41, 59, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.empathy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.empathy-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.3);
    background: rgba(30, 41, 59, 0.6);
}

.empathy-card:hover::before {
    opacity: 1;
}

.empathy-card h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.empathy-card h3 i {
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.empathy-card:hover h3 i {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 255, 255, 0.15);
}

.empathy-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
}

.sending-highlight {
    background: linear-gradient(90deg, rgba(30, 136, 229, 0.08) 0%, rgba(16, 185, 129, 0.08) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid #10B981;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    max-width: 800px;
    position: relative;
    overflow: hidden;
}

.sending-highlight i {
    font-size: 2rem;
    background: linear-gradient(135deg, #10B981 0%, #34D399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sending-highlight p {
    color: #e2e8f0;
    font-size: 1.1rem;
    margin: 0;
    text-align: left;
    font-weight: 500;
}

.sending-highlight strong {
    color: #fff;
}

@media (max-width: 768px) {
    .empathy-grid {
        grid-template-columns: 1fr;
    }

    .empathy-content h2 {
        font-size: 2.25rem;
    }

    .sending-highlight {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .sending-highlight p {
        text-align: center;
    }
}/* Mobile Menu */
.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav {
        flex-wrap: wrap;
    }

    .mobile-toggle {
        display: block;
    }

    .nav-links,
    .nav-actions {
        display: none;
        width: 100%;
        text-align: center;
        flex-direction: column;
        padding: 1rem 0;
        background: var(--bg-dark);
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav.active .nav-links,
    .nav.active .nav-actions {
        display: flex;
        animation: fadeInDown 0.3s ease forwards;
    }

    .nav-links a {
        padding: 1rem;
        display: block;
    }

    .nav-actions {
        gap: 1rem;
        padding-bottom: 2rem;
    }

    .nav-actions .nav-link {
        margin: 0 !important;
        /* Override inline style */
        display: block;
        margin-bottom: 1rem !important;
    }
}
