/* ===================================
 * KashAI Landing Page — v3
 * ===================================
 * Brand: Blu #51a8ee | Viola #9f44c4
 * Font: Montserrat
 * Trends: Bento grid, Glassmorphism 2.0,
 *         Micro interactions, Accessibility first
 * Pure CSS animations, zero libraries
 */

/* ── Reset & Base ── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1e293b;
    background: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ── Accessibility: Skip to content ── */
.skip-to-content {
    position: fixed;
    top: -100%;
    left: 16px;
    z-index: 100001;
    padding: 12px 24px;
    background: linear-gradient(135deg, #51a8ee, #9f44c4);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 0 0 12px 12px;
    transition: top 0.2s ease;
}

.skip-to-content:focus {
    top: 0;
}

/* ── Accessibility: Focus visible ── */
*:focus-visible {
    outline: 2px solid #51a8ee;
    outline-offset: 3px;
    border-radius: 4px;
}

/* Remove focus ring for mouse clicks */
*:focus:not(:focus-visible) {
    outline: none;
}

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

/* ── Gradient text helper ── */
.gradient-text {
    background: linear-gradient(135deg, #51a8ee, #9f44c4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Section shared ── */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #51a8ee;
    margin-bottom: 12px;
}

.section-header h2,
.showcase-text h2 {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

/* ═══════════════════════════════════
 * HEADER
 * ═══════════════════════════════════ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 0;
    transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    box-shadow: 0 1px 24px rgba(0, 0, 0, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: opacity 0.2s ease;
}

.header-brand:hover {
    opacity: 0.8;
}

.header-logo {
    border-radius: 8px;
}

.header-name {
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #51a8ee, #9f44c4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: #475569;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #51a8ee, #9f44c4);
    border-radius: 1px;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #1e293b;
}

.nav-link:hover::after {
    width: 100%;
}

/* ═══════════════════════════════════
 * HERO
 * ═══════════════════════════════════ */
.hero {
    position: relative;
    padding: 140px 0 120px;
    overflow: hidden;
    background: linear-gradient(160deg, #f0f7ff 0%, #f5f0ff 50%, #f8f9ff 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.hero .blob-1 {
    width: 600px;
    height: 600px;
    background: #51a8ee;
    top: -200px;
    left: -100px;
    animation: blobFloat 20s ease-in-out infinite;
}

.hero .blob-2 {
    width: 500px;
    height: 500px;
    background: #9f44c4;
    bottom: -150px;
    right: -100px;
    animation: blobFloat 25s ease-in-out infinite reverse;
}

.hero .blob-3 {
    width: 300px;
    height: 300px;
    background: #51a8ee;
    top: 50%;
    left: 50%;
    animation: blobFloat 18s ease-in-out infinite 5s;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -40px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(40px, 30px) scale(1.02); }
}

.hero-content {
    position: relative;
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-text {
    flex: 1;
    max-width: 540px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: rgba(81, 168, 238, 0.1);
    border: 1px solid rgba(81, 168, 238, 0.2);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #51a8ee;
    margin-bottom: 24px;
}

.hero-badge .material-symbols-outlined {
    font-size: 16px;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 20px;
    color: #1e293b;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 36px;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-block;
    transition: transform 0.2s ease, filter 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    filter: drop-shadow(0 6px 16px rgba(81, 168, 238, 0.3));
}

.btn-primary:active {
    transform: translateY(0);
}

.store-badge-img {
    display: block;
    height: 52px;
    width: 180px;
    object-fit: contain;
}

/* Hero Phone */
.hero-phone {
    position: relative;
    flex-shrink: 0;
    width: 320px;
}

.phone-glow {
    position: absolute;
    width: 280px;
    height: 280px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(81, 168, 238, 0.3) 0%, rgba(159, 68, 196, 0.15) 50%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    animation: glowPulse 4s ease-in-out infinite;
}

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

.hero-phone-img {
    position: relative;
    width: 100%;
    border-radius: 24px;
    filter: drop-shadow(0 25px 60px rgba(0, 0, 0, 0.2));
}

/* Hero Wave */
.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: 80px;
}

/* ═══════════════════════════════════
 * TRUST STRIP
 * ═══════════════════════════════════ */
.trust-strip {
    padding: 40px 0;
    background: white;
}

.trust-items {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
}

.trust-item .material-symbols-outlined {
    font-size: 20px;
    color: #51a8ee;
}

.trust-divider {
    width: 1px;
    height: 24px;
    background: #e2e8f0;
}

/* ═══════════════════════════════════
 * FEATURES — COMPACT GRID
 * ═══════════════════════════════════ */
.features {
    padding: 80px 0;
    background:
        radial-gradient(ellipse at 25% 30%, rgba(81, 168, 238, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 75% 70%, rgba(159, 68, 196, 0.12) 0%, transparent 50%),
        linear-gradient(160deg, #edf3fc 0%, #f0e9f8 50%, #edf3fc 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px 48px;
}

.feature-item {
}

.feature-item-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}

.feature-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.3s ease;
}

.feature-icon .material-symbols-outlined {
    font-size: 22px;
    background: linear-gradient(135deg, #51a8ee, #9f44c4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-item h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
}

.feature-item p {
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.55;
    padding-left: 56px;
}

/* ═══════════════════════════════════
 * VOICE DEMO ANIMATION
 * ═══════════════════════════════════ */
.voice-demo-stage {
    flex-shrink: 0;
    width: 340px;
    height: 480px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 60px;
    background: linear-gradient(135deg, #51a8ee 0%, #9f44c4 100%);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(81, 168, 238, 0.25);
}

/* Waveform Bars */
.demo-waveform {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 80px;
    width: 240px;
    margin-bottom: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.voice-demo-stage.visible .demo-waveform {
    opacity: 0.3;
}

.voice-demo-stage.active .demo-waveform {
    opacity: 1;
}

.demo-bar {
    width: 4px;
    border-radius: 100px;
    min-height: 4px;
    height: 4px;
    transition: opacity 0.4s ease;
}

.voice-demo-stage.active .demo-bar {
    animation: demoBarPulse 1s ease-in-out infinite;
}

@keyframes demoBarPulse {
    0%, 100% { height: 4px; }
    50% { height: var(--bar-max, 40px); }
}

/* Mic FAB (bottom) */
.demo-mic-fab {
    margin-top: auto;
    margin-bottom: 24px;
    flex-shrink: 0;
    position: relative;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.voice-demo-stage.visible .demo-mic-fab {
    opacity: 1;
    transform: scale(1);
}

.demo-mic-fab img {
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 2;
    filter: brightness(0) invert(1) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
}

/* Mic ripple rings */
.demo-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    opacity: 0;
    pointer-events: none;
}

.voice-demo-stage.active .demo-ripple {
    animation: micRipple 2.5s ease-out infinite;
}

.voice-demo-stage.active .demo-ripple:nth-child(2) {
    animation-delay: 0.7s;
}

.voice-demo-stage.active .demo-ripple:nth-child(3) {
    animation-delay: 1.4s;
}

@keyframes micRipple {
    0% {
        width: 40px;
        height: 40px;
        opacity: 0.5;
    }
    100% {
        width: 100px;
        height: 100px;
        opacity: 0;
    }
}

/* Transcript */
.demo-transcript {
    min-height: 28px;
    margin-bottom: 24px;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.demo-typed-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.2px;
}

.demo-cursor {
    display: inline-block;
    width: 2px;
    height: 18px;
    background: #51a8ee;
    margin-left: 2px;
    opacity: 0;
}

.voice-demo-stage.typing .demo-cursor {
    animation: cursorBlink 0.6s step-end infinite;
}

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

/* AI Processing */
.demo-processing {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.demo-processing .material-symbols-outlined {
    font-size: 36px;
    color: white;
}

.voice-demo-stage.processing .demo-processing {
    animation: sparkIn 0.8s ease-out forwards;
}

@keyframes sparkIn {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.3) rotate(-30deg); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2) rotate(15deg); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(0.8) rotate(0deg); }
}

/* Result Cards */
.demo-cards-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    visibility: hidden;
}

.demo-result-card {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 260px;
    padding: 12px 16px;
    background: white;
    border-radius: 14px;
    border-left: 3px solid #9f44c4;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.demo-card-2 {
    display: none;
}

.voice-demo-stage.result .demo-cards-area,
.voice-demo-stage.result-double .demo-cards-area {
    visibility: visible;
}

.voice-demo-stage.result .demo-card-1 {
    opacity: 1;
    transform: translateY(0);
}

.voice-demo-stage.result-double .demo-card-1 {
    opacity: 1;
    transform: translateY(0);
}

.voice-demo-stage.result-double .demo-card-2 {
    display: flex;
    opacity: 0;
    transform: translateY(30px);
}

.voice-demo-stage.result-double.show-card-2 .demo-card-2 {
    opacity: 1;
    transform: translateY(0);
}

.demo-expense-icon {
    font-size: 1.75rem;
    width: 36px;
    flex-shrink: 0;
    text-align: center;
}

.demo-expense-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.demo-expense-desc {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
}

.demo-expense-cat {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.demo-expense-amount {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    flex-shrink: 0;
    white-space: nowrap;
}

.demo-amount-prefix {
    font-weight: 700;
    color: #9f44c4;
    margin-right: 1px;
}

.demo-result-card.income {
    border-left-color: #51a8ee;
}

.demo-result-card.income .demo-amount-prefix {
    color: #51a8ee;
}

/* Fade-out state */
.voice-demo-stage.fade-out .demo-waveform,
.voice-demo-stage.fade-out .demo-transcript,
.voice-demo-stage.fade-out .demo-cards-area {
    transition: opacity 0.6s ease;
    opacity: 0;
}

/* ═══════════════════════════════════
 * SHOWCASE SECTIONS
 * ═══════════════════════════════════ */
.showcase {
    padding: 80px 0;
}

.showcase:nth-child(odd) {
    background: #f8fafc;
}

.showcase-inner {
    display: flex;
    align-items: center;
    gap: 80px;
}

.showcase-inner--reverse {
    flex-direction: row-reverse;
}

.showcase-phone {
    flex-shrink: 0;
    width: 340px;
}

.showcase-phone img {
    width: 100%;
    border-radius: 20px;
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.15));
}


.showcase-text {
    flex: 1;
}

.showcase-text h2 {
    margin-bottom: 20px;
}

.showcase-text p {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 28px;
}

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

.showcase-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #334155;
}

.showcase-list .material-symbols-outlined {
    font-size: 22px;
    color: #51a8ee;
    flex-shrink: 0;
}

/* ═══════════════════════════════════
 * HOW IT WORKS
 * ═══════════════════════════════════ */
.how-it-works {
    padding: 100px 0;
    background: white;
}

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

.step {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    width: 100%;
}

.step-number {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #51a8ee, #9f44c4);
    color: white;
    font-size: 1.3rem;
    font-weight: 800;
    border-radius: 16px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.3s ease;
}

/* Step number pulse on reveal */
.step.visible .step-number {
    animation: stepPulse 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes stepPulse {
    0% { transform: scale(0.7); opacity: 0; }
    60% { transform: scale(1.08); }
    100% { transform: scale(1); opacity: 1; }
}

.step-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #1e293b;
}

.step-content p {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
}

.step-connector {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(81, 168, 238, 0.3), rgba(159, 68, 196, 0.3));
    margin: 8px 0 8px 25px;
}

