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

:root {
    /* Modern Wedding Palette - inspired by invite.png */
    --sage-green: #87a08b;
    --sage-light: #a8bba0;
    --sage-dark: #5a6b5d;
    --black: #1a1a1a;
    --white: #ffffff;
    --off-white: #fafafa;
    --gray-light: #f5f5f5;
    --gray: #666;
    
    /* Colby accent for final reveal */
    --colby-blue: #1c64ff;
    --colby-gradient: linear-gradient(135deg, #1c64ff 0%, #57a6fb 100%);
}

body {
    font-family: 'Cormorant Garamond', serif;
    background: var(--white);
    color: var(--black);
    overflow: hidden;
    position: fixed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    height: 100vh;
    width: 100vw;
    margin: 0;
    padding: 0;
    touch-action: none;
    -webkit-overflow-scrolling: touch;
}

.section {
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile */
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transform: translate3d(0, 100vh, 0); /* Use 3d transform for better mobile performance */
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    will-change: transform, opacity;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    pointer-events: none;
    overflow: hidden;
}

.section.active {
    opacity: 1 !important;
    transform: translate3d(0, 0, 0) !important;
    z-index: 10;
    pointer-events: auto;
}

.section.prev {
    opacity: 0;
    transform: translate3d(0, -100vh, 0);
    z-index: 5;
    pointer-events: none;
}

.section.next {
    opacity: 0;
    transform: translate3d(0, 100vh, 0);
    z-index: 5;
    pointer-events: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 10;
}

/* Section 1: Entry - Modern minimal wedding invite */
.section-entry {
    background: var(--white);
    position: relative;
    overflow: hidden;
}

/* Flat botanical decorations */
.botanical-top,
.botanical-bottom {
    position: absolute;
    width: 250px;
    height: 250px;
    opacity: 0.08;
    pointer-events: none;
}

.botanical-top {
    top: -30px;
    left: -30px;
    transform: rotate(-15deg);
}

.botanical-bottom {
    bottom: -30px;
    right: -30px;
    transform: rotate(165deg) scaleX(-1);
}

/* Create flat eucalyptus branch with CSS */
.botanical-top::before,
.botanical-top::after,
.botanical-bottom::before,
.botanical-bottom::after {
    content: '';
    position: absolute;
    background: var(--sage-green);
}

/* Main stem */
.botanical-top::before,
.botanical-bottom::before {
    width: 2px;
    height: 180px;
    top: 35px;
    left: 50%;
    transform: translateX(-50%);
}

/* Leaves pattern */
.botanical-top::after,
.botanical-bottom::after {
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse 30px 15px at 30% 30%, var(--sage-green) 50%, transparent 50%),
        radial-gradient(ellipse 25px 12px at 70% 25%, var(--sage-green) 50%, transparent 50%),
        radial-gradient(ellipse 28px 14px at 25% 50%, var(--sage-green) 50%, transparent 50%),
        radial-gradient(ellipse 26px 13px at 75% 45%, var(--sage-green) 50%, transparent 50%),
        radial-gradient(ellipse 30px 15px at 20% 70%, var(--sage-green) 50%, transparent 50%),
        radial-gradient(ellipse 24px 12px at 80% 65%, var(--sage-green) 50%, transparent 50%),
        radial-gradient(ellipse 28px 14px at 35% 85%, var(--sage-green) 50%, transparent 50%),
        radial-gradient(ellipse 25px 12px at 65% 80%, var(--sage-green) 50%, transparent 50%);
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

.entry-card {
    background: var(--white);
    padding: 80px 60px;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.wedding-title {
    font-family: 'Great Vibes', cursive;
    font-size: 5rem;
    font-weight: 400;
    color: var(--black);
    margin: 20px 0 10px;
    line-height: 1;
}

#guestTitle {
    margin-top: 0;
    margin-bottom: 20px;
}

.ampersand {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 300;
    display: block;
    margin: 20px 0;
    color: var(--sage-green);
}

.invitation-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--black);
    font-weight: 400;
    margin: 15px 0;
}

