/* CSS Variables - Poker Friend Brand Colors */
:root {
    /* Primary Brand Color */
    --terracottaRed: #C85A54;
    
    /* Complementary Poker Palette - Background & Neutrals */
    --deepForest: #1B3B36;
    --charcoalSlate: #2C3E50;
    --coolWhite: #FAFBFC;
    --lightGray: #F8F9FA;
    
    /* Accent Colors */
    --goldenAmber: #F39C12;
    --steelBlue: #5D6D7E;
    --successGreen: #27AE60;
    
    /* Phantom-inspired color palette */
    --phantomFont: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    --white: #fffdf8;
    --black: #1c1c1c;
    --purple: #ab9ff2;
    --lilac: #e2dffe;
    --yellow: #ffd13f;
    --blue: #4a87f2;
    --midnightPurple: #3c315b;
    --midnightPurple70: rgba(60,49,91,0.7);
    --pink: #ffdadc;
    --green: #2ec08b;
    --moonYellow: #ffffc4;
    --red: #ff7243;
    --grey: #e8e6e2;
    --dark1: #161618;
    --dark3: #232326;
    --dark4: #28282c;
    --dark5: #2e2e32;
    --dark6: #34343a;
    --dark8: #5842c3;
    --dark9: #706f78;
    --dark10: #7e7d86;
    --dark11: #a09fa6;
    --dark12: #ededef;
    --light3: #f4f2f4;
    --light5: #e9e8ea;
    --light6: #e4e2e4;
    --light9: #908e96;
    --light10: #86848d;
    --darkViolet4: #2c2250;
    --darkViolet6: #392c72;
    --violet1: #fdfcfe;
    --violet3: #f5f2ff;
    --violet4: #ede9fe;
    --violet6: #d7cff9;
    --violet8: #aa99ec;
    
    /* Theme colors - Updated for Poker Friend */
    --themeBgColor: var(--deepForest);
    --themeTextColor: var(--coolWhite);
    --themeTitleColor: var(--coolWhite);
    --themeNavBgColor: var(--coolWhite);
    --themeSubNavBgColor: var(--lightGray);
    --themeNavLinkColor: var(--charcoalSlate);
    --themeNavLinkHoverColor: var(--lightGray);
    
    /* Spacing */
    --maxWidthContentS: 90rem;
    --maxWidthContent: 97.5rem;
    --spacingXXXS: 0.25rem;
    --spacingXXS: 0.5rem;
    --spacingXS: 1rem;
    --spacingS: 1.5rem;
    --spacingM: 2rem;
    --spacingL: 3rem;
    --spacingXL: 4rem;
    --spacingXXL: 6rem;
    --spacingXXXL: 8rem;
    
    /* Border radius */
    --borderRadiusXXL: 6.25rem;
    --borderRadiusXL: 2rem;
    --borderRadiusL: 1rem;
    --borderRadiusM: 0.5rem;
    --borderRadiusS: 0.25rem;
    
    /* Animations */
    --snap: cubic-bezier(0,1,0.5,1);
    --easeOutCubic: cubic-bezier(0.215,0.61,0.355,1);
    --easeInOutCubic: cubic-bezier(0.645,0.045,0.355,1);
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
}

body {
    font-family: var(--phantomFont);
    background-color: var(--themeBgColor);
    color: var(--themeTextColor);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Header Styles */
.header {
    position: sticky;
    top: 0;
    background-color: var(--themeBgColor);
    z-index: 200;
    padding: var(--spacingXS) var(--spacingL) 0;
    overflow: hidden;
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--fill-height, 0%);
    background: var(--header-bg-color, var(--yellow));
    transition: all 0.3s ease-out;
    z-index: -1;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: var(--maxWidthContent);
    padding: var(--spacingS) 0;
    margin: 0 auto;
    min-height: 6rem;
}

/* Logo Styles */
.logo-container {
    flex-shrink: 0;
    perspective: 1200px;
    perspective-origin: center center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: var(--spacingXS);
    color: var(--themeTitleColor);
    text-decoration: none;
    transition: all 0.2s var(--easeOutCubic);
    transform-style: preserve-3d;
}

.logo-link:hover .logo {
    animation: chipFlip 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.logo {
    height: 3rem;
    width: 3.375rem;
    object-fit: contain;
    filter: drop-shadow(0 0.125rem 0.25rem rgba(0, 0, 0, 0.1));
    transition: transform 0.1s ease;
    transform-style: preserve-3d;
    backface-visibility: visible;
}

/* Poker Chip 3D Flip Animation - Upside Down */
@keyframes chipFlip {
    0% {
        transform: rotateX(0deg) translateZ(0) scale(1);
        filter: drop-shadow(0 0.125rem 0.25rem rgba(0, 0, 0, 0.1));
    }
    25% {
        transform: rotateX(90deg) translateZ(1.25rem) scale(1.1);
        filter: drop-shadow(0 0.5rem 1rem rgba(0, 0, 0, 0.3));
    }
    50% {
        transform: rotateX(180deg) translateZ(1.875rem) scale(1.15);
        filter: drop-shadow(0 0.75rem 1.5rem rgba(0, 0, 0, 0.4));
    }
    75% {
        transform: rotateX(270deg) translateZ(1.25rem) scale(1.1);
        filter: drop-shadow(0 0.5rem 1rem rgba(0, 0, 0, 0.3));
    }
    100% {
        transform: rotateX(360deg) translateZ(0) scale(1);
        filter: drop-shadow(0 0.125rem 0.25rem rgba(0, 0, 0, 0.1));
    }
}

.logo-text {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--themeTitleColor);
    letter-spacing: -0.01em;
}

