/* NIST CSF Framework Styles */
:root {
    /* Core colors */
    --primary-blue: #4475F2;
    --primary-dark: #1939B7;
    --primary-gradient: linear-gradient(135deg, #4475F2 0%, #1939B7 100%);
    --secondary-blue: #E5EDFF;
    --accent-blue: #6B8AFB;
    
    /* Function-specific colors */
    --govern-color: #8854d0;
    --identify-color: #20bf6b;
    --protect-color: #0fb9b1;
    --detect-color: #f7b731;
    --respond-color: #fa8231;
    --recover-color: #eb3b5a;
    
    /* Text colors */
    --text-dark: #1A202C;
    --text-medium: #4A5568;
    --text-light: #718096;
    --text-white: #FFFFFF;
    
    /* Background colors */
    --bg-white: #FFFFFF;
    --bg-light: #F8FAFC;
    --bg-blue-light: rgba(68, 117, 242, 0.04);
    
    /* Border colors */
    --border-light: #E2E8F0;
    --border-blue: rgba(68, 117, 242, 0.2);
    
    /* Shadow effects */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.03);
    --shadow-blue: 0 8px 16px rgba(68, 117, 242, 0.12);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    color: var(--text-dark);
    background: var(--bg-white);
}

/* Hero Section with Enhanced Styling */
.hero {
    background: var(--primary-gradient);
    padding: 4rem 2rem 8rem;
    text-align: center;
    color: var(--text-white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.1) 0%, transparent 60%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    right: -10%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    transform: rotate(-5deg);
    pointer-events: none;
}

/* Enhanced Badge Styling */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.625rem 1.25rem;
    border-radius: 9999px;
    margin-bottom: 3rem;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transform: translateY(0);
    transition: all 0.3s ease;
}

.badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.15);
}

.badge span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-white);
    letter-spacing: 0.025em;
}

.badge svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

/* Enhanced Hero Content */
.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero p {
    font-size: 1.25rem;
    font-weight: 400;
    opacity: 0.95;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    color: white;
}

/* Enhanced Stats Section */
.stats {
    display: flex;
    justify-content: center;
    gap: 8rem;
    color: var(--text-white);
    position: relative;
    z-index: 1;
}

.stat {
    text-align: center;
    position: relative;
}

.stat::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -4rem;
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%);
}

.stat:last-child::after {
    display: none;
}

.stat-value {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.75rem;
    background: linear-gradient(to bottom, #FFFFFF, rgba(255, 255, 255, 0.9));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    opacity: 0.9;
}

/* Enhanced Navigation */
nav {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

nav.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    justify-content: center;
    gap: 4rem;
    padding: 1.25rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-link {
    color: var(--text-medium);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-blue);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Enhanced Content Section */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.section {
    margin-bottom: 5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-weight: 600;
    box-shadow: var(--shadow-blue);
    position: relative;
    overflow: hidden;
}

.info-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 100%);
    pointer-events: none;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

p {
    color: var(--text-light);
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.info-card {
    background: var(--bg-light);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-blue);
}

/* Feature Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: var(--bg-white);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border-top: 3px solid var(--primary-blue);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-blue);
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    background: var(--bg-blue-light);
    border-radius: 0.75rem;
    color: var(--primary-blue);
}

.feature-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    stroke-width: 2;
}

/* Function Cards */
.functions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0 3rem;
}

.function-card {
    background: var(--bg-white);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.function-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-blue);
}

.function-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-white);
}

.function-card.govern .function-icon {
    background: var(--govern-color);
}

.function-card.identify .function-icon {
    background: var(--identify-color);
}

.function-card.protect .function-icon {
    background: var(--protect-color);
}

.function-card.detect .function-icon {
    background: var(--detect-color);
}

.function-card.respond .function-icon {
    background: var(--respond-color);
}

.function-card.recover .function-icon {
    background: var(--recover-color);
}

.function-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.function-categories span {
    display: inline-block;
    font-size: 0.75rem;
    background: var(--bg-blue-light);
    color: var(--primary-blue);
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-weight: 500;
}

/* Tiers Section */
.tiers-section, 
.profiles-section {
    margin-top: 3rem;
}

.tiers-grid, 
.profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.tier-card, 
.profile-card {
    background: var(--bg-white);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

.tier-card:hover, 
.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-blue);
}

.tier-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: var(--primary-blue);
    color: var(--text-white);
    border-radius: 50%;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Updates Section */
.updates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.update-card {
    background: var(--bg-white);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border-left: 3px solid var(--primary-blue);
}

.update-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-blue);
}

.update-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    background: var(--bg-blue-light);
    border-radius: 0.75rem;
    color: var(--primary-blue);
}

.update-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* Implementation Steps */
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.step-card {
    background: var(--bg-white);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
    border-bottom: 3px solid var(--primary-blue);
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-blue);
}

.step-number {
    position: absolute;
    top: -1rem;
    left: 1.5rem;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--primary-gradient);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: var(--shadow-md);
}

/* Benefits Section */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.benefit-card {
    background: var(--bg-white);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    text-align: center;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-blue);
}

.benefit-icon {
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    background: var(--bg-blue-light);
    border-radius: 1rem;
    color: var(--primary-blue);
    transition: all 0.3s ease;
}

.benefit-card:hover .benefit-icon {
    background: var(--primary-blue);
    color: var(--text-white);
    transform: rotate(10deg);
}

