/* ===== CSS Custom Properties ===== */
:root {
    --deep-purple: #322155;
    --purple: #52308B;
    --light-purple: #B299DB;
    --teal: #437F86;
    --mint: #75CAAE;
    --gold: #F6C958;
    --coral: #D55268;
    --white: #FFFFFF;
    --off-white: #F8F7FC;
    --text-dark: #1a1a2e;
    --text-muted: #6b7280;
    --purple-wash: rgba(82, 48, 139, 0.06);
    --section-padding: clamp(4rem, 8vw, 8rem);
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 3rem);
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--purple);
    margin-bottom: 1rem;
}

.section-label--light {
    color: var(--light-purple);
}

.section-heading {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1.25rem;
}

.section-subheading {
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    color: var(--text-muted);
    max-width: 640px;
    line-height: 1.7;
}

/* ===== Animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===== Navigation ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: all 0.35s ease;
}

.nav.scrolled {
    background: rgba(50, 33, 85, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.75rem 0;
    box-shadow: 0 1px 30px rgba(50, 33, 85, 0.2);
}

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

.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav__logo svg {
    width: 36px;
    height: 36px;
}

.nav__logo-text {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.06em;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 2.25rem;
}

.nav__link {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s ease;
}

.nav__link:hover {
    color: var(--white);
}

.nav__cta {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
    background: var(--purple);
    padding: 0.6rem 1.5rem;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.25s ease;
}

.nav__cta:hover {
    background: var(--light-purple);
    color: var(--deep-purple);
}

.nav__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.nav__hamburger span {
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(160deg, #2a1b47 0%, var(--deep-purple) 40%, #1e1440 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(82, 48, 139, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 60%;
    height: 80%;
    background: radial-gradient(ellipse, rgba(67, 127, 134, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

/* Subtle grid pattern */
.hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 100%);
}

.hero__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 2;
    padding-top: 6rem;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 100px;
    padding: 0.4rem 1.1rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--light-purple);
    margin-bottom: 2rem;
    backdrop-filter: blur(8px);
}

.hero__badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--mint);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.hero h1 {
    font-size: clamp(2.75rem, 6vw, 4.5rem);
    font-weight: 800;
    color: var(--white);
    max-width: 700px;
    margin-bottom: 1.5rem;
    line-height: 1.08;
}

.hero h1 .gradient-text {
    background: linear-gradient(135deg, var(--light-purple), var(--mint));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__description {
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    max-width: 520px;
    line-height: 1.75;
    margin-bottom: 2.5rem;
}

.hero__actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.85rem 2rem;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn--primary {
    background: var(--white);
    color: var(--deep-purple);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.2);
}

.btn--ghost {
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
}

.btn--purple {
    background: var(--purple);
    color: var(--white);
}

.btn--purple:hover {
    background: #6339a8;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(82, 48, 139, 0.35);
}

.btn__arrow {
    transition: transform 0.2s ease;
}

.btn:hover .btn__arrow {
    transform: translateX(3px);
}

.hero__backed {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hero__backed-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.05em;
}

.hero__backed-logo {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.04em;
}

/* ===== Problem Section ===== */
.problem {
    padding: var(--section-padding) 0;
    background: var(--white);
}

.problem__header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.problem__header .section-subheading {
    margin: 0 auto;
}

.problem__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.problem__card {
    position: relative;
    background: var(--off-white);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.problem__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(50, 33, 85, 0.08);
}

.problem__card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    background: var(--purple-wash);
}

.problem__card-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--purple);
}

.problem__card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.problem__card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ===== Platform / Solution Section ===== */
.platform {
    padding: var(--section-padding) 0;
    background: var(--off-white);
}

.platform__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.platform__features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.platform__feature {
    background: var(--white);
    border-radius: 16px;
    padding: 1.75rem;
    border: 1px solid rgba(82, 48, 139, 0.06);
    transition: all 0.3s ease;
}

.platform__feature:hover {
    border-color: var(--light-purple);
    box-shadow: 0 8px 30px rgba(82, 48, 139, 0.08);
}

