/* Apple-Style Reset and Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Light Mode Colors */
    --primary-blue: #007AFF;
    --primary-blue-hover: #0056CC;
    --text-primary: #1D1D1F;
    --text-secondary: #86868B;
    --text-tertiary: #A1A1A6;
    --background-primary: #FFFFFF;
    --background-secondary: #F5F5F7;
    --background-elevated: #FAFAFA;
    --border-light: rgba(0, 0, 0, 0.06);
    --border-medium: rgba(0, 0, 0, 0.12);
    --shadow-small: 0 2px 16px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 4px 32px rgba(0, 0, 0, 0.12);
    --shadow-large: 0 8px 64px rgba(0, 0, 0, 0.16);
    
    /* Typography */
    --font-system: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --spacing-xxl: 64px;
    --spacing-xxxl: 96px;
    
    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Container widths */
    --container-sm: 768px;
    --container-md: 980px;
    --container-lg: 1024px;
    --container-xl: 1200px;
}

/* Dark Mode Colors */
[data-theme="dark"] {
    --text-primary: #F2F2F7;
    --text-secondary: #8E8E93;
    --text-tertiary: #636366;
    --background-primary: #000000;
    --background-secondary: #1C1C1E;
    --background-elevated: #2C2C2E;
    --border-light: rgba(255, 255, 255, 0.06);
    --border-medium: rgba(255, 255, 255, 0.12);
    --shadow-small: 0 2px 16px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 4px 32px rgba(0, 0, 0, 0.4);
    --shadow-large: 0 8px 64px rgba(0, 0, 0, 0.5);
}

/* System preference detection */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #F2F2F7;
        --text-secondary: #8E8E93;
        --text-tertiary: #636366;
        --background-primary: #000000;
        --background-secondary: #1C1C1E;
        --background-elevated: #2C2C2E;
        --border-light: rgba(255, 255, 255, 0.06);
        --border-medium: rgba(255, 255, 255, 0.12);
        --shadow-small: 0 2px 16px rgba(0, 0, 0, 0.3);
        --shadow-medium: 0 4px 32px rgba(0, 0, 0, 0.4);
        --shadow-large: 0 8px 64px rgba(0, 0, 0, 0.5);
    }
}

/* Override system preference when theme is manually set */
[data-theme="light"] {
    --text-primary: #1D1D1F;
    --text-secondary: #86868B;
    --text-tertiary: #A1A1A6;
    --background-primary: #FFFFFF;
    --background-secondary: #F5F5F7;
    --background-elevated: #FAFAFA;
    --border-light: rgba(0, 0, 0, 0.06);
    --border-medium: rgba(0, 0, 0, 0.12);
    --shadow-small: 0 2px 16px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 4px 32px rgba(0, 0, 0, 0.12);
    --shadow-large: 0 8px 64px rgba(0, 0, 0, 0.16);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-system);
    font-size: 17px;
    line-height: 1.47059;
    font-weight: var(--font-weight-regular);
    color: var(--text-primary);
    background-color: rgb(245, 245, 247);
}

[data-theme="dark"] body {
    background-color: var(--background-primary);
}

@media (prefers-color-scheme: dark) {
    body {
        background-color: var(--background-primary);
    }
}

[data-theme="light"] body {
    background-color: rgb(245, 245, 247);
}

