/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Albert+Sans:ital,wght@0,100..900;1,100..900&display=swap');

@font-face {
    font-family: "Geist";
    src: url("https://fonts.gstatic.com/s/geist/v3/gyBhhwUxId8gMGYQMKR3pzfaWI_RruM4mJPby1QNtA.woff2");
    font-display: swap;
    font-style: normal;
    font-weight: 400;
}

/* Global Vars */
:root {
    --sand: #f4f2ee;
    --bg-base: #f4f2ee;
    --light-sand: #f0ece6;
    --accent-yellow: #fef7af;
    --accent-red: #f7a49e;
    --accent-blue: #84e6f6;
    --accent-gold: #fecd1a;
    --text-primary: #000000;
    --text-secondary: #605f5f;
    --border-light: rgba(0, 0, 0, 0.04);
    --border-medium: rgba(0, 0, 0, 0.08);

    /* Framer Tokens */
    --token-43fbd7d0-12e0-45d1-913d-863cd40ac123: var(--sand);
    --token-f317a2a6-2981-404a-911a-23ac76824a7d: #000000;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--sand);
    color: var(--text-primary);
    font-family: "Geist", sans-serif;
    line-height: 1.5;
}

/* Custom Utilities */
.glass-pill {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Smooth Transitions */
a,
button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Marquee Optimization */
.animate-marquee {
    will-change: transform;
}

/* Selection */

/* High-Fidelity Background Architecture */
.premium-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
    background-color: var(--bg-base);
}

.bg-mesh {
    position: absolute;
    inset: -50%;
    background:
        radial-gradient(circle at 20% 20%, rgba(254, 247, 175, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(132, 230, 246, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 50% 10%, rgba(247, 164, 158, 0.03) 0%, transparent 30%);
    filter: blur(100px);
    animation: mesh-float 25s ease-in-out infinite alternate;
}

.bg-noise {
    position: absolute;
    inset: 0;
    background-image: url('https://framerusercontent.com/images/6mcf62RlDfRfU61Yg5vb2pefpi4.png');
    background-size: 128px;
    opacity: 0.04;
    mix-blend-mode: overlay;
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-size: 80px 80px;
    background-image:
        linear-gradient(to right, rgba(0, 0, 0, 0.015) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.015) 1px, transparent 1px);
}

@keyframes mesh-float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(3%, 3%) scale(1.05);
    }
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-33.333%);
    }
}

.animate-marquee {
    animation: marquee 40s linear infinite;
}

.animate-marquee:hover {
    animation-play-state: paused;
}

.section-container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 100px;
    padding-right: 100px;
}

@media (max-width: 1024px) {
    .section-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (max-width: 768px) {
    section {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }

    .section-container {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }

    /* Fix for hero being obscured by fixed header */
    #about,
    section:first-of-type,
    main>section:first-of-type {
        padding-top: 8rem !important;
    }
}

.btn-premium {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.btn-premium:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.1);
}

.nav-link {
    font-family: 'Geist', sans-serif;
    font-size: 16px;
    color: #000;
    padding: 8px 12px;
    border-radius: 99px;
    transition: all 0.3s ease;
    font-weight: 400;
}

.nav-link:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

/* Global Paragraph Styles */
p {
    font-family: 'Geist', sans-serif;
    font-size: 16px;
    color: rgb(96, 95, 95);
    line-height: 1.4em;
    letter-spacing: -0.03em;
    font-weight: 400;
    font-feature-settings: "blwf" on, "cv09" on, "cv03" on, "cv04" on, "cv11" on;
    margin-bottom: 20px;
}

/* Premium Glass Card */
.testimonial-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.testimonial-glass:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
}

p:last-child {
    margin-bottom: 0;
}

/* Premium Button Design System */
@keyframes arrow-glide {
    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(150%);
    }

    50.1% {
        transform: translateX(-150%);
    }

    100% {
        transform: translateX(0);
    }
}

.btn-premium-base {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 8px 8px 8px 16px;
    border-radius: 32px;
    font-size: 16px !important;
    font-family: 'Geist', sans-serif !important;
    font-weight: 500 !important;
    line-height: 1.1em !important;
    letter-spacing: -0.03em !important;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 5px 15px 0px;
    border: 0 !important;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    width: fit-content;
}

.btn-premium-base:hover {
    opacity: 0.85;
}

