@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Newsreader:opsz,wght@6..72,200;6..72,300;6..72,400&display=swap');

:root {
    --bg-color: #FAEDCD;
    --text-primary: #DCA1A1;
    --text-secondary: #4b5563;
}

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

html, body {
    overflow-x: hidden;
    width: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Background Gradients */
.bg-gradient {
    display: none;
}

/* Navbar */
.navbar-wrapper {
    display: flex;
    justify-content: center;
    padding: 1.25rem 2rem 0 2rem;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Crystal clear background with subtle white tint */
    background: rgba(255, 255, 255, 0.03);
    padding: 0.6rem 0.6rem 0.6rem 2.8rem;
    border-radius: 9999px;
    width: 100%;
    max-width: 850px;
    position: relative;
    /* Crisp glass border */
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 
        /* Outer soft shadow */
        0 8px 32px rgba(0, 0, 0, 0.06),
        /* Inner top highlight for glassy reflection */
        inset 0 1px 1px rgba(255, 255, 255, 0.6),
        /* Inner bottom subtle depth */
        inset 0 -1px 1px rgba(255, 255, 255, 0.1);
    z-index: 10;
}

/* Top glass curve reflection */
.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 4%;
    right: 4%;
    height: 40%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.25) 0%, transparent 100%);
    border-radius: 9999px 9999px 50% 50%;
    pointer-events: none;
    z-index: 1;
}



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

.logo strong {
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
}

.nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 3rem; /* Reduced gap to fit narrower navbar */
    margin: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav-buttons {
    display: flex;
    gap: 0.6rem;
}

/* Floating Glass Navbar */


/* Base Buttons */
.btn {
    padding: 0.75rem 1.4rem;
    border-radius: 9999px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Premium Dark Button */
.btn-dark {
    background-color: #2b2b2b;
    color: #fff;
    position: relative;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2), 0 0 0 1px rgba(33, 33, 33, 0.8), 0 8px 18px -4px rgba(33, 33, 33, 0.5);
    font-size: 0.9rem;
    padding: 0.65rem 1.5rem;
    z-index: 1;
}

.btn-dark::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 9999px;
    background: rgba(33, 33, 33, 1);
    z-index: -1;
    filter: blur(5px);
    opacity: 0.4;
}

.btn-dark:hover {
    transform: translateY(-1px);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3), 0 0 0 1px rgba(33, 33, 33, 0.9), 0 12px 24px -4px rgba(33, 33, 33, 0.6);
}

.nav-btn-light {
    background-color: rgba(245, 245, 245, 0.85);
    color: #111;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
    font-size: 0.9rem;
    padding: 0.65rem 1.5rem;
}

.decorative-element {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.badge {
    background: #eef2ff;
    color: #4d66eb;
    padding: 0.55rem 1.5rem;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 2.5rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 1), 0 8px 20px rgba(180, 200, 255, 0.4);
    letter-spacing: 0.01em;
}

/* Hero Section & Madhubani Corners */
.hero {
    position: relative;
    overflow: hidden; /* Prevent corners from causing scrollbars */
    width: 100%;
    height: 100vh; /* Locks exactly to screen height so bottom corners are visible without scrolling */
}

.hero-content {
    position: absolute;
    top: 65vh; /* Pushed down just a bit more */
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

.madhubani-corner {
    position: absolute;
    width: 260px; /* Reduced to avoid collisions */
    max-width: 25vw; /* Ensure they scale down on smaller screens */
    height: auto;
    z-index: 0;
    opacity: 0.9;
    pointer-events: none;
}

.madhubani-tl { top: 0; left: 0; transform: scaleX(-1); }
.madhubani-tr { top: 0; right: 0; }
.madhubani-bl { bottom: 0; left: 0; transform: scaleX(-1); }
.madhubani-br { bottom: 0; right: 0; }

.title {
    position: relative;
    z-index: 10;
    font-family: 'Newsreader', serif;
    font-size: 6rem;
    font-weight: 300;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    
    /* Vibrant Wide Electronic Wipe with Reflection */
    background: linear-gradient(
        90deg, 
        #985F6F 0%,       /* Base text color */
        #985F6F 33.3%,    /* Hold base color */
        #03091A 38%,      /* Deep dark navy */
        #16327A 44%,      /* Rich blue */
        #2663FF 49%,      /* Vibrant electric blue */
        #A8C7FF 54%,      /* Bright premium reflection highlight */
        #D4AF37 61%,      /* Vibrant gold */
        #D4AF37 68%,      /* Hold gold solidly to fully protect 'Y' from fading */
        rgba(255, 255, 255, 0) 72%, /* Quick fade to transparent right after 'Y' */
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    animation: text-wipe-premium 2.2s ease-in-out infinite alternate;
}

@keyframes text-wipe-premium {
    0%, 45% {
        background-position: 0% 50%; /* Stay fully visible in base color */
    }
    100% {
        background-position: 100% 50%; /* Hit 'Y' fast and immediately rebound */
    }
}

.subtitle {
    position: relative;
    z-index: 10;
    font-size: 1.35rem;
    color: var(--text-primary);
    line-height: 1.5;
    margin: 0 auto 3.5rem auto;
    font-weight: 400;
    max-width: 650px;
}

.audio-section {
    position: relative;
    width: 100%; /* Replaced 100vw to fix horizontal scrollbar bug causing white side gaps */
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Hero audio pill override — make visible & centered */
.audio-section > .refine-audio-pill {
    position: relative;
    bottom: auto;
    left: auto;
    transform: scale(1.5);
    opacity: 1;
    display: flex;
    margin: 0 auto;
    border-color: rgba(152, 95, 111, 0.6); /* Slightly softer border */
    background: #111111; /* Restored deep black for contrast */
    box-shadow: 
        0 0 60px 10px rgba(152, 95, 111, 0.65), /* Much stronger, more visible outer glow */
        0 0 20px rgba(152, 95, 111, 0.4), /* Inner core to the glow */
        inset 0 1px 2px rgba(255, 255, 255, 0.1); /* Tiny premium inner rim */
}

.flow-svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateZ(0);
    width: 100%; /* Replaced 100vw here too */
    height: 800px;
    /* Gives enough vertical room for the massive loop */
    z-index: 1;
    pointer-events: none;
    will-change: contents;
    text-rendering: optimizeSpeed;
    shape-rendering: geometricPrecision;
    contain: layout style paint;
}

.audio-pill {
    position: relative;
    z-index: 2;
    background-color: #fefcf8;
    /* Extremely subtle warm cream */
    border: 2.5px solid #111;
    /* Slightly thicker boundary to define bounds */
    border-radius: 9999px;
    padding: 0.5rem 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    /* Enhanced beautiful shadow */
}

.waveform {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 24px;
}

.waveform .bar {
    width: 2px;
    background-color: #111;
    border-radius: 9999px;
    transition: all 0.2s ease;
    animation: frequencyPulse 1.2s ease-in-out infinite alternate;
}

/* Stagger animation to mimic real speaking frequencies */
.waveform .bar:nth-child(2n) {
    animation-delay: 0.1s;
    animation-duration: 0.9s;
}

.waveform .bar:nth-child(3n) {
    animation-delay: 0.3s;
    animation-duration: 1.4s;
}

.waveform .bar:nth-child(4n) {
    animation-delay: 0.5s;
    animation-duration: 1.1s;
}

.waveform .bar:nth-child(5n) {
    animation-delay: 0.2s;
    animation-duration: 1.3s;
}

.waveform .bar:nth-child(7n) {
    animation-delay: 0.4s;
    animation-duration: 1.0s;
}

@keyframes frequencyPulse {
    0% {
        transform: scaleY(0.75);
    }

    100% {
        transform: scaleY(1.35);
    }
}

.footer-note {
    font-size: 0.72rem;
    font-weight: 700;
    color: #8a92a0;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
}

/* -------------------------------------
   DIGITAL CURATOR INTEGRATION SECTION 
   ------------------------------------- */

.digital-curator-integration {
    background-color: #000000;
    color: #e7e5e4;
    font-family: 'Manrope', sans-serif;
    min-height: 100vh;
    height: auto;
    padding: 10vh 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    position: relative;
    overflow: hidden;
    z-index: 0;
    border-radius: 50px;
    
    /* Clean Premium Glass Boundaries */
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-top: 1.5px solid rgba(255, 255, 255, 0.4);
    
    box-shadow: 
        /* Sharp rim light on the very edge */
        inset 0 3px 5px rgba(255, 255, 255, 0.3),
        /* Thick, softer glass volume (the refractive curve) */
        inset 0 20px 40px rgba(255, 255, 255, 0.12),
        /* Side reflections representing the curved tension of the droplet */
        inset 15px 0 30px rgba(255, 255, 255, 0.05),
        inset -15px 0 30px rgba(255, 255, 255, 0.05),
        /* Bottom bounce light */
        inset 0 -10px 25px rgba(255, 255, 255, 0.08);
}



/* Platform Chips */
.dc-platform-chips {
    display: flex;
    gap: 1rem;
    margin-bottom: 4rem;
    z-index: 10;
}

.dc-chip {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 9999px;
    padding: 0.35rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #a1a1aa;
    transition: all 0.3s ease;
    cursor: pointer;
}

.dc-chip:hover {
    color: #e7e5e4;
    background-color: rgba(37, 38, 38, 0.7);
}

.dc-chip-icon {
    font-size: 16px !important;
}

/* Hero Content */
.dc-hero-content {
    z-index: 20;
    position: absolute;
    top: 4vh;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
    padding: 0 1rem;
}

.dc-title {
    font-family: 'Newsreader', serif;
    font-size: 3.5rem;
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 0;
    color: #f4f4f5;
}

.dc-accent {
    color: #985F6F;
}

.dc-subtitle {
    font-size: 1.125rem;
    color: #a1a1aa;
    line-height: 1.6;
    margin-bottom: 1.75rem;
}

/* Main CTA Button */
.dc-btn {
    background-color: #fbfaeb;
    /* Cream background matching image */
    color: #1a1a1a;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    /* Slightly rounded rect, not a full pill */
    border: none;
    cursor: pointer;
    box-shadow: 0px 4px 12px rgba(198, 198, 199, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0px 8px 24px rgba(198, 198, 199, 0.3);
}

/* Curve and Icon Container */
.dc-curve-container {
    position: absolute;
    top: 240px;
    left: 0;
    width: 100%;
    height: 800px;
    pointer-events: none;
    z-index: 5;
    display: flex;
    justify-content: center;
}

.dc-apps-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#dc-icon-layer {
    position: absolute;
    inset: 0;
    z-index: 2;
}

/* Floating Naked App Icons */
.dc-float-icon {
    position: absolute;
    border-radius: 12px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.5);
    object-fit: cover;
    pointer-events: auto;
}

.pulse-soft {
    animation: floatVertical 6s ease-in-out infinite alternate;
}

@keyframes floatVertical {
    0% {
        margin-top: 0px;
    }

    100% {
        margin-top: 15px;
    }
}

/* Authentic Laptop Pro Mockup */
.dc-laptop-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 600px;
    margin: -3rem 0 0 0;
    /* Pull up to optically center between heading and feature cards */
    pointer-events: none;
    /* Removed hover scaling/moving entirely */
    filter: drop-shadow(0px 30px 60px rgba(0, 0, 0, 0.7));
    /* Realistic shadow */
}