/* Theme Toggle */
.theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    padding: 3px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    gap: 2px;
    align-items: center;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .theme-toggle {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (prefers-color-scheme: dark) {
    .theme-toggle {
        background: rgba(255, 255, 255, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.3);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
}

[data-theme="light"] .theme-toggle {
    background: rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.theme-toggle:hover {
    opacity: 1;
}

.theme-option {
    width: 26px;
    height: 26px;
    border-radius: 13px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: all 0.2s ease;
    color: rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .theme-option {
    color: rgba(255, 255, 255, 0.5);
}

@media (prefers-color-scheme: dark) {
    .theme-option {
        color: rgba(255, 255, 255, 0.5);
    }
}

[data-theme="light"] .theme-option {
    color: rgba(0, 0, 0, 0.5);
}

.theme-option:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

[data-theme="dark"] .theme-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

@media (prefers-color-scheme: dark) {
    .theme-option:hover {
        background: rgba(255, 255, 255, 0.1);
    }
}

[data-theme="light"] .theme-option:hover {
    background: rgba(0, 0, 0, 0.1);
}

.theme-option.active {
    background: rgba(0, 122, 255, 0.8);
    color: white;
    transform: scale(1);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 52px;
}

.nav-brand {
    font-size: 21px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.nav-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 17px;
    font-weight: var(--font-weight-regular);
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--primary-blue);
}

.nav-cta {
    background: var(--primary-blue);
    color: white;
    padding: 8px var(--spacing-sm);
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    transition: all 0.2s ease;
}

.nav-cta:hover {
    background: var(--primary-blue-hover);
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    min-height: max(65vh, 600px);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 52px;
    padding-bottom: 0;
}

.hero-widget-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: rgb(245, 245, 247);
}

[data-theme="dark"] .hero-widget-background {
    background: var(--background-primary);
}

@media (prefers-color-scheme: dark) {
    .hero-widget-background {
        background: var(--background-primary);
    }
}

[data-theme="light"] .hero-widget-background {
    background: rgb(245, 245, 247);
}

.hero-widget-image {
    width: 100%;
    height: auto;
    max-width: 500px;
    object-fit: contain;
    opacity: 1;
    will-change: transform;
    backface-visibility: hidden;
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.3));
    justify-self: end;
    align-self: center;
    margin-top: calc(var(--spacing-md) * -1);
}

.hero-widget-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 var(--spacing-md);
}

.hero-content-container {
    max-width: var(--container-xl);
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    align-items: center;
    padding: var(--spacing-lg) var(--spacing-xl);
    text-align: center;
}

.hero-text-section {
    max-width: 600px;
}

.hero-title {
    font-family: var(--font-system);
    font-size: clamp(36px, 4.5vw, 56px);
    line-height: 1.2;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.01em;
}

.hero-subtitle {
    font-size: clamp(18px, 2.2vw, 22px);
    line-height: 1.5;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xl);
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    padding: 18px var(--spacing-xl);
    border-radius: var(--radius-xl);
    text-decoration: none;
    font-size: 17px;
    font-weight: var(--font-weight-semibold);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 200px;
    justify-content: center;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.hero-button.primary {
    background: rgba(0, 122, 255, 0.95);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0, 122, 255, 0.4);
}

.hero-button.primary:hover {
    background: rgba(0, 122, 255, 1);
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(0, 122, 255, 0.5);
}

.hero-button.secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.hero-button.secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}


@keyframes float {
    0%, 100% {
        transform: translateY(0px) translateZ(0);
    }
    50% {
        transform: translateY(-10px) translateZ(0);
    }
}

/* Keyboard Shortcuts Section */
.keyboard-shortcuts-section {
    padding: var(--spacing-xxl) 0;
    background: rgb(245, 245, 247);
    position: relative;
}

[data-theme="dark"] .keyboard-shortcuts-section {
    background: var(--background-primary);
}

@media (prefers-color-scheme: dark) {
    .keyboard-shortcuts-section {
        background: var(--background-primary);
    }
}

[data-theme="light"] .keyboard-shortcuts-section {
    background: rgb(245, 245, 247);
}

.keyboard-shortcuts-container {
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.keyboard-shortcuts-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
    gap: var(--spacing-xxl);
    align-items: start;
    background: transparent;
    padding: 0;
}

.keyboard-shortcuts-header {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    grid-column: 1;
    grid-row: 1 / 2;
}

.keyboard-shortcuts-demo {
    grid-column: 1;
    grid-row: 2 / 3;
}

.keyboard-shortcuts-visual {
    grid-column: 2;
    grid-row: 1 / 3;
}

