@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&display=swap');

:root {
    --ink: #171717;
    --paper: #ffffff;
    --cream: #fdfbf7;
    --yellow: #f4d03f;
    --butter: #fff5be;
    --mint: #dcefcB;
    --lav: #e7e0ff;
    --fog: #f4f4f1;
    --muted: #62625e;
    --line: rgba(23, 23, 23, 0.1);
    --max: 1200px;
    --radius: 12px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }

body {
    background: var(--cream);
    color: var(--ink);
    font-family: 'DM Sans', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Noise Texture */
body::after {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.05;
    pointer-events: none;
    z-index: 9999;
}

a, button, .button { cursor: pointer; }

/* Custom Cursor */
.cursor-follower {
    position: fixed;
    width: 12px;
    height: 12px;
    background: var(--yellow);
    border: 2px solid var(--ink);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: width 0.3s var(--ease), height 0.3s var(--ease), opacity 0.3s var(--ease), background 0.3s var(--ease);
}

.cursor-follower.active {
    opacity: 1;
}

.cursor-follower.hover {
    width: 60px;
    height: 60px;
    background: white;
    mix-blend-mode: normal;
    opacity: 0.3;
}

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

h1, h2, h3 { font-weight: 700; line-height: 1.1; letter-spacing: -0.04em; }

.split-text { overflow: hidden; }
.char { display: inline-block; }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 2.4rem;
    border-radius: 100px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.4s var(--ease);
    border: 1px solid var(--ink);
    position: relative;
    overflow: hidden;
    background: transparent;
    color: var(--ink);
}

.button.yellow { background: var(--yellow); border-color: var(--yellow); }
.button.dark { background: var(--ink); color: white; }

.button:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Hero Enhancements */
.hero-new { position: relative; z-index: 1; }
.hero-img { border-radius: var(--radius); }

/* Glassmorphism Sections */
section {
    position: relative;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    transition: background 0.5s var(--ease);
}

section:hover { background: rgba(255, 255, 255, 0.85); }

/* Background Carousel */
.bg-carousel {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -2;
    background: #000;
}

.bg-carousel-item {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s var(--ease);
    transform: scale(1.1);
}

.bg-carousel-item.active { opacity: 0.6; transform: scale(1); }

.bg-overlay {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(253,251,247,0.4) 0%, var(--cream) 100%);
}

/* Header */
header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s var(--ease);
}

header.scrolled {
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    text-decoration: none;
    color: var(--ink);
    position: relative;
    z-index: 1001;
}

.logo-svg {
    transition: transform 0.5s var(--ease);
}

.brand:hover .logo-svg {
    transform: rotate(90deg);
}

.logo-circle {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: dash 2s var(--ease) forwards;
}

.logo-path {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: dash 1s var(--ease) 1s forwards;
}

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

.logo-text {
    position: relative;
    display: inline-block;
}

.topbar {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav a {
    text-decoration: none;
    color: var(--ink);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
}

.nav a::after {
    content: "";
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: var(--yellow);
    transition: width 0.3s var(--ease);
}

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

.menu {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--ink);
    cursor: pointer;
    z-index: 1001;
    transition: transform 0.3s var(--ease);
}

.menu:hover { transform: scale(1.1); }

@media (max-width: 768px) {
    .menu { display: block; }
    
    .nav {
        position: fixed;
        top: 0; right: 0;
        width: 100%; height: 100vh;
        background: var(--cream);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transform: translateX(100%);
        transition: transform 0.6s var(--ease);
        z-index: 1000;
    }
    
    .nav.open { transform: translateX(0); }
    
    .nav a { font-size: 2rem; }
    
    .nav .button {
        padding: 1.2rem 2.4rem;
        font-size: 1.2rem;
    }
}

/* Card Animations */
.animate-card {
    background: rgba(255, 255, 255, 0.5);
    padding: 40px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    transition: all 0.5s var(--ease);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.animate-card:hover {
    background: white;
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.05);
}

.icon {
    width: 64px; height: 64px;
    background: var(--butter);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    transition: transform 0.5s var(--ease);
}

.animate-card:hover .icon { transform: rotate(10deg) scale(1.1); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.step {
    padding: 40px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid var(--line);
    transition: all 0.5s var(--ease);
}

.step:hover { background: white; transform: translateY(-5px); }
.step b { font-size: 0.8rem; letter-spacing: 0.1em; color: var(--yellow); }

/* Proof Grid */
.mini-proof {
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

.proof-grid {
    display: grid;
    grid-template-columns: 1fr 2.5fr;
    padding: 24px 0;
    align-items: center;
    gap: 40px;
}

.proof-grid p {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

.sectors {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    color: var(--muted);
}

/* Callout Section */
.callout {
    background: var(--mint);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.callout-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;
}

.callout-stat {
    font-size: clamp(5rem, 12vw, 10rem);
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 0.8;
    color: #2d502f;
}

.eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--yellow);
    margin-bottom: 16px;
}

/* CTA Section */
.cta {
    background: var(--yellow);
    padding: 100px 0;
}

.cta-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.cta h2 { margin: 0; max-width: 600px; }

/* Testimonials */
.testimonial-slider { position: relative; padding: 60px 0; }
blockquote { font-size: 2.4rem; letter-spacing: -0.04em; }

/* Footer */
.footer {
    background: var(--ink);
    color: white;
    padding: 80px 0 40px;
}

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

.footer h3 {
    color: var(--yellow);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}

.footer a {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.3s var(--ease);
}

.footer a:hover { color: white; }

.legal {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

.skip-link { display: none; }

/* Utilities */
.section { padding: 120px 0; }
.section-head {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 60px;
    align-items: flex-end;
    margin-bottom: 60px;
}
.section-head p { margin: 0; max-width: 600px; }
.text-muted { color: var(--muted); }
.bg-cream { background-color: var(--cream); }
.bg-white { background-color: white; }
.bg-butter { background-color: var(--butter); }

/* Responsive */
@media (max-width: 1024px) {
    .wrap { padding: 0 24px; }
    h1 { font-size: 3.5rem; }
    .steps { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .proof-grid, .section-head, .callout-grid, .cta-grid { grid-template-columns: 1fr; gap: 30px; }
    .cta-grid { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 768px) {
    h1 { font-size: 2.8rem; }
    header { padding: 16px 0; }
    .nav { display: none; }
    .section { padding: 80px 0; }
}