/* The Lid (Aluminum back edge visible around the glass) */
.dc-laptop-lid {
    background: #b5b5b7;
    /* Silver border */
    padding: 2px 2px 0 2px;
    border-radius: 20px 20px 0 0;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.9), inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

/* The Glass Front */
.dc-laptop-glass {
    background-color: #000000;
    padding: 10px 10px 18px 10px;
    /* Thicker bottom bezel (chin) */
    border-radius: 18px 18px 0 0;
    position: relative;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.1);
    /* Subtle light reflection */
}

/* The Glowing Screen Area */
.dc-laptop-screen {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    /* Laptop screens have rounded active pixels */
    aspect-ratio: 16 / 10;
    background-color: #111;
}

/* The Central Notch */
.dc-laptop-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 18%;
    /* Accurate Notch proportion */
    height: 4%;
    background-color: #000000;
    border-radius: 0 0 8px 8px;
    z-index: 20;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 -1px 1px rgba(255, 255, 255, 0.05);
    /* very subtle edge lighting */
}

/* The Camera Lens */
.dc-laptop-camera {
    width: 6px;
    height: 6px;
    background: radial-gradient(circle at 60% 40%, #202452 10%, #030409 70%, #000 100%);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.dc-laptop-wallpaper {
    width: 100%;
    height: 100%;
    object-fit: fill;
    /* Forces the entire screenshot into the frame so the menubar and dock aren't cropped */
}

/* The Bottom Base Architecture */
.dc-laptop-bottom {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* The black hinge gap */
.dc-laptop-hinge {
    width: 98%;
    /* Slightly narrower than the screen lid */
    height: 3px;
    background: #000000;
}

/* The Main Aluminum Chassis Deck */
.dc-laptop-chassis {
    width: 106%;
    /* Base extends noticeably past the screen lid */
    height: 16px;
    /* Blocky M-series thickness */
    background: linear-gradient(to bottom, #f0f0f0 0%, #b5b5b7 5%, #909090 95%, #333333 100%);
    border-radius: 4px 4px 14px 14px;
    /* Sharp top edge, softer bottom corners */
    position: relative;
    display: flex;
    justify-content: center;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 1), 0 8px 30px rgba(0, 0, 0, 0.6);
}

/* The thumb groove to open the laptop */
.dc-laptop-groove {
    width: 14%;
    height: 5px;
    background: #666;
    border-radius: 0 0 5px 5px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.8), inset 0 0 1px rgba(0, 0, 0, 0.9);
}

/* Svara Dictation Audio Pill */
.laptop-audio-pill {
    position: absolute;
    bottom: 12%;
    /* Just above the macOS dock */
    left: 50%;
    background-color: rgba(254, 252, 248, 0.95);
    backdrop-filter: blur(8px);
    border: 1.5px solid rgba(17, 17, 17, 0.8);
    border-radius: 9999px;
    padding: 0.2rem 0.5rem;
    /* Noticeably smaller */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 50;

    /* Initially hidden */
    opacity: 0;
    transform: translate(-50%, 15px) scale(0);

    /* Motion Graphics Animation: Blistering fast loop */
    animation: laptopMotionPill 3.5s infinite;
}

/* Premium Motion Graphics Spring Animation */
@keyframes laptopMotionPill {
    0% {
        transform: translate(-50%, 15px) scale(0.3);
        opacity: 0;
        animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
        /* Aggressive overshoot */
    }

    12% {
        transform: translate(-50%, 0) scale(1);
        opacity: 1;
        animation-timing-function: linear;
    }

    82% {
        transform: translate(-50%, 0) scale(1);
        opacity: 1;
        animation-timing-function: cubic-bezier(0.6, -0.28, 0.735, 0.045);
        /* Sharp pull back */
    }

    92%,
    100% {
        transform: translate(-50%, 10px) scale(0.3);
        opacity: 0;
    }
}

.mb-waveform {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 14px;
    /* Slightly taller for more aggressive bounds */
}

.mb-waveform .mb-bar {
    width: 2px;
    /* Solid integer to fix sub-pixel rendering bugs */
    background-color: #111;
    border-radius: 9999px;
    transition: all 0.2s ease;
    animation: mbFrequencyPulse 0.5s ease-in-out infinite alternate;
}

/* Hyper-fast flutter staggered dictation waveform frequencies */
.mb-waveform .mb-bar:nth-child(1) {
    animation-delay: 0.0s;
    animation-duration: 0.45s;
}

.mb-waveform .mb-bar:nth-child(2) {
    animation-delay: 0.1s;
    animation-duration: 0.35s;
}

.mb-waveform .mb-bar:nth-child(3) {
    animation-delay: 0.2s;
    animation-duration: 0.55s;
}

.mb-waveform .mb-bar:nth-child(4) {
    animation-delay: 0.3s;
    animation-duration: 0.40s;
}

.mb-waveform .mb-bar:nth-child(5) {
    animation-delay: 0.05s;
    animation-duration: 0.60s;
}

.mb-waveform .mb-bar:nth-child(6) {
    animation-delay: 0.15s;
    animation-duration: 0.35s;
}

.mb-waveform .mb-bar:nth-child(7) {
    animation-delay: 0.25s;
    animation-duration: 0.50s;
}

@keyframes mbFrequencyPulse {
    0% {
        height: 2px;
    }

    50% {
        height: 8px;
    }

    100% {
        height: 14px;
    }
}

/* Infinite Background App Marquee */
.app-marquee-container {
    position: absolute;
    top: 45%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    /* Centered vertically strictly behind the Laptop */
    overflow: hidden;
    z-index: 5;
    /* Precisely mathematically behind the z-index:10 Laptop */
    pointer-events: none;
    /* Premium optical fade to black on the left and right edges */
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.app-marquee-track {
    display: flex;
    width: max-content;
    /* Adjusted from 30s to 42s to preserve perfect tracking speed over vastly expanded track dimensions */
    animation: marqueeScrollLeftToRight 42s linear infinite;
}

.marquee-group {
    display: flex;
    align-items: center;
    gap: 4.5rem;
    padding-right: 4.5rem;
    /* Matches gap to ensure a mathematically perfect loop gap */
    flex-shrink: 0;
}

.app-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 10px;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.08));
    opacity: 0.88;
    transition: transform 0.3s ease, opacity 0.3s ease, filter 0.3s ease;
}

.app-logo:hover {
    transform: scale(1.18);
    opacity: 1;
    filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.2));
}

/* Moving left -> right means starting at -50% and sliding to 0% */
@keyframes marqueeScrollLeftToRight {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0%);
    }
}

/* ===== Feature Cards ===== */
.dc-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
    max-width: 700px;
    padding: 0 2rem;
    position: absolute;
    bottom: 4vh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    text-align: center;
}

.dc-feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.dc-feature-icon {
    font-size: 1.25rem;
    margin-bottom: 0.2rem;
    line-height: 1;
}

.dc-feature-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #f0f0f0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.dc-badge {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #0a0a0a;
    background: #4ade80;
    padding: 2px 8px;
    border-radius: 9999px;
}

.dc-feature-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.45;
    margin: 0;
    max-width: 200px;
}

.dc-kbd {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    padding: 3px 8px;
    letter-spacing: 0.03em;
}

/* ===================================
   SECTION 3: REFINE
   =================================== */
.refine-section {
    padding: 10rem 4rem 8rem 4rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center; /* Horizontally centers the grid container */
    justify-content: flex-start; /* Anchors to the top so expanding accordions don't re-center the page */
    position: relative;
    background: var(--bg-color);
}

.refine-container {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 7rem;
    max-width: 1250px;
    width: 100%;
    align-items: flex-start;
}

/* Left Column: Visual Mockup */
.refine-left {
    position: relative;
}

.refine-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Adjusted padding to act as a perfectly proportioned UI panel */
    padding: 3.5rem 2.5rem;
    /* Perfect aspect ratio for the screen panel, slightly wider to fit the chatbox elegantly */
    aspect-ratio: 4 / 3.3;
    height: auto;
    
    /* Cloud Background Container Styling */
    background-image: url('assets/clouds-bg.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 32px; /* Smoother, bubblier corners for the resin effect */
    
    /* Deep 3D suspension shadows */
    border: none;
    box-shadow: 
        0 32px 64px -12px rgba(0, 0, 0, 0.3),
        0 16px 32px -8px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(0, 0, 0, 0.05); /* Clean, subtle outer boundary */
    overflow: hidden;
}

/* Resin / Liquid Glass Encapsulation Layer */
.refine-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none; /* Clicks must pass through to the AI box */
    z-index: 20; /* Overlays the background AND the AI box */
    
    /* Crystal clear specular reflections */
    background: 
        /* Sharp, polished diagonal light sweep */
        linear-gradient(105deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.05) 15%, transparent 35%),
        /* Very subtle bright reflection at the bottom lip */
        linear-gradient(to top, rgba(255, 255, 255, 0.15) 0%, transparent 10%);
        
    /* Refined, crisp edge refraction for a premium physical bezel */
    box-shadow: 
        /* Ultra-crisp inner top/left bright rim */
        inset 1px 2px 3px rgba(255, 255, 255, 0.7),
        /* Soft, transparent inner top volume */
        inset 0 12px 24px rgba(255, 255, 255, 0.15),
        /* Deep, sharp inner bottom/right shadow for physical depth */
        inset -1px -2px 4px rgba(0, 0, 0, 0.4),
        /* Soft inner bottom volume */
        inset 0 -12px 24px rgba(0, 0, 0, 0.15);
}

/* Dictation Lines */
.refine-dictation-lines {
    position: relative;
    /* Perfectly align left/right boundaries with the AI chatbox (10%) */
    margin: 0 10%;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    overflow: visible;
}

.dictation-line-wrapper {
    position: relative;
    padding: 4px 0;
    /* Each line gets a fixed height slot */
    min-height: 60px;
}

.dictation-line {
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    font-weight: 500; /* Increased boldness for visibility */
    color: #0a0a0a; /* Darkened for maximum contrast against clouds */
    line-height: 1.8;
    margin: 0;
    /* Subtle white glow behind text to ensure it separates from the photo background */
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
}