/* ═══════════════════════════════════
 * FINAL CTA
 * ═══════════════════════════════════ */
.final-cta {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
    background: linear-gradient(160deg, #f0f7ff 0%, #f5f0ff 50%, #f8f9ff 100%);
}

.final-cta-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.final-cta .blob-1 {
    width: 400px;
    height: 400px;
    background: #51a8ee;
    top: -100px;
    right: -50px;
    animation: blobFloat 22s ease-in-out infinite;
}

.final-cta .blob-2 {
    width: 350px;
    height: 350px;
    background: #9f44c4;
    bottom: -100px;
    left: -50px;
    animation: blobFloat 18s ease-in-out infinite reverse;
}

.final-cta-content {
    position: relative;
    text-align: center;
}

.final-cta h2 {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
    color: #1e293b;
}

.final-cta p {
    font-size: 1.1rem;
    color: #475569;
    margin-bottom: 36px;
}

.final-cta .hero-actions {
    justify-content: center;
}

/* ═══════════════════════════════════
 * FOOTER
 * ═══════════════════════════════════ */
.site-footer {
    padding: 48px 0 32px;
    background: white;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    justify-content: center;
    flex-direction: column;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-brand img {
    border-radius: 8px;
}

.footer-tagline {
    font-size: 0.85rem;
    color: #94a3b8;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.footer-links a {
    color: #475569;
    font-size: 0.85rem;
    font-weight: 500;
    position: relative;
    transition: color 0.2s ease;
}

/* Animated underline micro interaction */
.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #51a8ee, #9f44c4);
    border-radius: 1px;
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.footer-links a:hover::after {
    width: 100%;
}

.footer-copy {
    text-align: center;
    color: #94a3b8;
    font-size: 0.8rem;
}

/* ═══════════════════════════════════
 * CINEMATIC LOGO INTRO
 * ═══════════════════════════════════ */
.logo-intro {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: linear-gradient(135deg, #51a8ee 0%, #9f44c4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-intro.done {
    opacity: 0;
    transform: scale(1.04);
    pointer-events: none;
}

/* Background radial glow */
.intro-bg-glow {
    position: absolute;
    width: 800px;
    height: 800px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 40%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 1s ease;
}

.logo-intro.animate .intro-bg-glow {
    opacity: 1;
    animation: bgGlowPulse 3s ease-in-out 0.5s;
}

@keyframes bgGlowPulse {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
    40% { opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.6; }
}

/* Center wrapper */
.intro-center {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Logo SVG wrapper */
.intro-logo-wrapper {
    width: 80vw;
    max-width: 650px;
}

.intro-logo-svg {
    width: 100%;
    height: auto;
    overflow: visible;
}

/* Make all letters white on gradient background */
.logo-intro .intro-logo-svg path,
.logo-intro .intro-logo-svg #g9 path {
    fill: #ffffff !important;
}

/* Letter groups: hidden by default */
.logo-intro .letter {
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
}

/* ── Letter Animations ── */

/* K — sweeps from left with rotation and glow */
.logo-intro.animate .letter-K {
    animation: letterK 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

@keyframes letterK {
    0% {
        opacity: 0;
        transform: translateX(-150px) rotate(-25deg) scale(0.6);
        filter: blur(15px);
    }
    50% {
        opacity: 1;
        filter: blur(4px);
    }
    100% {
        opacity: 1;
        transform: translateX(0) rotate(0) scale(1);
        filter: blur(0) drop-shadow(0 0 20px rgba(81, 168, 238, 0.3));
    }
}

/* a — rises from below */
.logo-intro.animate .letter-a {
    animation: letterRise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

/* s — rises from below, staggered */
.logo-intro.animate .letter-s {
    animation: letterRise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.95s forwards;
}

/* h — rises from below, staggered */
.logo-intro.animate .letter-h {
    animation: letterRise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 1.1s forwards;
}

@keyframes letterRise {
    0% {
        opacity: 0;
        transform: translateY(80px) scale(0.85);
        filter: blur(8px);
    }
    60% {
        opacity: 1;
        filter: blur(1px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* AI — sweeps in together from right with punch */
.logo-intro.animate .letter-AI {
    animation: letterAI 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.35s forwards;
}

@keyframes letterAI {
    0% {
        opacity: 0;
        transform: translateX(140px) scale(0.7);
        filter: blur(12px);
    }
    55% {
        opacity: 1;
        filter: blur(2px);
    }
    80% {
        transform: translateX(-8px) scale(1.03);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
        filter: blur(0);
    }
}

/* ── Assembled logo glow ── */
.logo-intro.assembled .intro-logo-svg {
    animation: logoGlow 1.5s ease-in-out;
}

@keyframes logoGlow {
    0% { filter: drop-shadow(0 0 0 transparent); }
    50% { filter: drop-shadow(0 0 40px rgba(81, 168, 238, 0.5)) drop-shadow(0 0 80px rgba(159, 68, 196, 0.25)); }
    100% { filter: drop-shadow(0 0 15px rgba(81, 168, 238, 0.2)); }
}

/* ── Light Sweep ── */
.intro-sweep {
    position: absolute;
    width: 6px;
    height: 200%;
    top: -50%;
    left: -10%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(81, 168, 238, 0.3) 20%,
        rgba(255, 255, 255, 0.9) 45%,
        rgba(255, 255, 255, 1) 50%,
        rgba(255, 255, 255, 0.9) 55%,
        rgba(159, 68, 196, 0.3) 80%,
        transparent 100%
    );
    filter: blur(6px);
    opacity: 0;
    z-index: 10;
    transform: skewX(-10deg);
    pointer-events: none;
}

.logo-intro.animate .intro-sweep {
    animation: sweepAcross 0.7s ease-in-out 2.2s forwards;
}

@keyframes sweepAcross {
    0% { left: -10%; opacity: 0; }
    8% { opacity: 1; }
    92% { opacity: 1; }
    100% { left: 110%; opacity: 0; }
}

/* ── Tagline ── */
.intro-tagline {
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 36px;
    opacity: 0;
    transform: translateY(12px);
}

.logo-intro.animate .intro-tagline {
    animation: taglineFade 0.8s ease 2.6s forwards;
}

@keyframes taglineFade {
    to { opacity: 1; transform: translateY(0); }
}

/* ── Particles ── */
.intro-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.intro-particle {
    position: absolute;
    border-radius: 50%;
    animation: particleDrift linear infinite;
}

@keyframes particleDrift {
    0% {
        transform: translateY(105vh) translateX(0);
        opacity: 0;
    }
    8% { opacity: 1; }
    50% { transform: translateY(0) translateX(var(--drift-x, 15px)); }
    92% { opacity: 1; }
    100% {
        transform: translateY(-105vh) translateX(calc(var(--drift-x, 15px) * -1));
        opacity: 0;
    }
}

/* ── Skip Button ── */
.intro-skip {
    position: absolute;
    bottom: 40px;
    right: 40px;
    z-index: 20;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1px;
    padding: 8px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    animation: skipFadeIn 0.5s ease 1s forwards;
}

.intro-skip:hover {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
}

@keyframes skipFadeIn {
    to { opacity: 1; }
}

/* ═══════════════════════════════════
 * SCROLL REVEAL ANIMATIONS
 * ═══════════════════════════════════ */
.reveal {
    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);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-phone {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-phone.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Staggered delay for feature items */
.features-grid .feature-item:nth-child(1) { transition-delay: 0s; }
.features-grid .feature-item:nth-child(2) { transition-delay: 0.08s; }
.features-grid .feature-item:nth-child(3) { transition-delay: 0.16s; }
.features-grid .feature-item:nth-child(4) { transition-delay: 0.22s; }
.features-grid .feature-item:nth-child(5) { transition-delay: 0.28s; }
.features-grid .feature-item:nth-child(6) { transition-delay: 0.34s; }

/* ═══════════════════════════════════
 * RESPONSIVE
 * ═══════════════════════════════════ */

/* Tablet */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-phone {
        width: 260px;
    }

    .showcase-inner {
        gap: 48px;
    }

    .showcase-phone {
        width: 280px;
    }

    .voice-demo-stage {
        width: 280px;
        height: 420px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px 36px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .header-inner {
        height: 60px;
    }

    .header-nav {
        gap: 20px;
    }

    .nav-link {
        font-size: 0.8rem;
    }

    .hero {
        padding: 110px 0 80px;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 48px;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-phone {
        width: 240px;
    }

    .hero-badge {
        margin-left: auto;
        margin-right: auto;
    }

    .section-header h2,
    .showcase-text h2 {
        font-size: 1.7rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .feature-item p {
        padding-left: 56px;
    }

    .showcase {
        padding: 60px 0;
    }

    .showcase-inner,
    .showcase-inner--reverse {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .showcase-phone {
        width: 260px;
        order: -1;
    }

    .voice-demo-stage {
        width: 280px;
        height: 400px;
        order: -1;
    }

    .demo-result-card {
        width: 220px;
        padding: 10px 14px;
        gap: 8px;
    }

    .demo-expense-icon {
        font-size: 1.4rem;
        width: 28px;
    }

    .demo-expense-desc {
        font-size: 0.85rem;
    }

    .demo-expense-amount {
        font-size: 0.9rem;
    }

    .showcase-list {
        align-items: center;
    }

    .trust-items {
        gap: 16px;
    }

    .trust-divider {
        display: none;
    }

    .final-cta h2 {
        font-size: 1.8rem;
    }

    .how-it-works {
        padding: 70px 0;
    }

    .features {
        padding: 70px 0;
    }

    /* Reset slide directions to simple fade-up on mobile */
    .reveal-left,
    .reveal-right {
        transform: translateY(30px);
    }

    .reveal-left.visible,
    .reveal-right.visible {
        transform: translateY(0);
    }

}

@media (max-width: 768px) {
    .intro-logo-wrapper {
        width: 88vw;
    }

    .intro-tagline {
        font-size: 0.7rem;
        letter-spacing: 2px;
        margin-top: 24px;
    }

    .intro-skip {
        bottom: 24px;
        right: 24px;
    }

    .intro-bg-glow {
        width: 400px;
        height: 400px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-phone {
        width: 200px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .store-badge-img {
        height: 48px;
        width: 160px;
    }

    .section-header h2,
    .showcase-text h2 {
        font-size: 1.5rem;
    }

    .final-cta h2 {
        font-size: 1.5rem;
    }

    .trust-items {
        flex-direction: column;
        gap: 12px;
    }
}

/* ═══════════════════════════════════
 * ACCESSIBILITY: REDUCED MOTION
 * ═══════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.15s !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-phone {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .blob,
    .phone-glow {
        animation: none !important;
    }

    .logo-intro {
        display: none;
    }
}