/* Navigation Styles */
.nav {
    display: flex;
    align-items: center;
}

.nav-rounded-container {
    background-color: var(--themeNavBgColor);
    border-radius: var(--borderRadiusXXL);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: var(--spacingXXS) var(--spacingXS);
}

.nav-list {
    display: flex;
    list-style: none;
    align-items: center;
    gap: var(--spacingXXS);
    margin: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: var(--spacingXXS) var(--spacingS);
    color: var(--themeNavLinkColor);
    text-decoration: none;
    font-weight: 500;
    border-radius: var(--borderRadiusXXL);
    transition: all 0.2s var(--easeOutCubic);
    cursor: pointer;
}

.nav-link:hover {
    background-color: rgba(60, 49, 91, 0.1);
    color: var(--midnightPurple);
}

.nav-text {
    font-size: 16px;
}

/* CTA Button */
.cta-button {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: var(--terracottaRed);
    color: var(--coolWhite);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: var(--borderRadiusXXL);
    transition: all 0.2s var(--easeOutCubic);
    border: 0.125rem solid var(--terracottaRed);
}

.cta-button:hover {
    background-color: transparent;
    color: var(--terracottaRed);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(200, 90, 84, 0.3);
}

.button-text {
    font-size: 16px;
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 2.5rem;
    height: 2.5rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--borderRadiusM);
    transition: background-color 0.2s var(--easeOutCubic);
    position: relative;
    z-index: 1000;
}

.hamburger-menu:hover {
    background-color: rgba(60, 49, 91, 0.1);
}

.hamburger-line {
    width: 1.5rem;
    height: 3px;
    background-color: var(--white);
    transition: all 0.3s var(--easeOutCubic);
    transform-origin: center;
    border-radius: 2px;
}

.hamburger-line:not(:last-child) {
    margin-bottom: 4px;
}

.hamburger-menu.active .hamburger-line {
    background-color: var(--white);
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background-color: var(--white);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
    background-color: var(--white);
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--themeBgColor);
    backdrop-filter: blur(20px);
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.3s var(--easeOutCubic);
}

.mobile-nav.active {
    display: block;
    transform: translateX(0);
}

.mobile-nav-content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: var(--spacingL);
}

.mobile-nav-list {
    list-style: none;
    text-align: center;
}

.mobile-nav-item {
    margin-bottom: var(--spacingL);
}

.mobile-nav-link {
    display: block;
    padding: var(--spacingS) var(--spacingM);
    color: var(--themeTitleColor);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    border-radius: var(--borderRadiusL);
    transition: all 0.2s var(--easeOutCubic);
}

.mobile-nav-link:hover {
    background-color: rgba(60, 49, 91, 0.1);
    color: var(--midnightPurple);
}

.mobile-nav-link.cta-link {
    background-color: var(--terracottaRed);
    color: var(--coolWhite);
    border-radius: var(--borderRadiusXXL);
    padding: var(--spacingS) var(--spacingL);
    margin-top: var(--spacingM);
}

.mobile-nav-link.cta-link:hover {
    background-color: var(--goldenAmber);
    color: var(--coolWhite);
}

/* Hero Section */
.hero {
    padding: var(--spacingL) var(--spacingL);
    min-height: 85vh;
    display: flex;
    align-items: center;
    margin-top: 2rem;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    position: relative;
    z-index: 1;
}

.hero.fade-out {
    opacity: 0;
    transform: translateY(-2rem);
}

.hero-container {
    max-width: var(--maxWidthContent);
    margin: 0 auto;
    width: 100%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacingXXL);
    align-items: center;
}

.hero-text {
    text-align: left;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    color: var(--themeTitleColor);
    margin-bottom: var(--spacingS);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--steelBlue);
    margin-bottom: var(--spacingXL);
    line-height: 1.6;
}

/* Waitlist Form */
.waitlist-form {
    display: flex;
    align-items: center;
    gap: var(--spacingXS);
    margin-bottom: var(--spacingS);
    max-width: 500px;
}

.email-input {
    flex: 1;
    padding: 1.125rem 1.5rem;
    border: 0.125rem solid var(--steelBlue);
    border-radius: var(--borderRadiusXXL);
    background-color: var(--coolWhite);
    color: var(--charcoalSlate);
    font-size: 1rem;
    font-family: var(--phantomFont);
    outline: none;
    transition: all 0.3s var(--easeOutCubic);
}

.email-input::placeholder {
    color: var(--steelBlue);
}

.email-input:focus {
    border-color: var(--terracottaRed);
    box-shadow: 0 0 0 3px rgba(200, 90, 84, 0.1);
}

.waitlist-button {
    padding: 1.125rem 2rem;
    background-color: var(--terracottaRed);
    color: var(--coolWhite);
    border: none;
    border-radius: var(--borderRadiusXXL);
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--phantomFont);
    cursor: pointer;
    transition: all 0.3s var(--easeOutCubic);
    white-space: nowrap;
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
    min-width: 140px;
    height: 52px;
    overflow: hidden;
}