.btn-premium-base .icon-box {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin-left: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.btn-premium-base:hover .icon-box svg {
    animation: arrow-glide 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Color Variants */
.btn-premium-black {
    background-color: #000 !important;
    color: #fff !important;
}

.btn-premium-black .icon-box {
    background-color: #fff;
    color: #000;
}

.btn-premium-yellow {
    background-color: #fef7af !important;
    color: #000 !important;
}

.btn-premium-yellow .icon-box {
    background-color: #000;
    color: #fff;
}

.btn-premium-white {
    background-color: #fff !important;
    color: #000 !important;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.1);
}

.btn-premium-white .icon-box {
    background-color: #000;
    color: #fff;
}

.btn-premium-blue {
    background-color: #84e6f6 !important;
    color: #000 !important;
}

.btn-premium-blue .icon-box {
    background-color: #000;
    color: #fff;
}

.btn-premium-red {
    background-color: #f7a49e !important;
    color: #000 !important;
}

.btn-premium-red .icon-box {
    background-color: #000;
    color: #fff;
}

.btn-premium-green {
    background-color: #10b981 !important;
    color: #fff !important;
}

.btn-premium-green .icon-box {
    background-color: #fff;
    color: #10b981;
}

.btn-premium-purple {
    background-color: #7c3aed !important;
    color: #fff !important;
}

.btn-premium-purple .icon-box {
    background-color: #fff;
    color: #7c3aed;
}

.btn-premium-outline {
    background-color: transparent !important;
    color: #000 !important;
    border: 1px solid #000 !important;
    padding: 12px 20px !important;
    box-shadow: none !important;
}

.btn-premium-outline:hover {
    background-color: rgba(0, 0, 0, 0.03) !important;
}

/* Global Heading Styles */
body h1,
body h2,
body h3,
body h4,
body h5,
body h6 {
    font-family: 'Albert Sans', sans-serif !important;
    color: #000 !important;
    font-weight: 400 !important;
    line-height: 1.1em !important;
    letter-spacing: -0.05em !important;
    margin-top: 0;
}

body h1 {
    font-size: 56px !important;
}

body h2 {
    font-size: 40px !important;
}

body h3 {
    font-size: 36px !important;
}

@media (max-width: 768px) {
    body h1 {
        font-size: 40px !important;
    }

    body h2 {
        font-size: 32px !important;
    }

    body h3 {
        font-size: 28px !important;
    }

    body h4 {
        font-size: 24px !important;
    }

    h1+p,
    h2+p {
        font-size: 16px !important;
    }
}

body h4 {
    font-size: 30px !important;
}

body h5 {
    font-size: 26px !important;
}

body h6 {
    font-size: 20px !important;
}

/* Section Subheaders */
h1+p,
h2+p {
    font-size: 18px;
}

.premium-subtitle {
    font-family: 'Albert Sans', sans-serif !important;
    font-size: 24px !important;
    color: rgba(0, 0, 0, 0.5) !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    letter-spacing: -0.02em !important;
    margin-bottom: 24px !important;
}

@media (max-width: 768px) {
    .premium-subtitle {
        font-size: 18px !important;
    }
}

/* Mega Menu Styles */
.mega-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 24px;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.1);
    padding: 24px;
    min-width: 280px;
    z-index: 100;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-item:hover .mega-menu {
    display: block;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.mega-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    transition: all 0.2s ease;
    color: #000;
    font-size: 15px;
    font-weight: 400;
}

.mega-menu-link:hover {
    background: rgba(0, 0, 0, 0.03);
    transform: translateX(4px);
}

/* Feature Accordion Styles for Mobile */
.feature-accordion-header {
    display: none;
    width: 100%;
    padding: 20px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    margin-bottom: 8px;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .feature-accordion-header {
        display: flex;
    }

    .feature-nav-container {
        display: none !important;
    }

    .feature-content-block {
        display: none;
        margin-bottom: 24px;
        opacity: 0;
        transform: translateY(10px);
        transition: all 0.4s ease;
    }

    .feature-content-block.active {
        display: block;
        opacity: 1;
        transform: translateY(0);
    }

    .feature-accordion-header.active {
        background: rgba(0, 0, 0, 0.02);
        border-color: rgba(0, 0, 0, 0.1);
    }

    .feature-accordion-header.active .accordion-icon {
        transform: rotate(180deg);
    }
}

/* Process Card Premium Interactions */
.process-section-wrapper {
    background-color: rgb(240, 236, 230);
    border-radius: 24px;
    padding: 8px;
}

/* Process Card Premium Interactions */
.process-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px !important;
    min-height: 340px;
    padding: 26px !important;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform-origin: left;
    border: 1px solid rgba(0, 0, 0, 0.03);
    will-change: flex;
    display: flex;
    flex-direction: column; /* Mobile first: vertical */
    gap: 24px;
}

/* Desktop: row layout and hover effect */
@media (min-width: 1024px) {
    .process-card {
        flex-direction: row;
    }

    .process-card.active {
        flex: 2;
        background: rgb(255, 255, 255);
        box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.08);
        border-color: rgba(0, 0, 0, 0.08);
    }
}

.card-text {
    flex: 0 0 100%; /* Mobile: full width */
    width: 100%;
    transition: flex-basis 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@media (min-width: 1024px) {
    .card-text {
        flex: 0 0 213px; /* Desktop: fixed width to prevent wrapping */
        width: 213px;
    }
    
    .process-card.active .card-text {
        flex: 0 0 213px; /* Keep fixed even when active */
    }
}

.card-visual {
    flex: 1; /* Mobile: visible by default */
    opacity: 1;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 1024px) {
    .card-visual {
        flex: 0 0 0px; /* Desktop: hidden by default */
        opacity: 0;
    }

    .process-card.active .card-visual {
        flex: 1; /* Desktop active: expand */
        opacity: 1;
    }
}