.platform__feature-icon {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.platform__feature h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.platform__feature p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===== Outcomes / Fan Chart Section ===== */
.outcomes {
    padding: var(--section-padding) 0;
    background: linear-gradient(160deg, #251848 0%, var(--deep-purple) 100%);
    position: relative;
    overflow: hidden;
}

.outcomes::after {
    content: '';
    position: absolute;
    bottom: -40%;
    right: -10%;
    width: 50%;
    height: 80%;
    background: radial-gradient(ellipse, rgba(67,127,134,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.outcomes__layout {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 4rem;
    align-items: center;
}

.outcomes__desc {
    font-size: clamp(0.95rem, 1.3vw, 1.05rem);
    color: rgba(255,255,255,0.68);
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 420px;
}

.outcomes__bullets {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.outcomes__bullets li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255,255,255,0.82);
}

.outcomes__bullets li svg {
    flex-shrink: 0;
    margin-top: 1px;
}

.outcomes__chart-wrap {
    position: relative;
}

.outcomes__chart-title {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    margin-bottom: 0.75rem;
}

.outcomes__canvas {
    display: block;
    width: 100%;
    height: 300px;
    border-radius: 14px;
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.07);
}

@media (max-width: 900px) {
    .outcomes__layout { grid-template-columns: 1fr; gap: 2.5rem; }
    .outcomes__canvas { height: 230px; }
}

/* ===== Use Cases Section ===== */
.usecases {
    padding: var(--section-padding) 0;
    background: var(--white);
}

.usecases__header {
    margin-bottom: 3.5rem;
}

.usecases__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.usecases__card {
    position: relative;
    background: linear-gradient(160deg, var(--deep-purple) 0%, #3b2768 100%);
    border-radius: 20px;
    padding: 2.25rem 2rem;
    color: var(--white);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.usecases__card:hover {
    transform: translateY(-4px);
}

.usecases__card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(178, 153, 219, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.usecases__card-number {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--mint);
    margin-bottom: 1.25rem;
}

.usecases__card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.usecases__card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.65;
}

.usecases__card-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
}

/* ===== Services Section ===== */
.services {
    padding: var(--section-padding) 0;
    background: var(--off-white);
}

.services__header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.services__header .section-subheading {
    margin: 0 auto;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.services__card {
    position: relative;
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    border: 1px solid rgba(82, 48, 139, 0.08);
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
}

.services__card:hover {
    border-color: var(--purple);
    box-shadow: 0 16px 50px rgba(82, 48, 139, 0.1);
    transform: translateY(-4px);
}

.services__card--featured {
    background: linear-gradient(160deg, var(--deep-purple), #3b2768);
    color: var(--white);
    border-color: transparent;
}

.services__card--featured:hover {
    border-color: transparent;
    box-shadow: 0 16px 60px rgba(50, 33, 85, 0.3);
}

.services__card-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
    margin-bottom: 1.5rem;
    width: fit-content;
}

.services__card-badge--advisory {
    background: rgba(82, 48, 139, 0.1);
    color: var(--purple);
}

.services__card-badge--access {
    background: rgba(117, 202, 174, 0.2);
    color: var(--mint);
}

.services__card-badge--adapt {
    background: rgba(67, 127, 134, 0.1);
    color: var(--teal);
}

.services__card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.services__card-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.services__card--featured .services__card-subtitle {
    color: rgba(255, 255, 255, 0.65);
}

.services__card ul {
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.services__card li {
    position: relative;
    font-size: 0.9rem;
    color: var(--text-muted);
    padding-left: 1.4rem;
    margin-bottom: 0.6rem;
    line-height: 1.55;
}

.services__card--featured li {
    color: rgba(255, 255, 255, 0.7);
}

.services__card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--light-purple);
}

.services__card--featured li::before {
    background: var(--mint);
}

/* ===== CTA Section ===== */
.cta {
    padding: var(--section-padding) 0;
    background: var(--white);
}

.cta__inner {
    background: linear-gradient(160deg, var(--deep-purple), #3b2768);
    border-radius: 24px;
    padding: clamp(3rem, 6vw, 5rem);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta__inner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(117, 202, 174, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cta__inner h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
    position: relative;
}

.cta__inner p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 500px;
    margin: 0 auto 2rem;
    line-height: 1.7;
    position: relative;
}

.cta__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
}

.cta__bullets {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    position: relative;
}

.cta__bullet {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
}

.cta__bullet svg {
    width: 18px;
    height: 18px;
    stroke: var(--mint);
    flex-shrink: 0;
}

/* ===== Footer ===== */
.footer {
    padding: 3rem 0;
    background: var(--deep-purple);
    color: rgba(255, 255, 255, 0.5);
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer__left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer__left svg {
    width: 28px;
    height: 28px;
}

.footer__left span {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.04em;
}

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

.footer__backed {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.footer__backed-name {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
}

.footer__copy {
    font-size: 0.8rem;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .platform__layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav__links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(50, 33, 85, 0.98);
        backdrop-filter: blur(16px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 999;
    }

    .nav__links.open {
        display: flex;
    }

    .nav__links.open .nav__link {
        font-size: 1.2rem;
    }

    .nav__hamburger {
        display: flex;
        z-index: 1001;
    }

    .nav__hamburger.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .nav__hamburger.open span:nth-child(2) {
        opacity: 0;
    }
    .nav__hamburger.open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .problem__grid {
        grid-template-columns: 1fr 1fr;
    }

    .usecases__grid {
        grid-template-columns: 1fr;
    }

    .services__grid {
        grid-template-columns: 1fr;
    }

    .footer__inner {
        flex-direction: column;
        text-align: center;
    }

    .footer__right {
        flex-direction: column;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .problem__grid {
        grid-template-columns: 1fr;
    }

    .platform__features {
        grid-template-columns: 1fr;
    }

    .hero__actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .cta__bullets {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
}
