:root {
    --bg-main: #f8fafc;
    --bg-secondary: #f1f5f9;
    --surface: rgba(255, 255, 255, 0.8);
    --surface-hover: rgba(255, 255, 255, 0.95);
    --border-color: rgba(0, 0, 0, 0.08);
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --accent-primary: #0284c7;   /* Sky Blue */
    --accent-secondary: #6366f1; /* Indigo */
    --accent-tertiary: #059669;  /* Emerald */
    --accent-warning: #d97706;   /* Amber */
    
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

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

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

html {
    scroll-padding-top: 100px;
    scroll-behavior: smooth;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1400px;
    height: 70px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4rem;
    flex-wrap: nowrap;
}

.brand {
    font-size: 1.6rem;
    font-weight: 800;
    font-family: var(--font-heading);
    letter-spacing: 1.5px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;
    flex-shrink: 0;
    min-width: 150px;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    flex-shrink: 0;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links a:hover {
    color: var(--accent-primary);
    background: rgba(2, 132, 199, 0.05);
}

.nav-links a.active {
    color: var(--accent-primary);
    background: rgba(2, 132, 199, 0.1);
}

/* Dropdown Menu Styles */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 200px;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 1rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.nav-links li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}

.dropdown a {
    padding: 0.8rem 1.5rem;
    display: block;
    font-size: 0.85rem;
    text-transform: none;
    letter-spacing: 0;
    width: 100%;
    border-radius: 0;
}

.dropdown a:hover {
    background: rgba(2, 132, 199, 0.05);
    color: var(--accent-primary);
}

.nav-toggle {
    display: none;
    font-size: 1.8rem;
    color: white;
    background: var(--accent-primary);
    width: 50px;
    height: 50px;
    border-radius: 12px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(2, 132, 199, 0.3);
    z-index: 2500;
}
.nav-toggle:active { transform: scale(0.9); }

/* Responsive Navigation */
@media (max-width: 1024px) {
    .navbar {
        padding: 0 1.5rem;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        flex-direction: column;
        padding: 5rem 1.5rem 2rem;
        gap: 1rem;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 40px rgba(0,0,0,0.1);
        z-index: 2000;
        display: flex; /* Force flex for the drawer */
    }
    
    .nav-links li a {
        padding: 1.2rem 1.5rem;
        font-size: 1.1rem;
        width: 100%;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
    }

    .dropdown {
        position: static;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none;
        padding: 0.5rem 0 0 1rem;
        border: none;
        width: 100%;
        display: none;
        background: transparent;
    }

    .nav-links li:hover .dropdown {
        display: block;
    }
    
    .has-dropdown > a i {
        float: right;
    }
}
/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #fff;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.3);
}

.btn-outline {
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    box-shadow: var(--shadow-soft);
}

.btn-outline:hover {
    border-color: var(--accent-primary);
    background: rgba(2, 132, 199, 0.05);
}

/* Layout */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.page-view {
    display: none;
    animation: fadeIn 0.4s ease-out forwards;
    padding-top: 120px;
    padding-bottom: 60px;
    min-height: calc(100vh - 80px);
}

.page-view.active {
    display: block;
}

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

/* Typography Helpers */
.text-gradient {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header {
    margin-bottom: 4rem;
}

.section-header.center {
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 900px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 55vh;
    padding-top: 60px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(2,132,199,0.08) 0%, rgba(248,250,252,0) 70%);
    z-index: -1;
    pointer-events: none;
}

.hero h1 {
    font-size: 3rem;  /* Reduced from 4.5rem to save space */
    line-height: 1.2;
    margin-bottom: 1.2rem;
    max-width: 1100px;
    color: var(--text-primary);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin-bottom: 3.5rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Glass Cards */
.glass-card {
    background: var(--surface);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    background: var(--surface-hover);
    border-color: rgba(255, 255, 255, 0.2);
}

.glass-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.glass-card h3 i {
    color: var(--accent-primary);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

/* Tags */
.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}

.tag {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Bullet Lists in Cards */
.feature-list {
    list-style: none;
    margin-top: 1.5rem;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
}

.feature-list li i {
    color: var(--accent-tertiary);
    margin-top: 0.3rem;
}

/* SCOR Tool Specific Styles */
.scor-map {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    overflow-x: auto;
    padding: 2rem 0;
    margin: 2rem 0;
}

.scor-node {
    background: white;
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    min-width: 140px;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    cursor: pointer;
}

.scor-node:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 25px rgba(2, 132, 199, 0.1);
}

.scor-node i {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--accent-primary);
}

.scor-node h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scor-arrow {
    color: var(--text-muted);
    font-size: 1.2rem;
}

.scor-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.metric-card {
    background: rgba(255,255,255,0.5);
    border: 1px solid var(--border-color);
    padding: 1.2rem;
    border-radius: 10px;
}

.metric-card h5 {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.metric-value {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--accent-primary);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-input {
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 1rem;
    border-radius: 8px;
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
}

/* Responsive */
@media (max-width: 1100px) {
    .nav-links { gap: 1rem; }
    .nav-links a { font-size: 0.85rem; padding: 0.4rem 0.6rem; }
    .navbar { padding: 0 2rem; }
}

@media (max-width: 992px) {
    .hero h1 { font-size: 3rem; }
    .navbar { padding: 0 1.5rem; width: 95%; top: 1rem; left: 50%; transform: translateX(-50%); border-radius: 20px; }
}

@media (max-width: 576px) {
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.1rem; }
    .section-title { font-size: 2rem; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
