/* 
SaaS (B2B) Landing Page Styles for Skooly
Premium, modern, glassmorphism design
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --saas-primary: #1e3a8a;
    /* Deep blue */
    --saas-primary-light: #3b82f6;
    /* Bright blue */
    --saas-accent: #0ea5e9;
    /* Sky blue */
    --saas-bg-light: #f8fafc;
    --saas-bg-dark: #0f172a;
    --saas-text-main: #1e293b;
    --saas-text-light: #64748b;
    --saas-glass-bg: rgba(255, 255, 255, 0.85);
    --saas-glass-border: rgba(255, 255, 255, 0.4);
    --saas-glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
    --saas-font: 'Plus Jakarta Sans', sans-serif;
    --saas-gradient-1: linear-gradient(135deg, var(--saas-primary) 0%, var(--saas-primary-light) 100%);
    --saas-gradient-text: linear-gradient(135deg, var(--saas-primary) 0%, var(--saas-accent) 100%);
}

html {
    scroll-behavior: smooth;
}

body.saas-page {
    font-family: var(--saas-font);
    background-color: var(--saas-bg-light);
    color: var(--saas-text-main);
    line-height: 1.6;
}

/* Typography */
.saas-page h1,
.saas-page h2,
.saas-page h3,
.saas-page h4,
.saas-page h5 {
    font-family: var(--saas-font);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.saas-gradient-text {
    background: var(--saas-gradient-text);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Navigation - Glassmorphism */
.saas-navbar {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    position: sticky;
    top: 0;
    z-index: 1050;
    transition: all 0.3s ease;
}

.saas-navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.saas-navbar .nav-link {
    color: var(--saas-text-main);
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: color 0.2s ease;
}

.saas-navbar .nav-link:hover {
    color: var(--saas-primary-light);
}

/* Hero Section */
.saas-hero {
    position: relative;
    padding: 120px 0 100px;
    background: radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.08), transparent 40%),
        radial-gradient(circle at 85% 30%, rgba(14, 165, 233, 0.08), transparent 40%);
    overflow: hidden;
}

.saas-hero::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)"/></svg>');
    opacity: 0.02;
    pointer-events: none;
    z-index: 0;
}

.saas-hero-content {
    position: relative;
    z-index: 2;
}

.saas-hero-title {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    color: var(--saas-bg-dark);
}

.saas-hero-subtitle {
    font-size: 1.25rem;
    color: var(--saas-text-light);
    margin-bottom: 2.5rem;
    max-width: 600px;
    font-weight: 500;
}

.saas-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--saas-primary-light);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Buttons */
.saas-btn {
    font-family: var(--saas-font);
    font-weight: 700;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.saas-btn-primary {
    background: var(--saas-gradient-1);
    color: white;
    box-shadow: 0 10px 20px -10px rgba(30, 58, 138, 0.5);
    border: none;
}

.saas-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -10px rgba(30, 58, 138, 0.6);
    color: white;
}

.saas-btn-outline {
    background: transparent;
    color: var(--saas-primary);
    border: 2px solid rgba(30, 58, 138, 0.2);
}

.saas-btn-outline:hover {
    border-color: var(--saas-primary);
    color: var(--saas-primary);
    background: rgba(30, 58, 138, 0.05);
}

.saas-btn-light {
    background: rgba(59, 130, 246, 0.1);
    color: var(--saas-primary-light);
    border: 1px solid rgba(59, 130, 246, 0.15);
}

.saas-btn-light:hover {
    background: rgba(59, 130, 246, 0.2);
    color: var(--saas-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

/* Glass UI Elements / Mockups */
.saas-dashboard-preview {
    position: relative;
    z-index: 2;
    border-radius: 24px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.saas-dashboard-preview:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.saas-dashboard-img {
    border-radius: 16px;
    width: 100%;
    height: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    display: block;
}

/* Features Section */
.saas-features {
    padding: 100px 0;
    background: white;
    position: relative;
    overflow-x: hidden;
}

.saas-section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.saas-section-subtitle {
    text-align: center;
    color: var(--saas-text-light);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 4rem;
}

/* Feature Cards - Glassmorphism style */
.saas-feature-card {
    background: var(--saas-bg-light);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.saas-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.2) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.saas-feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    border-color: rgba(59, 130, 246, 0.1);
}

.saas-feature-card:hover::before {
    opacity: 1;
}

.saas-feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--saas-primary-light);
    margin-bottom: 2rem;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.1);
    position: relative;
}

