/* ==========================================
   PulseRSS Landing Page Styles
   Professional Color Palette based on #0850CA
   ========================================== */

/* ==========================================
   CSS Variables - Color Palette
   ========================================== */
:root {
    /* Primary Brand Colors */
    --primary-blue: #0850CA;
    --primary-blue-dark: #06398F;
    --primary-blue-darker: #042A6B;
    --primary-blue-light: #4D89E5;
    --primary-blue-lighter: #99C3FF;

    /* Background Colors */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8FAFC;
    --bg-tertiary: #E6F0FF;
    --bg-blue-light: #CCE1FF;

    /* Text Colors */
    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --text-tertiary: #94A3B8;
    --text-inverse: #FFFFFF;

    /* Accent Colors */
    --accent-success: #10B981;
    --accent-warning: #F59E0B;
    --accent-error: #EF4444;

    /* Border & Divider Colors */
    --border-light: #E2E8F0;
    --border-medium: #CBD5E1;

    /* Gradient Colors */
    --gradient-start: #0850CA;
    --gradient-end: #4D89E5;

    /* Shadow Colors */
    --shadow-sm: rgba(8, 80, 202, 0.05);
    --shadow-md: rgba(8, 80, 202, 0.1);
    --shadow-lg: rgba(8, 80, 202, 0.15);
    --shadow-xl: rgba(8, 80, 202, 0.2);
}

/* ==========================================
   Base Styles
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

/* ==========================================
   Typography
   ========================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.875rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
}

/* ==========================================
   Utility Classes
   ========================================== */

/* Gradients */
.gradient-bg {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
}

.gradient-bg-alt {
    background: linear-gradient(135deg, #0850CA 0%, #06398F 100%);
}

.text-gradient {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass Effect */
.glass-effect {
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(226, 232, 240, 0.5);
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* ==========================================
   Navigation
   ========================================== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
}

nav a {
    text-decoration: none;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--primary-blue);
}

.nav-button {
    background-color: var(--primary-blue);
    color: var(--text-inverse);
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
}

.nav-button:hover {
    background-color: var(--primary-blue-dark);
    transform: scale(1.05);
}

/* ==========================================
   Buttons
   ========================================== */
.btn-primary {
    background-color: var(--primary-blue);
    color: var(--text-inverse);
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-size: 1.125rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    box-shadow: 0 10px 25px var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--primary-blue-dark);
    transform: scale(1.05);
    box-shadow: 0 15px 30px var(--shadow-lg);
}

.btn-secondary {
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    background-color: transparent;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-size: 1.125rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-secondary:hover {
    background-color: var(--bg-tertiary);
    transform: translateY(-2px);
}

/* ==========================================
   Feature Cards
   ========================================== */
.feature-card {
    background-color: var(--bg-primary);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 4px 6px var(--shadow-sm), 0 2px 4px var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px var(--shadow-md);
}

.feature-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon.blue { background-color: var(--bg-tertiary); color: var(--primary-blue); }
.feature-icon.light-blue { background-color: var(--bg-blue-light); color: var(--primary-blue-dark); }
.feature-icon.success { background-color: #D1FAE5; color: var(--accent-success); }
.feature-icon.warning { background-color: #FEF3C7; color: var(--accent-warning); }
.feature-icon.pink { background-color: #FCE7F3; color: #EC4899; }
.feature-icon.indigo { background-color: #E0E7FF; color: #6366F1; }

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.75;
}

/* ==========================================
   Sections
   ========================================== */
section {
    padding: 5rem 1rem;
}

@media (min-width: 640px) {
    section {
        padding: 5rem 1.5rem;
    }
}

@media (min-width: 1024px) {
    section {
        padding: 5rem 2rem;
    }
}

.section-light {
    background-color: var(--bg-secondary);
}

.section-gradient {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: var(--text-inverse);
}

/* ==========================================
   Comparison Section
   ========================================== */
.comparison-card {
    background-color: var(--bg-secondary);
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .comparison-card {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.comparison-before {
    color: var(--text-secondary);
}

.comparison-after {
    color: var(--primary-blue);
    font-weight: 600;
}

.comparison-arrow {
    color: var(--primary-blue);
    font-size: 1.5rem;
    display: none;
}

@media (min-width: 768px) {
    .comparison-arrow {
        display: block;
    }
}

/* ==========================================
   Privacy Cards
   ========================================== */
.privacy-card {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.privacy-card h4 {
    color: var(--text-inverse) !important;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.privacy-card p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
}

/* Privacy Section Overrides */
.gradient-bg h2,
.gradient-bg h4,
.gradient-bg p {
    color: var(--text-inverse) !important;
}

/* ==========================================
   Badge
   ========================================== */
.badge {
    background-color: var(--bg-tertiary);
    color: var(--primary-blue-dark);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-block;
}

/* ==========================================
   Hero Section
   ========================================== */
.hero-mockup {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-blue-light) 100%);
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px var(--shadow-lg);
    overflow: hidden;
    position: relative;
}

/* ==========================================
   Footer
   ========================================== */
footer {
    background-color: var(--bg-secondary);
    padding: 3rem 1rem;
}

footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-blue);
}

footer h4 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-divider {
    border-top: 1px solid var(--border-light);
    margin-top: 2rem;
    padding-top: 2rem;
}

/* ==========================================
   Logo
   ========================================== */
.logo-icon {
    width: 2rem;
    height: 2rem;
    color: var(--primary-blue);
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ==========================================
   Responsive Utilities
   ========================================== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* ==========================================
   Spacing Utilities
   ========================================== */
.mt-20 { margin-top: 5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }

.pt-32 { padding-top: 8rem; }
.pb-20 { padding-bottom: 5rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }

.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

/* ==========================================
   Grid Utilities
   ========================================== */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* ==========================================
   Flex Utilities
   ========================================== */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

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

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

.justify-between {
    justify-content: space-between;
}

.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }

/* ==========================================
   Text Utilities
   ========================================== */
.text-center {
    text-align: center;
}

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

.text-secondary {
    color: var(--text-secondary);
}

.text-blue {
    color: var(--primary-blue);
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

/* ==========================================
   Misc
   ========================================== */
.max-w-7xl {
    max-width: 80rem;
}

.max-w-5xl {
    max-width: 64rem;
}

.max-w-4xl {
    max-width: 56rem;
}

.max-w-3xl {
    max-width: 48rem;
}

.max-w-2xl {
    max-width: 42rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.overflow-hidden {
    overflow: hidden;
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px var(--shadow-xl);
}

/* ==========================================
   SVG Icons
   ========================================== */
svg {
    flex-shrink: 0;
}

.icon-sm {
    width: 1.5rem;
    height: 1.5rem;
}

.icon-md {
    width: 2rem;
    height: 2rem;
}

.icon-lg {
    width: 2.5rem;
    height: 2.5rem;
}

.icon-xl {
    width: 8rem;
    height: 8rem;
}