.keyboard-shortcuts-title {
    font-family: var(--font-system);
    font-size: clamp(32px, 3.5vw, 48px);
    line-height: 1.1;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.keyboard-shortcuts-description {
    font-size: 18px;
    line-height: 1.4;
    color: var(--text-secondary);
    max-width: 500px;
}

.keyboard-shortcuts-demo {
    background: rgba(0, 0, 0, 0.03);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-top: 0;
}

[data-theme="dark"] .keyboard-shortcuts-demo {
    background: rgba(255, 255, 255, 0.05);
}

@media (prefers-color-scheme: dark) {
    .keyboard-shortcuts-demo {
        background: rgba(255, 255, 255, 0.05);
    }
}

[data-theme="light"] .keyboard-shortcuts-demo {
    background: rgba(0, 0, 0, 0.03);
}

.demo-sequence-large {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.demo-step-large {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    font-size: 16px;
    font-weight: var(--font-weight-medium);
}

.demo-keys-large {
    display: flex;
    align-items: center;
    gap: 6px;
}

.demo-key-large {
    background: rgba(0, 0, 0, 0.05);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-weight: var(--font-weight-bold);
    font-family: 'SF Pro Display', system-ui, sans-serif;
    font-size: 18px;
    min-width: 40px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .demo-key-large {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

@media (prefers-color-scheme: dark) {
    .demo-key-large {
        background: rgba(255, 255, 255, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: white;
    }
}

[data-theme="light"] .demo-key-large {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}

.demo-plus-large {
    color: var(--text-secondary);
    font-size: 16px;
    margin: 0 4px;
}

.demo-arrow-large {
    color: var(--text-secondary);
    font-size: 24px;
}

.demo-result-large {
    color: var(--text-primary);
    font-size: 18px;
}

.app-name-large {
    background: rgba(0, 122, 255, 0.1);
    color: var(--primary-blue);
    padding: 6px 14px;
    border-radius: 16px;
    font-weight: var(--font-weight-semibold);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    border: 1px solid rgba(0, 122, 255, 0.2);
}

.branch-icon {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

[data-theme="dark"] .branch-icon {
    filter: invert(1);
}

@media (prefers-color-scheme: dark) {
    :root .branch-icon {
        filter: invert(1);
    }
}

[data-theme="light"] .branch-icon {
    filter: invert(0);
}

[data-theme="dark"] .app-name-large {
    background: rgba(0, 122, 255, 0.2);
    color: #5AC8FA;
    border: 1px solid rgba(90, 200, 250, 0.3);
}

@media (prefers-color-scheme: dark) {
    .app-name-large {
        background: rgba(0, 122, 255, 0.2);
        color: #5AC8FA;
        border: 1px solid rgba(90, 200, 250, 0.3);
    }
}

[data-theme="light"] .app-name-large {
    background: rgba(0, 122, 255, 0.1);
    color: var(--primary-blue);
    border: 1px solid rgba(0, 122, 255, 0.2);
}

.keyboard-shortcuts-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.keyboard-shortcuts-image {
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top left;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

/* Responsive for keyboard shortcuts section */
@media (max-width: 768px) {
    .keyboard-shortcuts-content {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-xl);
        text-align: center;
    }

    .keyboard-shortcuts-header {
        order: 1;
        text-align: center;
    }

    .keyboard-shortcuts-visual {
        order: 2;
        width: 100%;
        height: auto;
    }

    .keyboard-shortcuts-demo {
        order: 3;
        width: 100%;
    }

    .keyboard-shortcuts-image {
        height: auto;
        width: 100%;
        object-fit: contain;
    }

    .keyboard-shortcuts-title,
    .keyboard-shortcuts-description {
        text-align: center;
    }

    .keyboard-shortcuts-description {
        max-width: none;
    }
}

@media (max-width: 768px) {
    .keyboard-shortcuts-section {
        padding: var(--spacing-xl) 0;
    }

    .keyboard-shortcuts-title {
        font-size: clamp(28px, 6vw, 40px);
    }

    .keyboard-shortcuts-description {
        font-size: 18px;
    }

    .demo-sequence-large {
        gap: var(--spacing-sm);
    }

    .demo-step-large {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .demo-key-large {
        padding: 8px 12px;
        font-size: 16px;
        min-width: 36px;
    }

    .demo-result-large {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .keyboard-shortcuts-demo {
        padding: var(--spacing-md);
    }

    .demo-sequence-large {
        gap: var(--spacing-xs);
    }

    .demo-step-large {
        font-size: 14px;
    }

    .demo-key-large {
        padding: 6px 10px;
        font-size: 14px;
        min-width: 32px;
    }

    .demo-arrow-large {
        font-size: 18px;
    }

    .demo-result-large {
        font-size: 14px;
    }

    .app-name-large {
        font-size: 13px;
        padding: 4px 10px;
    }
}

/* Feature Grid */
.feature-grid {
    padding: var(--spacing-md) 0;
    background: rgb(245, 245, 247);
}

[data-theme="dark"] .feature-grid {
    background: var(--background-primary);
}

@media (prefers-color-scheme: dark) {
    .feature-grid {
        background: var(--background-primary);
    }
}

[data-theme="light"] .feature-grid {
    background: rgb(245, 245, 247);
}

.grid-container {
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: grid;
    gap: var(--spacing-md);
    grid-template-columns: 1fr;
}

.feature-card {
    background: var(--background-elevated);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-small);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* .feature-card:hover {
    transform: translateY(-4px) translateZ(0);
    box-shadow: var(--shadow-medium);
} */

.feature-content {
    padding: var(--spacing-xl);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Combined Carousel Section */
.combined-carousel-section {
    grid-column: 1 / -1;
    overflow: hidden;
}

.combined-carousel-container {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 calc(-1 * var(--container-padding));
    padding: 0 var(--container-padding);
    scroll-snap-type: x mandatory;
}

.combined-carousel-container::-webkit-scrollbar {
    display: none;
}

.combined-carousel-track {
    display: grid;
    grid-template-columns: repeat(3, 368px);
    gap: var(--spacing-md);
    width: max-content;
}

.combined-carousel-item {
    width: 368px;
    height: 400px;
    scroll-snap-align: start;
}

.combined-carousel-item.wide-item {
    width: 368px;
    height: 400px;
}

.combined-carousel-item .feature-card {
    height: 100%;
}

.combined-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: var(--spacing-lg);
}

.combined-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0;
}

[data-theme="dark"] .combined-dot {
    background: rgba(255, 255, 255, 0.2);
}

@media (prefers-color-scheme: dark) {
    .combined-dot {
        background: rgba(255, 255, 255, 0.2);
    }
}

[data-theme="light"] .combined-dot {
    background: rgba(0, 0, 0, 0.15);
}

.combined-dot:hover {
    background: rgba(0, 0, 0, 0.3);
    transform: scale(1.2);
}

[data-theme="dark"] .combined-dot:hover {
    background: rgba(255, 255, 255, 0.4);
}

@media (prefers-color-scheme: dark) {
    .combined-dot:hover {
        background: rgba(255, 255, 255, 0.4);
    }
}

[data-theme="light"] .combined-dot:hover {
    background: rgba(0, 0, 0, 0.3);
}

.combined-dot.active {
    background: var(--primary-blue);
    width: 24px;
    border-radius: 4px;
}

/* Primary Feature */
.primary-feature {
    background: white;
    color: var(--text-primary);
    min-height: 400px;
}

[data-theme="dark"] .primary-feature {
    background: var(--background-elevated);
    color: var(--text-primary);
}

@media (prefers-color-scheme: dark) {
    .primary-feature {
        background: var(--background-elevated);
        color: var(--text-primary);
    }
}

[data-theme="light"] .primary-feature {
    background: white;
    color: var(--text-primary);
}

.primary-feature .feature-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--spacing-xl);
    align-items: stretch;
    padding: var(--spacing-xl);
    height: 100%;
}

.primary-feature .feature-title {
    font-size: 17px;
    line-height: 1.47;
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-xs);
    letter-spacing: 0;
}

.primary-feature .feature-description {
    font-size: 17px;
    line-height: 1.47;
    opacity: 0.9;
    margin-bottom: var(--spacing-md);
}

.feature-demo {
    background: rgba(0, 0, 0, 0.03);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
}

[data-theme="dark"] .feature-demo {
    background: rgba(255, 255, 255, 0.1);
}

@media (prefers-color-scheme: dark) {
    .feature-demo {
        background: rgba(255, 255, 255, 0.1);
    }
}

[data-theme="light"] .feature-demo {
    background: rgba(0, 0, 0, 0.03);
}

.demo-sequence {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.demo-step {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    font-size: 16px;
    font-weight: var(--font-weight-medium);
}

.demo-keys {
    display: flex;
    align-items: center;
    gap: 4px;
}

.demo-key {
    background: rgba(0, 0, 0, 0.05);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-weight: var(--font-weight-semibold);
    font-family: 'SF Pro Display', system-ui, sans-serif;
    font-size: 16px;
    min-width: 32px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--text-primary);
}

[data-theme="dark"] .demo-key {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

@media (prefers-color-scheme: dark) {
    .demo-key {
        background: rgba(255, 255, 255, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: white;
    }
}

[data-theme="light"] .demo-key {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--text-primary);
}

.demo-plus {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0 2px;
}

[data-theme="dark"] .demo-plus {
    color: rgba(255, 255, 255, 0.7);
}

@media (prefers-color-scheme: dark) {
    .demo-plus {
        color: rgba(255, 255, 255, 0.7);
    }
}

[data-theme="light"] .demo-plus {
    color: var(--text-secondary);
}

.demo-arrow {
    color: var(--text-secondary);
    font-size: 18px;
}

[data-theme="dark"] .demo-arrow {
    color: rgba(255, 255, 255, 0.7);
}

@media (prefers-color-scheme: dark) {
    .demo-arrow {
        color: rgba(255, 255, 255, 0.7);
    }
}

[data-theme="light"] .demo-arrow {
    color: var(--text-secondary);
}

.demo-result {
    color: var(--text-primary);
}

[data-theme="dark"] .demo-result {
    color: rgba(255, 255, 255, 0.9);
}

@media (prefers-color-scheme: dark) {
    .demo-result {
        color: rgba(255, 255, 255, 0.9);
    }
}

[data-theme="light"] .demo-result {
    color: var(--text-primary);
}

.app-name {
    background: rgba(0, 0, 0, 0.08);
    color: var(--text-primary);
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: var(--font-weight-medium);
    display: inline-block;
    font-size: 14px;
}

[data-theme="dark"] .app-name {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

@media (prefers-color-scheme: dark) {
    .app-name {
        background: rgba(255, 255, 255, 0.15);
        color: white;
    }
}

[data-theme="light"] .app-name {
    background: rgba(0, 0, 0, 0.08);
    color: var(--text-primary);
}

.primary-feature .feature-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Feature Row */
.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    margin: var(--spacing-md) 0;
}

.secondary-feature {
    min-height: 400px;
}

.secondary-feature .feature-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.secondary-feature .feature-title {
    font-family: var(--font-system);
    font-size: 32px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    letter-spacing: 0;
}

.secondary-feature .feature-description {
    font-size: 17px;
    line-height: 1.47;
    color: var(--text-secondary);
}

.secondary-feature .feature-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-small);
}

.git-demo {
    margin-top: var(--spacing-md);
}

.branch-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: #F0F0F0;
    padding: 8px var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
}

.git-icon {
    font-size: 16px;
    color: var(--primary-blue);
}

/* Widget Feature */
.widget-feature {
    background: #1D1D1F;
    color: white;
    min-height: 500px;
}

[data-theme="dark"] .widget-feature {
    background: #2C2C2E;
}

@media (prefers-color-scheme: dark) {
    .widget-feature {
        background: #2C2C2E;
    }
}

[data-theme="light"] .widget-feature {
    background: #1D1D1F;
}

.widget-feature .feature-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    padding: var(--spacing-xxl);
}

.widget-feature .feature-title {
    font-size: clamp(32px, 3.5vw, 48px);
    line-height: 1.1;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.01em;
}

.widget-feature .feature-description {
    font-size: 17px;
    line-height: 1.47;
    opacity: 0.8;
    margin-bottom: var(--spacing-lg);
}

.feature-benefits {
    list-style: none;
}

.feature-benefits li {
    padding: var(--spacing-xs) 0;
    font-size: 15px;
    opacity: 0.9;
    position: relative;
    padding-left: var(--spacing-md);
}

.feature-benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #34C759;
    font-weight: var(--font-weight-bold);
}