.waitlist-button:hover:not(.success):not(.loading) {
    background-color: var(--goldenAmber);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.3);
}

.waitlist-button:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.button-front,
.button-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    backface-visibility: hidden;
    transition: transform 0.6s var(--easeOutCubic);
}

.button-back {
    transform: rotateY(180deg);
    background-color: var(--successGreen);
}

.waitlist-button.success .button-front {
    transform: rotateY(180deg);
}

.waitlist-button.success .button-back {
    transform: rotateY(0deg);
}

.waitlist-button.success {
    background-color: var(--successGreen);
}

.waitlist-button.loading .button-front::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.waitlist-note {
    font-size: 14px;
    color: var(--steelBlue);
    opacity: 0.8;
    transition: all 0.3s var(--easeOutCubic);
}

.waitlist-note.success-message {
    color: var(--successGreen);
    font-weight: 600;
    opacity: 1;
}

.waitlist-note.error-message {
    color: var(--terracottaRed);
    font-weight: 600;
    opacity: 1;
}

.email-input {
    transition: all 0.3s var(--easeOutCubic);
}

/* Hero Visual / Phone Mockup */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    width: 100%;
    max-width: 400px;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup-image {
    width: 280px;
    height: auto;
    max-height: 560px;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    object-fit: contain;
    background: transparent;
}

.phone-placeholder {
    width: 280px;
    height: 560px;
    background-color: var(--charcoalSlate);
    border-radius: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--coolWhite);
    font-size: 18px;
    font-weight: 600;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

/* Responsive Design */
/* Tablet Styles */
@media (max-width: 1024px) {
    .desktop-nav {
        display: none;
    }
    
    .desktop-cta {
        display: none;
    }
    
    .hamburger-menu {
        display: flex;
    }
}

/* Mobile Styles - High Priority */
@media screen and (max-width: 768px) {
    /* Prevent horizontal overflow */
    * {
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    
    /* Force mobile layout for about and footer sections */
    .about-section .about-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    
    .footer .footer-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    .header {
        position: sticky !important;
        top: 0 !important;
        padding: var(--spacingXXS) var(--spacingS) 0;
        z-index: 200 !important;
        background-color: var(--themeBgColor);
        overflow: hidden;
    }
    
    .header::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: var(--fill-height, 0%);
        background: var(--header-bg-color, var(--yellow));
        transition: height 0.3s var(--easeOutCubic);
        z-index: -1;
    }
    
    .header-container {
        padding: var(--spacingXS) var(--spacingS);
        min-height: 3.5rem;
        width: 100%;
        max-width: 100vw;
    }
    
    .desktop-nav {
        display: none !important;
    }
    
    .desktop-cta {
        display: none !important;
    }
    
    .hamburger-menu {
        display: flex !important;
        position: relative;
        z-index: 300;
    }
    
    /* Ensure mobile nav doesn't interfere with header */
    .mobile-nav {
        z-index: 250;
    }
    
    .hero {
        padding: var(--spacingL) var(--spacingS);
        min-height: auto;
        width: 100%;
        max-width: 100vw;
    }
    
    .hero-container {
        max-width: 100%;
        padding: 0;
        width: 100%;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacingL);
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.25rem;
        margin-top: 2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: var(--spacingL);
    }
    
    .waitlist-form {
        flex-direction: column;
        max-width: 100%;
        width: 100%;
        gap: var(--spacingS);
        align-items: stretch;
    }
    
    .email-input {
        margin-bottom: var(--spacingS);
        width: 100%;
    }
    
    .waitlist-button {
        width: 100%;
        justify-content: center;
    }
    
    .phone-mockup-image {
        width: 200px;
        max-height: 400px;
    }
    
    .phone-placeholder {
        width: 200px;
        height: 400px;
    }
    
    /* Features Section Mobile - Stack Vertically */
    .features-section {
        width: 100%;
        max-width: 100vw;
    }
    
    .features-container {
        padding: 0 var(--spacingS);
        width: 100%;
        max-width: 100%;
    }
    
    .app-features {
        display: flex;
        flex-direction: column;
        gap: var(--spacingXL);
        width: 100%;
        max-width: 100%;
    }
    
    .feature-item {
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: var(--spacingM);
        padding: var(--spacingL) var(--spacingS);
        width: 100%;
        max-width: 100%;
    }
    
    .feature-left,
    .feature-right {
        display: flex;
        flex-direction: column;
    }
    
    .feature-screenshot {
        order: 1;
        margin-bottom: var(--spacingM);
    }
    
    .feature-content {
        order: 2;
    }
    
    .screenshot-placeholder {
        width: 280px;
        height: 350px;
        margin: 0 auto var(--spacingM) auto;
    }
    
    .feature-screenshot video {
        width: 280px;
        height: 350px;
        margin: 0 auto var(--spacingM) auto;
    }
    
    /* About Section Mobile */
    .about-section {
        padding: var(--spacingXL) 0;
        width: 100%;
        max-width: 100vw;
    }
    
    .about-container {
        padding: 0 var(--spacingS);
        max-width: 100%;
        width: 100%;
    }
    
    .about-content {
        display: flex !important;
        flex-direction: column !important;
        gap: var(--spacingL);
        width: 100%;
        grid-template-columns: unset !important;
    }
    
    .about-text {
        width: 100%;
        text-align: center;
        order: 1;
    }
    
    .stats-section {
        width: 100%;
        margin-top: var(--spacingL);
        order: 2; /* Ensure stats come after text */
    }
    
    .section-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .section-subtitle {
        font-size: 1rem;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: var(--spacingM);
        margin-top: var(--spacingL);
        width: 100%;
        max-width: 100%;
    }
    
    .about-section .stats-grid {
        grid-template-columns: 1fr !important;
        display: grid !important;
    }
    
    .stat-card {
        padding: var(--spacingM);
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .about-feature {
        flex-direction: row;
        text-align: left;
        gap: var(--spacingM);
        padding: var(--spacingM) 0;
    }
    
    .feature-icon {
        width: 3rem;
        height: 3rem;
        font-size: 1.5rem;
    }
    
    /* Pricing Section Mobile */
    .pricing-section {
        padding: var(--spacingXL) 0;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: var(--spacingL);
        max-width: 400px;
        margin: var(--spacingXL) auto 0;
    }
    
    .pricing-card {
        padding: var(--spacingL);
        margin: 0 var(--spacingS);
    }
    
    .pricing-card.featured {
        transform: none;
        margin: var(--spacingM) var(--spacingS);
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-8px);
    }
    
    .plan-name {
        font-size: 1.25rem;
    }
    
    .amount {
        font-size: 2.5rem;
    }
    
    .currency {
        font-size: 1.25rem;
    }
    
    .period {
        font-size: 1rem;
    }
    
    /* Footer Mobile */
    .footer {
        padding: var(--spacingXL) 0 var(--spacingM) 0;
        width: 100%;
        max-width: 100vw;
    }
    
    .footer-container {
        padding: var(--spacingL) var(--spacingS);
        max-width: 100%;
        width: 100%;
    }
    
    .footer-content {
        display: flex !important;
        flex-direction: column !important;
        gap: var(--spacingL);
        text-align: center;
        width: 100%;
        grid-template-columns: unset !important;
    }
    
    .footer-brand {
        order: 1;
        margin-bottom: var(--spacingL);
        width: 100%;
    }
    
    .footer-links {
        order: 2;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacingL);
        width: 100%;
        justify-self: center;
    }
    
    .footer-section {
        text-align: center;
        width: 100%;
    }
    
    .social-links {
        justify-content: center;
        margin-top: var(--spacingL);
    }
    
    
    .footer-section {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
}