.benefit-icon svg {
    width: 1.75rem;
    height: 1.75rem;
}

/* Challenges Section */
.challenges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.challenge-card {
    background: var(--bg-white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.challenge-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-blue);
}

.challenge-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-light);
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.challenge-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-blue-light);
    border-radius: 0.75rem;
    color: var(--primary-blue);
}

.challenge-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.challenge-body {
    padding: 1.5rem;
}

.solution {
    margin-top: 1.25rem;
    background: var(--bg-blue-light);
    padding: 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-blue);
}

.solution h4 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.solution p {
    margin-bottom: 0;
}

/* Use Cases Section */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.use-case-card {
    background: var(--bg-white);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border-top: 3px solid var(--primary-blue);
}

.use-case-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-blue);
}

.use-case-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    background: var(--bg-blue-light);
    border-radius: 0.75rem;
    color: var(--primary-blue);
}

.use-case-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* Integration Section */
.integration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.integration-card {
    background: var(--bg-white);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border-left: 3px solid var(--primary-blue);
    text-align: center;
}

.integration-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-blue);
}

.integration-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1.5rem;
    background: var(--primary-gradient);
    color: var(--text-white);
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 1rem;
}

/* Final Insight */
.insight-card {
    background: var(--bg-light);
    border-radius: 1rem;
    padding: 2rem;
    border-left: 4px solid var(--primary-blue);
    box-shadow: var(--shadow-md);
    margin-top: 2rem;
    transition: all 0.3s ease;
}

.insight-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-blue);
}

.insight-card p {
    margin-bottom: 0;
    font-style: italic;
}

/* Enhanced List Styles */
ul, ol {
    list-style: none;
    margin-bottom: 2rem;
    display: grid;
    gap: 1rem;
}

li {
    position: relative;
    padding: 1.25rem;
    background: var(--bg-blue-light);
    border-radius: 0.75rem;
    border: 1px solid var(--border-blue);
    transition: all 0.3s ease;
}

li:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-blue);
    background: var(--bg-white);
}

li strong {
    display: block;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

/* Staggered Animations */
.feature-card:nth-child(1),
.function-card:nth-child(1),
.tier-card:nth-child(1),
.profile-card:nth-child(1),
.update-card:nth-child(1),
.step-card:nth-child(1),
.benefit-card:nth-child(1),
.challenge-card:nth-child(1),
.use-case-card:nth-child(1),
.integration-card:nth-child(1) {
    animation-delay: 0.1s;
}

.feature-card:nth-child(2),
.function-card:nth-child(2),
.tier-card:nth-child(2),
.profile-card:nth-child(2),
.update-card:nth-child(2),
.step-card:nth-child(2),
.benefit-card:nth-child(2),
.challenge-card:nth-child(2),
.use-case-card:nth-child(2),
.integration-card:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(3),
.function-card:nth-child(3),
.tier-card:nth-child(3),
.profile-card:nth-child(3),
.update-card:nth-child(3),
.step-card:nth-child(3),
.benefit-card:nth-child(3),
.use-case-card:nth-child(3),
.integration-card:nth-child(3) {
    animation-delay: 0.3s;
}

.feature-card:nth-child(4),
.function-card:nth-child(4),
.tier-card:nth-child(4),
.update-card:nth-child(4),
.step-card:nth-child(4),
.benefit-card:nth-child(4) {
    animation-delay: 0.4s;
}

.function-card:nth-child(5),
.step-card:nth-child(5) {
    animation-delay: 0.5s;
}

.function-card:nth-child(6),
.step-card:nth-child(6) {
    animation-delay: 0.6s;
}

/* Responsive Design with Enhanced Mobile Experience */
@media (max-width: 768px) {
    .hero {
        padding: 3rem 1.5rem 6rem;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .stats {
        flex-direction: column;
        gap: 3rem;
    }

    .stat::after {
        display: none;
    }

    .nav-container {
        gap: 2rem;
        padding: 1rem;
        overflow-x: auto;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .nav-container::-webkit-scrollbar {
        display: none;
    }

    .container {
        padding: 3rem 1.5rem;
    }
    
    .functions-grid,
    .tiers-grid,
    .profiles-grid,
    .updates-grid,
    .steps-container,
    .benefits-grid,
    .challenges-grid,
    .use-cases-grid,
    .integration-grid {
        grid-template-columns: 1fr;
    }
    
    .integration-card {
        border-left: none;
        border-top: 3px solid var(--primary-blue);
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.125rem;
    }

    .stat-value {
        font-size: 3rem;
    }

    .badge {
        padding: 0.5rem 1rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.35rem;
    }

    li {
        padding: 1rem;
    }
    
    .feature-card,
    .function-card,
    .tier-card,
    .profile-card,
    .update-card,
    .step-card,
    .benefit-card,
    .challenge-card,
    .use-case-card,
    .integration-card {
        padding: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .hero {
        background: none;
        color: var(--text-dark);
        padding: 2rem;
    }

    nav {
        display: none;
    }

    .container {
        padding: 0;
    }

    li {
        break-inside: avoid;
    }
    
    .feature-card,
    .function-card,
    .tier-card,
    .profile-card,
    .update-card,
    .step-card,
    .benefit-card,
    .challenge-card,
    .use-case-card,
    .integration-card,
    .insight-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
} 