/*
 * AchieveAI Landing Page Styles
 * Design system: Dark theme, glassmorphism, gradient accents
 * Primary: #4D7CFE | Secondary: #00ffa2 | BG: #0f141b | Text: #e7ecff
 */

html {
    scroll-behavior: smooth;
}

/* ============================================
   STICKY HEADER
   ============================================ */

.landing-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.25rem 0;
    background: rgba(15, 20, 27, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(77, 124, 254, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.landing-header.scrolled {
    padding: 0.65rem 0;
    background: rgba(15, 20, 27, 0.88);
    border-bottom-color: rgba(77, 124, 254, 0.2);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.landing-header .logo-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.85rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    line-height: 1;
    transition: font-size 0.3s ease;
}

.landing-header .logo-achieve {
    color: #ffffff;
}

.landing-header .logo-ai {
    background: linear-gradient(135deg, #4D7CFE, #00ffa2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.landing-header.scrolled .logo-text {
    font-size: 1.5rem;
}

.landing-logo-img {
    transition: width 0.3s ease, height 0.3s ease;
}

.landing-header.scrolled .landing-logo-img {
    width: 1.75rem;
    height: 1.75rem;
}

/* Glassmorphic nav links */
.nav-link {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #94a3b8;
    padding: 0.4rem 0.9rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.25s ease;
}

.nav-link:hover {
    color: #e7ecff;
    background: rgba(77, 124, 254, 0.1);
    border-color: rgba(77, 124, 254, 0.25);
    box-shadow: 0 0 16px rgba(77, 124, 254, 0.08);
}

/* ============================================
   CTA BUTTONS
   ============================================ */

.btn-primary {
    background: linear-gradient(135deg, #4D7CFE 0%, #00ffa2 100%);
    color: #fff;
    font-weight: 600;
    border-radius: 0.5rem;
    padding: 0.75rem 1.75rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(77, 124, 254, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
    animation: btn-shine 2.5s ease-in-out infinite;
}

@keyframes btn-shine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 25px rgba(77, 124, 254, 0.4),
        0 0 40px rgba(0, 255, 162, 0.2);
}

.btn-secondary {
    color: #94a3b8;
    font-weight: 500;
    transition: color 0.2s ease;
}

.btn-secondary:hover {
    color: #e7ecff;
}

/* ============================================
   SECTION BACKGROUNDS
   ============================================ */

.landing-section {
    position: relative;
    overflow: hidden;
    background: #0f141b;
}

.landing-section-alt {
    background: #0a0d12;
}

.section-gradient-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* ============================================
   GLASSMORPHISM CARDS (Vortex-style)
   ============================================ */

.glass-card {
    background: rgba(15, 20, 27, 0.7);
    border: 1px solid rgba(77, 124, 254, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 1rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4D7CFE, #00ffa2);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    border-color: rgba(77, 124, 254, 0.4);
    transform: translateY(-8px);
    box-shadow:
        0 20px 60px rgba(77, 124, 254, 0.15),
        0 0 40px rgba(0, 255, 162, 0.08);
}

.glass-card:hover::before {
    transform: scaleX(1);
}

/* Static variant — no hover lift (for micro-cards, metrics, etc.) */
.glass-card.no-lift {
    cursor: default;
}
.glass-card.no-lift:hover {
    transform: none;
    box-shadow: none;
}
.glass-card.no-lift::before {
    display: none;
}

/* Card icon wrapper */
.card-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(77, 124, 254, 0.2) 0%, rgba(0, 255, 162, 0.1) 100%);
    border: 1px solid rgba(77, 124, 254, 0.3);
}

@media (max-width: 640px) {
    .card-icon {
        width: 2.5rem;
        height: 2.5rem;
        border-radius: 0.5rem;
    }
}

/* ============================================
   APP DEMO CARDS (Value Props style)
   ============================================ */

.demo-card {
    position: relative;
    width: 100%;
    border-radius: 1rem;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(12, 16, 24, 0.82);
    border: 1px solid rgba(77, 124, 254, 0.28);
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(77, 124, 254, 0.06) inset;
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .demo-card {
        border-radius: 1.5rem;
    }
}

.demo-card:hover {
    box-shadow:
        0 16px 36px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(77, 124, 254, 0.1) inset;
}

.demo-card-header {
    background: rgba(18, 21, 30, 0.6);
    padding: 0.625rem 0.75rem;
    border-bottom: 1px solid rgba(77, 124, 254, 0.18);
}

@media (min-width: 768px) {
    .demo-card-header {
        padding: 1rem 1.5rem;
    }
}

.demo-card-body {
    padding: 0.75rem;
    position: relative;
}

@media (min-width: 768px) {
    .demo-card-body {
        padding: 1.25rem;
    }
}

.demo-card .gradient-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(1200px 500px at -10% -10%, rgba(77,124,254,0.12), transparent 60%),
                radial-gradient(900px 400px at 110% 10%, rgba(0,255,162,0.08), transparent 60%);
}

/* ============================================
   BADGE / PILL
   ============================================ */

.landing-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background: rgba(77, 124, 254, 0.08);
    border: 1px solid rgba(77, 124, 254, 0.2);
}

.landing-badge .pulse-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #4D7CFE;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
}

