/* Global Reset and Box Sizing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #3B6FEB;
    --primary-purple: #6C2BD9;
    --brand-gradient: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-purple) 100%);
    --brand-gradient-horizontal: linear-gradient(90deg, var(--primary-blue) 0%, var(--primary-purple) 100%);
    --deep-navy: #100C2A;
    --dark-indigo: #0E0B2E;
    --accent-gold: #F5B942;
    --neutral-white: #FFFFFF;
    --light-gray: #F5F5FC;
    --body-gray: #5B6478;
    
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-fast: all 0.2s ease;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow: 0 10px 30px rgba(14, 11, 46, 0.08);
    --shadow-hover: 0 20px 40px rgba(108, 43, 217, 0.12);
    --radius-sm: 8px;
    --radius: 16px;
    --radius-lg: 24px;
    
    --container-width: 1280px;
    --section-pad-y: 100px;
}

body {
    font-family: var(--font-body);
    color: var(--body-gray);
    line-height: 1.6;
    background-color: var(--neutral-white);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: var(--primary-blue);
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography Utilities */
.text-gradient {
    background: var(--brand-gradient-horizontal);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.text-gold {
    color: var(--accent-gold);
}

.section-eyebrow {
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: block;
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.section {
    padding: var(--section-pad-y) 0;
}

.section-dark {
    background-color: var(--dark-indigo);
    color: var(--light-gray);
}
.section-dark h1, .section-dark h2, .section-dark h3 {
    color: var(--neutral-white);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-body);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--brand-gradient-horizontal);
    color: var(--neutral-white);
    box-shadow: 0 4px 15px rgba(108, 43, 217, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 43, 217, 0.4);
    color: var(--neutral-white);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
}

.btn-outline:hover {
    background: var(--accent-gold);
    color: var(--deep-navy);
}

.btn-outline-white {
    background: transparent;
    border: 2px solid var(--neutral-white);
    color: var(--neutral-white);
}

.btn-outline-white:hover {
    background: var(--neutral-white);
    color: var(--dark-indigo);
}

/* Header & Navbar */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 1.5rem 0;
    background: transparent;
}

.header.scrolled {
    background: var(--dark-indigo);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 70px;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--neutral-white);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.header:not(.scrolled) .nav-link {
    /* If header is on a white hero, we might need a dark mode toggle. For now, heroes are dark. */
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-gradient-horizontal);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle span {
    width: 25px;
    height: 2px;
    background: var(--neutral-white);
    transition: var(--transition-fast);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    background: var(--dark-indigo);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-size: 4.5rem;
    color: var(--neutral-white);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-inline: auto;
}

/* Cards & Grids */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    align-items: center;
}

.card {
    background: var(--neutral-white);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.card-top-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--brand-gradient-horizontal);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.icon-badge {
    width: 60px;
    height: 60px;
    background: var(--light-gray);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.icon-badge svg {
    width: 32px;
    height: 32px;
    fill: url(#brandGradSVG); /* Referencing an inline SVG def if present, else currentColor */
    color: var(--primary-purple);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card p {
    margin-bottom: 1.5rem;
}

.text-link {
    font-weight: 600;
    color: var(--accent-gold);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.text-link:hover {
    gap: 0.5rem;
}

/* Stats Bar */
.stats-bar {
    position: relative;
    z-index: 10;
    margin-top: -60px;
    margin-bottom: 40px;
}

.stats-card {
    background: var(--neutral-white);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--body-gray);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Timeline / Process */
.timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 50px;
    right: 50px;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--accent-gold), var(--accent-gold) 10px, transparent 10px, transparent 20px);
    z-index: 0;
}

.timeline-item {
    position: relative;
    z-index: 1;
    text-align: center;
}

.timeline-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--dark-indigo);
    border: 2px solid var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-icon svg {
    width: 32px;
    height: 32px;
    color: var(--neutral-white);
}

.timeline-item h4 {
    color: var(--neutral-white);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.timeline-item p {
    font-size: 0.9rem;
}

/* CTA Banner */
.cta-banner {
    background: var(--brand-gradient-horizontal);
    border-radius: var(--radius-lg);
    padding: 5rem 3rem;
    text-align: center;
    color: var(--neutral-white);
    position: relative;
    overflow: hidden;
}

.cta-banner h2 {
    color: var(--neutral-white);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.cta-banner p {
    color: rgba(255,255,255,0.9);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    position: relative;
    z-index: 1;
}

.cta-banner .btn {
    position: relative;
    z-index: 1;
}

/* Footer */
.footer {
    background: var(--dark-indigo);
    color: rgba(255,255,255,0.7);
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    color: var(--neutral-white);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

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

.footer-links a {
    color: rgba(255,255,255,0.7);
}

.footer-links a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neutral-white);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--brand-gradient-horizontal);
    transform: translateY(-3px);
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* SVG Helpers */
.svg-gradient-def {
    width: 0;
    height: 0;
    position: absolute;
}

/* Tabs Component (for CCR page) */
.tabs-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}

.tabs-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tab-btn {
    text-align: left;
    padding: 1rem 1.5rem;
    background: var(--light-gray);
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--body-gray);
    cursor: pointer;
    transition: var(--transition);
    border-left: 4px solid transparent;
}

.tab-btn:hover {
    background: #ebebf5;
}

.tab-btn.active {
    background: var(--neutral-white);
    color: var(--primary-purple);
    border-left-color: var(--primary-purple);
    box-shadow: var(--shadow-sm);
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.tab-content.active {
    display: block;
}

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

/* Bullet list */
.bullet-list {
    margin: 1.5rem 0;
}
.bullet-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}
.bullet-list li::before {
    content: '♦';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-gold);
    font-size: 1.2rem;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 3.5rem; }
    .tabs-container { grid-template-columns: 1fr; }
    .timeline::before { display: none; }
    .timeline { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--dark-indigo);
        flex-direction: column;
        padding: 2rem;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease;
    }
    .nav-menu.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    .mobile-toggle { display: flex; }
    
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .stats-card { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 2.5rem; }
    .footer-grid { grid-template-columns: 1fr; }
    
    .section { padding: 60px 0; }
}

@media (max-width: 480px) {
    .stats-card { grid-template-columns: 1fr; }
    .cta-banner { padding: 3rem 1.5rem; }
}
