@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Prata&display=swap');

/* Brand Design Tokens - Absolute Minimalist Dark Theme */
:root {
    --bg-main: #08080c;
    --border-color: rgba(255, 255, 255, 0.08);
    
    --color-text-primary: #ffffff;
    --color-text-secondary: #c8ccd6;
    --color-text-muted: #7a7f8e;
    
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Inter', monospace;
    --font-serif: 'Prata', 'Playfair Display', serif;
    
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Global Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-main);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    overflow-x: hidden;
    position: relative;
    background-color: transparent;
}

/* Fullscreen Background Canvas Animation */
#bg-animation-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background-color: var(--bg-main);
    opacity: 1;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #ffffff;
    filter: drop-shadow(0 0 28px rgba(0,0,0,1)) drop-shadow(0 0 12px rgba(0,0,0,1)) drop-shadow(0 2px 4px rgba(0,0,0,1));
}

p {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
    font-weight: 400;
    text-shadow: 0 0 24px rgba(0,0,0,1), 0 0 12px rgba(0,0,0,1), 0 1px 4px rgba(0,0,0,1);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 5px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Layout Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Navigation (Completely Transparent, Minimal line) */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: transparent;
    transition: var(--transition-smooth);
}

header.scrolled {
    background: rgba(8, 8, 12, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    transition: var(--transition-smooth);
}

header.scrolled .header-container {
    height: 70px;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    text-decoration: none;
    line-height: 1;
    transition: var(--transition-smooth);
}

.logo-text {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 1.65rem;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.logo-tagline {
    font-family: var(--font-body);
    font-size: 0.45rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    color: var(--color-text-secondary);
    opacity: 0.8;
    margin-top: 1px;
}

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

.nav-link {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    letter-spacing: -0.01em;
}

.nav-link:hover {
    color: #ffffff;
}

/* Solid White Pill CTA Button */
.btn-pill {
    background: #ffffff;
    color: #08080c;
    border: none;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-pill:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

/* Mobile Nav Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}
.menu-toggle span {
    width: 18px;
    height: 2px;
    background: #ffffff;
}

/* Hero Section (Centered & Clean) */
.hero {
    padding: 220px 0 120px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-flex {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-brand {
    font-family: var(--font-serif);
    font-size: clamp(4.5rem, 12vw, 8.5rem);
    font-weight: 400;
    letter-spacing: -0.03em;
    line-height: 1.25;
    margin-bottom: 20px;
    display: block;
    color: #ffffff;
}

/* Letter spans for char-by-char animation */
.hc {
    display: inline-block;
    will-change: transform, opacity;
    background: linear-gradient(160deg, #ffffff 30%, rgba(255,255,255,0.65) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.25;
    padding: 0.08em 0;
}

.hero-tagline {
    font-size: clamp(0.68rem, 1.5vw, 0.8rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.32em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 48px;
    display: block;
}

.hero h1 {
    font-size: clamp(1.5rem, 3.4vw, 2.2rem);
    letter-spacing: -0.015em;
    line-height: 1.25;
    font-weight: 500;
    margin-bottom: 24px;
    background: none;
    -webkit-text-fill-color: initial;
    text-fill-color: initial;
    -webkit-background-clip: initial;
    background-clip: initial;
    color: #ffffff;
}

.hero p {
    font-size: clamp(0.85rem, 1.4vw, 0.95rem);
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-bottom: 40px;
    max-width: 580px;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 64px;
}

.btn-pill {
    background: #ffffff;
    color: #08080c;
    border: none;
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-pill .arrow {
    transition: transform 0.3s ease;
}

.btn-pill:hover .arrow {
    transform: translateX(3px);
}

.btn-pill:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1.5px);
}

/* Minimalist Voice Sandbox (Absolutely borderless, floats in center) */
.voice-sandbox-minimal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 600px;
    margin-top: 20px;
    position: relative;
}

.sandbox-status-row {
    font-family: var(--font-body);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    color: var(--color-text-muted);
    text-transform: uppercase;
    display: flex;
    gap: 16px;
    margin-bottom: 8px;
    font-weight: 600;
}

#voice-transcript-minimal {
    font-size: 1.15rem;
    font-weight: 500;
    color: #ffffff;
    min-height: 54px;
    line-height: 1.6;
    text-align: center;
    max-width: 500px;
    transition: opacity 0.3s ease;
}

.voice-wave-wrapper {
    height: 60px;
    width: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

#voice-wave-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.btn-voice-play {
    background: #ffffff;
    color: #08080c;
    border: none;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.15);
    transition: var(--transition-smooth);
}

.btn-voice-play:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.25);
    background: #f1f5f9;
}

/* Logos Section — infinite marquee */
.logos-section {
    padding: 80px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    background: transparent;
    position: relative;
}

/* Edge fade using pseudo-elements — avoids stacking context from mask-image */
.logos-section::before,
.logos-section::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 140px;
    z-index: 2;
    pointer-events: none;
}
.logos-section::before {
    left: 0;
    background: linear-gradient(to right, #08080c 0%, transparent 100%);
}
.logos-section::after {
    right: 0;
    background: linear-gradient(to left, #08080c 0%, transparent 100%);
}

.logos-title {
    text-align: center;
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 0.22em;
    color: var(--color-text-secondary);
    opacity: 0.65;
    text-transform: uppercase;
    margin-bottom: 50px;
    font-weight: 600;
}

.logos-marquee-wrapper {
    /* overflow:clip clips without creating a stacking context — blend mode works */
    overflow: clip;
    width: 100%;
}

.logos-marquee-track {
    display: flex;
    align-items: center;
    gap: 80px;
    width: max-content;
    animation: marquee-scroll 22s linear infinite;
    /* blend here: the animation creates a stacking context so screen must be on this element */
    mix-blend-mode: screen;
}

.logos-marquee-wrapper:hover .logos-marquee-track {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-item img {
    height: 130px;
    width: auto;
    filter: invert(1) brightness(1.3);
    opacity: 0.9;
    transition: opacity 0.3s ease, transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease;
    cursor: pointer;
}

.logo-item:hover img {
    opacity: 1;
    transform: scale(1.07);
    filter: invert(1) brightness(1.5);
}

.logo-item img:active {
    transform: scale(1.12);
    filter: invert(1) brightness(1.7);
    transition: transform 0.1s ease;
}

/* SDC inline SVG sizing */
.logo-svg-sdc {
    height: 130px;
    width: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease, transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}
.logo-item--svg:hover .logo-svg-sdc {
    opacity: 1;
    transform: scale(1.07);
}

/* General Section Layout */
.section {
    padding: 140px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-tagline {
    font-family: var(--font-body);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--color-text-secondary);
    margin-bottom: 16px;
    display: block;
    font-weight: 700;
}

.section h2 {
    font-size: clamp(1.5rem, 3.2vw, 2.0rem);
    color: #ffffff;
}

/* The QualeeAI Advantage (Horizontal typographic pipeline) */
.advantage-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 80px;
    align-items: center;
}

.advantage-content p {
    margin-bottom: 36px;
}

.advantage-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.stat-item {
    transition: var(--transition-smooth);
}

.stat-num {
    font-size: 2.2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 6px;
    background: linear-gradient(180deg, #ffffff 40%, #9ca3af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

.stat-desc {
    font-size: 0.82rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

/* Typography Step Sequence Pipeline */
.pipeline-minimal {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    gap: 16px;
    margin-top: 30px;
    position: relative;
}

.pipeline-step {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.step-number {
    font-family: var(--font-body);
    font-size: 1.4rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.15);
    margin-bottom: 16px;
    transition: var(--transition-smooth);
}

.pipeline-step.active .step-number {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.step-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.step-desc {
    font-size: 0.78rem;
    color: var(--color-text-secondary);
    line-height: 1.45;
    max-width: 170px;
}

.pipeline-line {
    flex: 0.8;
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin-top: 14px;
    position: relative;
}

.pipeline-line::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: #ffffff;
    box-shadow: 0 0 8px #ffffff;
    transition: width 0.5s ease-in-out;
}

.pipeline-line.active::after {
    width: 100%;
}

/* Proven Results (Borderless simple cells) */
.results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

.results-card {
    background: transparent;
    border: none;
    padding: 0;
}

.results-num {
    font-size: 3.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.05em;
    background: linear-gradient(180deg, #ffffff 40%, #9ca3af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.results-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: #ffffff;
    font-weight: 700;
}

.results-card p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.65;
}

/* Contact Section (Pure Underlined Minimal Form) */
.contact-layout {
    max-width: 640px;
    margin: 0 auto;
}

.contact-card {
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
    backdrop-filter: none;
}

.contact-card h2 {
    font-size: clamp(1.5rem, 3.2vw, 2.0rem);
    text-align: center;
    margin-bottom: 12px;
    color: #ffffff;
}

.contact-card p.subtitle {
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    margin-bottom: 64px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px 30px;
    margin-bottom: 48px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--color-text-muted);
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    padding: 10px 0;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: #ffffff;
    transition: var(--transition-smooth);
    outline: none;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-bottom-color: #ffffff;
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 12px;
}

.form-group select option {
    background: #08080c;
    color: #ffffff;
}

.form-group textarea {
    resize: none;
    height: 100px;
}

/* Custom white submit button */
.form-submit-btn {
    width: 100%;
    background: #ffffff;
    color: #08080c;
    border: none;
    padding: 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.15);
    transition: var(--transition-smooth);
}

.form-submit-btn:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.25);
    background: #f1f5f9;
}

.form-message {
    padding: 14px;
    border-radius: 8px;
    font-size: 0.88rem;
    display: none;
    text-align: center;
    margin-top: 24px;
    font-weight: 600;
}
.form-message.success {
    background: rgba(16, 185, 129, 0.08);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.15);
}