.divider-line {
    width: 80px;
    height: 1px;
    background: var(--sage-green);
    margin: 30px auto;
}

#entry-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 40px;
}

#entry-form input {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--sage-green);
    padding: 12px 5px;
    font-size: 1rem;
    font-family: 'Cormorant Garamond', serif;
    color: var(--black);
    transition: all 0.3s ease;
    text-align: center;
    letter-spacing: 0.05em;
}

#entry-form input:focus {
    outline: none;
    border-bottom-color: var(--sage-dark);
}

#entry-form input::placeholder {
    color: #999;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.wedding-button {
    background: var(--sage-green);
    color: white;
    border: none;
    padding: 14px 40px;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-family: 'Cormorant Garamond', serif;
    margin-top: 30px;
    border-radius: 25px;
}

.wedding-button:hover {
    background: var(--sage-dark);
    transform: translateY(-2px);
}

/* Keep modern button style for other sections */
.neon-button {
    background: var(--sage-green);
    color: white;
    border: none;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-family: 'Cormorant Garamond', serif;
    border-radius: 25px;
}

.neon-button:hover {
    background: var(--sage-dark);
    transform: translateY(-2px);
}

/* Section 0: Wedding Invite Bridge */
.section-invite {
    background: var(--white);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.invite-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.wedding-flourish {
    width: 60px;
    height: 1px;
    background: var(--sage-green);
    margin: 0 auto 30px;
}

.date-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    color: var(--sage-dark);
    margin: 20px 0;
    letter-spacing: 0.1em;
}

/* Section 1: Welcome */
.section-welcome {
    background: var(--off-white);
    position: relative;
}

.section-welcome::before,
.section-welcome::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 200px;
    opacity: 0.05;
    pointer-events: none;
}

.section-welcome::before {
    top: 10%;
    left: 5%;
    background: 
        radial-gradient(ellipse 25px 12px at 40% 30%, var(--sage-green) 50%, transparent 50%),
        radial-gradient(ellipse 22px 10px at 60% 40%, var(--sage-green) 50%, transparent 50%),
        radial-gradient(ellipse 20px 10px at 35% 60%, var(--sage-green) 50%, transparent 50%);
    transform: rotate(25deg);
}

.section-welcome::after {
    bottom: 10%;
    right: 5%;
    background: 
        radial-gradient(ellipse 28px 14px at 45% 35%, var(--sage-green) 50%, transparent 50%),
        radial-gradient(ellipse 24px 12px at 55% 50%, var(--sage-green) 50%, transparent 50%),
        radial-gradient(ellipse 26px 13px at 40% 70%, var(--sage-green) 50%, transparent 50%);
    transform: rotate(-20deg);
}

.welcome-flourish {
    width: 60px;
    height: 1px;
    background: var(--sage-green);
    margin: 0 auto 30px;
}

.massive-text {
    font-size: clamp(2rem, 6vw, 4.5rem);
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    line-height: 1.3;
    letter-spacing: 0.02em;
    margin-bottom: 100px;
    color: var(--black);
}

.highlight-name {
    font-family: 'Great Vibes', cursive;
    font-size: 1.4em;
    font-weight: 400;
    color: var(--sage-green);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--sage-green);
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: bounce 2s infinite;
}

.arrow-down {
    width: 20px;
    height: 20px;
    border: 1px solid var(--sage-green);
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
    animation: arrowPulse 1s infinite;
}

/* Section 2: Sales Pain Point */
.section-sales-pain {
    background: var(--white);
}

.section-title {
    font-size: 2.5rem;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    margin-bottom: 32px;
    letter-spacing: 0.02em;
    color: var(--black);
}

/* Shock Animation Styles */
.shock-animation {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 60px auto;
    max-width: 400px;
}

