/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    background: var(--bg-primary);
}

:root {
    --primary-color: #000000;
    --primary-dark: #000000;
    --primary-light: #1a1a1a;
    --secondary-color: #ffffff;
    --text-primary: #000000;
    --text-secondary: #4a4a4a;
    --text-light: #8a8a8a;
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --bg-dark: #000000;
    --border-color: #e0e0e0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    background: var(--bg-primary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.logo-link {
    text-decoration: none;
    color: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.logo-link:hover {
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.logo-text {
    color: var(--text-primary);
    font-weight: 800;
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
    padding: 0;
    position: relative;
}

.theme-toggle:hover {
    background: var(--bg-secondary);
    border-color: var(--text-primary);
}

.theme-icon {
    position: absolute;
    transition: opacity 0.3s ease, transform 0.3s ease;
    width: 20px;
    height: 20px;
}

.sun-icon {
    opacity: 1;
    transform: rotate(0deg);
}

.moon-icon {
    opacity: 0;
    transform: rotate(90deg);
}

body.dark-mode .sun-icon {
    opacity: 0;
    transform: rotate(90deg);
}

body.dark-mode .moon-icon {
    opacity: 1;
    transform: rotate(0deg);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 32px;
    height: 32px;
}

.mobile-menu-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: var(--bg-primary);
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    min-height: 100vh;
    border: 3px solid red; /* DEBUG: Hero section */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(0,0,0,0.08)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
    border: 3px solid blue; /* DEBUG: Hero content container */
}

.hero-image {
    min-width: 0;
    overflow: visible;
}

.hero-text {
    animation: fadeInUp 0.8s ease;
    border: 3px solid green; /* DEBUG: Hero text container */
}

.hero-title {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 3.5rem;
    line-height: 1.5;
    margin-bottom: 2rem;
    opacity: 0.95;
    font-weight: 400;
}


.hero-buttons {
    display: inline-flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin: 0 auto;
}

.download-button-link {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.download-button-link:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.download-button-img {
    height: 50px;
    width: auto;
    display: block;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--bg-dark);
    color: var(--bg-primary);
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--bg-dark);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    background: var(--primary-light);
}

.hero-image {
    display: flex;
    justify-content: center;
    animation: fadeInRight 0.8s ease;
    width: 100%;
    max-width: none;
    border: 3px solid orange; /* DEBUG: Hero image container */
}

.hero-screenshots {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    border: 3px solid purple; /* DEBUG: Hero screenshots container */
}

.phone-frame {
    position: relative;
    width: 380px;
    padding: 5px;
    background: #2a2a2a;
    border-radius: 40px;
    border: 1px solid var(--border-color);
}

.hero .phone-frame {
    width: 380px;
    max-width: calc(100% - 2rem);
    min-width: 0;
}

.hero .hero-screenshots .phone-frame {
    width: 380px;
    max-width: calc(100% - 2rem);
    min-width: 0;
}

.hero-screenshots {
    min-width: 0;
    max-width: 100%;
}

.phone-notch {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 20px;
    background: #000000;
    border-radius: 0 0 15px 15px;
    z-index: 2;
}

.hero-screenshot {
    width: 100%;
    height: auto;
    border-radius: 30px;
    display: block;
    transition: opacity 0.3s ease;
}

.hero-screenshot-dark {
    display: none;
}

.hero-screenshot-light {
    display: block;
}

body.dark-mode .hero-screenshot-dark {
    display: block;
}

body.dark-mode .hero-screenshot-light {
    display: none;
}

/* Tablet/Small Device */
@media (min-width: 481px) and (max-width: 768px) {
    .phone-frame {
        width: 320px;
        padding: 4px;
    }
    
    .phone-notch {
        width: 80px;
        height: 18px;
        top: 6px;
    }
}

