/* ===========================
   SOCIAL IMPACT STUDIO - CSS
   Canvas-Yellow Design System
   =========================== */

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Canvas Colors */
    --canvas-yellow: #FFDE59;
    --canvas-blue: #4D56FF;
    --off-white: #FFFEF6;
    --ink-dark: #1F235A;
    --text-medium: #4a4a4a;
    --border-blue: rgba(77, 86, 255, 0.18);
    
    /* Background System */
    --bg-canvas-tint: #FFF9E6;
    --bg-white: #FFFFFF;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --line-height: 1.6;
    
    /* Spacing */
    --section-padding: 100px;
    --container-max: 1120px;
    --content-max: 720px;
    
    /* Borders & Shadows */
    --card-radius: 16px;
    --button-radius: 999px;
    --card-shadow: 0 2px 12px rgba(77, 86, 255, 0.08);
    --card-shadow-hover: 0 8px 32px rgba(77, 86, 255, 0.15);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--ink-dark);
    line-height: var(--line-height);
    overflow-x: hidden;
    /* Canvas background with subtle texture */
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(77, 86, 255, 0.02) 2px,
            rgba(77, 86, 255, 0.02) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(77, 86, 255, 0.02) 2px,
            rgba(77, 86, 255, 0.02) 4px
        ),
        linear-gradient(180deg, #FFF9E6 0%, #FFFEF6 50%, #FFF9E6 100%);
    background-attachment: fixed;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
}

/* === NAVIGATION === */
#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background: transparent;
}

#main-nav.scrolled {
    background: rgba(255, 254, 246, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 16px rgba(77, 86, 255, 0.08);
    padding: 14px 0;
    border-bottom: 1px solid var(--border-blue);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
}

.logo-full {
    height: 36px;
    width: auto;
    display: block;
}

.logo-compact {
    display: none;
    height: 36px;
    width: auto;
}

.logo:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-menu a {
    color: var(--canvas-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    position: relative;
    transition: var(--transition);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--canvas-yellow);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--canvas-yellow);
    padding: 10px 24px;
    border-radius: var(--button-radius);
    font-weight: 700;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    background: #FFC700;
    transform: scale(1.05);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--canvas-blue);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile menu overlay */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(255, 254, 246, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 24px;
        box-shadow: 0 4px 24px rgba(77, 86, 255, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
        pointer-events: none;
        z-index: 999;
    }
    
    .nav-menu.active {
        display: flex;
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid var(--border-blue);
    }
    
    .nav-menu a::after {
        display: none;
    }
    
    .nav-cta {
        margin-top: 16px;
        text-align: center;
    }
}

/* === HERO SECTION === */
#hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: white;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(31, 35, 90, 0.75), rgba(31, 35, 90, 0.5));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
    padding: 0 40px;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    margin-bottom: 40px;
    opacity: 0.95;
    font-weight: 500;
    animation: fadeInUp 1s ease 0.2s backwards;
    line-height: 1.5;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.4s backwards;
    margin-bottom: 32px;
}

.hero-trust {
    font-size: 14px;
    opacity: 0.8;
    font-weight: 500;
    letter-spacing: 0.5px;
    animation: fadeInUp 1s ease 0.6s backwards;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    width: 28px;
    height: 48px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 10px;
}

.scroll-indicator span {
    width: 4px;
    height: 8px;
    background: white;
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0%, 100% { opacity: 0; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(10px); }
}

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

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--button-radius);
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--canvas-yellow);
    color: var(--ink-dark);
    border-color: var(--canvas-yellow);
}

.btn-primary:hover {
    background: #FFC700;
    border-color: #FFC700;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 222, 89, 0.4);
}

.btn-secondary {
    background: var(--off-white);
    color: var(--canvas-blue);
    border: 2px solid var(--canvas-blue);
    box-shadow: 0 2px 8px rgba(77, 86, 255, 0.15);
}

.btn-secondary:hover {
    background: var(--canvas-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(77, 86, 255, 0.3);
}

.btn-large {
    padding: 16px 40px;
    font-size: 16px;
}

/* On white/light backgrounds */
.section-white .btn-secondary,
.section-canvas-bg .btn-secondary {
    color: var(--canvas-blue);
    border-color: var(--canvas-blue);
}

.section-white .btn-secondary:hover,
.section-canvas-bg .btn-secondary:hover {
    background: rgba(77, 86, 255, 0.08);
}

/* === SECTIONS === */
.section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section-canvas-bg {
    background: var(--bg-canvas-tint);
}

.section-white {
    background: var(--off-white);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--canvas-blue);
    margin-bottom: 20px;
    text-align: center;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.section-intro {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-medium);
    max-width: var(--content-max);
    margin: 0 auto 60px;
    line-height: 1.7;
}