/* ── Typed word spans ── */
.typed-word {
    opacity: 0;
    transform: translateY(2px);
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

.typed-word.visible {
    opacity: 1;
    transform: translateY(0);
}

.annotation-badge {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    /* Skeuomorphic Glass (Adapted for complex Photo Background) */
    /* Gives a subtle white sheen without turning opaque */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 40%, rgba(255, 255, 255, 0.2) 100%);
    
    /* Essential blur to separate the text from the complex clouds behind it */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    
    /* Dark text for perfect readability on the bright sky/clouds (just like the 'fn' key) */
    color: #1a1a1a;
    font-family: 'Inter', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 5px 14px;
    box-sizing: border-box;
    
    /* No solid border, relying entirely on specular shadows */
    border: none;
    border-radius: 9999px;
    white-space: nowrap;
    
    /* Pixel-perfect physical light rendering (like the 'fn' key) */
    box-shadow: 
        /* Soft drop shadow */
        0 4px 12px rgba(0, 0, 0, 0.08),
        /* Hard white rim light on the top/left edge */
        inset 1px 1px 0 rgba(255, 255, 255, 0.9),
        /* Soft volumetric white glow dispersing from the top/left */
        inset 3px 3px 8px rgba(255, 255, 255, 0.7),
        /* Hard dark rim on the bottom/right edge */
        inset -1px -1px 0 rgba(0, 0, 0, 0.1),
        /* Soft inner shadow on the bottom-right to create physical mass */
        inset -3px -3px 8px rgba(0, 0, 0, 0.05);
    pointer-events: none;
    z-index: 30;
    /* Smooth spring pop-in */
    animation: badgePopIn 0.6s cubic-bezier(0.22, 1.2, 0.36, 1) forwards;
}

@keyframes badgePopIn {
    0% {
        opacity: 0;
        transform: translateX(-50%) scale(0.3) translateY(10px);
    }

    40% {
        opacity: 1;
        transform: translateX(-50%) scale(1.08) translateY(-3px);
    }

    70% {
        transform: translateX(-50%) scale(0.97) translateY(1px);
    }

    100% {
        opacity: 1;
        transform: translateX(-50%) scale(1) translateY(0);
    }
}

/* ── Animated circle annotation ── */
.circle-anim {
    position: relative;
    border: 2px solid transparent;
    border-radius: 72% 38% 58% 48% / 48% 62% 42% 58%;
    padding: 1px 5px;
    transition: border-color 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: inline;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.circle-anim.active {
    /* White annotations for maximum contrast against clouds */
    border-color: #ffffff;
    box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

/* Wide circle for multi-word phrases */
.circle-anim.circle-wide {
    border-radius: 55% 48% 52% 45% / 60% 46% 58% 50%;
    padding: 1px 7px;
}

/* Small circle for single char (period, ?) */
.circle-anim.circle-small {
    border-radius: 50%;
    padding: 0 4px;
}

/* ── Animated strikethrough ── */
.strike-anim {
    position: relative;
    display: inline;
}

.strike-anim::after {
    content: '';
    position: absolute;
    left: 0;
    top: 52%;
    height: 2.5px;
    /* White strikethrough */
    background: #ffffff;
    box-shadow: 0 0 4px rgba(0,0,0,0.1);
    border-radius: 2px;
    transform: rotate(-0.5deg);
    z-index: 10;
    width: 0;
    transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.strike-anim.active::after {
    width: calc(100% + 4px);
    left: -2px;
}

/* AI Response Card */
.refine-svara-ai-card {
    position: relative;
    z-index: 4;
    /* Premium Glassmorphism for the AI box */
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    margin: 0 10%;
    /* Shift up and scale down further for perfect geometric alignment */
    transform: scale(0.78) translateY(-50px);
    transform-origin: center center;
    margin-bottom: -20px;
    /* Extremely premium floating shadow */
    box-shadow: 
        0 32px 80px rgba(0, 0, 0, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.4);
    overflow: visible;
}

.svara-ai-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.4rem 0.5rem;
    /* Glass header */
    background: rgba(255, 255, 255, 0.4);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 19px 19px 0 0;
}

.svara-ai-icon {
    font-size: 1rem;
    opacity: 0.6;
}

.svara-ai-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: #1a1a1a;
}

.svara-ai-body {
    padding: 1rem 1.4rem;
    min-height: 195px;
    /* Prevents box from resizing while typing */
    display: flex;
    flex-direction: column;
}

.svara-ai-question {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    /* Smaller proportional text */
    color: #222;
    margin: 0 0 0.8rem 0;
    line-height: 1.6;
}

.svara-ai-list {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    /* Smaller proportional text */
    color: #222;
    margin: 0 0 0.8rem 1.2rem;
    padding: 0;
    line-height: 1.7;
    list-style-type: disc;
}

.svara-ai-note {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    /* Smaller proportional text */
    color: #222;
    margin: 0;
    line-height: 1.6;
}

.svara-ai-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1.4rem;
}

.svara-ai-actions,
.svara-ai-mic-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.svara-ai-action-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    opacity: 0.85;
}

.svara-ai-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #111111;
    color: #ffffff;
    border-radius: 50%;
}

.svara-ai-pill {
    width: 60px;
    height: 6px;
    background: #e0e0e0;
    border-radius: 9999px;
}

/* macOS Dock */
.mac-dock-container {
    position: absolute;
    bottom: 14px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 10;
}

.mac-dock {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border-radius: 9999px; /* Perfect pill shape with semicircular ends */
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.12),
        inset 0 0.5px 0 rgba(255, 255, 255, 0.5);
}

.dock-app-icon {
    width: 44px;
    height: 44px;
    border-radius: 22.5%; /* Perfect Apple Squircle ratio */
    background: #ffffff; /* Uniform white background */
    padding: 7px; /* Perfect padding so the logo sits inside the squircle */
    box-sizing: border-box; /* Ensure padding doesn't increase overall size */
    object-fit: contain; /* Prevent logo stretching */
    transition: transform 0.25s cubic-bezier(0.2, 0, 0, 1);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dock-app-icon:hover {
    transform: scale(1.15) translateY(-6px);
}

/* Floating Audio Pill above Dock */
.refine-dock-pill-wrapper {
    position: absolute;
    bottom: 85px; /* Shifted up above larger dock */
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 10;
}

.refine-dock-pill {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
}

/* Right Column: Text Content */
.refine-right {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 2.5rem;
    min-height: 640px; /* Pre-allocates height so opening an accordion doesn't expand the page */
    /* Removed padding-top so the text centers perfectly with the overall left box */
}

.refine-pill {
    display: inline-flex;
    align-self: flex-start;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: #1a1a1a;
    border: 1.5px solid #1a1a1a;
    border-radius: 9999px;
    padding: 4px 16px;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

.refine-heading {
    font-family: 'Newsreader', serif;
    font-size: 3.5rem;
    /* Larger, premium editorial size */
    font-weight: 400;
    /* Fuller weight to not look spindly */
    letter-spacing: -0.04em;
    color: #1a1a1a;
    line-height: 1.1;
    margin: 0 0 1.2rem 0;
}

.refine-highlight {
    color: #985F6F;
}

.refine-description {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    /* Slightly larger base size */
    font-weight: 400;
    color: #555c65;
    line-height: 1.6;
    margin: 0 0 3.5rem 0;
    /* More breathing room before accordion */
    max-width: 460px;
}

/* Accordion */
.refine-accordion {
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.refine-accordion-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.refine-accordion-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.1rem 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Newsreader', serif;
    font-size: 1.5rem;
    /* A little bigger */
    font-weight: 400;
    /* 400 has better contrast for buttons than 300 */
    letter-spacing: -0.02em;
    color: #1a1a1a;
    text-align: left;
    transition: color 0.2s ease;
}

.refine-accordion-btn:hover {
    color: #666;
}

.refine-chevron {
    font-size: 1.4rem;
    color: #999;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: rotate(90deg);
}

.refine-accordion-btn.active .refine-chevron {
    transform: rotate(-90deg);
    /* Points up when expanded */
}

.refine-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.refine-accordion-content p {
    font-family: 'Inter', sans-serif;
    font-size: 0.98rem;
    font-weight: 400;
    color: #444;
    line-height: 1.6;
    margin: 0;
    padding-bottom: 1.5rem;
    padding-right: 1rem;
}

.refine-accordion-content.active {
    max-height: 180px;
    /* Enough space for the text */
    opacity: 1;
}

/* AI Logo */
.svara-ai-logo-icon {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    object-fit: contain;
}

/* Animated Audio Pill in AI Card */
.refine-audio-pill {
    background: #151515;
    /* Dark pill */
    border: 2px solid #e7e5dc;
    /* Light rim */
    border-radius: 9999px;
    padding: 8px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    bottom: -18px;
    /* Protrudes outside the card */
    left: 50%;
    transform: translateX(-50%) scale(0);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    z-index: 10;
}

.refine-audio-pill.active {
    transform: translateX(-50%) scale(1);
    opacity: 1;
}

.refine-waveform {
    display: flex;
    align-items: center;
    gap: 2.5px;
    height: 18px;
}

.rw-bar {
    width: 2.5px;
    background-color: #ffffff;
    border-radius: 9999px;
    animation: rwPulse 0.5s ease-in-out infinite alternate;
}

.rw-bar:nth-child(1) {
    animation-delay: 0.00s;
    animation-duration: 0.45s;
}

.rw-bar:nth-child(2) {
    animation-delay: 0.08s;
    animation-duration: 0.35s;
}

.rw-bar:nth-child(3) {
    animation-delay: 0.16s;
    animation-duration: 0.55s;
}

.rw-bar:nth-child(4) {
    animation-delay: 0.04s;
    animation-duration: 0.40s;
}

.rw-bar:nth-child(5) {
    animation-delay: 0.20s;
    animation-duration: 0.60s;
}

.rw-bar:nth-child(6) {
    animation-delay: 0.12s;
    animation-duration: 0.38s;
}

.rw-bar:nth-child(7) {
    animation-delay: 0.06s;
    animation-duration: 0.52s;
}

.rw-bar:nth-child(8) {
    animation-delay: 0.18s;
    animation-duration: 0.42s;
}

.rw-bar:nth-child(9) {
    animation-delay: 0.02s;
    animation-duration: 0.48s;
}

.rw-bar:nth-child(10) {
    animation-delay: 0.14s;
    animation-duration: 0.36s;
}

.rw-bar:nth-child(11) {
    animation-delay: 0.10s;
    animation-duration: 0.50s;
}

@keyframes rwPulse {
    0% {
        height: 3px;
    }

    50% {
        height: 12px;
    }

    100% {
        height: 18px;
    }
}

/* Pulsing active mic icon */
.pulse-icon {
    animation: micPulse 1.5s ease-in-out infinite;
}

@keyframes micPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

/* Typewriter */
.typewriter-container {
    min-height: 120px;
}

.typewriter-text {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.typewriter-list li {
    opacity: 0;
    transition: opacity 0.2s ease;
}


/* ==========================================================================
   Section 4: Features Tabs 
   ========================================================================== */
.features-tabs-section {
    position: relative;
    padding: 5rem 0 6rem 0; /* Perfectly balances the visual weight: the top tabs have 1rem internal padding, so 5rem top + 1rem tab padding = 6rem total visual gap on top, matching the 6rem bottom gap below the laptop. */
    background: #000000;
    border-radius: 50px;
    overflow: hidden;
    
    /* Deep 3D suspension shadows */
    box-shadow: 
        0 32px 64px -12px rgba(0, 0, 0, 0.3),
        0 16px 32px -8px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(0, 0, 0, 0.05); /* Clean, subtle outer boundary */
}

/* Resin / Liquid Glass Encapsulation Layer */
.features-tabs-section::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none; /* Clicks must pass through */
    z-index: 20; 
    
    /* Crystal clear specular reflections */
    background: 
        /* Sharp, polished diagonal light sweep */
        linear-gradient(105deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.02) 15%, transparent 35%),
        /* Very subtle bright reflection at the bottom lip */
        linear-gradient(to top, rgba(255, 255, 255, 0.05) 0%, transparent 10%);
        
    /* Refined, crisp edge refraction for a premium physical bezel */
    box-shadow: 
        /* Ultra-crisp inner top/left bright rim */
        inset 1px 2px 3px rgba(255, 255, 255, 0.3),
        /* Soft, transparent inner top volume */
        inset 0 12px 24px rgba(255, 255, 255, 0.05),
        /* Deep, sharp inner bottom/right shadow for physical depth */
        inset -1px -2px 4px rgba(0, 0, 0, 0.4),
        /* Soft inner bottom volume */
        inset 0 -12px 24px rgba(0, 0, 0, 0.15);
}

.ft-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4rem; /* Safe padding for inner content */
}