.shock-emoji {
    font-size: 8rem;
    margin-bottom: 20px;
    transform: scale(0);
    transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.shock-text {
    font-size: 2rem;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    color: var(--sage-green);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease 0.4s, transform 0.6s ease 0.4s;
}

.shock-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.shock-line {
    position: absolute;
    background: var(--sage-green);
    opacity: 0;
}

.shock-line:nth-child(1) {
    width: 60px;
    height: 3px;
    top: 30%;
    left: -80px;
    transform: rotate(25deg);
}

.shock-line:nth-child(2) {
    width: 40px;
    height: 3px;
    top: 45%;
    left: -90px;
    transform: rotate(-15deg);
}

.shock-line:nth-child(3) {
    width: 55px;
    height: 3px;
    top: 30%;
    right: -80px;
    transform: rotate(-25deg);
}

.shock-line:nth-child(4) {
    width: 45px;
    height: 3px;
    top: 45%;
    right: -90px;
    transform: rotate(15deg);
}

/* Animation trigger */
.shock-animation.animate .shock-emoji {
    transform: scale(1);
}

.shock-animation.animate .shock-text {
    opacity: 1;
    transform: translateY(0);
}

.shock-animation.animate .shock-line {
    opacity: 1;
    animation: shockLine 0.6s ease 0.6s forwards;
}

@keyframes shockLine {
    0% {
        transform: scale(0) rotate(var(--rotation, 0deg));
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(var(--rotation, 0deg));
        opacity: 0;
    }
}

.shock-line:nth-child(1) { --rotation: 25deg; }
.shock-line:nth-child(2) { --rotation: -15deg; }
.shock-line:nth-child(3) { --rotation: -25deg; }
.shock-line:nth-child(4) { --rotation: 15deg; }

.narrative-text {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--black);
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    letter-spacing: 0.02em;
}


.hidden {
    display: none !important;
}


/* Section 3: Salesforce */
.section-salesforce {
    background: var(--white);
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 32px;
    color: var(--black);
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
}

.salesforce-placeholder {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.fake-form {
    background: var(--white);
    color: var(--black);
    padding: 40px;
    border: 1px solid var(--gray-light);
    text-align: left;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
    border-radius: 15px;
}

.fake-input {
    padding: 16px;
    margin-bottom: 12px;
    background: var(--gray-light);
    border-left: 3px solid var(--sage-green);
    position: relative;
    font-weight: 400;
    font-size: 0.9rem;
}

.typing-animation::after {
    content: '|';
    animation: blink 1s infinite;
    color: var(--sage-green);
}

.dull-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(1px);
}

.dull-overlay p {
    font-size: 1.8rem;
    color: var(--black);
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px 40px;
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Section 4: Colby Voice Notes - Transition from wedding to tech */
.section-colby-voice {
    background: linear-gradient(180deg, var(--off-white) 0%, var(--white) 100%);
}

/* Section 5: Career Progression */
.section-career {
    background: var(--off-white);
}

.career-content {
    text-align: center;
}

.email-notice {
    font-size: 1.3rem;
    margin: 32px 0;
    color: var(--gray);
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
}

.colby-reveal {
    animation: scaleReveal 1s ease forwards;
}

.colby-logo {
    font-size: clamp(3rem, 8vw, 5rem);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--colby-blue);
    letter-spacing: -0.02em;
    position: relative;
}

.tagline {
    font-size: 1.3rem;
    margin-bottom: 24px;
    color: var(--gray);
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin: 48px 0;
}

.feature {
    background: var(--white);
    padding: 32px;
    border: 1px solid var(--gray-light);
    transition: all 0.2s ease;
    border-radius: 15px;
}

.feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 16px;
}