.landing-badge span {
    font-size: 0.75rem;
    font-weight: 500;
    color: #4D7CFE;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

/* ============================================
   FONT AWESOME DUOTONE — Brand Color Combos
   ============================================ */

/* Blue primary + Green secondary */
.fa-dt-blue-green {
    --fa-primary-color: #4D7CFE;
    --fa-secondary-color: #00ffa2;
    --fa-secondary-opacity: 0.7;
}

/* Green primary + Blue secondary */
.fa-dt-green-blue {
    --fa-primary-color: #00ffa2;
    --fa-secondary-color: #4D7CFE;
    --fa-secondary-opacity: 0.7;
}

/* Blue primary + Light-blue secondary */
.fa-dt-blue-sky {
    --fa-primary-color: #4D7CFE;
    --fa-secondary-color: #8AABFF;
    --fa-secondary-opacity: 0.7;
}

/* Purple primary + Blue secondary */
.fa-dt-purple-blue {
    --fa-primary-color: #A78BFA;
    --fa-secondary-color: #4D7CFE;
    --fa-secondary-opacity: 0.7;
}

/* Amber primary + Blue secondary */
.fa-dt-amber-blue {
    --fa-primary-color: #f59e0b;
    --fa-secondary-color: #4D7CFE;
    --fa-secondary-opacity: 0.6;
}

/* Red primary + Blue secondary */
.fa-dt-red-blue {
    --fa-primary-color: #f87171;
    --fa-secondary-color: #4D7CFE;
    --fa-secondary-opacity: 0.6;
}

/* Gold stars (testimonials) */
.fa-dt-star-gold {
    --fa-primary-color: #fbbf24;
    --fa-secondary-color: #f59e0b;
    --fa-secondary-opacity: 0.7;
}

/* Green primary + Purple secondary */
.fa-dt-green-purple {
    --fa-primary-color: #00ffa2;
    --fa-secondary-color: #A78BFA;
    --fa-secondary-opacity: 0.6;
}

/* Blue primary + Green — for checkmarks */
.fa-dt-check-blue {
    --fa-primary-color: #4D7CFE;
    --fa-secondary-color: #00ffa2;
    --fa-secondary-opacity: 0.5;
}

.fa-dt-check-green {
    --fa-primary-color: #00ffa2;
    --fa-secondary-color: #4D7CFE;
    --fa-secondary-opacity: 0.5;
}

.fa-dt-check-purple {
    --fa-primary-color: #A78BFA;
    --fa-secondary-color: #00ffa2;
    --fa-secondary-opacity: 0.5;
}

/* ============================================
   GRADIENT TEXT
   ============================================ */

.gradient-text {
    background: linear-gradient(135deg, #4D7CFE, #00ffa2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-white {
    background: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ============================================
   WARNING PULSE (Problem section)
   ============================================ */

@keyframes warning-pulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
}

/* ============================================
   ANIMATED GRID BACKGROUND
   ============================================ */

.grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(77, 124, 254, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(77, 124, 254, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: grid-drift 20s linear infinite;
    pointer-events: none;
}

@keyframes grid-drift {
    0% { background-position: 0 0; }
    100% { background-position: 60px 60px; }
}

/* ============================================
   HERO — VORTEX-STYLE ATMOSPHERE
   ============================================ */

/* Pulsing radial gradient overlay (breathes in/out) */
.hero-vortex-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    transform: translate(-50%, -50%);
    background:
        radial-gradient(ellipse at center, rgba(77, 124, 254, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 80%, rgba(0, 255, 162, 0.08) 0%, transparent 40%),
        radial-gradient(ellipse at 80% 20%, rgba(138, 171, 255, 0.06) 0%, transparent 40%);
    animation: hero-pulse 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes hero-pulse {
    0%, 100% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.05);
    }
}

/* Vortex-style grid — slightly brighter than default grid-bg */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(77, 124, 254, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(77, 124, 254, 0.035) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: grid-drift 20s linear infinite;
    pointer-events: none;
}

/* Scanning line — green laser sweeps top-to-bottom */
.hero-scan-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 162, 0.4), transparent);
    animation: hero-scan 4s ease-in-out infinite;
    opacity: 0.6;
    pointer-events: none;
    z-index: 2;
}