.widget-showcase {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.widget-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Carousel Feature */
.carousel-feature {
    background: white;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .carousel-feature {
    background: var(--background-elevated);
    color: var(--text-primary);
}

@media (prefers-color-scheme: dark) {
    .carousel-feature {
        background: var(--background-elevated);
        color: var(--text-primary);
    }
}

[data-theme="light"] .carousel-feature {
    background: white;
    color: var(--text-primary);
}

.carousel-content-single {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    padding: var(--spacing-md);
    height: 100%;
}

.carousel-title {
    font-size: 17px;
    line-height: 1.47;
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-xs);
    letter-spacing: 0;
}

.carousel-description {
    font-size: 17px;
    line-height: 1.47;
    opacity: 0.9;
    margin-bottom: var(--spacing-xs);
}

.carousel-benefits {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-sm);
}

.carousel-benefits .benefit-item {
    font-size: 17px;
    opacity: 0.9;
}

.carousel-benefits .benefit-text {
    line-height: 1.47;
}

.carousel-visual {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-top: auto;
    overflow: hidden;
    border-radius: var(--radius-lg);
    flex: 1;
}

.carousel-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-lg);
}

/* Horizontal Scroll Carousel */
.horizontal-carousel-section {
    grid-column: 1 / -1;
    padding: var(--spacing-xl) 0;
    overflow: hidden;
}