/* Key Benefits Section */
.key-benefits {
    padding: 100px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.benefit-item {
    padding: 3rem 2rem;
    transition: transform 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
}

.benefit-text {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: var(--bg-primary);
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Feature Banner Section */
.feature-banner {
    padding: 100px 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

/* Reduce gap for sections below the first */
.feature-banner:nth-of-type(n+2) {
    padding: 60px 0;
}

.feature-banner:first-of-type {
    margin-top: 0;
    padding-top: 180px;
    border-top: none;
    position: relative;
}

.feature-banner:first-of-type::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(0,0,0,0.08)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    background-position: 0 var(--navbar-height, 73px);
    opacity: 1;
    z-index: 0;
    pointer-events: none;
}

.feature-banner .phone-frame {
    background: #2a2a2a;
    border: 1px solid #2a2a2a;
    padding: 3.8px;
    border-radius: 50px;
    position: relative;
    width: 380px;
}

/* Remove phone case styling for section 1 */
.feature-banner:first-of-type .phone-frame {
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
}

.feature-banner:first-of-type .phone-notch {
    display: none;
}

/* Remove bezel and border-radius from first section */
.feature-banner:first-of-type .feature-banner-screenshot {
    border: none;
    border-radius: 0;
}

/* Remove bezel and border-radius from section 2 */
.feature-banner:nth-of-type(2) .feature-banner-screenshot {
    border: none;
    border-radius: 0;
}

/* Make section 2 images same dimensions as phone frames in other sections */
.feature-banner:nth-of-type(2) .feature-banner-phone {
    width: 380px;
    max-width: 100%;
    margin: 0 auto;
}

.feature-banner:nth-of-type(2) .feature-banner-screenshot {
    width: 380px;
    max-width: 100%;
}

/* Remove bezel and border-radius from section 3 */
.feature-banner:nth-of-type(3) .feature-banner-screenshot {
    border: none;
    border-radius: 0;
}

/* Make section 3 images same dimensions as phone frames in other sections */
.feature-banner:nth-of-type(3) .feature-banner-phone {
    width: 380px;
    max-width: 100%;
    margin: 0 auto;
}

.feature-banner:nth-of-type(3) .feature-banner-screenshot {
    width: 380px;
    max-width: 100%;
}

/* Remove bezel and border-radius from section 4 */
.feature-banner:nth-of-type(4) .feature-banner-screenshot {
    border: none;
    border-radius: 0;
}

/* Make section 4 images same dimensions as phone frames in other sections */
.feature-banner:nth-of-type(4) .feature-banner-phone {
    width: 380px;
    max-width: 100%;
    margin: 0 auto;
}

.feature-banner:nth-of-type(4) .feature-banner-screenshot {
    width: 380px;
    max-width: 100%;
}

/* Remove bezel and border-radius from section 5 */
.feature-banner:nth-of-type(5) .feature-banner-screenshot {
    border: none;
    border-radius: 0;
}

/* Make section 5 images same dimensions as phone frames in other sections */
.feature-banner:nth-of-type(5) .feature-banner-phone {
    width: 380px;
    max-width: 100%;
    margin: 0 auto;
}

.feature-banner:nth-of-type(5) .feature-banner-screenshot {
    width: 380px;
    max-width: 100%;
}

/* Remove bezel and border-radius from sections 6-10 */
.feature-banner:nth-of-type(6) .feature-banner-screenshot,
.feature-banner:nth-of-type(7) .feature-banner-screenshot,
.feature-banner:nth-of-type(8) .feature-banner-screenshot,
.feature-banner:nth-of-type(9) .feature-banner-screenshot,
.feature-banner:nth-of-type(10) .feature-banner-screenshot {
    border: none;
    border-radius: 0;
}

/* Make sections 6-10 images same dimensions as phone frames in other sections */
.feature-banner:nth-of-type(6) .feature-banner-phone,
.feature-banner:nth-of-type(7) .feature-banner-phone,
.feature-banner:nth-of-type(8) .feature-banner-phone,
.feature-banner:nth-of-type(9) .feature-banner-phone,
.feature-banner:nth-of-type(10) .feature-banner-phone {
    width: 380px;
    max-width: 100%;
    margin: 0 auto;
}

.feature-banner:nth-of-type(6) .feature-banner-screenshot,
.feature-banner:nth-of-type(7) .feature-banner-screenshot,
.feature-banner:nth-of-type(8) .feature-banner-screenshot,
.feature-banner:nth-of-type(9) .feature-banner-screenshot,
.feature-banner:nth-of-type(10) .feature-banner-screenshot {
    width: 380px;
    max-width: 100%;
}

/* Hide side buttons for section 1 */
.feature-banner:first-of-type .phone-frame::before,
.feature-banner:first-of-type .phone-frame::after,
.feature-banner:first-of-type .phone-frame .phone-power-button,
.feature-banner:first-of-type .phone-frame .phone-volume-down {
    display: none;
}

.feature-banner .phone-notch {
    display: block;
    background: #000000;
    width: 80px;
    height: 18px;
    border-radius: 0 0 12px 12px;
    position: absolute;
    top: 3.8px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

/* Phone side buttons - left side (lock/silent switch and two volume buttons) */
.phone-frame::before {
    content: '';
    position: absolute;
    left: -4.3px;
    top: 15%;
    width: 4px;
    height: 38px;
    background: #2a2a2a;
    border-radius: 2px 0 0 2px;
    z-index: 1;
}

.phone-frame::after {
    content: '';
    position: absolute;
    left: -4.3px;
    top: 25%;
    width: 4px;
    height: 53px;
    background: #2a2a2a;
    border-radius: 2px 0 0 2px;
    z-index: 1;
}

.phone-frame .phone-volume-down {
    position: absolute;
    left: -4.3px;
    top: 36%;
    width: 4px;
    height: 53px;
    background: #2a2a2a;
    border-radius: 2px 0 0 2px;
    z-index: 1;
}

/* Power button on right side */
.phone-frame .phone-power-button {
    position: absolute;
    right: -4.3px;
    top: 20%;
    width: 4px;
    height: 90px;
    background: #2a2a2a;
    border-radius: 0 2px 2px 0;
    z-index: 1;
}

/* Dark mode side buttons - match frame color */
body.dark-mode .phone-frame::before,
body.dark-mode .phone-frame::after,
body.dark-mode .phone-frame .phone-power-button,
body.dark-mode .phone-frame .phone-volume-down {
    background: #1a1a1a;
}

/* Theme switching for all feature banners */
.feature-banner .feature-banner-screenshot {
    width: 100%;
    height: auto;
    border-radius: calc(50px - 3.8px);
    display: block;
    transition: opacity 0.3s ease;
    border: 8px solid #000000;
    box-sizing: border-box;
}

.feature-banner .feature-banner-screenshot-dark {
    display: none;
}

.feature-banner .feature-banner-screenshot-light {
    display: block;
}

body.dark-mode .feature-banner .feature-banner-screenshot-dark {
    display: block;
}

body.dark-mode .feature-banner .feature-banner-screenshot-light {
    display: none;
}

/* Hand swipe overlay - hidden by default */
.hand-swipe-overlay {
    display: none;
}

.swipe-indicator {
    display: none;
}

/* Swipe gesture overlay for section 3 and 4 */
.feature-banner:nth-of-type(3) .promptBox,
.feature-banner:nth-of-type(4) .promptBox {
    display: block;
}

.promptBox {
    display: none;
    height: 100px;
    width: 100px;
    transform: translate(-50%, -50%);
    position: absolute;
    top: 60%;
    left: 65%;
    opacity: 1;
    transition: 300ms;
    pointer-events: none;
    z-index: 5;
}

.tapperoo {
    height: 48px;
    width: 100px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 100px;
    background-color: rgba(102, 102, 102, 0.4);
    z-index: -1;
    animation: tapperoo 3s infinite;
}

@keyframes tapperoo {
    0% {
        height: 25%;
        width: 25%;
        transform: translate(-50%, -50%);
    }

    50% {
        height: 5%;
        width: 35%;
        opacity: 0;
        transform: translate(-50%, -50%) translateX(-250%);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) translateX(-250%);
    }
}

#tap-gesture {
    position: absolute;
    transform: rotate(30deg);
    animation: handMove 3s infinite;
    width: 80px;
    height: 80px;
}

@keyframes handMove {
    0% {
        transform: rotate(30deg);
    }

    50% {
        transform: translate(-60%, -10%) rotate(-30deg) scale(0.9);
    }

    100% {
        transform: rotate(30deg);
    }
}

body.dark-mode .feature-banner .phone-frame {
    background: #0f0f0f;
    border-color: #0f0f0f;
}

/* Remove phone case styling for section 1 in dark mode */
body.dark-mode .feature-banner:first-of-type .phone-frame {
    background: transparent;
    border: none;
}

body.dark-mode .feature-banner .phone-notch {
    background: #000000;
}

.feature-banner-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
    position: relative;
    z-index: 1;
}