@keyframes hero-scan {
    0% {
        top: 0;
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

/* Floating light orbs — large soft glows matching home page vp-bg-blob style.
 * Position starts at top:0, JS moves via translateY on scroll (parallax).
 * CSS animation only handles opacity breathing so it doesn't fight transform. */
.hero-orb {
    position: absolute;
    top: 0;
    border-radius: 50%;
    will-change: transform, opacity;
    transition: transform 0.3s ease-out;
}

.hero-orb--primary {
    left: 3%;
    width: min(42vw, 520px);
    aspect-ratio: 1;
    opacity: 0.6;
    filter: blur(48px);
    background: radial-gradient(
        circle at 50% 50%,
        rgba(77, 124, 254, 0.35) 0%,
        rgba(0, 255, 162, 0.22) 45%,
        transparent 70%
    );
    animation: hero-orb-breathe 6s ease-in-out infinite;
}

.hero-orb--secondary {
    right: 8%;
    width: min(30vw, 380px);
    aspect-ratio: 1;
    opacity: 0.45;
    filter: blur(56px);
    background: radial-gradient(
        circle at 50% 50%,
        rgba(0, 255, 162, 0.25) 0%,
        rgba(77, 124, 254, 0.18) 45%,
        transparent 70%
    );
    animation: hero-orb-breathe 8s ease-in-out infinite 3s;
}

@keyframes hero-orb-breathe {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.7; }
}

/* Floating particles — scattered across the section, gentle drift + twinkle */
.hero-particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: hero-twinkle ease-in-out infinite, hero-drift ease-in-out infinite;
}

@keyframes hero-twinkle {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}

@keyframes hero-drift {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(18px, -30px); }
    50% { transform: translate(-12px, -50px); }
    75% { transform: translate(22px, -20px); }
}

/* Decorative corner brackets */
.hero-corner {
    position: absolute;
    width: 3rem;
    height: 3rem;
    pointer-events: none;
    z-index: 3;
}

.hero-corner--tl {
    top: 1.5rem;
    left: 1.5rem;
    border-left: 2px solid rgba(77, 124, 254, 0.3);
    border-top: 2px solid rgba(77, 124, 254, 0.3);
    border-top-left-radius: 0.5rem;
}

.hero-corner--tr {
    top: 1.5rem;
    right: 1.5rem;
    border-right: 2px solid rgba(77, 124, 254, 0.3);
    border-top: 2px solid rgba(77, 124, 254, 0.3);
    border-top-right-radius: 0.5rem;
}

.hero-corner--bl {
    bottom: 1.5rem;
    left: 1.5rem;
    border-left: 2px solid rgba(0, 255, 162, 0.3);
    border-bottom: 2px solid rgba(0, 255, 162, 0.3);
    border-bottom-left-radius: 0.5rem;
}

.hero-corner--br {
    bottom: 1.5rem;
    right: 1.5rem;
    border-right: 2px solid rgba(0, 255, 162, 0.3);
    border-bottom: 2px solid rgba(0, 255, 162, 0.3);
    border-bottom-right-radius: 0.5rem;
}