/* Nav */
.ft-nav {
    display: flex;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 2.5rem; /* Reduced from 4rem to tighten the vertical space */
}

.ft-tab {
    background: none;
    border: none;
    font-family: 'Newsreader', serif;
    font-size: 1.5rem;
    color: #f4f4f5; /* Inverted to white */
    padding: 1rem 2rem; /* Made padding symmetrical to truly center the text */
    cursor: pointer;
    font-weight: 400;
    opacity: 0.4;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.ft-tab.active {
    opacity: 1;
}

.ft-indicator {
    position: absolute;
    bottom: -1px;
    left: 0;
    height: 2px;
    width: 60px;
    /* Will be updated via JS */
    background-color: #f4f4f5; /* Inverted to white */
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Panes container */
.ft-panes {
    position: relative;
    /* Removed min-height to ensure bottom padding shrink-wraps symmetrically against the top */
}

.ft-pane {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem; /* Tighter gap between text and laptop to reduce dead vertical space */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.ft-pane.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    position: relative;
}

.ft-left {
    flex: 0 0 auto; /* Stop taking 35% fixed width */
    max-width: 800px;
    text-align: center; /* Center the typography perfectly */
}

.ft-title {
    font-family: 'Newsreader', serif;
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: -0.04em; /* Match 1st section heading tracking */
    line-height: 1.1; /* Match 1st section heading height */
    color: #985F6F; /* Match the dusty rose highlight color from previous sections */
    margin-bottom: 1.5rem;
}

.ft-desc {
    font-family: 'Inter', sans-serif;
    font-size: 1.35rem; /* Match 1st section subheading size */
    line-height: 1.5;
    color: #a1a1aa; /* Ash grey matching dc-subtitle */
    font-weight: 400; /* Match 1st section subheading weight */
}

.ft-right {
    flex: 1;
    width: 100%; /* Stretch completely to center the inner laptop evenly */
    position: relative;
    height: 480px;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    /* fallback */
}

/* Laptop variant — no dark bg, no rounded corners, transparent */
.ft-right-laptop {
    background: transparent;
    border-radius: 0;
    overflow: visible;
    height: auto;
}

.ft-laptop-wrapper {
    width: 100%;
    max-width: 820px;
    margin: 0 auto; /* Force perfect geometric alignment inside the flex container */
    position: relative;
    z-index: 2;
}

/* WhatsApp overlay positioned perfectly inside the Laptop screen */
.ft-wa-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    width: 92%;
    height: 86%;
    /* Mathematically calculated aspect ratio framing */
}

/* Audio pill at bottom of Laptop screen — identical to Section 2 pill */
.ft-laptop-pill {
    position: absolute;
    bottom: 6%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 25;
}

.ft-laptop-pill .refine-audio-pill {
    position: relative;
    bottom: auto;
    left: auto;
    transform: scale(0);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

.ft-laptop-pill .refine-audio-pill.active {
    transform: scale(1);
    opacity: 1;
}

/* Lower position for Snippets pane (Gmail card is taller) */
.ft-laptop-pill-low {
    bottom: 3%;
}

/* ── PREMIUM SLACK COMPOSER OVERLAY ── */
.ft-slack-overlay {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 65%;
    z-index: 20;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slack-composer-premium {
    width: 100%;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(29, 28, 29, 0.2);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow: visible;
}

.sc-target {
    padding: 12px 16px 8px;
}
.sc-target-text {
    font-size: 14px;
    color: #1d1c1d;
    opacity: 0.6;
}
.sc-bold { font-weight: 700; opacity: 1; color: #1d1c1d;}

.sc-input-area {
    padding: 10px 16px 20px;
    min-height: 80px;
    position: relative;
    display: flex;
    align-items: flex-start;
}
.sc-text {
    font-size: 15px;
    color: #1d1c1d;
    margin: 0;
    line-height: 1.5;
    outline: none;
}

.sc-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    background: #f8f8f8;
    border-top: 1px solid rgba(29, 28, 29, 0.1);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.sc-footer-left, .sc-footer-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

.sc-action {
    width: 30px; height: 30px;
    display: flex; justify-content: center; align-items: center;
    border-radius: 4px;
    color: #616061;
}
.sc-action .material-symbols-outlined {
    font-size: 18px;
}
.sc-btn-plus {
    background: rgba(29, 28, 29, 0.05);
    border-radius: 50%;
    width: 26px; height: 26px;
    margin-right: 8px;
    margin-left: 4px;
}
.sc-btn-plus .material-symbols-outlined { font-size: 18px; }

.sc-send-btn {
    width: 32px; height: 32px;
    border-radius: 4px;
    background: #007a5a;
    display: flex; justify-content: center; align-items: center;
    color: #fff;
    margin-left: 8px;
}
.sc-send-btn .material-symbols-outlined { font-size: 15px; margin-left: 2px;}

    .sc-send-btn .material-symbols-outlined {
        font-size: 15px;
        margin-left: 2px;
    }


    /* Dictionary Streamed Word Styles */
    .dict-word {
        display: inline;
        opacity: 0;
        transition: opacity 0.15s ease;
    }

    .dict-word.visible {
        opacity: 1;
    }

    /* Blurred background for Snippets/Styles panes */
    .ft-mockup-bg {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, #182835 0%, #30171a 50%, #58311a 100%);
        filter: blur(15px);
        transform: scale(1.1);
        z-index: 1;
        opacity: 0.9;
    }

    /* Base Card Style (Snippets/Styles) */
    .mockup-card {
        position: relative;
        z-index: 2;
        background: #ffffff;
        border-radius: 16px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
        width: 80%;
        max-width: 550px;
        font-family: 'Inter', sans-serif;
    }

    .dict-word-wrong {
        display: inline;
        position: relative;
        color: #1d1c1d;
    }

    .dict-word-wrong .dict-strike-line {
        position: absolute;
        top: 50%;
        left: -2px;
        width: 0;
        height: 2px;
        background: #985F6F; /* Highlight color for strike-through */
        transition: width 0.3s ease;
    }

    .dict-word-wrong.struck .dict-strike-line {
        width: calc(100% + 4px);
    }

    .dict-word-wrong.struck {
        opacity: 0.5;
    }

    .dict-word-correct {
        display: inline;
        position: relative;
        font-weight: 500;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .dict-word-correct.visible {
        opacity: 1;
    }

    /* Circle around corrected name */
    .dict-circle-wrap {
        position: relative;
        display: inline-block;
    }

    .dict-circle-wrap .dict-circle {
        position: absolute;
        top: -5px;
        left: -10px;
        right: -10px;
        bottom: -5px;
        border: 2px solid #985F6F; /* Highlight color for circle */
        border-radius: 60% 40% 50% 50%;
        opacity: 0;
        transform: scale(1.15) rotate(2deg);
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .dict-circle-wrap .dict-circle.active {
        opacity: 1;
        transform: scale(1) rotate(-1deg);
    }

    /* Badge for 'Added name' */
    .dict-circle-wrap .dict-badge {
        position: absolute;
        top: 50%; /* Center vertically with the word */
        left: calc(100% + 12px); /* Position it to the right of the word/circle */
        transform: translate(-10px, -50%) scale(0.9);
        background: #DCA1A1; /* Same color as subheadings */
        color: #111111;
        font-family: 'Inter', sans-serif;
        font-size: 0.65rem;
        font-weight: 600;
        letter-spacing: 0.02em;
        padding: 4px 12px;
        box-sizing: border-box;
        border-radius: 9999px;
        white-space: nowrap;
        opacity: 0;
        transition: all 0.4s cubic-bezier(0.22, 1.2, 0.36, 1);
        box-shadow: 0 3px 12px rgba(220, 161, 161, 0.35);
        z-index: 100;
    }

    .dict-circle-wrap .dict-badge.active {
        opacity: 1;
        transform: translate(0, -50%) scale(1);
    }

    /* ── GMAIL CARD ── */
    .gmail-card {
        width: 100%;
        font-size: 0.95rem;
        border-radius: 12px;
        overflow: visible;
        box-shadow: 0 20px 50px rgba(0,0,0,0.25), 0 0 0 1px rgba(255,255,255,0.08);
    }

    .gmail-header {
        background: #f6f6f6;
        padding: 14px 18px;
        border-radius: 12px 12px 0 0;
        display: flex;
        align-items: center;
        gap: 10px;
        border-bottom: 1px solid #eee;
    }

    .gmail-logo-img {
        width: 16px;
    }

    .gmail-title {
        font-weight: 500;
        color: #202124;
    }

    .gmail-to-row,
    .gmail-subject-row {
        padding: 12px 16px;
        border-bottom: 1px solid #f1f3f4;
        display: flex;
        align-items: center;
    }

    .gmail-label {
        color: #5f6368;
        margin-right: 12px;
    }

    .gmail-avatar {
        width: 22px;
        height: 22px;
        border-radius: 50%;
        overflow: hidden;
        margin-right: 8px;
    }

    .gmail-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .gmail-recipient {
        font-weight: 500;
        color: #202124;
    }

    .gmail-subject-text {
        font-weight: 500;
        color: #202124;
    }

    .gmail-body {
        padding: 16px 16px 24px;
        color: #202124;
        min-height: 100px;
        text-align: left;
    }

    .snippet-target-p {
        margin-top: 10px;
    }

    .snippet-link {
        color: #1a73e8;
        position: relative;
        display: inline-block;
    }

    .snippet-underline {
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 0%;
        height: 2px;
        border-bottom: 2px dashed #e06c75; /* Matched dictionary scratch color */
        transition: width 0.4s ease;
    }

    .snippet-underline.active {
        width: 100%;
    }

    .snippet-badge {
        position: absolute;
        top: 110%;
        right: -30px;
        background: #e06c75;
        color: #ffffff;
        font-family: 'Inter', sans-serif;
        font-size: 0.6rem;
        font-weight: 700;
        letter-spacing: 0.02em;
        padding: 4px 12px;
        box-sizing: border-box;
        border: 1.5px solid #1a1a1a;
        border-radius: 9999px;
        white-space: nowrap;
        transform: rotate(-3deg) translateY(-10px) scale(0.9);
        box-shadow: 0 3px 12px rgba(224, 108, 117, 0.4);
        opacity: 0;
        transition: all 0.4s cubic-bezier(0.22, 1.2, 0.36, 1);
        z-index: 100;
    }

    .snippet-badge.active {
        opacity: 1;
        transform: rotate(-3deg) translateY(0) scale(1);
    }

    .gmail-footer {
        padding: 12px 18px;
        display: flex;
        align-items: center;
        gap: 12px;
        border-top: 1px solid #f1f3f4;
        background: #fafafa;
        border-radius: 0 0 12px 12px;
    }

    .gmail-send-btn {
        background: #e8e8e8;
        color: #202124;
        padding: 6px 12px;
        border-radius: 16px;
        display: flex;
        align-items: center;
        font-weight: 500;
        gap: 2px;
    }

    .g-icon-s {
        font-size: 1.2rem;
    }

    .gmail-icon {
        color: #5f6368;
        font-size: 1.1rem;
    }

    /* Pill Absolute Position Overlays */
    .floating-pill-wrapper {
        position: absolute;
        bottom: -20px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 10;
    }

    .snippet-pill {
        bottom: -20px;
    }

    .styles-pill {
        bottom: 20px;
    }

    /* Styles has a different container */

    /* Tone pane overlay to center elements */
    .tone-stack-wrapper {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 20;
    }

    /* ── TONE 3D STACK ── */
    .styles-stack {
        position: relative;
        z-index: 2;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        /* Add organic floating to the entire stack */
        animation: organicFloat 6s ease-in-out infinite;
    }

    @keyframes organicFloat {
        0% { transform: translateY(0px); }
        50% { transform: translateY(-6px); }
        100% { transform: translateY(0px); }
    }

    .style-card {
        position: absolute;
        width: 310px; 
        height: 240px; /* Increased height so text is no longer cut off */
        display: flex;
        flex-direction: column;
        background: #ffffff;
        border: 1px solid rgba(0, 0, 0, 0.08);
        border-radius: 16px; 
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06), 0 20px 40px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        /* Replaced bouncy transition with an ultra-smooth cinematic spring */
        transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
                    opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
                    box-shadow 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
                    filter 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
                    z-index 0s step-end;
        font-family: 'Inter', sans-serif;
    }

    /* Add moving reflection to the front card */
    .style-card::after {
        content: '';
        position: absolute;
        top: 0; left: -150%;
        width: 50%; height: 100%;
        background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
        transform: skewX(-25deg);
        transition: none;
        z-index: 100;
        pointer-events: none;
        opacity: 0;
    }

    .style-card.pos-1::after {
        animation: premiumShine 2.5s ease-in-out infinite;
    }

    @keyframes premiumShine {
        0% { left: -150%; opacity: 0; }
        20% { opacity: 1; }
        80% { left: 200%; opacity: 0; }
        100% { left: 200%; opacity: 0; }
    }

    .style-card-header {
        padding: 16px;
        text-align: center;
        color: white;
        font-weight: 600;
        font-size: 1.15rem; 
        letter-spacing: -0.01em;
        flex-shrink: 0; /* Guarantee header is never squished */
    }

    .bg-executive {
        background: #1E293B; /* Crisp Slate Dark */
    }

    /* Friendly */
    .bg-friendly {
        background: #D1FAE5; /* Fresh Mint Green */
        color: #111;
    }

    /* Enthusiastic */
    .bg-enthusiastic {
        background: #F43F5E; /* Vibrant Rose/Coral */
        color: white;
    }

    /* Excited */

    .style-card-body {
        padding: 16px 20px; /* Tightened padding to give text maximum room */
        color: #111;
        font-size: 0.90rem; 
        line-height: 1.45;
        flex: 1;
        text-align: left;
        overflow: hidden; /* Prevents text from pushing the footer bounds out */
    }

    .highlight-blue {
        color: #0066FF;
        font-weight: 600;
        font-size: 1.1em;
    }

    .style-card-footer {
        padding: 12px 20px;
        display: flex;
        justify-content: flex-end;
        align-items: center; /* keep logo perfectly vertically aligned */
        background: #f1f2f4; 
        border-top: none;
        flex-shrink: 0; /* Guarantee footer is NEVER squished or clipped */
    }

    .style-card-footer.casual-footer {
        background: #f1f2f4;
        border: none;
    }

    .app-icon {
        width: 24px;
        height: 24px;
        object-fit: contain;
        display: block;
    }

    .wa-icon-box {
        background: #25D366;
        border-radius: 6px;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .wa-icon {
        width: 15px;
        height: 15px;
        filter: brightness(0) invert(1);
        display: block;
    }

    /* Positional classes for JS rotation */
    /* pos-1 is Front Center */
    .pos-1 {
        transform: scale(1) translateY(-10px);
        z-index: 30;
        opacity: 1;
        /* Very distinct border on the top card to match image */
        border: 1.5px solid #1a1a1a; 
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
    }

    /* pos-2 is Left background */
    .pos-2 {
        transform: scale(0.9) translateX(-45%) translateY(-15px) rotate(-3deg);
        z-index: 10;
        opacity: 0.95;
    }

    /* pos-3 is Right background */
    .pos-3 {
        transform: scale(0.9) translateX(45%) translateY(10px) rotate(3deg);
        z-index: 10;
        opacity: 0.95;
    }

/* Context Awareness Glass Layer */
.context-glass-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px; /* Internal laptop radius */
    overflow: hidden;
    z-index: 15; /* Crucial: MUST be higher than wallpaper */
    backdrop-filter: blur(2px); /* Much lower blur for crystal clarity */
    -webkit-backdrop-filter: blur(2px); /* Safari support */
    background: rgba(255, 255, 255, 0.02); /* Extremely subtle frosted tint */
    pointer-events: none;
}

.context-glass-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    border: 1px solid rgba(0, 150, 255, 0.4); /* Crisp thin edge */
    /* Crisper, thinner bluish glow tightly hugging the boundary */
    box-shadow: inset 0 0 25px rgba(0, 150, 255, 0.5), inset 0 0 8px rgba(0, 200, 255, 0.8);
    pointer-events: none;
    animation: contextGatheringPulse 4s infinite alternate ease-in-out;
}

@keyframes contextGatheringPulse {
    0% {
        box-shadow: inset 0 0 10px rgba(0, 150, 255, 0.2), inset 0 0 2px rgba(0, 200, 255, 0.3);
        border-color: rgba(0, 150, 255, 0.1);
    }
    100% {
        box-shadow: inset 0 0 30px rgba(0, 150, 255, 0.6), inset 0 0 10px rgba(0, 200, 255, 0.9);
        border-color: rgba(0, 150, 255, 0.5);
    }
}

.context-glass-liquid {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    /* Super soft, subtle liquid gradients so wallpaper remains extremely clear */
    background: radial-gradient(circle at 40% 50%, rgba(0, 150, 255, 0.12) 0%, transparent 35%),
                radial-gradient(circle at 60% 30%, rgba(0, 220, 255, 0.1) 0%, transparent 35%);
    animation: liquidFlow 12s infinite linear;
    filter: blur(20px);
}

@keyframes liquidFlow {
    0% {
        transform: rotate(0deg) scale(1) translate(-2%, -2%);
    }
    50% {
        transform: rotate(180deg) scale(1.15) translate(4%, 4%);
    }
    100% {
        transform: rotate(360deg) scale(1) translate(-2%, -2%);
    }
}

/* ── REALISTIC VS CODE EDITOR UI ── */
.vscode-editor {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    font-family: 'Segoe UI', 'SF Pro Text', -apple-system, sans-serif;
    font-size: 9px;
    color: #cccccc;
    background: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
    z-index: 10;
    /* Clear the Laptop notch */
    padding-top: 22px;
    box-sizing: border-box;
}

/* Activity Bar — far left icon strip */
.vsc-activity-bar {
    width: 32px;
    min-width: 32px;
    background: #333333;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 6px;
    gap: 10px;
    border-right: 1px solid #252526;
}

.vsc-activity-icon {
    width: 26px; height: 26px;
    display: flex; align-items: center; justify-content: center;
    color: #858585;
    border-radius: 4px;
    cursor: default;
    transition: color 0.2s;
}
.vsc-activity-icon.vsc-active {
    color: #ffffff;
    position: relative;
}
.vsc-activity-icon.vsc-active::before {
    content: '';
    position: absolute;
    left: -3px;
    top: 3px; bottom: 3px;
    width: 2px;
    background: #ffffff;
    border-radius: 1px;
}

/* Sidebar — File Explorer */
.vsc-sidebar {
    width: 120px;
    min-width: 100px;
    background: #252526;
    border-right: 1px solid #1e1e1e;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.vsc-sidebar-header {
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.8px;
    color: #bbbbbb;
    padding: 8px 10px 6px;
    text-transform: uppercase;
}
.vsc-tree {
    padding: 0 4px;
}
.vsc-tree-item {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 8.5px;
    color: #cccccc;
    white-space: nowrap;
    cursor: default;
}
.vsc-tree-item.vsc-selected {
    background: rgba(255, 255, 255, 0.08);
}
.vsc-indent {
    padding-left: 18px;
}
.vsc-chevron {
    font-size: 7px;
    color: #858585;
    width: 8px;
}
.vsc-folder-icon {
    font-size: 9px;
}
.vsc-file-icon {
    font-size: 6px;
    font-weight: 700;
    padding: 1px 2px;
    border-radius: 2px;
    min-width: 14px;
    text-align: center;
    line-height: 1;
}
.vsc-file-icon.vsc-js {
    background: #f7df1e;
    color: #1e1e1e;
}
.vsc-file-icon.vsc-css {
    background: #56b6c2;
    color: #1e1e1e;
}
.vsc-file-icon.vsc-json {
    background: #e06c75;
    color: #1e1e1e;
}
.vsc-file-icon.vsc-md {
    background: #61afef;
    color: #1e1e1e;
}
.vsc-file-icon.vsc-git {
    background: #e06c75;
    color: #1e1e1e;
}

/* Main Editor Panel */
.vsc-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #1e1e1e;
}

/* Tab Bar */
.vsc-tabs {
    display: flex;
    background: #252526;
    height: 24px;
    min-height: 24px;
    border-bottom: 1px solid #1e1e1e;
    overflow: hidden;
}
.vsc-tab {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 10px;
    font-size: 8px;
    color: #969696;
    background: #2d2d2d;
    border-right: 1px solid #252526;
    white-space: nowrap;
    cursor: default;
}
.vsc-tab-active {
    background: #1e1e1e;
    color: #ffffff;
    border-top: 1px solid #007acc;
}
.vsc-tab-icon {
    font-size: 5.5px;
    font-weight: 700;
    padding: 1px 2px;
    border-radius: 2px;
    min-width: 12px;
    text-align: center;
}
.vsc-tab-close {
    font-size: 11px;
    color: #858585;
    margin-left: 4px;
    line-height: 1;
}

/* Editor Area (Code Lines) */
.vsc-editor-area {
    flex: 1;
    padding: 6px 0;
    font-family: 'Consolas', 'SF Mono', 'Fira Code', 'Menlo', monospace;
    font-size: 8.5px;
    line-height: 1.65;
    overflow: hidden;
}
.vsc-line {
    display: flex;
    align-items: center;
    padding: 0 8px;
    min-height: 14px;
    white-space: nowrap;
    word-spacing: 3px;
    letter-spacing: 0.3px;
}
.vsc-cursor-line {
    background: rgba(255, 255, 255, 0.04);
    border-left: 2px solid #007acc;
}

/* Line Numbers */
.vsc-ln {
    width: 22px;
    min-width: 22px;
    text-align: right;
    padding-right: 10px;
    color: #858585;
    user-select: none;
    font-size: 8px;
}

/* Syntax Highlighting */
.vsc-kw { color: #c586c0; }        /* keywords: import, const, from, => */
.vsc-var { color: #9cdcfe; }        /* variables */
.vsc-fn { color: #dcdcaa; }         /* function names */
.vsc-str { color: #ce9178; }        /* strings */
.vsc-num { color: #b5cea8; }        /* numbers */
.vsc-punc { color: #d4d4d4; }       /* punctuation */
.vsc-cmt { color: #6a9955; font-style: italic; }  /* comments */
.vsc-param { color: #9cdcfe; }      /* parameters */

/* Blinking Cursor */
.vsc-cursor {
    color: #aeafad;
    animation: vscodeBlink 1s step-start infinite;
    font-weight: 100;
}
@keyframes vscodeBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Status Bar */
.vsc-statusbar {
    height: 18px;
    min-height: 18px;
    background: #007acc;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    font-size: 7px;
    color: #ffffff;
    font-family: 'Segoe UI', -apple-system, sans-serif;
}
.vsc-sb-left, .vsc-sb-right {
    display: flex;
    align-items: center;
    gap: 8px;
}
.vsc-sb-branch {
    font-weight: 600;
}

/* ── Code Mode Dictation Animation ── */
.codemode-dictation-text {
    color: #d4d4d4;
    font-family: 'Consolas', 'SF Mono', 'Fira Code', 'Menlo', monospace;
    font-size: 8.5px;
    position: relative;
    transition: opacity 0.4s ease;
}

/* Scratch / strikethrough sweep */
.codemode-dictation-text.codemode-scratch {
    position: relative;
}
.codemode-dictation-text.codemode-scratch::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    height: 1.5px;
    background: #e06c75;
    animation: cmScratchSweep 0.6s ease-out forwards;
}
@keyframes cmScratchSweep {
    0% { width: 0; }
    100% { width: 100%; }
}

/* Fade out after scratch */
.codemode-dictation-text.codemode-fadeout {
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Slide-into-pill animation (mobile: text enters the audio pill) */
@keyframes cmSlideIntoPill {
    0% { transform: translateX(0); opacity: 1; filter: blur(0); }
    60% { opacity: 0.6; }
    100% { transform: translateX(60px); opacity: 0; filter: blur(3px); }
}
.codemode-dictation-text.codemode-slide-to-pill {
    animation: cmSlideIntoPill 0.9s ease-in forwards;
}

/* ===================================
   SECTION 5: LANGUAGES
   =================================== */
.languages-section {
    padding: 8rem 2rem;
    position: relative;
    background: transparent;
    display: flex;
    justify-content: center;
}

.lang-container {
    max-width: 1100px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3.5rem;
}

.lang-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto;
}

.lang-heading {
    font-size: 3rem;
    font-weight: 500;
    color: #111827;
    font-family: 'Newsreader', serif;
    letter-spacing: -0.04em;
    margin-bottom: 1.25rem;
}

.lang-subheading {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    font-weight: 400;
    color: #4b5563;
    line-height: 1.6;
}

.lang-box-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

.lang-box {
    width: 100%;
    max-width: 480px;
    aspect-ratio: 500 / 520;
    height: auto;
    background: #000000; /* Matches Section 4 deep black */
    border-radius: 32px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* Soft vignette inner glow for depth */
    box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.7), 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.lang-center-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: #ffffff;
    font-size: 1.35rem;
    letter-spacing: -0.01em;
    z-index: 10;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

.lang-svg-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
}

.lang-svg-flag {
    filter: saturate(1.35) contrast(1.15);
}

/* ==========================================================================
   Section 6: Pricing
   ========================================================================== */
.pricing-section {
    border-radius: 0;
    padding: 6rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg-color);
}

.pricing-header {
    text-align: center;
    margin-bottom: 4rem;
}

.pricing-heading {
    font-family: 'Newsreader', serif;
    font-size: clamp(2.5rem, 8vw, 3.5rem);
    font-weight: 300;
    letter-spacing: -0.04em;
    color: #985F6F;
    margin: 0 0 1rem 0;
}

.pricing-toggle-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.pricing-toggle {
    background: rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 40px;
    padding: 6px;
    display: flex;
    align-items: center;
    position: relative; /* needed for absolute child */
}

.toggle-slider {
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 0;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    /* Gliding physics animation */
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
}

.toggle-btn {
    background: transparent !important; /* Button background acts as invisible hit-box */
    box-shadow: none !important;
    border: none;
    color: #888;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2; /* Content floats safely above the gliding slider */
}

.toggle-btn.active {
    /* No bg/box-shadow here anymore, slider handles visuals */
    color: #1a1a1a;
}

.discount-badge {
    color: #8c8c8c;
    font-size: 0.85rem;
    font-weight: 400;
}

.toggle-btn.active .discount-badge {
    color: #a855f7; /* Lit up when active */
}

.pricing-container {
    display: flex;
    align-items: stretch; /* Geometrically middle-align the cards / equal height */
    gap: 20px;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
}

.pricing-card {
    flex: 1;
    border-radius: 20px;
    padding: 36px 32px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.plan-name {
    font-family: 'Inter', sans-serif;
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.plan-price-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.plan-price {
    font-family: 'Inter', sans-serif;
    font-size: 4rem;
    font-weight: 600;
    line-height: 1;
    display: flex;
    align-items: flex-start;
    letter-spacing: -0.04em;
    margin-bottom: 12px;
}

.free-plan .plan-price {
    margin-bottom: 18px;
}

.currency {
    font-size: 1.4rem;
    margin-top: 10px;
    margin-right: 4px;
    font-weight: 600;
}

.cents {
    font-size: 1.8rem;
    margin-top: 6px;
    margin-left: 2px;
}

.plan-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.pro-badge {
    background: linear-gradient(90deg, #9333ea, #c026d3);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.02em;
}

.pro-period {
    color: #8a91a6;
    font-size: 0.85rem;
    margin-left: 2px;
}

.plan-desc {
    font-size: 0.95rem;
    margin-bottom: 24px;
    font-family: 'Inter', sans-serif;
}

.plan-divider {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}

.pro-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pro-feature-heading {
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
    display: flex;
    flex-direction: column;
    gap: 14px; /* Tighter gap for better vertical rhythm */
    font-size: 0.88rem; /* Perfectly tuned premium font size */
    font-family: 'Inter', sans-serif;
    line-height: 1.4;
}

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.plan-features li::before {
    content: '✓';
    font-family: system-ui, -apple-system, sans-serif; /* Crisp native rendering */
    font-size: 0.88rem;
    font-weight: 800;
    color: #985F6F;
    margin-top: 1px;
    flex-shrink: 0;
}

.pro-features {
    color: #eeeeee;
    font-weight: 500;
}

.pro-features li::before {
    color: #a855f7; /* Vibrant purple/blue premium accent */
}

/* FREE CARD */
.free-plan {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #1a1a1a;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.free-plan .plan-name,
.free-plan .plan-price {
    color: #985F6F;
}

.free-plan .plan-desc {
    color: #6b7280;
}

.free-plan .plan-features {
    color: #4b5563;
}

.plan-btn-wrapper {
    margin-top: auto;
    margin-bottom: 24px;
}

.plan-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.2s ease, background 0.2s ease;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
}

.free-btn {
    background: #985F6F;
    color: #fff;
    border: 1px solid #985F6F;
}

.free-btn:hover {
    background: #7a4d5a;
    color: #fff;
}

/* PRO CARD */
.pro-plan {
    background: #0f172a; /* Deep fallback */
    border: 1px solid rgba(0,0,0,0.1);
    color: #fff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.pro-plan .plan-desc {
    color: #8c8c8c;
}

/* Beautiful animated premium gradient background */
.pro-gradient-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* Static deep night base */
    background: radial-gradient(circle at 50% 110%, #172554 0%, #080812 60%);
    z-index: 1;
    overflow: hidden;
}

/* "Sunrise" translation layer */
.pro-gradient-bg::before {
    content: '';
    position: absolute;
    /* Extend height far below the card to simulate horizon */
    top: 0; left: -20%; right: -20%; height: 200%;
    /* Bright dynamic horizon glow at the vertical center of this 200% box */
    background: radial-gradient(circle at 50% 60%, #3b82f6 0%, #2563eb 20%, #1e3a8a 45%, transparent 70%);
    opacity: 0;
    z-index: 1;
    transform: translateY(20%); /* starts deep below */
    /* Extended "Sunset" fade down when cursor leaves */
    transition: transform 2.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 2.5s ease-out;
}

.pro-gradient-bg::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%; width: 100%; height: 100%;
    transform: translate(-50%, -20%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.5) 0%, transparent 60%);
    filter: blur(40px);
    opacity: 0;
    z-index: 2;
    /* Extended "Sunset" fade down when cursor leaves */
    transition: transform 2.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 2.5s ease-out;
    mix-blend-mode: screen;
}

.pro-plan:hover .pro-gradient-bg::before {
    opacity: 1;
    /* the sun physically rises up into the card */
    transform: translateY(-25%);
    /* Gentle "Sunrise" fade up when cursor enters */
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.5s ease-in-out;
}

.pro-plan:hover .pro-gradient-bg::after {
    opacity: 1;
    /* follows the sun up to the center */
    transform: translate(-50%, -50%);
    /* Gentle "Sunrise" fade up when cursor enters */
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.5s ease-in-out;
    animation: driftHighlight 6s infinite alternate ease-in-out 1.5s; /* delay till sunrise completes */
}

@keyframes driftHighlight {
    0% { transform: translate(-55%, -45%) scale(1); }
    100% { transform: translate(-45%, -55%) scale(1.1); }
}

.pro-card-content {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pro-btn {
    background: #000;
    color: #fff;
    border: 1px solid rgba(0,0,0,1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.pro-plan:hover .pro-btn {
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    background: #0a0a0a;
}

.plan-footer {
    text-align: center;
    font-size: 0.8rem;
    font-family: 'Inter', sans-serif;
}
.plan-footer a {
    color: #666;
    text-decoration: underline;
}

.plan-footer-pro {
    text-align: center;
    font-size: 0.8rem;
    font-family: 'Inter', sans-serif;
    color: #5d678b;
}

/* ============================================================
   COMMANDS PANE – Notepad Animation
   ============================================================ */

/* Notepad Window */
.cmd-notepad-window {
    position: absolute;
    top: 8%;
    left: 5%;
    right: 5%;
    bottom: 18%;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.08);
    z-index: 15;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: scale(0.85) translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.cmd-notepad-window.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
    width: 450px;
    margin: 0 auto;
}

.cmd-notepad-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f0f0f0;
    border-bottom: 1px solid #ddd;
    flex-shrink: 0;
}

.cmd-notepad-dots {
    display: flex;
    gap: 6px;
}

.cmd-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
}

.cmd-dot-red { background: #ff5f57; }
.cmd-dot-yellow { background: #febc2e; }
.cmd-dot-green { background: #28c840; }

.cmd-notepad-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    color: #555;
    letter-spacing: 0.01em;
}

.cmd-notepad-body {
    flex: 1;
    padding: 12px 14px;
    background: #ffffff;
    position: relative;
}

.cmd-notepad-cursor {
    font-family: 'SF Mono', 'Consolas', monospace;
    font-size: 0.75rem;
    color: #333;
    animation: cmdCursorBlink 1s step-end infinite;
}

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

/* Floating dictation text above pill */
.cmd-dictation-float {
    position: absolute;
    bottom: 16%;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    color: #ffffff;
    background: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 6px 18px;
    border-radius: 9999px;
    white-space: nowrap;
    z-index: 20;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.cmd-dictation-float.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(-8px);
}

.cmd-dictation-float.fadeout {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* ============================================================
   SECTION 7: FOOTER
   ============================================================ */

.site-footer {
    background: #000000;
    padding: 80px 64px 48px;
    width: 100%;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.site-footer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -10%;
    right: -10%;
    height: 0%;
    background:
        radial-gradient(ellipse 80% 50% at 50% 100%, rgba(152, 95, 111, 0.7) 0%, rgba(152, 95, 111, 0.35) 30%, rgba(152, 95, 111, 0.1) 55%, transparent 75%),
        radial-gradient(ellipse 60% 35% at 50% 100%, rgba(220, 161, 161, 0.5) 0%, rgba(220, 161, 161, 0.15) 45%, transparent 70%),
        radial-gradient(ellipse 90% 40% at 48% 110%, rgba(250, 237, 205, 0.25) 0%, rgba(250, 237, 205, 0.08) 40%, transparent 65%);
    pointer-events: none;
    z-index: 0;
    transition: height 2.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-footer.gradient-visible::after {
    height: 45%;
}

/* ---- Top: Three-column navigation ---- */
.footer-top {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    justify-items: center;
    position: relative;
    z-index: 1;
}

.footer-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-col-heading {
    font-family: 'Newsreader', serif;
    font-weight: 300;
    font-size: 1.45rem;
    color: #f4f4f5;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    color: #a1a1aa;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

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

/* Newsletter Styles */
.footer-newsletter-text {
    font-size: 0.95rem;
    color: #a1a1aa;
    line-height: 1.5;
    margin-bottom: 24px;
    max-width: 250px;
    font-family: 'Inter', sans-serif;
}

.newsletter-form {
    position: relative;
    width: 100%;
    max-width: 320px;
}

.newsletter-input {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    padding: 14px 48px 14px 20px;
    font-family: inherit;
    font-size: 0.95rem;
    color: #f4f4f5;
    transition: all 0.2s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.newsletter-input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

.newsletter-submit {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #a1a1aa;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.newsletter-submit:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.15);
}

.newsletter-submit .material-symbols-outlined {
    font-size: 20px;
}

/* ---- Middle: Giant brand wordmark ---- */
.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 0 32px;
}

.footer-brand-wordmark {
    font-family: 'Newsreader', serif;
    font-size: clamp(8rem, 18vw, 18rem);
    font-weight: 300;
    letter-spacing: -0.04em;
    color: #985F6F;
    line-height: 1;
    user-select: none;
    opacity: 0.85;
}

/* ---- Bottom bar: Legal + social icons ---- */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 40px;
    border-top: none;
    position: relative;
    z-index: 1;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 24px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #bbb;
}

.footer-legal span {
    color: #bbb;
}

.footer-legal a {
    color: #a1a1aa;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(255, 255, 255, 0.2);
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.footer-legal a:hover {
    color: #fff;
    text-decoration-color: rgba(255, 255, 255, 0.6);
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #ccc;
    background: rgba(255, 255, 255, 0.08);
    transition: background 0.2s ease, color 0.2s ease;
}

.footer-socials a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    /* Navbar */
    .navbar-wrapper {
        padding: 1.5rem 12% 0 12%; /* Pulled inwards to clear side art */
    }
    .navbar {
        padding: 0.4rem 0.4rem 0.4rem 1.2rem;
    }
    .logo strong {
        font-size: 1.2rem;
    }
    .nav-links {
        display: none;
    }
    .nav-btn-dark {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    /* Hero Section */
    .hero .title {
        font-size: 9.2vw !important;
        line-height: 1.1;
        padding: 0 0.5rem;
        white-space: nowrap;
    }
    .hero .subtitle {
        font-size: 0.85rem;
        padding: 0 1rem;
        line-height: 1.4;
        margin-top: 0.5rem;
    }
    .hero-content {
        top: 52vh !important; /* Perfectly centered in the middle of the viewport */
        padding-top: 0;
    }
    .hero .dict-audio-pill {
        transform: scale(0.85) !important;
        margin: 15px auto 0 auto !important;
    }

    /* 4x Speed Section (Laptop Mockup) */
    .digital-curator-integration {
        min-height: auto;
        padding: 3rem 0;
        overflow: hidden;
    }
    .dc-title {
        font-size: 5.5vw !important; /* Scaled down perfectly to force one-line heading */
        white-space: nowrap;
        padding: 0 1rem;
        line-height: 1.2;
        text-align: center;
    }
    .app-marquee-container {
        top: 180px !important; /* Positively locks the icons directly behind the Macbook screen */
    }
    .app-logo {
        width: 22px !important; /* Decrease size of logos relative to Macbook */
        height: 22px !important;
        margin: 0 0.5rem;
    }
    .dc-laptop-wrapper {
        position: relative;
        left: 48%; /* Shifted a bit left as requested */
        transform: translateX(-50%) scale(0.65); /* Keeps premium aspect ratio */
        transform-origin: top center;
        margin-top: 1.5rem;
        margin-bottom: -130px; /* Offset whitespace created by scaling */
        z-index: 10; /* Make sure laptop completely covers the marquee */
    }
    .dc-features {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        padding: 0 1.5rem;
        margin-top: 1rem;
        position: relative;
        z-index: 20; /* Ensures text stays prominently below the laptop and above marquee */
    }

    /* Speak Freely Section (AI Card) */
    .refine-section {
        padding: 3rem 1rem !important;
        min-height: auto;
    }
    .refine-container {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        padding: 0;
    }
    .refine-left {
        width: 100%;
        padding: 0;
    }
    /* Cloud box panel - keep it but make it fit mobile naturally */
    .refine-visual {
        padding: 1.5rem 0.8rem 2.5rem !important; /* More room at bottom for dock */
        aspect-ratio: auto !important;
        border-radius: 20px !important;
        min-height: 300px;
    }
    /* Chat box - smaller, moved up, centered, no expansion */
    .refine-svara-ai-card {
        transform: none !important;
        margin: -25px auto 0 !important; /* Shifted further up */
        width: 85%;
        border-radius: 12px !important;
    }
    .svara-ai-header {
        padding: 0.5rem 0.7rem 0.3rem !important;
        border-radius: 11px 11px 0 0 !important;
    }
    .svara-ai-logo-icon {
        width: 14px !important;
        height: 14px !important;
    }
    .svara-ai-label {
        font-size: 0.65rem !important;
    }
    .svara-ai-body {
        padding: 0.5rem 0.7rem !important;
        min-height: 130px !important;
        max-height: 130px !important;
        overflow: hidden !important;
    }
    .svara-ai-question,
    .svara-ai-list,
    .svara-ai-note {
        font-size: 0.6rem !important;
        line-height: 1.35 !important;
    }
    .svara-ai-list {
        margin: 0 0 0.3rem 0.7rem !important;
    }
    .svara-ai-footer {
        padding: 0.3rem 0.7rem !important;
    }
    .svara-ai-action-icon svg {
        width: 12px !important;
        height: 12px !important;
    }
    .svara-ai-action-btn {
        width: 20px !important;
        height: 20px !important;
    }
    .svara-ai-action-btn svg {
        width: 9px !important;
        height: 9px !important;
    }
    /* Audio pill inside chat footer - clean border, bars contained */
    .refine-section .refine-audio-pill {
        padding: 5px 12px !important;
        border-radius: 9999px !important;
        overflow: hidden !important;
    }
    .refine-section .refine-waveform {
        height: 14px !important;
        gap: 2px !important;
        overflow: hidden !important;
    }
    /* Floating audio pill above dock - premium, clean border */
    .refine-dock-pill-wrapper {
        bottom: 42px !important; /* Centered between chat box and dock */
    }
    .refine-dock-pill {
        padding: 6px 14px !important;
        border: 2px solid #e7e5dc !important;
        border-radius: 9999px !important;
        overflow: hidden !important;
    }
    .refine-dock-pill .refine-waveform {
        height: 16px !important;
        gap: 2.5px !important;
        overflow: hidden !important;
    }
    /* macOS Dock - tighter, smaller icons, reduced side padding */
    .mac-dock-container {
        bottom: 6px !important;
    }
    .mac-dock {
        gap: 4px !important;
        padding: 5px 8px !important;
    }
    .dock-app-icon {
        width: 24px !important;
        height: 24px !important;
        padding: 3px !important;
        border-radius: 6px !important;
    }
    /* Right column: centered premium text below */
    .refine-right {
        width: 100%;
        padding: 0 0.5rem;
        text-align: center;
        min-height: auto !important;
        margin-top: 0 !important;
    }
    .refine-pill {
        align-self: center;
    }
    .refine-heading {
        font-size: 1.6rem;
        line-height: 1.2;
        text-align: center;
    }
    .refine-description {
        font-size: 0.9rem;
        text-align: center;
        padding: 0 0.5rem;
    }
    .refine-accordion {
        text-align: center;
    }
    .refine-accordion-btn {
        font-size: 1.15rem;
        justify-content: center;
        gap: 0.5rem;
        text-align: center;
    }
    .refine-accordion-content p {
        font-size: 0.82rem !important;
        text-align: center;
        padding: 0 0.5rem 1rem !important;
        line-height: 1.55 !important;
    }

    /* Features Tabs (Section 4) - Full width, compact content */
    .features-tabs-section {
        padding: 1.8rem 0 2.5rem !important;
        min-height: auto !important;
        border-radius: 30px !important;
    }
    .ft-container {
        padding: 0 1.5rem !important;
    }
    .ft-nav {
        display: none !important; /* Hide tabs completely on mobile for vertical stacking */
    }
    .ft-panes {
        display: flex !important;
        flex-direction: column !important;
        gap: 4rem !important; /* Massive gap between sections */
    }
    .ft-pane {
        position: relative !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        flex-direction: column !important;
        gap: 2rem !important;
        align-items: center !important;
        padding-bottom: 1rem;
    }
    .ft-left {
        text-align: center;
        width: 100%;
    }
    .ft-title {
        font-size: 1.35rem !important;
        margin-bottom: 0.4rem !important;
    }
    .ft-desc {
        font-size: 0.68rem !important;
        line-height: 1.45 !important;
        padding: 0 0.5rem;
    }
    .ft-right {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    /* ═══ SECTION 4 MOBILE: Hide laptop frame, show feature cards standalone ═══ */

    /* Strip laptop visual chrome (except Context Awareness) */
    .ft-pane:not(#pane-context) .dc-laptop-lid {
        background: transparent !important;
        padding: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        width: 100% !important;
    }
    .ft-pane:not(#pane-context) .dc-laptop-glass {
        background: transparent !important;
        padding: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        width: 100% !important;
    }
    .ft-pane:not(#pane-context) .dc-laptop-screen {
        aspect-ratio: unset !important;
        overflow: visible !important;
        background: transparent !important;
        border-radius: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
    }
    .ft-pane:not(#pane-context) .dc-laptop-bottom,
    .ft-pane:not(#pane-context) .dc-laptop-wallpaper,
    .ft-pane:not(#pane-context) .dc-laptop-notch {
        display: none !important;
    }

    /* Laptop wrapper becomes a simple centered column */
    .ft-pane:not(#pane-context) .ft-laptop-wrapper {
        transform: none !important;
        margin: 0 auto !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    /* ── Make all overlays flow normally (they were position:absolute) ── */
    .ft-pane:not(#pane-context) .ft-slack-overlay {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        width: 90% !important;
        max-width: 320px !important;
        margin: 0 auto !important;
        border-radius: 12px;
        box-shadow: 0 12px 40px rgba(0,0,0,0.45) !important;
    }
    .ft-pane:not(#pane-context) .slack-composer-premium {
        overflow: hidden !important;
    }
    .ft-pane:not(#pane-context) .sc-footer {
        padding: 6px !important;
        gap: 0 !important;
    }
    .ft-pane:not(#pane-context) .sc-action {
        width: 24px !important;
        height: 24px !important;
    }
    .ft-pane:not(#pane-context) .sc-action .material-symbols-outlined {
        font-size: 15px !important;
    }
    .ft-pane:not(#pane-context) .sc-footer-left,
    .ft-pane:not(#pane-context) .sc-footer-right {
        gap: 2px !important;
    }
    .ft-pane:not(#pane-context) .sc-send-btn {
        width: 28px !important;
        height: 28px !important;
        margin-left: 4px !important;
    }

    .ft-pane:not(#pane-context) .ft-wa-overlay {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        width: 100% !important;
        height: auto !important;
    }

    .ft-pane:not(#pane-context) .cmd-notepad-window {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: scale(0.85) translateY(20px) !important;
        width: 90% !important;
        max-width: 320px !important;
        margin: 0 auto !important;
        min-height: 280px !important;
        opacity: 0 !important;
        visibility: visible !important;
        display: flex !important;
        border-radius: 12px !important;
        overflow: hidden !important;
        box-shadow: 0 12px 40px rgba(0,0,0,0.45) !important;
        transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) !important;
    }
    .ft-pane:not(#pane-context) .cmd-notepad-window.visible {
        opacity: 1 !important;
        transform: scale(1) translateY(0) !important;
    }

    .ft-pane:not(#pane-context) .cmd-dictation-float {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        transform: translateY(0) !important;
        margin: 0 auto 10px auto !important;
        font-size: 11px !important;
        padding: 8px 20px !important;
        display: none;
        background: rgba(0, 0, 0, 0.75) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
    }
    .ft-pane:not(#pane-context) .cmd-dictation-float.visible {
        display: block !important;
        opacity: 1 !important;
    }
    .ft-pane:not(#pane-context) .cmd-dictation-float.fadeout {
        opacity: 0 !important;
        transform: translateY(-10px) !important;
    }

    /* VS Code editor specific mobile tweak */
    .ft-pane:not(#pane-context) .vsc-sidebar,
    .ft-pane:not(#pane-context) .vsc-activity-bar {
        display: none !important;
    }
    .ft-pane:not(#pane-context) .vscode-editor {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        width: 90% !important;
        max-width: 320px !important;
        margin: 0 auto !important;
        border-radius: 10px !important;
        overflow: hidden !important;
        box-shadow: 0 12px 40px rgba(0,0,0,0.45) !important;
    }
    .ft-pane:not(#pane-context) .vsc-editor-area {
        overflow: hidden !important;
        height: 110px !important;
        min-height: 110px !important;
        max-height: 110px !important;
    }
    /* Hide dictation inside editor on mobile — it animates near the pill instead */
    .ft-pane:not(#pane-context) #codemode-dictation-line {
        display: none !important;
    }
    /* Bottom corners on status bar */
    .ft-pane:not(#pane-context) .vsc-statusbar {
        border-radius: 0 0 10px 10px !important;
    }
    .ft-pane:not(#pane-context) .vsc-statusbar span {
        font-size: 9px !important;
    }
    .ft-pane:not(#pane-context) .vsc-tabs {
        overflow: hidden !important;
        border-radius: 10px 10px 0 0 !important;
    }
    .ft-pane:not(#pane-context) .vsc-tab {
        font-size: 10px !important;
        padding: 4px 8px !important;
    }
    .ft-pane:not(#pane-context) .vsc-main {
        overflow: hidden !important;
    }

    /* ── Audio pill: flow below feature card ── */
    .ft-pane:not(#pane-context) .ft-laptop-pill {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        transform: none !important;
        margin-top: 1.5rem !important;
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
    }
    .ft-pane:not(#pane-context) .ft-laptop-pill .refine-audio-pill {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        transform: scale(1) !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: flex !important;
    }

    /* ── Mobile dictation text (floats from left INTO audio pill) ── */
    .ft-pane:not(#pane-context) .ft-laptop-pill {
        position: relative !important;
        z-index: 1;
    }
    .ft-pane:not(#pane-context) .ft-laptop-pill .refine-audio-pill {
        z-index: 10 !important;
        position: relative !important;
    }
    .cm-mobile-dictation-wrapper {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        display: flex;
        align-items: center;
        overflow: hidden;
        z-index: 5;
        pointer-events: none;
    }
    .cm-mobile-dictation {
        position: absolute;
        left: 0;
        font-family: 'Inter', -apple-system, sans-serif;
        font-size: 11px;
        color: rgba(255,255,255,0.9);
        font-style: italic;
        white-space: nowrap;
        opacity: 0;
    }
    .cm-mobile-dictation.cm-typing {
        opacity: 1;
    }
    @keyframes cmFloatIntoPill {
        0% { 
            transform: translateX(0) translateY(0); 
            opacity: 1; 
        }
        25% { 
            transform: translateX(25%) translateY(-4px); 
            opacity: 0.95; 
        }
        50% { 
            transform: translateX(50%) translateY(3px); 
            opacity: 0.7; 
        }
        75% {
            transform: translateX(75%) translateY(-2px);
            opacity: 0.4;
            filter: blur(1px);
        }
        100% { 
            transform: translateX(100%) translateY(0); 
            opacity: 0; 
            filter: blur(3px); 
        }
    }
    .cm-mobile-dictation.cm-entering-pill {
        animation: cmFloatIntoPill 1.2s ease-in-out forwards;
    }


    /* ── Snippets & Code Mode layout containers ── */
    .snippets-layout, .codemode-layout {
        transform: none !important;
        margin-bottom: 0 !important;
    }
    .ft-pane:not(#pane-context) .gmail-card,
    .ft-pane:not(#pane-context) .codemode-card {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 12px;
        box-shadow: 0 12px 40px rgba(0,0,0,0.45) !important;
    }

    /* ═══ CONTEXT AWARENESS: Keep full MacBook ═══ */
    #pane-context .ft-laptop-wrapper {
        transform: scale(0.48) !important;
        transform-origin: top center;
        margin-bottom: -160px;
    }





    /* Pricing Section */
    .pricing-container {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        padding: 0 1rem;
    }
    .pricing-card {
        width: 100%;
        max-width: 400px;
        transform: none !important; /* Remove the scale from Pro card */
    }
    .pricing-card-pro {
        padding-top: 3rem; /* reset padding since it's not taller */
    }
}

@media (max-width: 900px) {
    .site-footer {
        padding: 60px 32px 36px;
    }

    .footer-top {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
        padding-bottom: 30px;
        justify-items: center;
        align-items: start;
    }

    .footer-col-heading {
        font-size: 1rem !important;
        margin-bottom: 10px !important;
    }

    .footer-links a {
        font-size: 0.75rem !important;
    }

    .footer-col.footer-newsletter {
        display: none !important;
    }

    .footer-brand {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        padding: 60px 0 60px;
        text-align: center;
    }

    .footer-brand-icon {
        width: 120px !important;
    }

    .footer-brand-wordmark {
        font-size: clamp(8rem, 26vw, 16rem) !important;
        letter-spacing: -0.02em !important;
    }

    .footer-bottom {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 0 !important;
        padding-top: 32px !important;
        width: 100% !important;
    }

    .footer-legal {
        flex: 1;
        font-size: 0.7rem !important;
        text-align: left;
    }

    .footer-socials {
        flex: 1;
        justify-content: flex-end;
        gap: 8px !important;
    }

    .footer-socials a {
        width: 28px !important;
        height: 28px !important;
    }

    .footer-socials a svg {
        width: 14px !important;
        height: 14px !important;
    }
}