/* Extra Small Mobile Styles */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.875rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .screenshot-placeholder {
        width: 260px;
        height: 320px;
    }
    
    .feature-screenshot video {
        width: 260px;
        height: 320px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--spacingM);
    }
    
    .footer-links {
        grid-template-columns: 1fr !important;
        gap: var(--spacingL);
    }
    
    .pricing-grid {
        max-width: 320px;
    }
    
    .pricing-card {
        margin: 0;
    }
    
    .amount {
        font-size: 2.25rem;
    }
    
    .about-feature {
        flex-direction: column;
        text-align: center;
    }
}

/* About Section */
.about-section {
    background: var(--midnightPurple);
    color: var(--coolWhite);
    padding: var(--spacingXXL) 0;
    position: relative;
    overflow: hidden;
    margin-top: -1px; /* Prevent gap from previous section */
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><pattern id="grain" patternUnits="userSpaceOnUse" width="100" height="20"><circle cx="10" cy="10" r="1" fill="%23ffffff" opacity="0.05"/><circle cx="30" cy="5" r="0.5" fill="%23ffffff" opacity="0.03"/><circle cx="60" cy="15" r="1.5" fill="%23ffffff" opacity="0.04"/><circle cx="80" cy="8" r="0.8" fill="%23ffffff" opacity="0.02"/></pattern></defs><rect width="100" height="20" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.about-container {
    max-width: var(--maxWidthContent);
    margin: 0 auto;
    padding: 0 var(--spacingL);
    position: relative;
    z-index: 1;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacingXXL);
    align-items: center;
}

.section-badge {
    display: inline-block;
    padding: var(--spacingXXS) var(--spacingS);
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--goldenAmber);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--borderRadiusXXL);
    margin-bottom: var(--spacingS);
    backdrop-filter: blur(10px);
    width: auto !important;
    max-width: fit-content !important;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--coolWhite);
    margin-bottom: var(--spacingS);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacingXL);
    line-height: 1.6;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: var(--spacingL);
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: var(--spacingS);
}

.feature-icon {
    font-size: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--goldenAmber), var(--successGreen));
    border-radius: var(--borderRadiusL);
    flex-shrink: 0;
    box-shadow: 
        0 8px 32px rgba(243, 156, 18, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s var(--easeOutCubic);
    transform-style: preserve-3d;
}

.about-feature:hover .feature-icon {
    transform: translateY(-4px) rotateY(15deg) rotateX(15deg);
    box-shadow: 
        0 12px 40px rgba(243, 156, 18, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.feature-text h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--coolWhite);
    margin-bottom: var(--spacingXXS);
}