@media (max-width: 768px) {
    .hero-corner {
        width: 2rem;
        height: 2rem;
    }
    .hero-corner--tl,
    .hero-corner--tr {
        top: 1rem;
    }
    .hero-corner--bl,
    .hero-corner--br {
        bottom: 1rem;
    }
    .hero-corner--tl,
    .hero-corner--bl {
        left: 1rem;
    }
    .hero-corner--tr,
    .hero-corner--br {
        right: 1rem;
    }
}

/* ============================================
   OPERATOR STICKY-SCROLL SECTION
   ============================================ */

/*
 * CRITICAL: The parent .landing-section has overflow:hidden, which
 * completely breaks position:sticky. Override to overflow:clip —
 * it clips backgrounds identically but does NOT create a scroll
 * container, so sticky works.
 */
#section-operators {
    overflow: clip;
}

/* Floating light orb — subtle glow that tracks the active left-column card */
.operator-orb {
    position: absolute;
    left: 2%;
    top: 0;
    width: min(40vw, 500px);
    aspect-ratio: 1;
    border-radius: 50%;
    filter: blur(48px);
    background: radial-gradient(
        circle at 50% 50%,
        rgba(77, 124, 254, 0.35) 0%,
        rgba(0, 255, 162, 0.25) 45%,
        transparent 70%
    );
    will-change: top, background, transform;
    transition: top 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.8s ease;
    animation: orb-breathe 7s ease-in-out infinite;
}

@keyframes orb-breathe {
    0%, 100% {
        opacity: 0.55;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.06);
    }
}

/*
 * Each left-column panel is 100vh tall, flex-centered, so the card
 * text sits at the vertical midpoint of the viewport as it scrolls by.
 * The last panel doesn't need the full 100vh — it just holds its content
 * so there's no empty gap at the bottom of the section.
 */
.operator-scroll-panel {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Last panel: full 100vh like the others so card reaches viewport center,
   plus extra padding at the bottom so the sticky demo stays pinned
   until the card is properly centered. */
.operator-scroll-panel:last-of-type {
    min-height: 100vh;
    padding-bottom: 40vh;
}

/* No special override for last-child — all panels stay at 100vh.
   A spacer div at the bottom of the left column extends the grid
   so the sticky demo stays pinned while the third card centers. */

/* Left cards: always visible, dimmed when not active */
.operator-card-left {
    opacity: 0.25;
    transition: opacity 0.5s ease;
}

.operator-card-left.active {
    opacity: 1;
}

/*
 * Right sticky wrapper: pins to the top of the viewport, fills the
 * full viewport height, then uses flexbox to vertically center the
 * 480px demo container inside it. Because the grid columns share the
 * same row height (≈ 300vh from the left column), the sticky element
 * has plenty of room to remain pinned.
 */
.operator-sticky-demo {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Right demos: only the active one shows */
.operator-demo-right {
    opacity: 0;
    filter: blur(4px);
    transition: opacity 0.5s ease, filter 0.5s ease;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.operator-demo-right.active {
    opacity: 1;
    filter: blur(0);
}

/* Floating animation for active demo cards */
.operator-demo-right.active .demo-card {
    animation: demo-float 5s ease-in-out infinite;
}

@keyframes demo-float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    33% {
        transform: translateY(-8px) rotate(0.3deg);
    }
    66% {
        transform: translateY(-4px) rotate(-0.2deg);
    }
}

/* Hover micro-interaction for demo cards in operators section */
.operator-demo-right .demo-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.operator-demo-right.active .demo-card:hover {
    transform: translateY(-6px) scale(1.015);
    border-color: rgba(77, 124, 254, 0.45);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(77, 124, 254, 0.12),
        0 0 60px rgba(0, 255, 162, 0.06),
        0 0 0 1px rgba(77, 124, 254, 0.15) inset;
    animation: none;
}

/* Inner rows get a subtle highlight on card hover */
.operator-demo-right.active .demo-card:hover .demo-card-header {
    background: rgba(18, 21, 30, 0.75);
}

/* ============================================
   TESTIMONIAL CAROUSEL
   ============================================ */

.testimonial-carousel-wrapper {
    position: relative;
    overflow: hidden;
    margin-left: -1rem;
    margin-right: -1rem;
    padding: 0 1rem;
}

/* Fade edges */
.testimonial-carousel-wrapper::before,
.testimonial-carousel-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 3rem;
    z-index: 2;
    pointer-events: none;
}

.testimonial-carousel-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #0a0d12, transparent);
}