.horizontal-carousel-container {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 calc(-1 * var(--container-padding));
    padding: 0 var(--container-padding);
    scroll-snap-type: x mandatory;
}

.horizontal-carousel-container::-webkit-scrollbar {
    display: none;
}

.horizontal-carousel-track {
    display: grid;
    grid-template-columns: repeat(3, 368px);
    gap: var(--spacing-md);
    width: max-content;
}

.horizontal-carousel-item {
    width: 368px;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    scroll-snap-align: start;
}

.carousel-item-image {
    width: 368px;
    height: 378px;
    flex-shrink: 0;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--background-elevated);
    box-shadow: var(--shadow-medium);
    display: flex;
    align-items: flex-end;
}

.carousel-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-item-text {
    text-align: left;
    max-width: 400px;
}

.carousel-item-text p {
    font-size: 17px;
    line-height: 1.47;
    color: var(--text-primary);
}

.carousel-item-text strong {
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

.horizontal-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: var(--spacing-lg);
}

.horizontal-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0;
}

[data-theme="dark"] .horizontal-dot {
    background: rgba(255, 255, 255, 0.2);
}

@media (prefers-color-scheme: dark) {
    .horizontal-dot {
        background: rgba(255, 255, 255, 0.2);
    }
}

[data-theme="light"] .horizontal-dot {
    background: rgba(0, 0, 0, 0.15);
}