.feature-banner:first-of-type .feature-banner-content {
    gap: 1.2rem;
}

.feature-banner-large-phone .feature-banner-content {
    grid-template-columns: 0.4fr 1.6fr;
}

.feature-banner-large-phone .feature-banner-text {
    max-width: none;
}

.feature-banner-large-phone .feature-banner-phone {
    width: auto;
    min-width: 0;
    max-width: none;
    flex-shrink: 0;
}

/* Reverse layout - only on desktop */
@media (min-width: 769px) {
    .feature-banner-reverse .feature-banner-content {
        grid-template-columns: 1fr 1fr;
    }

    .feature-banner-reverse .feature-banner-text {
        order: 2;
    }

    .feature-banner-reverse .feature-banner-phone {
        order: 1;
    }
}

.feature-banner-phone {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    min-width: 0;
    overflow: visible;
    animation: fadeInRight 0.8s ease;
}

.feature-banner-phone .phone-frame {
    width: 380px;
    position: relative;
}

.feature-banner-large-phone .feature-banner-phone .phone-frame {
    width: 500px;
    max-width: none;
    min-width: 500px;
    flex-shrink: 0;
}


.feature-banner-screenshot {
    width: 100%;
    height: auto;
    border-radius: 30px;
    transition: opacity 0.3s ease;
}

.feature-banner-screenshot.hero-screenshot-dark {
    display: none;
}

.feature-banner-screenshot.hero-screenshot-light {
    display: block;
}

body.dark-mode .feature-banner-screenshot.hero-screenshot-dark {
    display: block;
}

body.dark-mode .feature-banner-screenshot.hero-screenshot-light {
    display: none;
}

.slideshow-container {
    position: relative;
    width: 300px;
    height: 700px;
    overflow: hidden;
}

.slideshow-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
}

.slideshow-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.slide-content {
    width: 100%;
    height: 100%;
}

.slideshow-slide.prev {
    transform: translateX(-100%);
    opacity: 0;
}


.feature-banner-screenshot {
    width: 100%;
    height: auto;
    border-radius: 30px;
    display: block;
}

/* Theme-based image switching within containers */
.theme-light-img,
.theme-dark-img {
    width: 100%;
    height: auto;
    border-radius: 30px;
    display: block;
    object-fit: contain;
}

.theme-light-img {
    position: relative;
    z-index: 2;
    opacity: 1;
}

.theme-dark-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
    opacity: 0;
    pointer-events: none;
}

body.dark-mode .theme-light-img {
    z-index: 1;
    opacity: 0;
    pointer-events: none;
}

body.dark-mode .theme-dark-img {
    z-index: 2;
    opacity: 1;
    pointer-events: auto;
}

