/* --- 1. CORE VARIABLES --- */
:root {
    --primary: #7E64ED;
    --primary-dark: #604ABD;
    --secondary: #21991F; 
    
    /* Colors */
    --dark: #0F172A;       
    --text: #334155;       
    --text-muted: #475569; 
    
    /* Backgrounds */
    --bg: #FFFFFF;
    --bg-offset: #F8FAFC;  
    
    /* Borders & Shadows */
    --border: #E2E8F0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-card: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    /* Premium Dashboard Shadow */
    --shadow-dashboard: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* --- 2. RESET & BASE --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body { 
    font-family: 'Inter', sans-serif; 
    font-size: 18px; 
    color: var(--text); 
    line-height: 1.6; 
    background-color: var(--bg); 
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { 
    font-family: 'Outfit', sans-serif; 
    color: var(--dark); 
    line-height: 1.1; /* Tightened from 1.15 */
    letter-spacing: -0.02em; 
}

h1 { font-size: 3.5rem; font-weight: 800; margin-bottom: 24px; }
h2 { font-size: 2.75rem; font-weight: 700; margin-bottom: 24px; }
h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 16px; }

p { margin-bottom: 1.5rem; color: var(--text-muted); }
strong { font-weight: 600; color: var(--dark); }
a { text-decoration: none; color: inherit; transition: 0.2s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* Utilities */
.container { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.text-center { text-align: center; }
.section-padding { padding: 120px 0; }
.bg-offset { background-color: var(--bg-offset); }
.mt-large { margin-top: 48px; }
.text-muted { color: var(--text-muted); }
.text-small { font-size: 0.95rem; }
.text-xs { font-size: 0.85rem; }

/* --- 3. HEADER & NAV --- */
.site-header {
    position: sticky; top: 0; z-index: 999;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    padding: 20px 0; 
}
.nav-flex { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.5rem; color: var(--dark); }
.nav-links { display: flex; gap: 40px; align-items: center; }
.nav-links a:not(.btn) { font-weight: 500; font-size: 1rem; color: var(--text); }
.nav-links a:not(.btn):hover { color: var(--primary); }

/* --- 4. HERO SECTION (POLISHED) --- */
.hero {
    padding: 100px 0 140px; 
    background: #FFFFFF; /* Clean white background */
    overflow: visible; /* Allows blob to bleed if needed */
}

.hero-grid { 
    display: grid; 
    grid-template-columns: 0.9fr 1.1fr; /* Text 45%, Image 55% */
    gap: 80px; 
    align-items: center; /* Vertical Center Alignment */
}

/* 4.1. The "System Notification" Badge */
.alert-badge { 
    background: #FEF2F2; /* Soft Red */
    color: #991B1B; /* Darker Red Text */
    border: 1px solid #FEE2E2;
    padding: 8px 16px; 
    border-radius: 50px; 
    font-size: 0.9rem; 
    font-weight: 600;
    display: inline-flex; 
    align-items: center; 
    gap: 8px; 
    margin-bottom: 24px; /* Closer to Headline */
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* 4.2. Typography Refinement */
.highlight { color: var(--primary); }

.hero-sub { 
    font-size: 1.25rem; 
    color: var(--text-muted); 
    margin-bottom: 32px; 
    line-height: 1.6;
    max-width: 90%; /* Constrain width for readability */
}

/* 4.3. Upgraded Buttons */
.hero-btns { display: flex; gap: 16px; margin-bottom: 20px; align-items: center; }

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 32px; border-radius: 8px; font-weight: 600; font-size: 1.05rem;
    transition: all 0.2s; cursor: pointer; border: 1px solid transparent;
}

.btn-primary { 
    background-color: var(--secondary); color: white; 
    /* Green Pop Shadow */
    box-shadow: 0 4px 6px -1px rgba(33, 153, 31, 0.4), 0 2px 4px -1px rgba(33, 153, 31, 0.06);
}
.btn-primary:hover { 
    background-color: #1a7a19; 
    transform: translateY(-1px); 
    box-shadow: 0 10px 15px -3px rgba(33, 153, 31, 0.4);
}

.btn-secondary { 
    background-color: white; 
    color: var(--text); 
    border: 2px solid #9CA3AF; /* Darker grey border for visibility */
}
.btn-secondary:hover { 
    border-color: var(--dark); 
    background: #F9FAFB; 
    color: var(--dark);
}
.btn-full { width: 100%; }

/* Micro-copy tightener */
.hero-note { 
    font-size: 0.9rem; 
    color: var(--text-muted); 
    display: flex; 
    align-items: center; 
    gap: 6px;
    margin-top: 12px;
}

/* 4.4. Hero Image Polish */
.hero-image {
    position: relative;
    /* This creates the centering context */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* The "Anchor" Blob */
.hero-image::before {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, #EEF2FF 0%, rgba(255,255,255,0) 70%); /* Pale Lavender */
    top: -10%;
    left: -10%;
    z-index: -1;
    border-radius: 50%;
}

/* The Dashboard Container */
.browser-mockup {
    background: white;
    padding: 0;
    border-radius: 12px;
    border: 1px solid #E5E7EB; /* Light grey border */
    /* The "Software Product" Shadow */
    box-shadow: var(--shadow-dashboard);
    overflow: hidden; /* Ensures image corners respect radius */
    transform: perspective(1000px) rotateY(-1deg); /* Tiny 3D tilt for depth (optional) */
    transition: transform 0.3s ease;
}

.browser-mockup:hover {
    transform: perspective(1000px) rotateY(0deg) translateY(-5px);
}

.browser-mockup img { 
    width: 100%; 
    height: auto; 
    display: block; 
    /* Simulating "Multiply" via CSS blend mode (works if background is white) */
    mix-blend-mode: multiply; 
}

/* --- 5. INTEGRATIONS --- */
.section-header { max-width: 760px; margin: 0 auto 80px; text-align: center; }
.int-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.int-card {
    background: white; padding: 40px; border-radius: 12px;
    border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.int-card h3 { 
    margin-bottom: 24px; padding-bottom: 16px; border-bottom: 2px solid #F1F5F9;
    display: flex; align-items: center; gap: 12px; font-size: 1.25rem;
}
.int-list li { margin-bottom: 14px; display: flex; align-items: center; font-weight: 500; }
.check {
    width: 24px; height: 24px; background: #DCFCE7; color: #15803D;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 14px; margin-right: 12px; font-weight: 800; flex-shrink: 0;
}

/* --- 6. BENEFITS (Refactored Style: Tinted Gradient) --- */
.features { 
    background: linear-gradient(180deg, #F9FAFB 0%, #F5F3FF 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }

.feature-card {
    background: white; padding: 40px; border-radius: 12px;
    border: 1px solid var(--border); border-top: 4px solid var(--primary); 
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }
.feature-icon { font-size: 2.5rem; margin-bottom: 24px; display: inline-block; }
.feature-card h3 { color: var(--dark); margin-bottom: 16px; font-size: 1.35rem; }
.feature-card p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.6; }

/* --- 7. PRICING --- */
.pricing-grid { 
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px; 
    max-width: 960px; margin: 0 auto; align-items: start;
}
.price-card {
    padding: 48px; border-radius: 16px; border: 1px solid var(--border);
    background: white; position: relative;
}
.price-card.featured {
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-card);
    background: linear-gradient(to bottom, #FAFAFF 0%, #FFFFFF 100%);
    transform: scale(1.02); z-index: 2;
}
.badge-pill {
    position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
    background: var(--secondary); color: white; padding: 6px 20px; border-radius: 50px;
    font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.price { font-size: 3.5rem; font-weight: 800; color: var(--dark); line-height: 1; margin: 16px 0; }
.price span { font-size: 1.1rem; color: var(--text-muted); font-weight: 500; }
.savings-text { 
    color: #15803D; font-weight: 800; font-size: 1rem; 
    display: inline-block; background: #DCFCE7; padding: 6px 14px; border-radius: 6px;
    margin-top: 10px; border: 1px solid #86EFAC;
}
.price-features { margin: 32px 0; }
.price-features li { 
    margin-bottom: 18px; padding-left: 30px; position: relative; 
    font-size: 1.05rem; 
}
.price-features li::before { 
    content: '•'; color: var(--primary); position: absolute; left: 0; 
    font-weight: bold; font-size: 1.5rem; line-height: 1; top: -2px;
}
.guarantee { text-align: center; font-size: 0.9rem; margin-top: 16px; color: var(--text-muted); }

/* --- 8. FAQ --- */
.faq-grid { max-width: 900px; margin: 0 auto; display: grid; gap: 24px; }
.faq-item { 
    background: white; padding: 48px; border-radius: 12px; border: 1px solid var(--border); 
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.faq-item h4 { color: var(--dark); margin-bottom: 16px; font-size: 1.35rem; font-weight: 700; }
.faq-item p { margin: 0; font-size: 1.15rem; color: var(--text-muted); }

/* --- 9. CALENDAR WRAPPER --- */
.calendar-wrapper { 
    background: white; 
    border-radius: 12px; 
    box-shadow: var(--shadow-pop); 
    border: 1px solid var(--border);
    margin-top: 60px; 
    overflow: hidden;
}
footer { padding: 60px 0; background: #F8FAFC; text-align: center; font-size: 1rem; color: var(--text-muted); border-top: 1px solid var(--border); }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .container { padding: 0 24px; }
    .hero-grid { grid-template-columns: 1fr; gap: 60px; text-align: center; }
    .hero-content { margin: 0 auto; }
    .hero-btns { justify-content: center; }
    .hero-sub { margin-left: auto; margin-right: auto; }
    
    .int-grid, .feature-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 500px; gap: 60px; }
    .price-card.featured { transform: scale(1); }
    .nav-links { display: none; }
}