/* FONTS */
@font-face {
    font-family: 'Anthropic Serif';
    src: url('../assets/fonts/anthropic/AnthropicSerif-Text-Regular-Static.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Anthropic Serif';
    src: url('../assets/fonts/anthropic/AnthropicSerif-Text-Medium-Static.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: 'Anthropic Serif';
    src: url('../assets/fonts/anthropic/AnthropicSerif-Text-Bold-Static.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

/* GLOBAL VARIABLES & RESET */
:root {
    --bg-color: #F9F9F6;
    --text-main: #1A1A1A;
    --text-muted: #555555;
    --accent: #000000;
    --font-serif: 'Anthropic Serif', serif;
    --font-sans: 'Anthropic Serif', serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

/* UTILITIES */
.text-center { text-align: center; }
.justify-center { justify-content: center; }
.bg-light { background-color: #f1f1ee; }
.container-sm { max-width: 100%; margin: 0 auto; padding: 0 5%; }
.container-split {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 5%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
}

.serif-title {
    font-family: var(--font-serif);
    font-size: clamp(3.5rem, 6vw, 5.5rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.serif-heading {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
}

/* BUTTONS */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 1.1rem;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--accent);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent);
    color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    background-color: #222;
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent);
}

.btn-secondary:hover {
    background-color: rgba(0,0,0,0.05);
    transform: translateY(-3px);
}

/* HEADER */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: 1000;
    padding: 1rem 2rem;
    border-radius: 50px;
    background-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.4);
    top: 1rem;
    padding: 0.8rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 60px;
    width: auto;
    display: block;
    transition: height 0.4s ease;
}

header.scrolled .logo-img {
    height: 45px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-main);
    padding: 0.5rem;
}

nav.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

nav a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    position: relative;
    transition: var(--transition);
}

nav a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

nav a:not(.nav-cta):hover::after {
    width: 100%;
}

