@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --font-main: 'Plus Jakarta Sans', sans-serif;

    /* Research / Clinical Light Theme */
    --primary: #2563eb;
    --primary-glow: rgba(37, 99, 235, 0.15);

    /* Backgrounds */
    --bg-page: #ffffff;
    --bg-grid: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;

    /* Text */
    --text-main: #020617;
    /* Slate 950 - Stark Black */
    --text-muted: #475569;
    /* Slate 600 */
    --text-subtle: #64748b;

    /* Borders & Glows */
    --border-subtle: #e2e8f0;
    /* Slate 200 */
    --border-highlight: #cbd5e1;
    /* Slate 300 */
    --glow-primary: 0 0 60px -10px rgba(37, 99, 235, 0.2);

    /* Glass */
    --glass-nav: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 0, 0, 0.05);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    /* Offset for fixed navbar */
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    /* Subtle Grid Paper Effect */
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* --- Navigation --- */
.capsule-nav-container {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    justify-content: center;
    width: auto;
    pointer-events: none;
    /* Allow clicks to pass through */
}

.capsule-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    /* Tighter gap between branding and items */
    background: rgba(255, 255, 255, 0.85);
    /* Slightly more transparent */
    backdrop-filter: blur(16px) saturate(180%);
    /* Premium glass effect */
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    /* Inner light border */
    padding: 0.5rem 0.5rem 0.5rem 1.5rem;
    /* Padding to accommodate button */
    border-radius: 9999px;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 10px 15px -3px rgba(0, 0, 0, 0.05),
        0 0 0 1px rgba(0, 0, 0, 0.02);
    /* Crisp outline */
    min-width: auto;
    /* Let content dictate width */
    transition: all 0.3s ease;
    pointer-events: auto;
    /* Re-enable clicks */
}

.capsule-nav:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.95);
}

.nav-brand {
    font-weight: 800;
    color: #0f172a;
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: -0.02em;
    margin-right: 1.5rem;
}

.brand-accent {
    color: var(--primary);
}

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

.nav-link {
    color: #64748b;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 99px;
    /* Pill shape for links too */
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: #0f172a;
    background: rgba(0, 0, 0, 0.04);
}

.nav-link.active {
    color: var(--primary);
    background: rgba(37, 99, 235, 0.08);
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10rem 1rem 2rem;
    /* Reduced bottom padding */
    position: relative;
    perspective: 1200px;
}

/* Hidden by default for animation */
.tick-label,
.axis-label,
.peak-text,
.title,
.peak-value {
    opacity: 0;
}

/* --- CTA Buttons (Glassmorphic Pills) --- */
.cta-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    /* Restored spacing */
    margin-bottom: 4rem;
    margin-top: 4rem;
    box-shadow: none;
    /* Removed container shadow */
    background: transparent;
    border-radius: 0;
    overflow: visible;
}

.cta-pill {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 9999px;
    /* Pill shape */
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    display: flex;
    /* Ensure centering */
    align-items: center;
    justify-content: center;
}

/* Primary CTA */
.cta-primary {
    background: rgba(239, 68, 68, 0.9);
    /* Red tint */
    color: white;
    box-shadow:
        0 4px 15px rgba(239, 68, 68, 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.5);
    background: #ef4444;
}

/* Secondary CTA */
.cta-secondary {
    background: rgba(255, 255, 255, 0.6);
    color: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.05),
        inset 0 1px 1px rgba(255, 255, 255, 1);
}

.cta-secondary:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}


/* --- Marquee Animation (Cursor.ai Style) --- */
.marquee-container {
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    overflow: hidden;
    width: 100%;
    margin-top: 4rem;
    margin-bottom: 3rem;
}

.marquee-content {
    display: flex;
    gap: 4rem;
    width: max-content;
    animation: marquee-scroll 40s linear infinite;
}

.marquee-item {
    font-weight: 700;
    font-size: 1.1rem;
    color: #64748b;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.marquee-item svg {
    height: 80px !important;
    width: auto;
}

/* Testimonials Marquee */
.testimonials-section {
    position: relative;
    padding: 1rem;
    background: linear-gradient(to bottom, #ffffff, #f8fafc);
    overflow: hidden;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    width: 380px;
    box-shadow:
        0 10px 40px -10px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 20px 40px -10px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.testimonial-text {
    font-size: 1rem;
    color: #334155;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    background: #e2e8f0;
    border-radius: 50%;
}

.author-info h4 {
    font-size: 0.9rem;
    color: #0f172a;
    font-weight: 700;
}

.author-info span {
    font-size: 0.8rem;
    color: #64748b;
}

/* Double speed for reviews */
.marquee-content.reviews {
    animation-duration: 60s;
    gap: 2rem;
}

.marquee-content.reviews:hover {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.full-center {
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    color: #475569;
    font-size: 0.9rem;
}

.highlight-sketch {
    position: relative;
    display: inline-block;
}

.highlight-sketch::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 8px;
    background-image: url("data:image/svg+xml,%3Csvg width='200' height='10' viewBox='0 0 200 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 5.5C25.5 2.5 50 2 75 3.5C100 5 125 7 150 7.5C175 8 198 6.5 198 5' stroke='%233b82f6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    z-index: -1;
}

.hero-pill {
    font-size: 0.8rem;
    font-weight: 700;
    color: #ef4444;
    background: #fef2f2;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    /* Standard pill */
    margin-bottom: 2rem;
    border: 1px solid #fecaca;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    /* Slightly tighter */
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    color: #000000;
    /* Pure Black for impact */
    max-width: 900px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-main);
    /* Darker for readability */
    max-width: 700px;
    margin: 0 auto 3rem;
    font-weight: 500;
}

/* Old Way Highlight - Subtle, outdated aesthetic */
.old-way-highlight {
    background: linear-gradient(to bottom, transparent 0%, rgba(203, 213, 225, 0.3) 60%);
    color: #607694;
    padding: 0 0.1em;
    font-style: italic;
    position: relative;
    border-radius: 5px;
}

/* Dead Underline - Single elegant curve */
.dead-underline {
    position: relative;
    display: inline-block;
}

.dead-underline::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 100%;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg width='200' height='8' viewBox='0 0 200 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 4C30 2 60 1.5 100 3C140 4.5 170 5.5 198 4' stroke='%23991b1b' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 100%;
    opacity: 0.75;
}

/* 3D Graph Container */
.hero-graph-3d {
    margin-top: 4rem;
    width: 100%;
    max-width: 800px;
    perspective: 1000px;
}

.graph-svg-wrapper {
    transform: rotateX(10deg);
    transition: transform 0.5s ease;
}

.graph-svg-wrapper:hover {
    transform: rotateX(0deg) scale(1.02);
}

/* SVG Styles */
.spectrum-line {
    /* Initially hidden for JS animation */
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
}

/* --- Bento Grid --- */
.section-header {
    text-align: center;
    margin: 0 0 2rem 0;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: #000000;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.bento-card {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.bento-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.bento-span-2 {
    grid-column: span 2;
}

.bento-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    /* Solid color instead of gradient */
}