.feature p {
    font-size: 1rem;
    color: var(--gray);
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

.feature small {
    font-size: 0.8rem;
    opacity: 0.7;
    display: block;
    margin-top: 4px;
}

.value-prop {
    text-align: center;
    margin: 48px 0;
    padding: 32px;
    background: linear-gradient(135deg, var(--neon-blue) 0%, var(--neon-purple) 100%);
    border-radius: 15px;
    color: var(--white);
}

.big-stat {
    font-size: 3rem;
    font-weight: 900;
    margin: 0;
    font-family: 'Playfair Display', serif;
    letter-spacing: 2px;
}

.stat-subtitle {
    font-size: 1.1rem;
    margin: 8px 0 0 0;
    opacity: 0.9;
    font-family: 'Inter', sans-serif;
}

/* Colby Demo Styles */
.colby-demo {
    margin: 20px auto;
    background: #f8f9fa;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    max-width: 1000px;
    width: 90%;
}

.demo-container {
    display: grid;
    grid-template-columns: minmax(250px, 300px) 1fr;
    gap: 20px;
    align-items: start;
    max-height: 50vh;
    overflow: hidden;
}

.chat-sidebar {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.chat-header {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    color: var(--white);
    padding: 16px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    text-align: center;
}

.chat-messages {
    padding: 12px;
    max-height: 200px;
    overflow-y: auto;
}

.chat-message {
    margin-bottom: 16px;
}

.message-bubble {
    padding: 12px 16px;
    border-radius: 18px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    line-height: 1.4;
    max-width: 100%;
    word-wrap: break-word;
}

.user-message .message-bubble {
    background: var(--sage-light);
    color: var(--black);
    margin-left: 0;
}

.ai-message .message-bubble {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    color: var(--white);
    margin-right: 0;
}

.crm-fields {
    background: var(--white);
    border-radius: 15px;
    padding: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    max-height: 100%;
    overflow-y: auto;
}

.source-text {
    margin-bottom: 24px;
    padding: 16px;
    background: #f0f8ff;
    border-radius: 12px;
    border-left: 4px solid var(--neon-blue);
}

.source-text p {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--black);
}

.highlight-text {
    color: var(--neon-blue);
    font-weight: 600;
    font-style: italic;
}

.record-creation-flow {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.record-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 12px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    opacity: 0.3;
    margin-bottom: 12px;
}

.record-section.active {
    opacity: 1;
    border-color: var(--neon-blue);
    background: #f0f8ff;
}

.record-section.completed {
    border-color: var(--sage-green);
    background: #f0f8f0;
}

.record-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.record-icon {
    font-size: 1.5rem;
}

.record-title {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--black);
    margin: 0;
}

.record-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.crm-field {
    display: flex;
    flex-direction: column;
}

.crm-field label {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.field-value {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    min-height: 20px;
    position: relative;
}

.parsing-cursor, .field-cursor {
    animation: blink 1s infinite;
    color: var(--neon-blue);
    font-weight: bold;
    opacity: 0;
}

.parsing-cursor.active, .field-cursor.active {
    opacity: 1;
}

.field-value.typing {
    border-color: var(--neon-blue);
    background: #f0f8ff;
}

.field-value.completed {
    border-color: var(--sage-green);
    background: #f0f8f0;
    animation: fieldComplete 0.3s ease-in-out;
}

@keyframes fieldComplete {
    0% {
        transform: scale(1);
        background: #f0f8ff;
    }
    50% {
        transform: scale(1.02);
        background: #e8f5e8;
    }
    100% {
        transform: scale(1);
        background: #f0f8f0;
    }
}

.auto-fill {
    animation: autoFillAnimation 0.5s ease-in-out;
    border-color: var(--sage-green);
    background: #f0f8f0;
    color: var(--black);
    font-weight: 500;
}

@keyframes autoFillAnimation {
    0% {
        transform: scale(0.95);
        opacity: 0;
        background: var(--white);
    }
    50% {
        transform: scale(1.02);
        background: #e8f5e8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
        background: #f0f8f0;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .demo-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .field-mapping {
        grid-template-columns: 1fr;
    }
}

.final-message {
    font-size: 2.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    margin: 48px 0 32px;
    letter-spacing: -0.02em;
    color: var(--black);
}

.final-cta {
    text-decoration: none;
    display: inline-block;
    font-size: 1.2rem;
    padding: 18px 48px;
    background: var(--colby-gradient);
    color: white;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    transition: all 0.2s ease;
    border-radius: 30px;
}

.final-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(28, 100, 255, 0.3);
}