.horizontal-dot:hover {
    background: rgba(0, 0, 0, 0.3);
    transform: scale(1.2);
}

[data-theme="dark"] .horizontal-dot:hover {
    background: rgba(255, 255, 255, 0.4);
}

@media (prefers-color-scheme: dark) {
    .horizontal-dot:hover {
        background: rgba(255, 255, 255, 0.4);
    }
}

[data-theme="light"] .horizontal-dot:hover {
    background: rgba(0, 0, 0, 0.3);
}

.horizontal-dot.active {
    background: var(--primary-blue);
    width: 24px;
    border-radius: 4px;
}

/* Placeholder image styles */
.placeholder-image {
    width: 100%;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px dashed rgba(255, 255, 255, 0.3);
}
.placeholder-image.compact {
    height: 120px;
    flex: 1;
}
.placeholder-text {
    font-size: 12px;
    opacity: 0.7;
    text-align: center;
    font-style: italic;
}

/* Compact feature images */
.feature-image.compact {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    flex: 1;
}

/* Workflow Feature */
.workflow-feature {
    background: #1D1D1F;
    min-height: 320px;
    position: relative;
}

.workflow-feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.08;
    pointer-events: none;
    border-radius: var(--radius-xl);
}

[data-theme="dark"] .workflow-feature {
    background: var(--background-elevated);
}

[data-theme="dark"] .workflow-feature::before {
    opacity: 0.06;
}

@media (prefers-color-scheme: dark) {
    .workflow-feature {
        background: var(--background-elevated);
    }

    .workflow-feature::before {
        opacity: 0.06;
    }
}

[data-theme="light"] .workflow-feature {
    background: #1D1D1F;
}

[data-theme="light"] .workflow-feature::before {
    opacity: 0.08;
}

.workflow-feature .feature-content {
    padding: var(--spacing-xl) var(--spacing-lg);
}