.feature-text p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* Story Section Styles */
.story-section {
    margin-top: var(--spacingXL);
    width: 100%;
}

.story-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--borderRadiusL);
    padding: var(--spacingXL);
    backdrop-filter: blur(10px);
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
}

.story-card p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacingM);
}

.story-card p:last-child {
    margin-bottom: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacingM);
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    padding: var(--spacingL);
    border-radius: var(--borderRadiusXL);
    text-align: center;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s var(--easeOutCubic);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.stat-card:hover {
    transform: translateY(-8px) rotateX(5deg) rotateY(-5deg) scale(1.02);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--goldenAmber);
    margin-bottom: var(--spacingXXS);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* Pricing Section */
.pricing-section {
    background: var(--steelBlue);
    color: var(--coolWhite);
    padding: var(--spacingXXL) 0;
    position: relative;
}

.pricing-container {
    max-width: var(--maxWidthContent);
    margin: 0 auto;
    padding: 0 var(--spacingL);
}

.pricing-section .section-header {
    text-align: center;
    margin-bottom: var(--spacingXXL);
}

.pricing-badge {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--yellow);
}

.pricing-title {
    color: var(--coolWhite);
}

.pricing-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacingM);
    margin-top: var(--spacingXL);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--borderRadiusXL);
    padding: var(--spacingL);
    position: relative;
    backdrop-filter: blur(20px);
    transition: all 0.4s var(--easeOutCubic);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.pricing-card:hover {
    transform: translateY(-12px) rotateX(8deg) rotateY(-3deg) scale(1.02);
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.pricing-card.featured {
    border-color: var(--goldenAmber);
    box-shadow: 0 0 40px rgba(243, 156, 18, 0.2);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-15px) rotateX(10deg) rotateY(-4deg);
    box-shadow: 
        0 35px 100px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(243, 156, 18, 0.3),
        0 0 0 1px rgba(243, 156, 18, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--goldenAmber), var(--red));
    color: var(--coolWhite);
    padding: var(--spacingXXS) var(--spacingS);
    border-radius: var(--borderRadiusXXL);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-header {
    text-align: center;
    margin-bottom: var(--spacingL);
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--coolWhite);
    margin-bottom: var(--spacingS);
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: var(--spacingS);
}

.currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--goldenAmber);
}

.amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--coolWhite);
    margin: 0 var(--spacingXXS);
}

.period {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
}

.plan-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

.card-features {
    margin-bottom: var(--spacingL);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--spacingS);
    padding: var(--spacingS) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-item .feature-icon {
    width: 1.5rem;
    height: 1.5rem;
    background: var(--successGreen);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--coolWhite);
    font-size: 0.875rem;
    font-weight: 700;
    flex-shrink: 0;
}

.feature-item .feature-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.plan-button {
    width: 100%;
    padding: var(--spacingS) var(--spacingM);
    border: none;
    border-radius: var(--borderRadiusXXL);
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--phantomFont);
    cursor: pointer;
    transition: all 0.3s var(--easeOutCubic);
}

.basic-button {
    background: transparent;
    color: var(--coolWhite);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.basic-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.pro-button {
    background: linear-gradient(135deg, var(--goldenAmber), var(--red));
    color: var(--coolWhite);
}

.pro-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.4);
}

.premium-button {
    background: transparent;
    color: var(--goldenAmber);
    border: 2px solid var(--goldenAmber);
}

.premium-button:hover {
    background: var(--goldenAmber);
    color: var(--midnightPurple);
}

/* Footer */
.footer {
    background: var(--dark1);
    color: var(--coolWhite);
    padding: var(--spacingXXL) 0 var(--spacingL) 0;
    position: relative;
}

.footer-container {
    max-width: var(--maxWidthContent);
    margin: 0 auto;
    padding: 0 var(--spacingL);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacingXXL);
    margin-bottom: var(--spacingXL);
}

.footer-brand {
    max-width: 400px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacingS);
    margin-bottom: var(--spacingM);
}

.footer-logo-img {
    height: 2.5rem;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--coolWhite);
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: var(--spacingL);
}

.social-links {
    display: flex;
    gap: var(--spacingS);
}

.social-link {
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--borderRadiusM);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s var(--easeOutCubic);
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: var(--goldenAmber);
    color: var(--dark1);
    transform: translateY(-2px);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacingL);
}

.footer-heading {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--coolWhite);
    margin-bottom: var(--spacingM);
}

.footer-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacingXS);
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s var(--easeOutCubic);
    font-size: 0.9375rem;
}

.footer-link:hover {
    color: var(--goldenAmber);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacingL);
    text-align: center;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

/* Animation Classes for New Sections */
.about-section,
.pricing-section {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s var(--easeOutCubic);
}

.about-section.section-visible,
.pricing-section.section-visible {
    opacity: 1;
    transform: translateY(0);
}

.stat-card {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: all 0.6s var(--easeOutCubic);
}