.testimonial-carousel-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #0a0d12, transparent);
}

.testimonial-carousel {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.testimonial-carousel::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    flex: 0 0 320px;
    scroll-snap-align: start;
    background: rgba(15, 20, 27, 0.7);
    border: 1px solid rgba(77, 124, 254, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #4D7CFE, #00ffa2);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.testimonial-card:hover {
    border-color: rgba(77, 124, 254, 0.35);
    transform: translateY(-4px);
    box-shadow:
        0 12px 40px rgba(77, 124, 254, 0.12),
        0 0 30px rgba(0, 255, 162, 0.05);
}

.testimonial-card:hover::before {
    transform: scaleX(1);
}

@media (max-width: 640px) {
    .testimonial-card {
        flex: 0 0 280px;
    }
}

/* ============================================
   VALUE STACK (Pricing)
   ============================================ */

.value-stack-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(77, 124, 254, 0.1);
}

.value-stack-item .crossed-price {
    text-decoration: line-through;
    color: #64748b;
    font-size: 0.875rem;
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .value-stack-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

/* ============================================
   TIMELINE
   ============================================ */

.timeline-line {
    position: absolute;
    left: 1.25rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, rgba(77,124,254,0.4), rgba(0,255,162,0.2), transparent);
}

.timeline-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    border: 2px solid #4D7CFE;
    background: #0f141b;
    position: relative;
    z-index: 2;
}

/* ============================================
   MEMORY GRAPH
   ============================================ */

.memory-graph-body {
    padding: 1.5rem;
}

@media (max-width: 640px) {
    .memory-graph-body {
        padding: 0.625rem 0.625rem 0.5rem;
    }
}

.memory-node {
    animation: node-pulse 3s ease-in-out infinite;
}

.memory-node:nth-child(2) { animation-delay: 0.5s; }
.memory-node:nth-child(3) { animation-delay: 1s; }
.memory-node:nth-child(4) { animation-delay: 1.5s; }
.memory-node:nth-child(5) { animation-delay: 2s; }
.memory-node:nth-child(6) { animation-delay: 2.5s; }

@keyframes node-pulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.memory-edge {
    animation: edge-flow 2s ease-in-out infinite;
    stroke-dasharray: 8 4;
}

@keyframes edge-flow {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -24; }
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */

[data-landing-animate] {
    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);
}

[data-landing-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

[data-landing-animate="slide-left"] {
    transform: translateX(-60px);
}
[data-landing-animate="slide-left"].visible {
    transform: translateX(0);
}

[data-landing-animate="slide-right"] {
    transform: translateX(60px);
}
[data-landing-animate="slide-right"].visible {
    transform: translateX(0);
}

[data-landing-animate="scale"] {
    transform: scale(0.85);
}
[data-landing-animate="scale"].visible {
    transform: scale(1);
}

/* ============================================
   CHAT DEMO ANIMATIONS
   ============================================ */

.typing-cursor {
    display: inline;
    animation: blink 0.8s step-end infinite;
    color: #4D7CFE;
    font-weight: 300;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.action-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    width: fit-content;
}

.action-pill .pulse-ring {
    position: relative;
    width: 0.75rem;
    height: 0.75rem;
}

.action-pill .pulse-ring::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    animation: ping 1.2s cubic-bezier(0, 0, 0.2, 1) infinite;
    opacity: 0.4;
}

.action-pill .pulse-ring::after {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    opacity: 0.7;
}

@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* ============================================
   FLOW DIAGRAM
   ============================================ */

.flow-arrow {
    animation: flow-pulse 1.5s ease-in-out infinite;
}

@keyframes flow-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .glass-card:hover {
        transform: translateY(-4px);
    }

    .btn-primary {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 640px) {
    .landing-header {
        padding: 0.75rem 0;
    }

    .landing-header.scrolled {
        padding: 0.5rem 0;
    }
}