.saas-feature-icon::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 22px;
    background: var(--saas-gradient-1);
    z-index: -1;
    opacity: 0.1;
}

.saas-feature-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--saas-bg-dark);
}

.saas-feature-desc {
    color: var(--saas-text-light);
    font-size: 1.05rem;
    margin-bottom: 0;
}

/* Interactive Benefits */
.saas-benefits {
    padding: 100px 0;
    background: var(--saas-bg-light);
    overflow-x: hidden;
}

.saas-benefit-row {
    margin-bottom: 80px;
}

.saas-benefit-row:last-child {
    margin-bottom: 0;
}

.saas-benefit-content {
    padding-right: 3rem;
}

.saas-benefit-row:nth-child(even) .saas-benefit-content {
    padding-right: 0;
    padding-left: 3rem;
}

.saas-checklist {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
}

.saas-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.saas-checklist-icon {
    color: #10b981;
    /* Emerald green */
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Stats / Trust Section */
.saas-stats {
    background: var(--saas-bg-dark);
    padding: 80px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.saas-stat-item {
    text-align: center;
}

.saas-stat-value {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.saas-stat-label {
    font-size: 1.1rem;
    color: #94a3b8;
    font-weight: 500;
}

/* CTA Section */
.saas-cta {
    position: relative;
    padding: 120px 0;
    background: white;
    overflow-x: hidden;
}

.saas-cta-box {
    background: var(--saas-gradient-1);
    border-radius: 32px;
    padding: 4rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(30, 58, 138, 0.3);
}

.saas-cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.saas-cta-title {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 1.5rem;
}

.saas-cta-desc {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.saas-btn-white {
    background: white;
    color: var(--saas-primary);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.saas-btn-white:hover {
    background: #f8fafc;
    color: var(--saas-primary);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Footer (SaaS specific style) */
.saas-footer {
    background: #0f172a;
    padding: 80px 0 30px;
    color: #94a3b8;
}

.saas-footer-title {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.saas-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.saas-footer-links li {
    margin-bottom: 0.75rem;
}

.saas-footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.saas-footer-links a:hover {
    color: white;
}

.saas-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 4rem;
    text-align: center;
    font-size: 0.875rem;
}

/* Animations */
[data-aos] {
    opacity: 0;
    transition-property: transform, opacity;
}

[data-aos].aos-animate {
    opacity: 1;
}

@media screen and (prefers-reduced-motion: reduce) {
    [data-aos] {
        transition: none !important;
        opacity: 1 !important;
    }
}

/* Responsive */
@media (max-width: 991.98px) {
    .container-xl {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }

    .saas-hero-title {
        font-size: 3rem;
    }

    .saas-section-title {
        font-size: 2.5rem;
    }

    .saas-hero {
        padding: 80px 0 60px;
        text-align: center;
    }

    .saas-hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .saas-dashboard-preview {
        margin-top: 3rem;
        transform: none;
    }

    .saas-dashboard-preview:hover {
        transform: none;
    }

    .saas-benefit-content {
        padding-right: 0 !important;
        padding-left: 0 !important;
        margin-bottom: 2rem;
        text-align: center;
    }

    .saas-checklist li {
        text-align: left;
    }

    .saas-cta-title {
        font-size: 2.5rem;
    }

    .saas-cta-box {
        padding: 3rem 2rem;
    }
}

@media (max-width: 575.98px) {
    .saas-hero-title {
        font-size: 2.5rem;
    }

    .saas-btn {
        width: 100%;
        margin-bottom: 1rem;
    }

    .saas-stat-item {
        margin-bottom: 2rem;
    }
}