.stat-card.stat-animate {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.pricing-card {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.7s var(--easeOutCubic);
}

.pricing-card.card-animate {
    opacity: 1;
    transform: translateY(0);
}

.pricing-card.featured.card-animate {
    transform: scale(1.05) translateY(0);
}

.about-feature {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s var(--easeOutCubic);
}

.about-feature.feature-animate {
    opacity: 1;
    transform: translateX(0);
}

/* Pulse animation for stats */
@keyframes statPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.stat-card.stat-animate .stat-number {
    animation: statPulse 0.6s ease-out 0.3s;
}

/* Features Section with Scroll Animation */
.features-section {
    position: relative;
    min-height: 60vh;
    padding: var(--spacingM) 0;
    overflow: hidden;
    margin-bottom: -1px; /* Prevent gap between sections */
    background-color: var(--yellow); /* Ensure yellow background */
}

/* Gesture List Styles */
.gesture-list {
    margin-top: 20px;
    padding-left: 0;
    list-style: none;
}

.gesture-item {
    padding: 8px 0;
    font-size: 16px;
    color: var(--dark9);
    opacity: 0;
    transform: translateY(20px);
    position: relative;
}

.gesture-item:before {
    content: '→';
    color: var(--terracottaRed);
    margin-right: 10px;
    font-weight: bold;
}

.gesture-item strong {
    color: var(--dark1);
}


.features-trigger {
    height: 20vh;
    width: 100%;
}

.features-content {
    position: relative;
    width: 100%;
    background-color: var(--yellow);
    padding: var(--spacingM) 0;
    min-height: 50vh;
    z-index: 100;
    overflow-x: hidden;
    transform: translateY(100%);
    transition: transform 0.8s var(--easeOutCubic);
}

.features-section.active .features-content {
    transform: translateY(0);
    pointer-events: all;
}

.features-section.scrolled-back .features-content {
    transform: translateY(100%);
    pointer-events: none;
}

.features-container {
    width: 100%;
    min-height: 40vh;
    padding: var(--spacingM) var(--spacingL);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Vertical Alternating Features */
.app-features {
    display: flex;
    flex-direction: column;
    gap: var(--spacingL);
    padding: var(--spacingS) 0;
}

.feature-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacingXXL);
    align-items: center;
    max-width: var(--maxWidthContent);
    margin: 0 auto;
    opacity: 0;
    transform: translateY(2rem);
    animation: slideUpStagger 0.8s ease-out forwards;
}

.feature-item:nth-child(1) { animation-delay: 0.2s; }
.feature-item:nth-child(2) { animation-delay: 0.4s; }
.feature-item:nth-child(3) { animation-delay: 0.6s; }
.feature-item:nth-child(4) { animation-delay: 0.8s; }

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

.feature-screenshot {
    display: flex;
    justify-content: center;
}

.screenshot-placeholder {
    width: 300px;
    height: 500px;
    background: linear-gradient(145deg, var(--coolWhite) 0%, var(--lightGray) 100%);
    border-radius: var(--borderRadiusXL);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    margin-top: 5rem;
}

.screenshot-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: var(--charcoalSlate);
    border-radius: var(--borderRadiusXL) var(--borderRadiusXL) 0 0;
}

.screenshot-placeholder::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--steelBlue);
    border-radius: 2px;
}

.screenshot-placeholder p {
    color: var(--charcoalSlate);
    font-size: 1.125rem;
    font-weight: 600;
    z-index: 1;
    position: relative;
}

/* Video styling to match placeholder dimensions */
.feature-screenshot video {
    width: 300px;
    height: 500px;
    border-radius: var(--borderRadiusXL);
    object-fit: cover;
    margin-top: 5rem;
    background: var(--yellow);
    border: none;
}

.feature-screenshot img {
    width: 300px;
    height: 500px;
    border-radius: var(--borderRadiusXL);
    object-fit: cover;
    margin-top: 5rem;
    background: var(--yellow);
    border: none;
}

.feature-content {
    padding: var(--spacingM);
}

/* Many More Section Desktop Styles */
.many-more-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--spacingXL) 0;
}

.many-more-section .feature-content {
    max-width: 800px;
    margin: 0 auto;
}

.many-more-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 40px;
    justify-content: center;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.more-feature {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    transition: all 0.3s ease;
    text-align: left;
}

/* Desktop animation initial state */
@media screen and (min-width: 769px) {
    .more-feature {
        opacity: 0;
        transform: translateY(30px);
    }
}

.more-feature:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.more-feature-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    object-fit: contain;
}

.more-feature-text {
    font-size: 16px;
    color: var(--dark9);
    line-height: 1.5;
}

.more-feature-text strong {
    color: var(--dark1);
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.feature-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--charcoalSlate);
    margin-bottom: var(--spacingS);
    line-height: 1.2;
}

.feature-content p {
    font-size: 1.125rem;
    color: var(--deepForest);
    opacity: 0.9;
    line-height: 1.6;
}

@media (max-width: 640px) {
    .header-container {
        min-height: 3.5rem;
        padding: var(--spacingXXS) 0;
    }
    
    .logo {
        height: 3.125rem;
        width: 3.4375rem;
    }
    
    .logo-text {
        font-size: 1.25rem;
    }
    
    .cta-button {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    background: var(--green);
    color: var(--dark1);
    padding: var(--spacingXXL) 0;
    position: relative;
    overflow: hidden;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacingM);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacingXXL);
    align-items: start;
}

.contact-text .section-badge {
    display: inline-block;
    background: var(--dark1);
    color: var(--green);
    padding: var(--spacingXS) var(--spacingS);
    border-radius: var(--borderRadiusM);
    font-size: var(--textXS);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacingS);
}