.bento-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.bento-desc {
    font-size: 1rem;
    color: var(--text-muted);
}

/* --- Social Proof --- */
.trust-strip {
    margin-top: 4rem;
    padding: 2rem;
    background: #f1f5f9;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: center;
}

.trust-logos {
    display: flex;
    gap: 4rem;
    opacity: 0.6;
    font-weight: 700;
    font-size: 1.1rem;
    color: #64748b;
    letter-spacing: 0.05em;
}

/* --- Manifesto --- */
.manifesto-box {
    max-width: 800px;
    margin: 6rem auto 10rem;
    padding: 0 1.5rem;
}

.letter-box {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    padding: 4rem;
    border-radius: 2px;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.05),
        0 20px 40px -20px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* Paper clip effect or accent */
.letter-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #ef4444, #3b82f6);
}

.copy-eyebrow {
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    text-align: center;
}

.copy-headline {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 3rem;
    line-height: 1.2;
    text-align: center;
    letter-spacing: -0.02em;
}

.copy-body p {
    font-size: 1.25rem;
    color: #334155;
    margin-bottom: 1.8rem;
    line-height: 1.8;
}

.copy-body strong {
    color: #0f172a;
    font-weight: 700;
}

.highlight {
    background: linear-gradient(to right, #fef9c3, #fef08a);
    padding: 0 0.2em;
    border-radius: 2px;
}

/* Signature Block */
.profile-block {
    margin-top: 3rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border-top: 2px solid #f1f5f9;
    padding-top: 2rem;
}

.profile-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.signature-text {
    font-family: var(--font-main);
}

.signature-name {
    font-weight: 800;
    font-size: 1.2rem;
    color: #0f172a;
}

.signature-title {
    color: #64748b;
    font-weight: 500;
}

/* Hamburger Menu Button - Hidden by default */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 10;
}

.nav-hamburger span {
    width: 20px;
    height: 2px;
    background: #0f172a;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.nav-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

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

    .bento-span-2 {
        grid-column: span 1;
    }

    .capsule-nav-container {
        width: auto;
    }

    .capsule-nav {
        padding: 0.4rem 0.5rem;
        gap: 0.3rem;
        max-width: 90vw;
        width: auto;
    }

    .nav-brand {
        font-size: 0.65rem;
        margin-right: 0;
        pointer-events: auto;
    }

    /* Keep hamburger hidden - use pill nav instead */
    .nav-hamburger {
        display: none !important;
    }

    .nav-items {
        display: flex;
        flex-direction: row;
        gap: 0.15rem;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        position: static;
        /* Override fixed positioning */
        width: auto;
        /* Override fixed width */
        max-width: none;
        /* Override max-width */
        height: auto;
        /* Override fixed height */
        background: transparent;
        /* Override background */
        backdrop-filter: none;
        /* Override backdrop-filter */
        -webkit-backdrop-filter: none;
        /* Override backdrop-filter */
        padding: 0;
        /* Override padding */
        align-items: center;
        /* Adjust alignment for row layout */
        box-shadow: none;
        /* Remove box-shadow */
        transition: none;
        /* Remove transition */
        z-index: auto;
        /* Reset z-index */
        pointer-events: auto;
    }

    .nav-items::-webkit-scrollbar {
        display: none;
    }

    .nav-items.active {
        right: auto;
        /* Reset right property */
    }

    .nav-link {
        padding: 0.3rem 0.5rem;
        font-size: 0.65rem;
        text-align: center;
        /* Adjust text alignment for pill */
        border-radius: var(--radius, 8px);
        white-space: nowrap;
        flex-shrink: 0;
    }

    .nav-link:hover {
        background: rgba(0, 0, 0, 0.06);
    }

    .focus-button {
        padding: 0.3rem 0.6rem;
        font-size: 0.65rem;
    }

    .cta-group {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 3rem;
        margin-top: 3rem;
    }

    .cta-pill {
        width: 100%;
        max-width: 300px;
    }

    .hero-graph-3d {
        margin-top: 2rem;
        max-width: 100%;
    }

    .testimonial-card {
        width: 300px;
    }
}

@media (max-width: 768px) {
    .letter-box {
        padding: 2rem 1.5rem;
    }

    .copy-headline {
        font-size: 1.8rem;
    }

    .manifesto-box {
        padding: 0 1rem;
    }
}