/* Animations */
@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-8px);
    }
}

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

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

@keyframes scaleReveal {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .wedding-title {
        font-size: 3.5rem;
    }
    
    .massive-text {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .colby-logo {
        font-size: 3.5rem;
    }
    
    
    
    .entry-card {
        padding: 60px 40px;
    }
}

/* Final CTA Section */
.cta-buttons {
    display: flex;
    gap: 24px;
    justify-content: center;
    align-items: center;
    margin-top: 32px;
}

/* Special styling for Learn More button to match Colby branding */
.cta-buttons .neon-button.primary {
    background: var(--colby-gradient);
    padding: 16px 36px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    display: inline-block;
}

.cta-buttons .neon-button.primary:hover {
    background: var(--colby-gradient);
    filter: brightness(1.1);
    box-shadow: 0 6px 20px rgba(28, 100, 255, 0.3);
}

/* Standard button for close */
.cta-buttons .neon-button.secondary {
    padding: 16px 36px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    border-radius: 30px;
}

@media (max-width: 768px) {
    .cta-buttons {
        flex-direction: column;
        gap: 16px;
    }
}

/* Eucalyptus Leaf Decorations */
.leaf {
    position: absolute;
    width: 20px;
    height: 35px;
    background: var(--sage-green);
    border-radius: 50% 10% 50% 10%;
    opacity: 0.6;
    z-index: 1;
    pointer-events: none;
}

.leaf::before {
    content: '';
    position: absolute;
    width: 1px;
    height: 40px;
    background: var(--sage-dark);
    left: 50%;
    top: -5px;
    transform: translateX(-50%);
}

.leaf.small {
    width: 15px;
    height: 25px;
    opacity: 0.4;
}

.leaf.large {
    width: 25px;
    height: 45px;
    opacity: 0.7;
}

.leaf.light {
    background: var(--sage-light);
}

.leaf.dark {
    background: var(--sage-dark);
}

/* Leaf Animations */
@keyframes leafFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-10px) rotate(5deg);
    }
    66% {
        transform: translateY(5px) rotate(-3deg);
    }
}

@keyframes leafFall {
    0% {
        transform: translateY(-20px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(100vh) rotate(180deg);
        opacity: 0;
    }
}

@keyframes leafSway {
    0%, 100% {
        transform: translateX(0px) rotate(0deg);
    }
    25% {
        transform: translateX(10px) rotate(15deg);
    }
    75% {
        transform: translateX(-10px) rotate(-15deg);
    }
}

.leaf.floating {
    animation: leafFloat 6s ease-in-out infinite;
}

.leaf.falling {
    animation: leafFall 8s linear infinite;
}

.leaf.swaying {
    animation: leafSway 4s ease-in-out infinite;
}

/* Leaf positioning classes */
.leaf.top-left {
    top: 10%;
    left: 5%;
}

.leaf.top-right {
    top: 15%;
    right: 8%;
}

.leaf.bottom-left {
    bottom: 12%;
    left: 7%;
}

.leaf.bottom-right {
    bottom: 10%;
    right: 5%;
}

.leaf.center-left {
    top: 45%;
    left: 3%;
}

.leaf.center-right {
    top: 50%;
    right: 4%;
}

/* Section-specific leaf containers */

.leaves-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Ensure content stays above leaves */
.container {
    position: relative;
    z-index: 10;
}

/* ========== MOBILE OPTIMIZATIONS ========== */

/* Add mobile swipe indicator */
.swipe-indicator {
    position: fixed;
    bottom: 40px;
    right: 20px;
    width: 40px;
    height: 60px;
    z-index: 100;
    opacity: 0.6;
    pointer-events: none;
    display: none;
}

@media (hover: none) and (pointer: coarse) {
    .swipe-indicator {
        display: block;
        animation: swipeHint 2s ease-in-out infinite;
    }
    
    .scroll-indicator {
        display: none;
    }
}

@keyframes swipeHint {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-10px);
        opacity: 0.8;
    }
}