/* === SPLIT OFFER SECTION === */
.split-offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.split-card {
    background: var(--off-white);
    border: 2px solid var(--border-blue);
    border-radius: var(--card-radius);
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--card-shadow);
}

.split-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--canvas-yellow);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.split-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--canvas-blue);
}

.split-card:hover::before {
    transform: scaleX(1);
}

.split-card-label {
    display: inline-block;
    background: var(--canvas-yellow);
    color: var(--ink-dark);
    padding: 6px 16px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
}

.split-card-content h2 {
    font-size: 1.75rem;
    color: var(--ink-dark);
    margin-bottom: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.split-card-content > p {
    color: var(--text-medium);
    margin-bottom: 24px;
    font-size: 1.05rem;
    line-height: 1.6;
}

.split-card-features {
    list-style: none;
    margin: 32px 0;
    padding: 0;
}

.split-card-features li {
    color: var(--text-medium);
    padding: 12px 0;
    padding-left: 28px;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.5;
}

.split-card-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    top: 12px;
    color: var(--canvas-yellow);
    font-weight: 700;
    font-size: 18px;
}

.split-card .btn {
    margin-top: 16px;
}

/* === ECOSYSTEM DIAGRAM === */
.ecosystem-diagram {
    margin: 60px auto;
    max-width: 800px;
}

.ecosystem-svg {
    width: 100%;
    height: auto;
}

.connection-line {
    animation: dash 20s linear infinite;
}

@keyframes dash {
    to {
        stroke-dashoffset: -100;
    }
}

.role-circle {
    transition: all 0.3s ease;
}

.role-circle:hover {
    fill: var(--canvas-yellow);
    opacity: 0.3;
}

/* === TEASER CARDS === */
.teaser-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.teaser-card {
    background: var(--off-white);
    border: 2px solid var(--border-blue);
    border-radius: var(--card-radius);
    padding: 40px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--card-shadow);
}

.teaser-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--canvas-blue);
}

.teaser-icon {
    margin-bottom: 24px;
    display: inline-flex;
    padding: 16px;
    background: rgba(77, 86, 255, 0.06);
    border-radius: 50%;
}

.teaser-card h3 {
    color: var(--canvas-blue);
    font-size: 1.5rem;
    margin-bottom: 16px;
    font-weight: 700;
}

.teaser-card p {
    color: var(--text-medium);
    margin-bottom: 24px;
    line-height: 1.7;
}

/* === CTA BAND === */
.cta-band {
    background: linear-gradient(135deg, var(--canvas-blue), #3D46DD);
    color: white;
    padding: 80px 0;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 16px;
    color: white;
    font-weight: 800;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 32px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* === FOOTER === */
footer {
    background: #1F235A;
    color: rgba(255, 255, 255, 0.9);
    padding: 80px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand {
    max-width: 400px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo-img {
    height: 48px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 20px;
    opacity: 0.9;
}

.footer-accent {
    width: 80px;
    height: 4px;
    background: var(--canvas-yellow);
    border-radius: 2px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    color: var(--canvas-yellow);
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    font-size: 15px;
}

.footer-column a:hover {
    color: var(--canvas-yellow);
    padding-left: 4px;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    font-size: 14px;
}

/* === ANIMATIONS === */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .split-offer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 968px) {
    :root {
        --section-padding: 80px;
    }
    
    .container {
        padding: 0 24px;
    }
    
    .nav-container {
        padding: 0 24px;
    }
    
    .logo-full {
        display: none;
    }
    
    .logo-compact {
        display: block;
    }
    
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .split-card {
        padding: 32px 24px;
    }
    
    .teaser-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .hero-ctas {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-ctas .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .btn-large {
        padding: 14px 28px;
        font-size: 15px;
    }
    
    .split-card-content h2 {
        font-size: 1.4rem;
    }
}

/* === UTILITY CLASSES === */
.text-center {
    text-align: center;
}

.mt-small { margin-top: 16px; }
.mt-medium { margin-top: 32px; }
.mt-large { margin-top: 64px; }

.mb-small { margin-bottom: 16px; }
.mb-medium { margin-bottom: 32px; }
.mb-large { margin-bottom: 64px; }