.nav-cta {
    background-color: #111;
    color: #fff !important;
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    font-weight: 500;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.nav-cta:hover {
    transform: translateY(-2px);
    background-color: var(--accent);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* 1. HERO SECTION */
.hero {
    position: relative;
    min-height: 100vh;
    padding: 10rem 5% 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-content-center {
    position: relative;
    z-index: 10;
    max-width: 900px;
}

.hero-pill {
    display: inline-block;
    padding: 0.1rem 1rem;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-weight: 500;
    letter-spacing: -0.02em;
}

.hero-word-wrap {
    display: inline-block;
}

.pill-purple {
    background-color: #fbc2eb;
    color: #000;
}

.pill-orange {
    background-color: #ff9a9e;
    color: #000;
}

.pill-cyan {
    background-color: #a1c4fd;
    color: #000;
}

.hero-subtext {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin: 0 auto 3rem;
    max-width: 600px;
    font-weight: 400;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    will-change: transform;
}

.blob {
    position: absolute;
    filter: blur(12px);
    opacity: 0.9;
    will-change: transform, border-radius;
    animation: morph 8s ease-in-out infinite;
    z-index: 0;
}

@keyframes morph {
    0% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    50% {
        border-radius: 30% 70% 70% 30% / 30% 60% 40% 70%;
    }
    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
}

.blob-1 {
    top: 5%;
    left: 15%;
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%);
}

.blob-2 {
    bottom: 5%;
    right: 15%;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    animation-delay: -4s;
}

.blob-3 {
    top: 25%;
    right: 25%;
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #a8ff78 0%, #78ffd6 100%);
    opacity: 0.6;
    animation-delay: -2s;
}

.blob-4 {
    bottom: 25%;
    left: 20%;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    opacity: 0.5;
    animation-delay: -6s;
}

.shape {
    position: absolute;
    color: rgba(0,0,0,0.04);
}

.shape i {
    width: 100px;
    height: 100px;
}

.shape-1 {
    top: 20%;
    left: 10%;
}

.shape-2 {
    top: 30%;
    right: 15%;
}

.shape-3 {
    bottom: 20%;
    left: 20%;
}

/* 2. TRUST STATEMENT */
.trust-statement {
    padding: 10rem 0 8rem;
}

.massive-statement {
    font-size: clamp(2.5rem, 4vw, 4.5rem);
    font-family: var(--font-serif);
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-weight: 500;
}

.italic-accent {
    font-style: italic;
    font-weight: 400;
    color: var(--text-muted);
}

.trust-text {
    font-size: 1.5rem;
    color: var(--text-muted);
    max-width: 600px;
}

/* 3. SERVICES SECTION */
.services {
    padding: 8rem 0 4rem;
    max-width: 100%;
    margin: 0 auto;
    background-color: #0a0a0a;
}

.services .serif-heading {
    color: #fff !important;
    position: relative;
    z-index: 10;
}

.section-header {
    text-align: left;
    padding-left: 5%;
    max-width: 100%;
    margin: 0 auto 4rem;
    position: relative;
    z-index: 10;
}

.services .section-header {
    margin-bottom: 2rem;
}

.services-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 2rem;
    width: max-content;
    padding: 0 5%;
    height: 75vh;
}

.service-card {
    position: relative;
    overflow: hidden;
    width: 70vw;
    min-width: 300px;
    height: 100%;
    flex-shrink: 0;
    padding: 6rem;
    background: #fff;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transition: var(--transition);
    color: #000;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.card-bg-num {
    position: absolute;
    top: 1rem;
    right: 2rem;
    font-size: 25rem;
    font-family: var(--font-serif);
    font-weight: 900;
    color: rgba(0,0,0,0.06);
    line-height: 1;
    user-select: none;
    pointer-events: none;
}

.service-content {
    position: relative;
    z-index: 10;
}

.service-title {
    font-size: 5rem;
    font-family: var(--font-serif);
    margin-bottom: 2rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #000;
}

.service-desc {
    font-size: 1.5rem;
    max-width: 700px;
    margin-bottom: 3rem;
    color: #222;
    font-weight: 400;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.service-tags span {
    padding: 0.8rem 1.5rem;
    border: 1.5px solid rgba(0,0,0,0.3);
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 500;
    color: #111;
}

.card-purple { background-color: #fbc2eb; }
.card-orange { background-color: #ff9a9e; }
.card-cyan { background-color: #a1c4fd; }
.card-green { background-color: #a8ff78; }
.card-yellow { background-color: #f6d365; }
.card-pink { background-color: #ffc3a0; }

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
}

/* 4. WHY CHOOSE US */
.why-choose-us {
    padding: 10rem 0;
}

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

.bento-item {
    border-radius: 30px;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 350px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bento-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
}

.bento-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.bento-icon i {
    width: 28px;
    height: 28px;
}

.bento-item h3 {
    font-size: 2rem;
    font-family: var(--font-serif);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.bento-item p {
    font-size: 1.1rem;
    opacity: 0.8;
    line-height: 1.6;
}

.bento-large {
    grid-column: span 2;
    background-color: #f1f1ee;
}
.bento-large .bento-icon { background: #fff; color: var(--accent); }

.bento-dark {
    background-color: #111;
    color: #fff;
}
.bento-dark .bento-icon { background: #222; color: #fff; }

.bento-outline {
    border: 1px solid rgba(0,0,0,0.1);
    background: transparent;
}
.bento-outline .bento-icon { background: rgba(0,0,0,0.05); color: #000; }

.bento-glass {
    grid-column: span 2;
    background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
    color: #000;
}
.bento-glass .bento-icon { background: rgba(255,255,255,0.6); color: #000; }

/* 5. PROCESS SECTION */
.process {
    padding: 10rem 0;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.process-wrapper {
    position: relative;
    width: 100%;
    padding: 0 5%;
}

.process-path-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150px;
    z-index: 0;
    pointer-events: none;
}

.process-dot {
    width: 24px;
    height: 24px;
    background-color: #111;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 25;
    pointer-events: none;
    margin-top: -12px;
    margin-left: -12px;
}

.process-grid {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding-top: 100px; /* Push text below the wavy line */
}

.process-step {
    padding: 2rem 1rem;
    text-align: center;
    position: relative;
    opacity: 0.3;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.process-step.active-step {
    opacity: 1;
    transform: scale(1.05);
}

.step-num {
    display: block;
    font-family: var(--font-serif);
    font-size: 3rem;
    color: rgba(0,0,0,0.1);
    margin-bottom: 1rem;
    line-height: 1;
    transition: color 0.5s ease;
}

.active-step .step-num {
    color: var(--accent);
}

.process-step h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    transition: color 0.5s ease;
}

.process-step p {
    color: var(--text-muted);
}

/* 6. RESULTS SECTION */
.results {
    padding: 8rem 5%;
    background-color: var(--accent);
    color: #fff;
}

.results .serif-heading {
    color: #fff;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 4rem;
    max-width: 100%;
    margin: 0 auto;
}

.result-item {
    display: flex;
    flex-direction: column;
}

.result-number {
    font-family: var(--font-serif);
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.result-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.7);
}

/* 7. FINAL CTA */
.final-cta {
    padding: 8rem 0;
}

.cta-text {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

/* FOOTER */
footer {
    padding: 6rem 0 0;
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow: hidden;
    position: relative;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
}

.footer-label {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.footer-email {
    font-size: 3rem;
    font-family: var(--font-serif);
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-email:hover {
    color: var(--accent);
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social a {
    color: var(--text-main);
    transition: transform 0.3s ease, color 0.3s ease;
}

.footer-social a:hover {
    color: var(--accent);
    transform: translateY(-5px);
}

.footer-social i {
    width: 24px;
    height: 24px;
}

.footer-massive-wrap {
    width: 100%;
    overflow: hidden;
    text-align: center;
}

.massive-footer-text {
    font-family: var(--font-sans);
    font-size: 16vw;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 0.8;
    margin: 0;
    letter-spacing: -0.02em;
    color: var(--text-main);
    transform: translateY(100%);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(0,0,0,0.05);
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 2rem;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--text-main);
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
    .container-split {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .feature-list li {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    /* Typography */
    .serif-title { font-size: 3.2rem; }
    .serif-heading { font-size: 2.5rem; }
    
    /* Header */
    header {
        top: 1rem;
        width: 95%;
        padding: 0.8rem 1.2rem;
        flex-wrap: wrap;
    }
    .mobile-menu-btn {
        display: block;
    }
    nav.nav-links {
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        padding-top: 0;
        padding-bottom: 0;
        display: flex;
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    nav.nav-links.nav-active {
        max-height: 300px;
        opacity: 1;
        padding-top: 2rem;
        padding-bottom: 1rem;
    }
    nav.nav-links a { font-size: 1.2rem; }
    .nav-cta { padding: 0.8rem 2rem; width: 100%; max-width: 200px; text-align: center; }
    .logo-img { height: 35px; }
    
    /* Hero */
    .hero { padding-top: 10rem; }
    .hero-ctas { flex-direction: column; }
    .btn-primary, .btn-secondary { width: 100%; text-align: center; }
    .blob { transform: scale(0.6); }

    /* Trust Statement */
    .trust-statement { padding: 6rem 0; }
    .massive-statement { font-size: 2.2rem; margin-bottom: 2rem; }
    .interactive-spin-wrapper { margin-top: 3rem; }
    #interactive-spinner { width: 100px; height: 100px; }
    
    /* Services (Horizontal to Vertical Stack) */
    .services { padding: 6rem 0; }
    .services-track {
        display: block;
        width: 100%;
        height: auto;
        padding: 0 5%;
        position: relative;
    }
    .service-card {
        display: block;
        width: 100%;
        margin-bottom: 2rem;
        padding: 3rem 2rem;
        min-height: auto;
        position: sticky;
        top: 120px;
    }
    .service-title { font-size: 3rem; }
    .card-bg-num { font-size: 10rem; right: 1rem; top: 1rem; }
    
    /* Bento Grid */
    .why-choose-us { padding: 6rem 0; }
    .bento-grid { grid-template-columns: 1fr; }
    .bento-item { grid-column: auto !important; min-height: auto; padding: 2rem; }
    
    /* Process */
    .process { padding: 6rem 0; }
    .process-path-svg, .process-dot { display: none !important; }
    .process-grid {
        grid-template-columns: 1fr;
        padding-top: 2rem;
        gap: 3rem;
    }
    .process-step { opacity: 0.3; text-align: left; padding: 0; transform: translateX(-15px); transition: all 0.5s ease; }
    .process-step.active-step { opacity: 1; transform: translateX(0); }
    .step-num { font-size: 2.5rem; transition: color 0.5s ease; }
    
    /* Results */
    .results { padding: 6rem 5%; }
    .results-grid { gap: 3rem; grid-template-columns: 1fr; }
    
    /* Final CTA & Footer */
    .final-cta { padding: 6rem 0; }
    footer { padding: 4rem 0 0; }
    .footer-top, .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }
    .footer-email { font-size: clamp(1.2rem, 6vw, 1.8rem); word-break: break-all; }
    .massive-footer-text { font-size: 13vw; }
}

/* Dark Mode Transition */
body {
    transition: background-color 0.8s ease, color 0.8s ease;
}

body.dark-mode {
    background-color: #0d0d0d;
    color: #ffffff;
}

body.dark-mode .serif-title,
body.dark-mode .serif-heading,
body.dark-mode .hero-subtext,
body.dark-mode .trust-text,
body.dark-mode nav a,
body.dark-mode .logo,
body.dark-mode .feature-list li {
    color: #ffffff;
}

body.dark-mode .hero-subtext,
body.dark-mode .trust-text,
body.dark-mode .process-step p,
body.dark-mode .service-card p,
body.dark-mode footer,
body.dark-mode .cta-text {
    color: #a0a0a0;
}

body.dark-mode .nav-cta {
    border-bottom-color: #ffffff;
}

body.dark-mode .btn-secondary {
    color: #ffffff;
    border-color: #ffffff;
}

body.dark-mode .btn-secondary:hover {
    background-color: rgba(255,255,255,0.1);
}

body.dark-mode .btn-primary {
    background-color: #ffffff;
    color: #000000;
}

body.dark-mode .service-card {
    background-color: #1a1a1a;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

body.dark-mode .service-card h3 {
    color: #ffffff;
}

body.dark-mode .why-choose-us.bg-light {
    background-color: #111111;
}

body.dark-mode .process-step .step-num {
    color: #333333;
}

body.dark-mode header {
    background-color: transparent;
}
