/* Reset & Base HTML */
.ccf-wrap {
    font-family: var(--font-family);
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

/* Typography */
.ccf-wrap h1,
.ccf-wrap h2,
.ccf-wrap h3,
.ccf-wrap h4 {
    font-family: var(--font-family);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.ccf-wrap h2.gradient-text, .ccf-wrap h3.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.ccf-wrap p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    font-weight: 400;
}

.ccf-wrap strong {
    color: var(--primary);
    font-weight: 800;
}

/* Background Effects */
.ccf-wrap .ambient-glow {
    position: absolute;
    top: 0;
    left: -10vw;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
    animation: ccf-floatGlow 15s ease-in-out infinite alternate;
}

.ccf-wrap .ambient-glow.right {
    top: auto;
    bottom: 0;
    left: auto;
    right: -10vw;
    background: radial-gradient(circle, rgba(15, 82, 184, 0.03) 0%, transparent 60%);
    animation-delay: -5s;
}

@keyframes ccf-floatGlow {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(5vw, 5vw) scale(1.1);
    }
    100% {
        transform: translate(-5vw, 10vw) scale(0.9);
    }
}

/* Layout */
.ccf-wrap .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    position: relative;
    z-index: 1;
}

/* Hero Section */
.ccf-wrap .hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 6rem;
    padding-bottom: 2rem;
    background: linear-gradient(180deg, var(--bg-surface) 0%, var(--white) 100%);
    overflow: hidden;
    perspective: 1000px;
}

.ccf-wrap .hero-grid-bg {
    position: absolute;
    bottom: -20%;
    left: -50%;
    width: 200%;
    height: 100%;
    background-image:
        linear-gradient(rgba(2, 60, 150, 0.1) 2px, transparent 2px),
        linear-gradient(90deg, rgba(2, 60, 150, 0.1) 2px, transparent 2px);
    background-size: 60px 60px;
    transform-origin: bottom center;
    transform: perspective(600px) rotateX(75deg);
    z-index: 0;
    -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 80%);
    mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 80%);
    animation: ccf-gridMove 10s linear infinite;
    pointer-events: none;
}

@keyframes ccf-gridMove {
    0% {
        transform: perspective(600px) rotateX(75deg) translateY(0);
    }
    100% {
        transform: perspective(600px) rotateX(75deg) translateY(60px);
    }
}

.ccf-wrap .hero-glow {
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(2, 60, 150, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
}

.ccf-wrap .hero-content {
    max-width: 900px;
    z-index: 10;
}

.ccf-wrap .badge {
    display: inline-block;
    padding: 8px 24px;
    border-radius: 50px;
    background: rgba(2, 60, 150, 0.05);
    border: 1px solid rgba(2, 60, 150, 0.25);
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(2, 60, 150, 0.05);
    animation: ccf-pulseBadge 3s infinite alternate;
}

@keyframes ccf-pulseBadge {
    from {
        box-shadow: 0 0 10px rgba(2, 60, 150, 0.02);
    }
    to {
        box-shadow: 0 0 25px rgba(2, 60, 150, 0.1);
    }
}

.ccf-wrap .hero h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.ccf-wrap .hero .intro-text {
    font-size: 1.35rem;
    color: var(--secondary);
    margin-bottom: 2rem;
    line-height: 1.5;
    font-weight: 500;
}

.ccf-wrap .hero-cards-wrapper {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 4rem;
}

.ccf-wrap .hero-card {
    background: var(--white);
    border: 1px solid rgba(2, 60, 150, 0.3);
    padding: 1.5rem 2rem;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
    flex: 1 1 calc(33.333% - 1.5rem);
    min-width: 250px;
    box-shadow: 0 10px 20px rgba(2, 60, 150, 0.03);
    z-index: 1;
}

.ccf-wrap .hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(2, 60, 150, 0.03), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.ccf-wrap .hero-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-glow);
    box-shadow: 0 15px 30px rgba(2, 60, 150, 0.08);
}

.ccf-wrap .hero-card:hover::before {
    opacity: 1;
}

.ccf-wrap .hero-card span {
    display: block;
    color: var(--accent);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    font-weight: 800;
}

/* Content Sections */
.ccf-wrap .section-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.ccf-wrap .section-split.reverse {
    direction: rtl;
}

.ccf-wrap .section-split.reverse > * {
    direction: ltr;
}

.ccf-wrap .content-box {
    padding-right: 2rem;
}

.ccf-wrap .section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 2rem;
    line-height: 1.1;
}

.ccf-wrap .visual-box {
    position: relative;
    background: linear-gradient(145deg, var(--bg-surface), var(--white));
    border-radius: 24px;
    padding: 2.5rem;
    border: 1px solid rgba(2, 60, 150, 0.3);
    box-shadow: 0 15px 35px rgba(2, 60, 150, 0.05);
    overflow: hidden;
    z-index: 1;
}

.ccf-wrap .visual-box::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(2, 60, 150, 0.03) 0%, transparent 50%);
    animation: ccf-rotateBG 20s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes ccf-rotateBG {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.ccf-wrap .list-items {
    list-style: none;
    margin-top: 2rem;
    padding-left: 0;
}

.ccf-wrap .list-items li {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 1.15rem;
    font-weight: 400;
}

.ccf-wrap .list-items li::before {
    content: '→';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-weight: 800;
}

/* Quotes / Highlights */
.ccf-wrap .highlight-quote {
    background: rgba(2, 60, 150, 0.03);
    border-left: 4px solid var(--primary);
    padding: 1.5rem 2rem;
    border-radius: 0 16px 16px 0;
    margin: 2rem 0;
    font-size: 1.25rem;
    font-style: italic;
    color: var(--primary);
    font-weight: 500;
}

/* Grid Layouts for smaller sections */
.ccf-wrap .grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.ccf-wrap .feature-card {
    background: var(--white);
    border: 1px solid rgba(2, 60, 150, 0.3);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 10px 20px rgba(2, 60, 150, 0.02);
    position: relative;
    z-index: 1;
}

.ccf-wrap .feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(2, 60, 150, 0.03), transparent);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.ccf-wrap .feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(2, 60, 150, 0.08);
    border-color: rgba(2, 60, 150, 0.15);
}

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

.ccf-wrap .feature-card h3 {
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

/* Intersection Observer Animation Classes */
.ccf-wrap .reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .ccf-wrap .section-split {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .ccf-wrap .section-split.reverse {
        direction: ltr;
    }
    .ccf-wrap .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .ccf-wrap .content-box {
        padding-right: 0;
    }
    .ccf-wrap .hero-card {
        flex: 1 1 calc(50% - 1.5rem);
    }
}

@media (max-width: 768px) {
    .ccf-wrap .grid-3 {
        grid-template-columns: 1fr;
    }
    .ccf-wrap .hero-card {
        flex: 1 1 100%;
    }
    .ccf-wrap .container {
        padding: 4rem 1.5rem;
    }
    .ccf-wrap .hero {
        padding-top: 6rem;
    }
}