/* Footer Section */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding: 80px 0 40px 0;
    background: transparent;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 64px;
    margin-bottom: 64px;
}

.footer-desc {
    color: var(--color-text-secondary);
    font-size: 0.88rem;
    margin-top: 20px;
    max-width: 300px;
    line-height: 1.5;
}

.footer-column h4 {
    font-size: 0.75rem;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #ffffff;
    margin-bottom: 24px;
    font-weight: 800;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-links a {
    font-size: 0.88rem;
    color: var(--color-text-secondary);
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* Scroll Animation classes (handled by GSAP) */
.reveal {
    opacity: 0;
}

/* Responsive Layouts */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 4rem;
    }
    
    .advantage-grid {
        grid-template-columns: 1fr;
        gap: 56px;
    }
    
    .pipeline-minimal {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
    }
    
    .pipeline-line {
        display: none;
    }
    
    .pipeline-step {
        width: 100%;
    }
    
    .pipeline-step p {
        max-width: 100%;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .logos-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    nav {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 8px 24px 20px;
        background: rgba(8, 8, 12, 0.97);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        z-index: 99;
    }

    nav .nav-link {
        padding: 14px 0;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
        width: 100%;
        display: block;
    }

    nav .btn-pill {
        margin-top: 16px;
        width: 100%;
        justify-content: center;
        padding: 13px 24px;
    }

    .menu-toggle {
        display: flex;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .section h2 {
        font-size: 2.2rem;
    }
    
    .contact-card {
        padding: 0;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .form-group.full-width {
        grid-column: span 1;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* ==========================================
   Advanced Interactive Animations Additions
   ========================================== */

/* Button shine sweep effect */
.btn-pill, .btn-voice-play, .form-submit-btn {
    position: relative;
    overflow: hidden;
}

.btn-pill::before, .btn-voice-play::before, .form-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 80px;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.35) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    pointer-events: none;
    transition: none;
}

.btn-pill:hover::before, .btn-voice-play:hover::before, .form-submit-btn:hover::before {
    animation: shineSweep 1.2s ease-in-out infinite;
}

@keyframes shineSweep {
    0% { left: -150%; }
    100% { left: 150%; }
}

/* Traveling pipeline packet */
.pipeline-packet {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 10px #ffffff, 0 0 20px rgba(255,255,255,0.8);
    top: 14px;
    left: 0;
    opacity: 0;
    pointer-events: none;
    transition: left 0.8s cubic-bezier(0.25, 1, 0.5, 1), top 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
    z-index: 10;
}

@media (max-width: 992px) {
    .pipeline-packet {
        display: none;
    }
}

/* Input line expansions & focus polish */
.form-group input, 
.form-group select, 
.form-group textarea {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-bottom-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
}

/* ==========================================
   Hero Entrance — Word-by-word stagger
   ========================================== */
.hw {
    display: inline-block;
    will-change: transform, opacity;
    background: linear-gradient(180deg, #ffffff 35%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.25;
    padding: 0.08em 0;
}

/* ==========================================
   Nav Link — Underline micro-animation
   ========================================== */
.nav-link {
    position: relative;
    padding-bottom: 2px;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-link:hover::after {
    transform: scaleX(1);
}

/* ==========================================
   Logo Dot — Subtle pulse
   ========================================== */
@keyframes logoDot {
    0%, 100% { box-shadow: 0 0 8px rgba(255, 255, 255, 0.4); }
    50% { box-shadow: 0 0 18px rgba(255, 255, 255, 0.75), 0 0 36px rgba(255, 255, 255, 0.1); }
}
.logo-icon {
    animation: logoDot 3.5s ease-in-out infinite;
}

/* ==========================================
   Focus Visible — Accessible keyboard nav
   ========================================== */
:focus-visible {
    outline: 1.5px solid rgba(255, 255, 255, 0.5);
    outline-offset: 3px;
    border-radius: 4px;
}
:focus:not(:focus-visible) {
    outline: none;
}

/* ==========================================
   Pipeline — Smoother light travel
   ========================================== */
.pipeline-line::after {
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* ==========================================
   Reduced Motion — Full compliance
   ========================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .logo-icon {
        animation: none;
        box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
    }
    .btn-pill::before,
    .btn-voice-play::before,
    .form-submit-btn::before {
        display: none;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ==========================================
   360px — Ultra-narrow responsive
   ========================================== */
@media (max-width: 400px) {
    .hero h1 { font-size: 2.4rem; }
    .hero-actions { flex-direction: column; align-items: center; }
    .voice-wave-wrapper { width: 220px; }
    .logos-container { grid-template-columns: 1fr; gap: 24px; }
    .results-num { font-size: 4rem; }
    .contact-card h2 { font-size: 2.2rem; }
}

/* ==========================================
   Echo Floating Mascot & Chatbot Styles
   ========================================== */

.echo-mascot-floating {
    position: fixed;
    top: 0;
    left: 0;
    width: 110px;
    height: 110px;
    cursor: pointer;
    z-index: 1000;
    mix-blend-mode: screen;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
    background: transparent;
}

.echo-mascot-floating:hover {
    transform: scale(1.08);
}

.echo-mascot-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: echoJellyBobbing 5s ease-in-out infinite;
}

@keyframes echoJellyBobbing {
    0%, 100% {
        transform: translateY(0) rotate(-3deg);
    }
    50% {
        transform: translateY(-10px) rotate(3deg);
    }
}

#echo-mascot-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    filter: url(#jelly-wave) drop-shadow(0 0 15px rgba(255, 255, 255, 0.45)) drop-shadow(0 0 30px rgba(255, 255, 255, 0.2));
    -webkit-mask-image: radial-gradient(circle, rgba(0,0,0,1) 42%, rgba(0,0,0,0) 70%);
    mask-image: radial-gradient(circle, rgba(0,0,0,1) 42%, rgba(0,0,0,0) 70%);
    mask-size: 100% 100%;
    transform-origin: center top;
}

.echo-tooltip {
    position: absolute;
    bottom: 105px;
    right: 0;
    background: rgba(8, 8, 12, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.echo-mascot-floating:hover .echo-tooltip {
    opacity: 1;
    transform: translateY(0);
}

/* Chatbot Panel */
#echo-chat-panel {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 370px;
    height: 520px;
    max-height: calc(100vh - 80px);
    max-width: calc(100vw - 60px);
    background: rgba(8, 8, 12, 0.8);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 30px rgba(255, 255, 255, 0.02);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.85);
    opacity: 0;
    pointer-events: none;
    transform-origin: bottom right;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

#echo-chat-panel.active {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.01);
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar-container {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #000000;
    mix-blend-mode: screen;
}

.chat-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.status-dot {
    position: absolute;
    bottom: 0px;
    right: 0px;
    width: 9px;
    height: 9px;
    background: #10b981;
    border-radius: 50%;
    border: 2px solid #08080c;
    box-shadow: 0 0 8px #10b981;
}

.chat-header-text {
    display: flex;
    flex-direction: column;
}

.chat-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.chat-subtitle {
    font-size: 0.72rem;
    color: var(--color-text-secondary);
    opacity: 0.75;
}

#close-chat-btn {
    background: none;
    border: none;
    color: var(--color-text-secondary);
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, color 0.2s ease;
}

#close-chat-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.chat-messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.05) transparent;
}

.chat-messages-container::-webkit-scrollbar {
    width: 4px;
}
.chat-messages-container::-webkit-scrollbar-track {
    background: transparent;
}
.chat-messages-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

.chat-message {
    display: flex;
    width: 100%;
}

.chat-message.bot {
    justify-content: flex-start;
}

.chat-message.user {
    justify-content: flex-end;
}

.message-bubble {
    max-width: 80%;
    padding: 12px 16px;
    font-size: 0.88rem;
    line-height: 1.5;
    border-radius: 18px;
}

.chat-message.bot .message-bubble {
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-top-left-radius: 4px;
}

.chat-message.user .message-bubble {
    background: #ffffff;
    color: #08080c;
    font-weight: 500;
    border-top-right-radius: 4px;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.08);
}

.chat-suggestions {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    scrollbar-width: none;
}

.chat-suggestions::-webkit-scrollbar {
    display: none;
}

.suggestion-chip {
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--color-text-secondary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.suggestion-chip:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    transform: translateY(-1px);
}

.chat-input-area {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    gap: 12px;
    background: rgba(8, 8, 12, 0.95);
}

#chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 10px 16px;
    font-size: 0.88rem;
    color: #ffffff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#chat-input:focus {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.01);
}

#chat-send-btn {
    background: #ffffff;
    color: #08080c;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

#chat-send-btn:hover {
    transform: scale(1.05);
    background: #f1f5f9;
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.15);
}

.typing-indicator {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 6px 10px;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

@media (max-width: 480px) {
    #echo-chat-panel {
        right: 15px;
        bottom: 15px;
        width: calc(100vw - 30px);
        height: 480px;
    }
    .echo-mascot-floating {
        width: 75px;
        height: 75px;
    }
}