/* Dual slideshow - light on top, dark behind */
.slideshow-light {
    position: relative;
    z-index: 2;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.slideshow-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.slideshow-light .slideshow-slide,
.slideshow-dark .slideshow-slide {
    position: relative;
}

/* Light mode: light visible on top, dark hidden */
.slideshow-light {
    z-index: 2;
    opacity: 1;
}

.slideshow-dark {
    z-index: 1;
    opacity: 0;
}

/* Dark mode: dark visible on top, light hidden */
body.dark-mode .slideshow-light {
    z-index: 1;
    opacity: 0;
    pointer-events: none;
}

body.dark-mode .slideshow-dark {
    z-index: 2;
    opacity: 1;
    pointer-events: auto;
}

.slideshow-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(128, 128, 128, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.dot:hover {
    background: rgba(128, 128, 128, 0.7);
    transform: scale(1.2);
}

.dot.active {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.2);
}

body.dark-mode .dot {
    background: rgba(255, 255, 255, 0.3);
}

body.dark-mode .dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

body.dark-mode .dot.active {
    background: rgba(255, 255, 255, 0.9);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.feature-banner-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    animation: fadeInUp 0.8s ease;
}

.feature-banner-text-bottom {
    display: none;
}

.feature-banner-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

/* Contrasting background for titles from section 2 onward */
.feature-banner:nth-of-type(n+2) .feature-banner-title {
    display: inline-block;
    background-color: rgba(0, 0, 0, 0.8);
    color: var(--bg-primary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    width: fit-content;
    max-width: 100%;
}

/* Dark mode: 80% opacity white background */
body.dark-mode .feature-banner:nth-of-type(n+2) .feature-banner-title {
    background-color: rgba(255, 255, 255, 0.8);
}

.feature-banner-description {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Add top padding to desktop descriptions in side-by-side view */
.feature-banner-description-desktop {
    margin-top: 1rem;
}

/* Section 2: Hide mobile description in desktop view */
.feature-banner-description-mobile {
    display: none;
}

.feature-banner:first-of-type .feature-banner-description {
    font-size: 1.8rem;
    line-height: 1.6;
    color: var(--text-primary);
    font-weight: 700;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Screenshots Section */
.screenshots {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.screenshot-item {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.screenshot-item:hover {
    transform: scale(1.02);
}

.screenshot-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

.screenshot-placeholder {
    aspect-ratio: 9/16;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-primary);
    font-size: 1.25rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
}

/* Download Section */
.download {
    padding: 80px 0;
    background: var(--bg-secondary);
    color: var(--text-primary);
    text-align: center;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.download-content {
    max-width: 800px;
    margin: 0 auto;
}

.download-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.download-description {
    margin-bottom: 2rem;
}

.download-subtitle {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.95;
}

.download-buttons {
    display: inline-flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin: 0 auto;
}

.download-btn {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    background: transparent;
    border: none;
    padding: 0;
}

.download-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.download-btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.download-btn-label {
    font-size: 0.75rem;
    opacity: 0.9;
}

.download-btn-name {
    font-size: 1.25rem;
    font-weight: 700;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: var(--bg-primary);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 1rem;
    margin-bottom: 0;
}

.footer-legal-text {
    margin: 0;
}

.footer-legal-link {
    color: inherit;
    text-decoration: none;
}

.footer-legal-link:hover {
    text-decoration: underline;
}

.footer-brand .logo {
    color: var(--bg-primary);
    margin-bottom: 1rem;
}

.footer-tagline {
    color: var(--text-light);
}

.footer-column h4 {
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--bg-primary);
}

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

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
/* Tablet/Small Device (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    /* Hide all descriptions on tablet for sections 2+ */
    .feature-banner:nth-of-type(n+2) .feature-banner-description-desktop,
    .feature-banner:nth-of-type(n+2) .feature-banner-description-mobile {
        display: none !important;
    }

    /* Navigation */
    .navbar {
        position: fixed;
    }

    body {
        padding-top: 0;
    }

    .feature-banner:first-of-type {
        margin-top: 0;
        padding-top: 120px;
    }

    .nav-content {
        position: relative;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 1rem;
        border-top: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: max-height 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    }

    .nav-links.active {
        max-height: 500px;
        opacity: 1;
        visibility: visible;
    }

    .nav-links li {
        padding: 0;
    }

    .nav-links a {
        display: block;
        padding: 0.75rem 1rem;
        width: 100%;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    body.dark-mode .nav-links {
        background: var(--bg-primary);
        border-top-color: var(--border-color);
    }

    /* Hero Section - duplicate of feature banner */
    .hero {
        padding: 100px 0;
        background: var(--bg-primary);
        border-top: 1px solid var(--border-color);
        border-bottom: 1px solid var(--border-color);
        min-height: auto;
        display: block;
    }

    .hero-content {
        display: grid;
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
        align-items: center;
    }

    .hero-text {
        order: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .hero-image {
        order: -1;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
        width: 100%;
        min-width: 0;
        overflow: visible;
    }

    .hero-title {
        display: none;
    }

    .hero-subtitle {
        display: none;
    }

    .hero .hero-buttons {
        display: none;
    }

    .hero-text::before {
        content: "Simple, like pen and paper";
        display: block;
        font-size: 2.5rem;
        font-weight: 800;
        color: var(--text-primary);
        margin-bottom: 1.5rem;
        letter-spacing: -0.02em;
        line-height: 1.1;
    }

    .hero-screenshots {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .hero .phone-frame {
        width: 300px;
        min-width: 280px;
        max-width: calc(100vw - 2rem);
        position: relative;
        margin: 0 auto;
    }

    /* Feature Banners */
    .feature-banner {
        padding: 80px 0;
    }

    /* Reduce gap for sections below the first in tablet view */
    .feature-banner:nth-of-type(n+2) {
        padding: 50px 0;
    }

    .feature-banner-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    /* Reduce gap for sections 2+ in stacked view */
    .feature-banner:nth-of-type(n+2) .feature-banner-content {
        gap: 1rem;
    }

    /* Ensure title background only wraps text in stacked view */
    .feature-banner:nth-of-type(n+2) .feature-banner-title {
        margin-left: auto;
        margin-right: auto;
    }

    .feature-banner:first-of-type .feature-banner-phone {
        order: 2;
    }

    .feature-banner:first-of-type .feature-banner-text .feature-banner-description,
    .feature-banner:first-of-type .feature-banner-text .hero-buttons {
        display: none;
    }

    .feature-banner:first-of-type .feature-banner-text-bottom {
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: center;
        animation: fadeInUp 0.8s ease;
        order: 3;
    }

    .feature-banner:first-of-type .feature-banner-text {
        order: 1;
    }

    .feature-banner-phone {
        order: -1;
    }

    /* Section 2: Text on top, phone below */
    .feature-banner:nth-of-type(2) .feature-banner-text {
        order: -1;
    }

    .feature-banner:nth-of-type(2) .feature-banner-phone {
        order: 1;
        width: 300px;
        max-width: calc(100vw - 2rem);
        margin: 0 auto;
    }

    .feature-banner:nth-of-type(2) .feature-banner-screenshot {
        width: 300px;
        max-width: calc(100vw - 2rem);
    }

    /* Section 2: Hide desktop description, show mobile description below phone */
    .feature-banner:nth-of-type(2) .feature-banner-description-desktop {
        display: none;
    }

    .feature-banner:nth-of-type(2) .feature-banner-description-mobile {
        display: block;
        text-align: center;
        margin-top: 0;
        order: 2;
    }

    /* Section 3: Text on top, phone below (Swipe to navigate) */
    .feature-banner:nth-of-type(3) .feature-banner-text {
        order: -1;
    }

    .feature-banner:nth-of-type(3) .feature-banner-phone {
        order: 1;
        width: 300px;
        max-width: calc(100vw - 2rem);
        margin: 0 auto;
    }

    .feature-banner:nth-of-type(3) .feature-banner-screenshot {
        width: 300px;
        max-width: calc(100vw - 2rem);
    }

    .feature-banner:nth-of-type(3) .feature-banner-description-desktop {
        display: none;
    }

    .feature-banner:nth-of-type(3) .feature-banner-description-mobile {
        display: block;
        text-align: center;
        margin-top: 0;
        order: 2;
    }

    /* Section 4: Text on top, phone below (Tap for overview) */
    .feature-banner:nth-of-type(4) .feature-banner-text {
        order: -1;
    }

    .feature-banner:nth-of-type(4) .feature-banner-phone {
        order: 1;
        width: 300px;
        max-width: calc(100vw - 2rem);
        margin: 0 auto;
    }

    .feature-banner:nth-of-type(4) .feature-banner-screenshot {
        width: 300px;
        max-width: calc(100vw - 2rem);
    }

    .feature-banner:nth-of-type(4) .feature-banner-description-desktop {
        display: none;
    }

    .feature-banner:nth-of-type(4) .feature-banner-description-mobile {
        display: block;
        text-align: center;
        margin-top: 0;
        order: 2;
    }

    /* Section 5: Text on top, phone below (Add, Change, on the fly) */
    .feature-banner:nth-of-type(5) .feature-banner-text {
        order: -1;
    }

    .feature-banner:nth-of-type(5) .feature-banner-phone {
        order: 1;
        width: 300px;
        max-width: calc(100vw - 2rem);
        margin: 0 auto;
    }

    .feature-banner:nth-of-type(5) .feature-banner-screenshot {
        width: 300px;
        max-width: calc(100vw - 2rem);
    }

    .feature-banner:nth-of-type(5) .feature-banner-description-desktop {
        display: none;
    }

    .feature-banner:nth-of-type(5) .feature-banner-description-mobile {
        display: block;
        text-align: center;
        margin-top: 0;
        order: 2;
    }

    /* Section 6: Text on top, phone below (Visualise, Your data, Your way) */
    .feature-banner:nth-of-type(6) .feature-banner-text {
        order: -1;
    }

    .feature-banner:nth-of-type(6) .feature-banner-phone {
        order: 1;
        width: 300px;
        max-width: calc(100vw - 2rem);
        margin: 0 auto;
    }

    .feature-banner:nth-of-type(6) .feature-banner-screenshot {
        width: 300px;
        max-width: calc(100vw - 2rem);
    }

    .feature-banner:nth-of-type(6) .feature-banner-description-desktop {
        display: none;
    }

    .feature-banner:nth-of-type(6) .feature-banner-description-mobile {
        display: block;
        text-align: center;
        margin-top: 0;
        order: 2;
    }

    /* Section 7: Text on top, phone below (Add. Change. Anytime. - Duplicate) */
    .feature-banner:nth-of-type(7) .feature-banner-text {
        order: -1;
    }

    .feature-banner:nth-of-type(7) .feature-banner-phone {
        order: 1;
        width: 300px;
        max-width: calc(100vw - 2rem);
        margin: 0 auto;
    }

    .feature-banner:nth-of-type(7) .feature-banner-screenshot {
        width: 300px;
        max-width: calc(100vw - 2rem);
    }

    .feature-banner:nth-of-type(7) .feature-banner-description-desktop {
        display: none;
    }

    .feature-banner:nth-of-type(7) .feature-banner-description-mobile {
        display: block;
        text-align: center;
        margin-top: 0;
        order: 2;
    }

    /* Section 8: Text on top, phone below (Effort in context) */
    .feature-banner:nth-of-type(8) .feature-banner-text {
        order: -1;
    }

    .feature-banner:nth-of-type(8) .feature-banner-phone {
        order: 1;
        width: 300px;
        max-width: calc(100vw - 2rem);
        margin: 0 auto;
    }

    .feature-banner:nth-of-type(8) .feature-banner-screenshot {
        width: 300px;
        max-width: calc(100vw - 2rem);
    }

    .feature-banner:nth-of-type(8) .feature-banner-description-desktop {
        display: none;
    }

    .feature-banner:nth-of-type(8) .feature-banner-description-mobile {
        display: block;
        text-align: center;
        margin-top: 0;
        order: 2;
    }

    /* Section 9: Text on top, phone below (Compare. Periodise.) */
    .feature-banner:nth-of-type(9) .feature-banner-text {
        order: -1;
    }

    .feature-banner:nth-of-type(9) .feature-banner-phone {
        order: 1;
        width: 300px;
        max-width: calc(100vw - 2rem);
        margin: 0 auto;
    }

    .feature-banner:nth-of-type(9) .feature-banner-screenshot {
        width: 300px;
        max-width: calc(100vw - 2rem);
    }

    .feature-banner:nth-of-type(9) .feature-banner-description-desktop {
        display: none;
    }

    .feature-banner:nth-of-type(9) .feature-banner-description-mobile {
        display: block;
        text-align: center;
        margin-top: 0;
        order: 2;
    }

    /* Section 10: Text on top, phone below (Your Data. Your Way.) */
    .feature-banner:nth-of-type(10) .feature-banner-text {
        order: -1;
    }

    .feature-banner:nth-of-type(10) .feature-banner-phone {
        order: 1;
        width: 300px;
        max-width: calc(100vw - 2rem);
        margin: 0 auto;
    }

    .feature-banner:nth-of-type(10) .feature-banner-screenshot {
        width: 300px;
        max-width: calc(100vw - 2rem);
    }

    .feature-banner:nth-of-type(10) .feature-banner-description-desktop {
        display: none;
    }

    .feature-banner:nth-of-type(10) .feature-banner-description-mobile {
        display: block;
        text-align: center;
        margin-top: 0;
        order: 2;
    }

    .feature-banner:first-of-type {
        padding-top: 120px;
        padding-bottom: 0;
    }

    /* Make section 1's phone frame match other sections in tablet view */
    .feature-banner:first-of-type .feature-banner-phone .phone-frame,
    .feature-banner:first-of-type .phone-frame {
        width: 300px;
        min-width: 280px;
        max-width: calc(100vw - 2rem);
    }

    .feature-banner:first-of-type .feature-banner-text .hero-buttons {
        margin-bottom: 55px;
    }

    .feature-banner:first-of-type .feature-banner-text-bottom .hero-buttons {
        margin-bottom: 55px;
    }

    .feature-banner-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    

    .feature-banner-description {
        font-size: 1rem;
    }

    .feature-banner:first-of-type .feature-banner-description {
        font-size: 1.375rem;
    }

    /* Add horizontal padding to descriptions for sections 2+ in stacked view */
    .feature-banner:nth-of-type(n+2) .feature-banner-description-mobile {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    /* Grids */
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .benefit-text {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* Mobile (max-width: 480px) */
@media (max-width: 480px) {
    /* Hide all descriptions on mobile for sections 2+ */
    .feature-banner:nth-of-type(n+2) .feature-banner-description-desktop,
    .feature-banner:nth-of-type(n+2) .feature-banner-description-mobile {
        display: none !important;
    }

    /* Force smaller images on mobile for all sections */
    .feature-banner .feature-banner-phone,
    .feature-banner .feature-banner-screenshot,
    .feature-banner .phone-frame {
        width: 240px !important;
        min-width: 220px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Navigation */
    .navbar {
        position: fixed;
    }

    body {
        padding-top: 0;
    }

    .feature-banner:first-of-type {
        margin-top: 0;
        padding-top: 120px;
        background: var(--bg-primary);
    }
    
    /* Make grid lines more visible in mobile light mode */
    .feature-banner:first-of-type::before {
        background-image: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(0,0,0,0.10)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    }
    
    /* Dark mode grid lines on mobile */
    body.dark-mode .feature-banner:first-of-type::before {
        background-image: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.15)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    }

    .nav-content {
        position: relative;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 1rem;
        border-top: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: max-height 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    }

    .nav-links.active {
        max-height: 500px;
        opacity: 1;
        visibility: visible;
    }

    .nav-links li {
        padding: 0;
    }

    .nav-links a {
        display: block;
        padding: 0.75rem 1rem;
        width: 100%;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    body.dark-mode .nav-links {
        background: var(--bg-primary);
        border-top-color: var(--border-color);
    }

    /* Container */
    .container {
        padding: 0 1rem;
    }

    /* Hero Section - duplicate of feature banner */
    .hero {
        padding: 100px 0;
        background: var(--bg-primary);
        border-top: 1px solid var(--border-color);
        border-bottom: 1px solid var(--border-color);
        min-height: auto;
        display: block;
    }

    .hero-content {
        display: grid;
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
        align-items: center;
    }

    .hero-text {
        order: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .hero-image {
        order: -1;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
        width: 100%;
        min-width: 0;
        overflow: visible;
    }

    .hero-title {
        display: none;
    }

    .hero-subtitle {
        display: none;
    }

    .hero .hero-buttons {
        display: none;
    }

    .hero-text::before {
        content: "Simple, like pen and paper";
        display: block;
        font-size: 2.5rem;
        font-weight: 800;
        color: var(--text-primary);
        margin-bottom: 1.5rem;
        letter-spacing: -0.02em;
        line-height: 1.1;
    }

    .hero-screenshots {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .hero .phone-frame {
        width: 300px;
        min-width: 280px;
        max-width: calc(100vw - 2rem);
        position: relative;
        margin: 0 auto;
    }

    /* Make section 1's phone frame same size as other sections in mobile view (phones only) */
    .feature-banner:first-of-type .feature-banner-phone .phone-frame,
    .feature-banner:first-of-type .phone-frame {
        width: 300px !important;
        min-width: 280px !important;
        max-width: calc(100vw - 2rem) !important;
    }

    .feature-banner-phone .phone-frame {
        width: 300px;
        min-width: 280px;
        max-width: calc(100vw - 2rem);
    }

    /* Make pictures smaller for sections 2 onwards in mobile stacked view */
    .feature-banner:nth-of-type(n+2) .feature-banner-phone .phone-frame {
        width: 210px;
        min-width: 190px;
        max-width: calc(100vw - 2rem);
    }

    /* Section 2: Match phone frame dimensions in mobile view */
    .feature-banner:nth-of-type(2) .feature-banner-phone {
        width: 210px;
        max-width: calc(100vw - 2rem);
        margin: 0 auto;
    }

    .feature-banner:nth-of-type(2) .feature-banner-screenshot {
        width: 210px;
        max-width: calc(100vw - 2rem);
    }

    /* Section 3: Match phone frame dimensions in mobile view */
    .feature-banner:nth-of-type(3) .feature-banner-phone {
        width: 210px;
        max-width: calc(100vw - 2rem);
        margin: 0 auto;
    }

    .feature-banner:nth-of-type(3) .feature-banner-screenshot {
        width: 210px;
        max-width: calc(100vw - 2rem);
    }

    /* Section 4: Match phone frame dimensions in mobile view */
    .feature-banner:nth-of-type(4) .feature-banner-phone {
        width: 210px;
        max-width: calc(100vw - 2rem);
        margin: 0 auto;
    }

    .feature-banner:nth-of-type(4) .feature-banner-screenshot {
        width: 210px;
        max-width: calc(100vw - 2rem);
    }

    /* Section 5: Match phone frame dimensions in mobile view */
    .feature-banner:nth-of-type(5) .feature-banner-phone {
        width: 210px;
        max-width: calc(100vw - 2rem);
        margin: 0 auto;
    }

    .feature-banner:nth-of-type(5) .feature-banner-screenshot {
        width: 210px;
        max-width: calc(100vw - 2rem);
    }

    /* Sections 6-10: Match phone frame dimensions in mobile view */
    .feature-banner:nth-of-type(6) .feature-banner-phone,
    .feature-banner:nth-of-type(7) .feature-banner-phone,
    .feature-banner:nth-of-type(8) .feature-banner-phone,
    .feature-banner:nth-of-type(9) .feature-banner-phone,
    .feature-banner:nth-of-type(10) .feature-banner-phone {
        width: 210px;
        max-width: calc(100vw - 2rem);
        margin: 0 auto;
    }

    .feature-banner:nth-of-type(6) .feature-banner-screenshot,
    .feature-banner:nth-of-type(7) .feature-banner-screenshot,
    .feature-banner:nth-of-type(8) .feature-banner-screenshot,
    .feature-banner:nth-of-type(9) .feature-banner-screenshot,
    .feature-banner:nth-of-type(10) .feature-banner-screenshot {
        width: 210px;
        max-width: calc(100vw - 2rem);
    }

    .feature-banner-large-phone .feature-banner-phone .phone-frame {
        width: 280px;
        min-width: 280px;
        max-width: calc(100vw - 2rem);
    }

    /* Feature Banners */
    .feature-banner {
        padding: 80px 0;
    }

    /* Reduce gap for sections below the first in tablet view */
    .feature-banner:nth-of-type(n+2) {
        padding: 50px 0;
    }

    .feature-banner-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    /* Reduce gap for sections 2+ in stacked view */
    .feature-banner:nth-of-type(n+2) .feature-banner-content {
        gap: 1rem;
    }

    /* Ensure title background only wraps text in stacked view */
    .feature-banner:nth-of-type(n+2) .feature-banner-title {
        margin-left: auto;
        margin-right: auto;
    }

    .feature-banner:first-of-type .feature-banner-phone {
        order: 2;
    }

    .feature-banner:first-of-type .feature-banner-text .feature-banner-description,
    .feature-banner:first-of-type .feature-banner-text .hero-buttons {
        display: none;
    }

    .feature-banner:first-of-type .feature-banner-text-bottom {
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: center;
        animation: fadeInUp 0.8s ease;
        order: 3;
    }

    .feature-banner:first-of-type .feature-banner-text {
        order: 1;
    }

    .feature-banner-phone {
        order: -1;
    }

    /* Section 2: Text on top, phone below */
    .feature-banner:nth-of-type(2) .feature-banner-text {
        order: -1;
    }

    .feature-banner:nth-of-type(2) .feature-banner-phone {
        order: 1;
        width: 300px;
        max-width: calc(100vw - 2rem);
        margin: 0 auto;
    }

    .feature-banner:nth-of-type(2) .feature-banner-screenshot {
        width: 300px;
        max-width: calc(100vw - 2rem);
    }

    /* Section 2: Hide desktop description, show mobile description below phone */
    .feature-banner:nth-of-type(2) .feature-banner-description-desktop {
        display: none;
    }

    .feature-banner:nth-of-type(2) .feature-banner-description-mobile {
        display: block;
        text-align: center;
        margin-top: 0;
        order: 2;
    }

    /* Section 3: Text on top, phone below (Swipe to navigate) */
    .feature-banner:nth-of-type(3) .feature-banner-text {
        order: -1;
    }

    .feature-banner:nth-of-type(3) .feature-banner-phone {
        order: 1;
        width: 300px;
        max-width: calc(100vw - 2rem);
        margin: 0 auto;
    }

    .feature-banner:nth-of-type(3) .feature-banner-screenshot {
        width: 300px;
        max-width: calc(100vw - 2rem);
    }

    .feature-banner:nth-of-type(3) .feature-banner-description-desktop {
        display: none;
    }

    .feature-banner:nth-of-type(3) .feature-banner-description-mobile {
        display: block;
        text-align: center;
        margin-top: 0;
        order: 2;
    }

    /* Section 4: Text on top, phone below (Tap for overview) */
    .feature-banner:nth-of-type(4) .feature-banner-text {
        order: -1;
    }

    .feature-banner:nth-of-type(4) .feature-banner-phone {
        order: 1;
        width: 300px;
        max-width: calc(100vw - 2rem);
        margin: 0 auto;
    }

    .feature-banner:nth-of-type(4) .feature-banner-screenshot {
        width: 300px;
        max-width: calc(100vw - 2rem);
    }

    .feature-banner:nth-of-type(4) .feature-banner-description-desktop {
        display: none;
    }

    .feature-banner:nth-of-type(4) .feature-banner-description-mobile {
        display: block;
        text-align: center;
        margin-top: 0;
        order: 2;
    }

    /* Section 5: Text on top, phone below (Add, Change, on the fly) */
    .feature-banner:nth-of-type(5) .feature-banner-text {
        order: -1;
    }

    .feature-banner:nth-of-type(5) .feature-banner-phone {
        order: 1;
        width: 300px;
        max-width: calc(100vw - 2rem);
        margin: 0 auto;
    }

    .feature-banner:nth-of-type(5) .feature-banner-screenshot {
        width: 300px;
        max-width: calc(100vw - 2rem);
    }

    .feature-banner:nth-of-type(5) .feature-banner-description-desktop {
        display: none;
    }

    .feature-banner:nth-of-type(5) .feature-banner-description-mobile {
        display: block;
        text-align: center;
        margin-top: 0;
        order: 2;
    }

    /* Section 6: Text on top, phone below (Visualise, Your data, Your way) */
    .feature-banner:nth-of-type(6) .feature-banner-text {
        order: -1;
    }

    .feature-banner:nth-of-type(6) .feature-banner-phone {
        order: 1;
        width: 300px;
        max-width: calc(100vw - 2rem);
        margin: 0 auto;
    }

    .feature-banner:nth-of-type(6) .feature-banner-screenshot {
        width: 300px;
        max-width: calc(100vw - 2rem);
    }

    .feature-banner:nth-of-type(6) .feature-banner-description-desktop {
        display: none;
    }

    .feature-banner:nth-of-type(6) .feature-banner-description-mobile {
        display: block;
        text-align: center;
        margin-top: 0;
        order: 2;
    }

    /* Section 7: Text on top, phone below (Add. Change. Anytime. - Duplicate) */
    .feature-banner:nth-of-type(7) .feature-banner-text {
        order: -1;
    }

    .feature-banner:nth-of-type(7) .feature-banner-phone {
        order: 1;
        width: 300px;
        max-width: calc(100vw - 2rem);
        margin: 0 auto;
    }

    .feature-banner:nth-of-type(7) .feature-banner-screenshot {
        width: 300px;
        max-width: calc(100vw - 2rem);
    }

    .feature-banner:nth-of-type(7) .feature-banner-description-desktop {
        display: none;
    }

    .feature-banner:nth-of-type(7) .feature-banner-description-mobile {
        display: block;
        text-align: center;
        margin-top: 0;
        order: 2;
    }

    /* Section 8: Text on top, phone below (Effort in context) */
    .feature-banner:nth-of-type(8) .feature-banner-text {
        order: -1;
    }

    .feature-banner:nth-of-type(8) .feature-banner-phone {
        order: 1;
        width: 300px;
        max-width: calc(100vw - 2rem);
        margin: 0 auto;
    }

    .feature-banner:nth-of-type(8) .feature-banner-screenshot {
        width: 300px;
        max-width: calc(100vw - 2rem);
    }

    /* Section 9: Text on top, phone below (Compare. Periodise.) */
    .feature-banner:nth-of-type(9) .feature-banner-text {
        order: -1;
    }

    .feature-banner:nth-of-type(9) .feature-banner-phone {
        order: 1;
        width: 300px;
        max-width: calc(100vw - 2rem);
        margin: 0 auto;
    }

    .feature-banner:nth-of-type(9) .feature-banner-screenshot {
        width: 300px;
        max-width: calc(100vw - 2rem);
    }

    /* Section 10: Text on top, phone below (Your Data. Your Way.) */
    .feature-banner:nth-of-type(10) .feature-banner-text {
        order: -1;
    }

    .feature-banner:nth-of-type(10) .feature-banner-phone {
        order: 1;
        width: 300px;
        max-width: calc(100vw - 2rem);
        margin: 0 auto;
    }

    .feature-banner:nth-of-type(10) .feature-banner-screenshot {
        width: 300px;
        max-width: calc(100vw - 2rem);
    }

    .feature-banner:first-of-type {
        padding-top: 120px;
        padding-bottom: 0;
    }

    .feature-banner:first-of-type .feature-banner-text .hero-buttons {
        margin-bottom: 55px;
    }

    .feature-banner:first-of-type .feature-banner-text-bottom .hero-buttons {
        margin-bottom: 55px;
    }

    .feature-banner-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    /* Smaller font size for titles with background (sections 2+) in mobile view only */
    .feature-banner:nth-of-type(n+2) .feature-banner-title {
        font-size: 1.25rem;
    }

    .feature-banner-description {
        font-size: 1rem;
    }

    .feature-banner:first-of-type .feature-banner-description {
        font-size: 1.375rem;
    }

    /* Add horizontal padding to descriptions for sections 2+ in stacked view */
    .feature-banner:nth-of-type(n+2) .feature-banner-description-mobile {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    /* Sections */
    .section-title {
        font-size: 2rem;
    }

    .feature-banner-description {
        font-size: 1.125rem;
    }

    .feature-banner:first-of-type .feature-banner-description {
        font-size: 1.375rem;
        font-weight: 700;
        color: var(--text-primary);
    }

    /* Grids */
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .benefit-text {
        font-size: 1.75rem;
    }

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

    .screenshots-grid {
        grid-template-columns: 1fr;
    }

    /* Phone Frame */
    .phone-frame {
        width: 280px;
        padding: 4px;
    }
    
    .phone-notch {
        width: 70px;
        height: 16px;
        top: 6px;
    }

    /* Download Section */
    .download-title {
        font-size: 2rem;
    }


    .download-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .download-btn {
        width: auto;
    }

    .btn:not(.hero-buttons .btn) {
        width: 100%;
        justify-content: center;
    }

    /* Footer */
    .footer-content {
        align-items: center;
    }

    /* Section 8: Text on top, phone below (Effort, in Context) */
    .feature-banner:nth-of-type(8) .feature-banner-text {
        order: -1;
    }

    .feature-banner:nth-of-type(8) .feature-banner-phone {
        order: 1;
        width: 210px;
        max-width: calc(100vw - 2rem);
        margin: 0 auto;
    }

    .feature-banner:nth-of-type(8) .feature-banner-screenshot {
        width: 210px;
        max-width: calc(100vw - 2rem);
    }

    .feature-banner:nth-of-type(8) .feature-banner-description-desktop {
        display: none;
    }

    .feature-banner:nth-of-type(8) .feature-banner-description-mobile {
        display: block;
        text-align: center;
        margin-top: 0;
        order: 2;
    }

    /* Section 9: Text on top, phone below (Compare. Periodise.) */
    .feature-banner:nth-of-type(9) .feature-banner-text {
        order: -1;
    }

    .feature-banner:nth-of-type(9) .feature-banner-phone {
        order: 1;
        width: 210px;
        max-width: calc(100vw - 2rem);
        margin: 0 auto;
    }

    .feature-banner:nth-of-type(9) .feature-banner-screenshot {
        width: 210px;
        max-width: calc(100vw - 2rem);
    }

    .feature-banner:nth-of-type(9) .feature-banner-description-desktop {
        display: none;
    }

    .feature-banner:nth-of-type(9) .feature-banner-description-mobile {
        display: block;
        text-align: center;
        margin-top: 0;
        order: 2;
    }

    /* Section 10: Text on top, phone below (Your Data. Your Way.) */
    .feature-banner:nth-of-type(10) .feature-banner-text {
        order: -1;
    }

    .feature-banner:nth-of-type(10) .feature-banner-phone {
        order: 1;
        width: 210px;
        max-width: calc(100vw - 2rem);
        margin: 0 auto;
    }

    .feature-banner:nth-of-type(10) .feature-banner-screenshot {
        width: 210px;
        max-width: calc(100vw - 2rem);
    }

    .feature-banner:nth-of-type(10) .feature-banner-description-desktop {
        display: none;
    }

    .feature-banner:nth-of-type(10) .feature-banner-description-mobile {
        display: block;
        text-align: center;
        margin-top: 0;
        order: 2;
    }

}


/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Dark Mode */
html {
    background: var(--bg-primary);
}

body.dark-mode {
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-light: #707070;
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-dark: #ffffff;
    --border-color: #2a2a2a;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.3);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.3);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.5), 0 8px 10px -6px rgb(0 0 0 / 0.4);
}

body.dark-mode .navbar {
    background: rgba(0, 0, 0, 0.95);
    border-bottom-color: var(--border-color);
}

body.dark-mode .hero::before {
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
}

/* Desktop dark mode grid lines - only for desktop */
@media (min-width: 481px) {
    body.dark-mode .feature-banner:first-of-type::before {
        background-image: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.08)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    }
}

body.dark-mode .download-btn {
    background: transparent;
    border: none;
}

body.dark-mode .download-btn:hover {
    background: transparent;
}

body.dark-mode .footer {
    background: var(--bg-primary);
    color: var(--bg-dark);
}

body.dark-mode .footer-bottom {
    border-top-color: var(--border-color);
}

body.dark-mode .key-benefits {
    background: var(--bg-secondary);
    border-top-color: var(--border-color);
    border-bottom-color: var(--border-color);
}

body.dark-mode .feature-banner {
    background: var(--bg-primary);
    border-top-color: var(--border-color);
    border-bottom-color: var(--border-color);
}

body.dark-mode .phone-frame {
    background: #0f0f0f;
    border-color: #0f0f0f;
}

body.dark-mode .phone-notch {
    background: #000000;
}


/* Desktop - larger subtitle when side by side (must come after all mobile queries) */
/* Desktop (min-width: 769px) */
@media (min-width: 769px) {
    .hero .hero-subtitle,
    .hero-text .hero-subtitle,
    .hero-subtitle {
        font-size: 2.25rem;
        line-height: 1.5;
    }

    .feature-banner-title {
        font-size: clamp(1.8rem, 3vw, 2.5rem);
        margin-bottom: 0.5rem;
        white-space: nowrap;
    }
    
    /* Center titles in desktop view */
    .feature-banner-text {
        text-align: center;
    }

    .feature-banner:nth-of-type(n+2) .feature-banner-title {
        margin-left: auto;
        margin-right: auto;
    }

    /* First section: description shrinks proportionally with title */
    /* When title is 2.5rem, description is 1.8rem; when title is 1.8rem, description is 1.2rem */
    .feature-banner:first-of-type .feature-banner-description {
        font-size: clamp(1.2rem, 2.16vw, 1.8rem);
    }

    /* Ensure gap between text and left border */
    .hero-text {
        padding-left: 2rem;
        box-sizing: border-box;
    }

    .feature-banner-text {
        padding-left: 0;
        box-sizing: border-box;
    }

    /* Align download buttons to the left with text */
    .hero-buttons {
        justify-content: flex-start;
    }

    /* Ensure gap between phone frame and right border */
    .hero-image,
    .hero-screenshots {
        padding-right: 2rem;
        box-sizing: border-box;
    }

    .feature-banner-phone {
        padding-right: 0.5rem;
        box-sizing: border-box;
    }

    .feature-banner:first-of-type .feature-banner-phone {
        padding-right: 0;
    }

    .feature-banner-phone .phone-frame {
        max-width: calc(100% - 0.5rem);
    }

    .feature-banner:first-of-type .feature-banner-phone .phone-frame {
        max-width: 100%;
    }

    .feature-banner-large-phone .feature-banner-phone .phone-frame {
        max-width: calc(100% - 2rem);
    }
}