.workflow-feature .feature-text.centered {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.workflow-feature .feature-title {
    font-size: clamp(32px, 3.5vw, 48px);
    font-weight: var(--font-weight-bold);
    color: white;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.xcode-icon {
    height: 1.1em;
    width: auto;
    vertical-align: middle;
    display: inline-block;
}

.workflow-feature .feature-description {
    font-size: 17px;
    line-height: 1.47;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.workflow-step {
    text-align: center;
    padding: var(--spacing-md);
}

.step-visual {
    margin-bottom: var(--spacing-sm);
}

.step-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #5856D6 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: var(--font-weight-bold);
    margin: 0 auto;
    box-shadow: var(--shadow-small);
}

.step-title {
    font-size: 18px;
    font-weight: var(--font-weight-semibold);
    color: white;
    margin-bottom: 4px;
}

.step-description {
    font-size: 14px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.7);
}

/* FAQ Section */
.faq-section {
    padding: var(--spacing-xl) 0 var(--spacing-xxxl);
    background: rgb(245, 245, 247);
}

[data-theme="dark"] .faq-section {
    background: var(--background-primary);
}

@media (prefers-color-scheme: dark) {
    .faq-section {
        background: var(--background-primary);
    }
}

[data-theme="light"] .faq-section {
    background: rgb(245, 245, 247);
}

.faq-container {
    max-width: var(--container-lg);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.faq-main-title {
    font-family: var(--font-system);
    font-size: clamp(28px, 3vw, 36px);
    line-height: 1.2;
    font-weight: 500;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    letter-spacing: 0;
    color: var(--text-primary);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.faq-item {
    background: rgba(0, 0, 0, 0.02);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .faq-item {
    background: rgba(255, 255, 255, 0.05);
}

@media (prefers-color-scheme: dark) {
    .faq-item {
        background: rgba(255, 255, 255, 0.05);
    }
}

[data-theme="light"] .faq-item {
    background: rgba(0, 0, 0, 0.02);
}

.faq-item:hover {
    background: rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
}

[data-theme="dark"] .faq-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

@media (prefers-color-scheme: dark) {
    .faq-item:hover {
        background: rgba(255, 255, 255, 0.08);
    }
}

[data-theme="light"] .faq-item:hover {
    background: rgba(0, 0, 0, 0.04);
}

.faq-question {
    font-family: var(--font-system);
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    letter-spacing: 0;
    line-height: 1.3;
}

.faq-answer {
    font-size: 17px;
    line-height: 1.5;
    color: var(--text-primary);
    margin: 0;
}

@media (max-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .faq-item {
        padding: var(--spacing-md);
    }

    .faq-question {
        font-size: 18px;
    }

    .faq-answer {
        font-size: 16px;
    }
}

/* Download Section */
.download-section {
    background: rgb(245, 245, 247);
    padding: var(--spacing-xxxl) 0;
    color: var(--text-primary);
    text-align: center;
}

[data-theme="dark"] .download-section {
    background: var(--background-primary);
}

@media (prefers-color-scheme: dark) {
    .download-section {
        background: var(--background-primary);
    }
}

[data-theme="light"] .download-section {
    background: rgb(245, 245, 247);
}

.download-container {
    max-width: var(--container-lg);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.download-title {
    font-family: var(--font-system);
    font-size: clamp(48px, 5vw, 72px);
    line-height: 1.1;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    letter-spacing: 0;
    color: var(--text-primary);
}

.download-subtitle {
    font-size: 21px;
    line-height: 1.4;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.download-button {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg) var(--spacing-xl);
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    min-width: 280px;
}

.download-button:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.download-main {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
}

.download-text {
    font-size: 19px;
    font-weight: var(--font-weight-semibold);
}

.download-icon {
    font-size: 20px;
    opacity: 0.8;
}

.download-details {
    display: flex;
    gap: var(--spacing-sm);
    font-size: 13px;
    opacity: 0.8;
}

.download-note {
    margin-top: var(--spacing-lg);
    font-size: 15px;
    opacity: 0.8;
}

/* Footer */
.footer {
    background: var(--background-secondary);
    padding: var(--spacing-xxl) 0 var(--spacing-lg);
}

.footer-container {
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
    margin-bottom: var(--spacing-lg);
}

.footer-logo {
    font-size: 21px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.footer-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
}

.footer-tagline {
    font-size: 15px;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: var(--spacing-xxl);
    justify-content: flex-end;
}

.footer-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-heading {
    font-size: 15px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding-top: var(--spacing-lg);
    text-align: center;
}

.footer-copyright {
    font-size: 14px;
    color: var(--text-tertiary);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding: var(--spacing-xl) var(--spacing-md);
        gap: var(--spacing-lg);
    }

    .hero-text-section {
        max-width: 700px;
        justify-self: center;
    }

    .hero-widget-image {
        max-width: 400px;
        justify-self: center;
        margin-top: var(--spacing-lg);
    }

    .primary-feature-row {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }


    .widget-feature .feature-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        text-align: center;
    }

    .feature-row {
        grid-template-columns: 1fr;
    }

    .workflow-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
}


@media (max-width: 768px) {
    .carousel-item-text p {
        font-size: 15px;
    }

    .demo-sequence {
        gap: var(--spacing-sm);
    }

    .demo-step {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-xs);
    }

    .demo-keys {
        justify-content: center;
    }

    .demo-arrow {
        transform: rotate(90deg);
    }

    .theme-toggle {
        top: 15px;
        right: 15px;
        padding: 2px;
    }

    .theme-option {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }
    
    .nav-menu {
        gap: var(--spacing-sm);
    }
    
    .nav-link {
        font-size: 15px;
    }
    
    .nav-cta {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .hero {
        min-height: 600px;
        padding: var(--spacing-xl) 0 var(--spacing-xxl);
    }
    
    .hero-content-container {
        padding: 0 var(--spacing-md);
        justify-content: center;
        text-align: center;
        flex-direction: column;
    }
    
    .hero-text-section {
        max-width: none;
        width: 100%;
        margin-top: var(--spacing-xl);
    }
    
    .hero-title {
        font-size: clamp(32px, 8vw, 48px);
        margin-bottom: var(--spacing-md);
        text-align: center;
    }
    
    .hero-subtitle {
        font-size: clamp(16px, 4vw, 18px);
        max-width: none;
        text-align: center;
        margin-bottom: var(--spacing-lg);
    }
    
    .hero-actions {
        justify-content: center;
        gap: var(--spacing-md);
    }
    
    .hero-button {
        min-width: 200px;
        padding: 16px var(--spacing-lg);
    }
    
    .hero-widget-image {
        max-width: 300px;
        opacity: 0.8;
        margin-top: var(--spacing-xl);
    }
    
    .hero-content-overlay {
        position: relative;
        z-index: 2;
    }
    
    
    .secondary-feature .feature-content {
        text-align: center;
        gap: var(--spacing-lg);
    }
    
    .secondary-feature .feature-visual {
        order: -1;
    }
    
    .demo-sequence {
        justify-content: center;
    }
    
    .demo-step {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .workflow-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .workflow-step {
        padding: var(--spacing-md);
    }
    
    .download-actions {
        display: flex;
        justify-content: center;
    }
    
    .download-button {
        min-width: 250px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
        gap: var(--spacing-lg);
        flex-direction: column;
        align-items: center;
    }
    
    .footer-group {
        text-align: center;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-md: 16px;
        --spacing-lg: 24px;
        --spacing-xl: 32px;
        --spacing-xxl: 48px;
        --spacing-xxxl: 64px;
    }
    
    .theme-toggle {
        top: 12px;
        right: 12px;
        padding: 2px;
        gap: 1px;
    }
    
    .theme-option {
        width: 22px;
        height: 22px;
        font-size: 9px;
    }
    
    .nav-container {
        padding: 0 var(--spacing-sm);
    }
    
    .nav-menu {
        gap: var(--spacing-xs);
    }
    
    .nav-cta {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .hero {
        min-height: 600px;
        padding: var(--spacing-lg) 0 var(--spacing-xl);
    }
    
    .hero-widget-image {
        max-width: 260px;
        margin-top: var(--spacing-lg);
    }
    
    .hero-title {
        font-size: clamp(28px, 9vw, 42px);
    }
    
    .hero-subtitle {
        font-size: clamp(15px, 4.5vw, 17px);
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-sm);
    }
    
    .hero-button {
        width: 100%;
        max-width: 260px;
        min-width: auto;
        padding: 14px var(--spacing-md);
        font-size: 16px;
    }
    
    .feature-content {
        padding: var(--spacing-lg);
    }
    
    .primary-feature .feature-content,
    .widget-feature .feature-content {
        padding: var(--spacing-lg);
        gap: var(--spacing-lg);
    }

    .branch-feature .feature-content,
    .project-feature .feature-content {
        padding: var(--spacing-md);
        gap: var(--spacing-sm);
    }
    
    .primary-feature .feature-title,
    .workflow-feature .feature-title {
        font-size: clamp(28px, 6vw, 36px);
    }
    
    .secondary-feature .feature-title {
        font-size: clamp(24px, 5vw, 28px);
    }
    
    .demo-keys {
        gap: 2px;
    }
    
    .demo-key {
        padding: 6px 8px;
        font-size: 14px;
        min-width: 28px;
    }
    
    .workflow-grid {
        gap: var(--spacing-lg);
    }
    
    .step-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .download-title {
        font-size: clamp(36px, 8vw, 48px);
    }
    
    .download-button {
        min-width: auto;
        width: 100%;
        max-width: 280px;
        padding: var(--spacing-md) var(--spacing-lg);
    }
    
    .footer-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--spacing-md);
    }
    
    .footer-group {
        flex: 1 1 120px;
        min-width: 120px;
    }
}

/* Performance Optimizations */
.hero-widget-image,
.feature-image,
.feature-card,
.hero-button {
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
}

/* Enhanced Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Scroll-triggered animations will be handled by JavaScript */
.animate-in {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.animate-in.visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    will-change: auto;
}

/* Focus styles for accessibility */
*:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --text-secondary: #666666;
        --border-light: rgba(0, 0, 0, 0.2);
        --shadow-small: 0 2px 8px rgba(0, 0, 0, 0.25);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}