.swipe-indicator::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 40px;
    background: var(--sage-green);
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}

.swipe-indicator::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--sage-green);
    border-right: 2px solid var(--sage-green);
    left: 50%;
    top: 0;
    transform: translateX(-50%) rotate(-45deg);
}

/* Small mobile devices (up to 480px) */
@media (max-width: 480px) {
    /* Hide non-essential Colby demo elements on small screens */
    .source-text,
    .chat-header,
    .message-bubble {
        display: none;
    }
    
    .record-section {
        padding: 8px;
        margin-bottom: 6px;
        background: #f8f9fa;
    }
    
    .record-header {
        gap: 6px;
        margin-bottom: 8px;
    }
    
    .record-icon {
        font-size: 1rem;
    }
    
    .record-title {
        font-size: 0.8rem;
        font-weight: 500;
    }
    
    .crm-field label {
        font-size: 0.65rem;
        margin-bottom: 2px;
    }
    
    .container {
        width: 95%;
        padding: 0 10px;
    }
    
    /* Keep sections properly positioned on mobile */
    .section {
        height: 100vh;
        height: 100dvh;
        width: 100vw;
        padding: 20px 10px;
        position: absolute;
        top: 0;
        left: 0;
    }
    
    /* Typography scaling */
    .massive-text {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        line-height: 1.2;
        margin-bottom: 80px;
    }
    
    .section-title {
        font-size: clamp(1.4rem, 6vw, 2rem);
        line-height: 1.3;
        margin-bottom: 24px;
        padding: 0 10px;
    }
    
    .colby-logo {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        margin-bottom: 8px;
    }
    
    .tagline {
        font-size: 0.9rem;
        margin-bottom: 12px;
        padding: 0 10px;
    }
    
    .narrative-text {
        font-size: 1.1rem;
        line-height: 1.6;
        padding: 0 10px;
    }
    
    /* Shock animation mobile optimization */
    .shock-animation {
        margin: 40px auto;
        max-width: 300px;
    }
    
    .shock-emoji {
        font-size: 5rem;
        margin-bottom: 15px;
    }
    
    .shock-text {
        font-size: 1.4rem;
    }
    
    .shock-line {
        display: none; /* Hide decorative lines on small screens */
    }
    
    /* Salesforce form mobile */
    .fake-form {
        padding: 24px 16px;
        margin: 0 10px;
    }
    
    .fake-input {
        padding: 12px;
        font-size: 0.8rem;
        margin-bottom: 10px;
    }
    
    .dull-overlay p {
        font-size: 1.4rem;
        padding: 16px 24px;
        margin: 0 10px;
    }
    
    /* Colby demo mobile - much smaller */
    .colby-demo {
        padding: 10px;
        margin: 10px auto;
        width: 95%;
        background: transparent;
        box-shadow: none;
    }
    
    .demo-container {
        grid-template-columns: 1fr;
        gap: 10px;
        max-height: none;
        overflow-y: visible;
    }
    
    .chat-sidebar {
        order: 1;
        display: none; /* Hide chat on mobile - focus on the CRM fields */
    }
    
    .crm-fields {
        order: 2;
        padding: 10px;
        max-height: none;
        overflow-y: visible;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }
    
    .record-fields {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    
    .field-value {
        padding: 6px 8px;
        font-size: 0.75rem;
        min-height: 28px;
    }
    
    /* Features grid mobile */
    .features {
        grid-template-columns: 1fr;
        gap: 16px;
        margin: 32px 0;
    }
    
    .feature {
        padding: 24px 16px;
        text-align: center;
    }
    
    .feature-icon {
        font-size: 2rem;
        margin-bottom: 12px;
    }
    
    .feature p {
        font-size: 0.9rem;
    }
    
    /* Value prop mobile */
    .value-prop {
        padding: 24px 16px;
        margin: 32px 0;
    }
    
    .big-stat {
        font-size: 2.2rem;
        letter-spacing: 1px;
    }
    
    .stat-subtitle {
        font-size: 1rem;
    }
    
    /* CTA buttons mobile */
    .cta-buttons {
        flex-direction: column;
        gap: 12px;
        margin-top: 24px;
        padding: 0 20px;
    }
    
    .neon-button {
        padding: 16px 24px;
        font-size: 0.9rem;
        width: 100%;
        max-width: 280px;
    }
    
    /* Email notice */
    .email-notice {
        font-size: 1.1rem;
        margin: 24px 0;
        padding: 0 20px;
    }
    
    /* Scroll indicator */
    .scroll-indicator {
        bottom: 20px;
        font-size: 0.8rem;
    }
    
    /* Leaf animations - reduce for performance */
    .leaf {
        display: none;
    }
    
    .leaf.top-left,
    .leaf.bottom-right {
        display: block;
        opacity: 0.3;
    }
}

/* Tablet and larger mobile devices (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .container {
        width: 90%;
    }
    
    .massive-text {
        font-size: clamp(2.2rem, 6vw, 3rem);
    }
    
    .section-title {
        font-size: clamp(1.8rem, 5vw, 2.2rem);
    }
    
    .colby-logo {
        font-size: clamp(3rem, 10vw, 4rem);
    }
    
    /* Shock animation tablet */
    .shock-emoji {
        font-size: 6rem;
    }
    
    .shock-text {
        font-size: 1.6rem;
    }
    
    /* Colby demo tablet */
    .demo-container {
        grid-template-columns: 1fr;
        gap: 20px;
        max-height: 55vh;
        overflow-y: auto;
    }
    
    .record-fields {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Features tablet */
    .features {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .cta-buttons {
        flex-direction: row;
        gap: 20px;
    }
}

/* Landscape mobile optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .colby-demo {
        padding: 8px;
        margin: 5px auto;
    }
    
    .demo-container {
        max-height: 70vh;
        overflow-y: auto;
    }
    
    .record-section {
        padding: 6px;
        margin-bottom: 4px;
    }
    
    .field-value {
        padding: 4px 6px;
        font-size: 0.7rem;
        min-height: 24px;
    }
    
    .section {
        height: 100vh;
        height: 100dvh;
        width: 100vw;
        padding: 10px 0;
        position: absolute;
        top: 0;
        left: 0;
    }
    
    .massive-text {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
        margin-bottom: 70px;
    }
    
    .section-title {
        font-size: clamp(1.3rem, 5vw, 1.8rem);
        margin-bottom: 16px;
    }
    
    .shock-animation {
        margin: 20px auto;
    }
    
    .shock-emoji {
        font-size: 3.5rem;
        margin-bottom: 10px;
    }
    
    .colby-demo {
        padding: 12px;
        margin: 10px auto;
        width: 95%;
    }
    
    .value-prop {
        padding: 20px;
        margin: 20px 0;
    }
    
    .big-stat {
        font-size: 1.8rem;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .neon-button {
        padding: 18px 36px;
        font-size: 1rem;
        min-height: 44px; /* iOS touch target size */
    }
    
    .feature {
        padding: 32px 20px;
    }
    
    /* Remove hover effects on touch devices */
    .neon-button:hover,
    .feature:hover {
        transform: none;
        box-shadow: none;
    }
    
    /* Add active states for better touch feedback */
    .neon-button:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    .feature:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
    .leaf {
        transform: translateZ(0); /* Force GPU acceleration */
    }
    
    .shock-animation {
        backface-visibility: hidden; /* Prevent flickering */
    }
}