.contact-text .section-title {
    font-size: var(--textXXL);
    font-weight: 700;
    margin-bottom: var(--spacingM);
    color: var(--dark1);
    line-height: 1.2;
}

.contact-text .section-subtitle {
    font-size: var(--textL);
    line-height: 1.6;
    color: var(--dark3);
    margin: 0;
}

.contact-form-container {
    background: var(--white);
    padding: var(--spacingXL);
    border-radius: var(--borderRadiusL);
    box-shadow: 0 20px 40px rgba(22, 22, 24, 0.1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacingM);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacingXS);
}

.form-label {
    font-size: var(--textS);
    font-weight: 600;
    color: var(--dark3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-input {
    padding: 1rem 1.25rem;
    border: 2px solid var(--grey);
    border-radius: var(--borderRadiusL);
    font-size: var(--textM);
    font-family: var(--phantomFont);
    color: var(--dark1);
    background: var(--white);
    transition: all 0.3s var(--easeOutCubic);
}

.form-input:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(46, 192, 139, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-submit-button {
    padding: 1.125rem 2rem;
    background: var(--terracottaRed);
    color: var(--coolWhite);
    border: none;
    border-radius: var(--borderRadiusL);
    font-size: var(--textM);
    font-weight: 600;
    font-family: var(--phantomFont);
    cursor: pointer;
    transition: all 0.3s var(--easeOutCubic);
    position: relative;
    overflow: hidden;
    text-align: center;
    min-height: 56px;
}

.contact-submit-button:hover {
    background: transparent;
    color: var(--terracottaRed);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(200, 90, 84, 0.3);
}

.contact-submit-button:active {
    transform: translateY(0);
}

.contact-submit-button.loading {
    pointer-events: none;
    opacity: 0.7;
}

.contact-submit-button.loading .button-text {
    opacity: 0;
}

.contact-submit-button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.contact-submit-button.success {
    background: var(--terracottaRed);
    color: var(--coolWhite);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Contact Section Responsive */
@media (max-width: 768px) {
    .contact-section {
        width: 100%;
        max-width: 100vw;
    }
    
    .contact-container {
        padding: 0 var(--spacingS);
        max-width: 100%;
        width: 100%;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--spacingXL);
        width: 100%;
    }
    
    .contact-text {
        text-align: center;
        width: 100%;
    }
    
    .contact-form-container {
        padding: var(--spacingL);
        width: 100%;
    }
    
    .contact-text .section-title {
        font-size: var(--textXL);
    }
    
    .form-input,
    .form-textarea {
        width: 100%;
    }
    
    .contact-submit-button {
        width: 100%;
    }
}

/* ===== HIGHLIGHT EFFECT ===== */
.highlight-text {
    position: relative;
    display: inline;
    padding: 2px 4px;
    background: transparent;
}

.highlight-text::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--yellow);
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 1.5s ease-out, opacity 0.3s ease-out;
    z-index: -1;
    border-radius: 3px;
}

.highlight-text.highlighted::after {
    transform: scaleX(1);
    opacity: 0.7;
}

/* Ensure text stays visible */
.highlight-text.highlighted {
    position: relative;
    z-index: 2;
}

/* FINAL MOBILE OVERRIDES - HIGHEST PRECEDENCE */
@media screen and (max-width: 768px) {
    /* Force single column stats grid */
    .stats-grid,
    .about-section .stats-grid,
    .stats-section .stats-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: auto !important;
        gap: var(--spacingM) !important;
        width: 100% !important;
    }

    /* Move story section to bottom on mobile */
    .story-section {
        order: 10 !important;
        margin-top: var(--spacingXL) !important;
    }

    .story-card {
        padding: var(--spacingL) !important;
        margin: 0 var(--spacingS) !important;
    }

    .story-card p {
        font-size: 1rem !important;
        line-height: 1.6 !important;
        margin-bottom: var(--spacingS) !important;
    }
    
    /* Force header to be FIXED on mobile */
    .header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 999 !important;
        background-color: var(--themeBgColor) !important;
        padding: var(--spacingXXS) var(--spacingS) 0 !important;
        overflow: hidden !important;
    }
    
    /* Add padding to body to account for fixed header */
    body {
        padding-top: 70px !important;
    }
    
    /* Ensure header animation works */
    .header::after {
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: var(--fill-height, 0%) !important;
        background: var(--header-bg-color, transparent) !important;
        transition: height 0.3s ease-out !important;
        z-index: -1 !important;
    }
    
    /* Force header content to stay visible */
    .header-container {
        position: relative !important;
        z-index: 1000 !important;
        background: transparent !important;
        padding: var(--spacingXS) var(--spacingS) !important;
        min-height: 3.5rem !important;
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }
    
    .logo-container,
    .hamburger-menu {
        position: relative !important;
        z-index: 1001 !important;
        background: transparent !important;
    }
    
    /* Ensure logo and hamburger are always visible */
    .logo-container .logo-link,
    .hamburger-menu {
        color: var(--white) !important;
        z-index: 1001 !important;
    }
    
    /* Make phone mockup bigger on mobile */
    .phone-mockup-image {
        width: 280px !important;
        max-width: 280px !important;
        max-height: 500px !important;
    }
    
    .phone-mockup {
        max-width: 300px !important;
    }

    /* Mobile Features Section - Complete Override */
    .features-section {
        padding: 40px 0 !important;
        text-align: center !important;
    }

    .features-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
    }



    .app-features {
        display: block !important;
        gap: 0 !important;
    }

    .feature-item {
        display: block !important;
        margin-bottom: 60px !important;
        padding: 0 20px !important;
        text-align: center !important;
        position: relative !important;
    }

    .feature-item:not(:last-child)::after {
        content: '' !important;
        position: absolute !important;
        bottom: -30px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 60% !important;
        height: 1px !important;
        background: linear-gradient(90deg, transparent 0%, var(--dark9) 20%, var(--dark9) 80%, transparent 100%) !important;
        opacity: 0.3 !important;
    }

    .feature-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        visibility: visible !important;
        opacity: 1 !important;
        text-align: center !important;
        padding: 0 20px !important;
        margin: 0 auto 40px auto !important;
        order: 1 !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .feature-screenshot {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin: 0 auto 30px auto !important;
        text-align: center !important;
        order: 2 !important;
        width: 100% !important;
        padding: 0 !important;
    }

    /* Override desktop left/right layout */
    .feature-left,
    .feature-right {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .feature-left .feature-content,
    .feature-right .feature-content {
        order: 1 !important;
        width: 100% !important;
    }

    .feature-left .feature-screenshot,
    .feature-right .feature-screenshot {
        order: 2 !important;
    }

    .feature-screenshot video,
    .feature-screenshot img {
        width: 280px !important;
        height: 450px !important;
        max-width: 90vw !important;
        margin: 0 !important;
        display: block !important;
        flex-shrink: 0 !important;
        object-fit: cover !important;
        border-radius: var(--borderRadiusXL) !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
    }


    .feature-content h3 {
        display: block !important;
        visibility: visible !important;
        font-size: 24px !important;
        color: var(--dark1) !important;
        margin: 0 0 20px 0 !important;
        text-align: center !important;
        font-weight: 600 !important;
        width: 100% !important;
        line-height: 1.3 !important;
        align-self: center !important;
    }

    .feature-content p {
        display: block !important;
        visibility: visible !important;
        font-size: 16px !important;
        color: var(--dark9) !important;
        line-height: 1.6 !important;
        margin: 0 0 24px 0 !important;
        text-align: center !important;
        width: 100% !important;
        padding: 0 !important;
        align-self: center !important;
    }

    /* Gesture List Mobile Styles */
    .gesture-list {
        display: block !important;
        visibility: visible !important;
        list-style: none !important;
        margin: 20px 0 0 0 !important;
        padding: 0 !important;
        text-align: left !important;
        max-width: 300px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .gesture-item {
        display: block !important;
        visibility: visible !important;
        padding: 8px 0 !important;
        font-size: 15px !important;
        color: var(--dark9) !important;
        line-height: 1.4 !important;
        text-align: left !important;
    }

    .gesture-item:before {
        content: '→' !important;
        color: var(--terracottaRed) !important;
        margin-right: 8px !important;
        font-weight: bold !important;
    }

    .gesture-item strong {
        color: var(--dark1) !important;
        font-weight: 600 !important;
    }

    /* Many More Section Mobile Styles */
    .many-more-section {
        text-align: center !important;
        margin-bottom: 0 !important;
        padding: 40px 20px !important;
    }

    .many-more-section .feature-content {
        margin-bottom: 0 !important;
        max-width: 100% !important;
    }

    .many-more-features {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
        margin-top: 30px !important;
        align-items: center !important;
        width: 100% !important;
    }

    .more-feature {
        display: flex !important;
        align-items: center !important;
        text-align: left !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: 320px !important;
        padding: 16px 20px !important;
        background: rgba(255, 255, 255, 0.08) !important;
        border-radius: 12px !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        transition: all 0.3s ease !important;
    }

    /* Mobile cards visible by default, GSAP will handle animation */

    .more-feature:hover {
        background: rgba(255, 255, 255, 0.12) !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
    }

    .more-feature-icon {
        width: 36px !important;
        height: 36px !important;
        flex-shrink: 0 !important;
        object-fit: contain !important;
    }

    .more-feature-text {
        font-size: 15px !important;
        color: var(--dark9) !important;
        line-height: 1.4 !important;
    }

    .more-feature-text strong {
        color: var(--dark1) !important;
        font-weight: 600 !important;
        display: block !important;
        margin-bottom: 4px !important;
    }

    /* Remove separator line from last item */
    .many-more-section::after {
        display: none !important;
    }

    /* Additional responsive adjustments for different screen sizes */
    @media screen and (max-width: 320px) {
        .feature-screenshot video,
        .feature-screenshot img {
            width: 240px !important;
            height: 390px !important;
        }
    }

    @media screen and (min-width: 321px) and (max-width: 480px) {
        .feature-screenshot video,
        .feature-screenshot img {
            width: 260px !important;
            height: 420px !important;
        }
    }

    @media screen and (min-width: 481px) and (max-width: 768px) {
        .feature-screenshot video,
        .feature-screenshot img {
            width: 300px !important;
            height: 480px !important;
        }
    }

}