@font-face {
    font-family: 'Roboto Flex';
    font-display: swap;
}

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

html {
    scroll-behavior: smooth;
}

:root {
    --primary-black: #000000;
    --primary-white: #ffffff;
    --text-secondary: rgba(0, 0, 0, 0.5);
    --text-light: rgba(0, 0, 0, 0.4);
    --text-lighter: rgba(0, 0, 0, 0.8);
    --border-light: rgba(0, 0, 0, 0.1);
    --border-medium: rgba(0, 0, 0, 0.2);
    --background-light: rgba(0, 0, 0, 0.05);
    --overlay-light: rgba(255, 255, 255, 0.1);
    --overlay-border: rgba(255, 255, 255, 0.2);
    
    --font-family: 'Roboto Flex', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    
    --text-xs: 8px;
    --text-sm: 12px;
    --text-base: 16px;
    --text-lg: 24px;
    --text-xl: 32px;
    --text-2xl: 48px;
    
    --weight-thin: 100;
    --weight-normal: 400;
    --weight-bold: 700;
    --weight-extra-bold: 800;
    
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 50%;
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--text-base);
    font-weight: var(--weight-normal);
    line-height: 1.5;
    color: var(--primary-black);
    background-color: var(--primary-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: 402px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

@media (max-width: 401px) {
    .container {
        max-width: 100%;
        padding: 0 var(--spacing-md);
    }
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: var(--primary-white);
    border-bottom: 1px solid var(--border-light);
    height: 66px;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 var(--spacing-md);
}

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

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    color: var(--primary-black);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background-color: var(--background-light);
    transform: scale(1.05);
}

.theme-toggle:focus {
    outline: 2px solid var(--primary-black);
    outline-offset: 2px;
}

.theme-icon {
    width: 24px;
    height: 24px;
    transition: all var(--transition-fast);
}

.theme-icon-light {
    display: block;
}

.theme-icon-dark {
    display: none;
}

[data-theme="dark"] .theme-icon-light {
    display: none;
}

[data-theme="dark"] .theme-icon-dark {
    display: block;
}

[data-theme="dark"] .theme-toggle {
    color: var(--primary-black);
}

[data-theme="dark"] .theme-toggle:hover {
    background-color: var(--background-light);
}

[data-theme="dark"] .theme-toggle:focus {
    outline: 2px solid var(--primary-black);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.app-icon {
    width: 32px;
    height: 32px;
    background-color: var(--primary-black);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 1px;
    width: 20px;
    height: 20px;
}

.icon-dot {
    background-color: var(--primary-white);
    border-radius: 1px;
    width: 6px;
    height: 6px;
}

.icon-dot:nth-child(4) {
    border-radius: 1.333px;
}

.icon-dot:nth-child(9) {
    border-radius: var(--radius-sm);
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-title {
    font-size: var(--text-sm);
    font-weight: var(--weight-extra-bold);
    font-variation-settings: 'wdth' 151;
    line-height: 1;
}

.brand-subtitle {
    font-size: var(--text-xs);
    font-weight: var(--weight-thin);
    color: var(--text-lighter);
    line-height: 1;
}

.language-dropdown {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: var(--spacing-xs) var(--spacing-sm);
    cursor: pointer;
}

.lang-text {
    font-size: var(--text-sm);
    font-weight: var(--weight-extra-bold);
    font-variation-settings: 'wdth' 151;
}

.dropdown-icon {
    width: 24px;
    height: 24px;
    color: var(--primary-black);
}

.hero-section {
    padding: var(--spacing-xl) 0;
    margin-top: 66px;
}

section h1,
article h1,
aside h1,
nav h1 {
    font-size: 2em;
}

.hero-title {
    font-size: var(--text-2xl) !important;
    font-weight: var(--weight-extra-bold);
    font-variation-settings: 'wdth' 151;
    line-height: 1;
    margin-bottom: var(--spacing-md);
    contain: layout style paint;
    will-change: auto;
}

.hero-description {
    font-size: var(--text-lg);
    font-weight: var(--weight-normal);
    line-height: 1;
    margin-bottom: var(--spacing-md);
}

.hero-version {
    font-size: var(--text-base);
    font-weight: var(--weight-thin);
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1;
}

.share-section {
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--border-light);
}

.share-section .container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-label {
    font-size: var(--text-lg);
    font-weight: var(--weight-normal);
}

.share-icons {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.share-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    color: var(--primary-black);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-btn:hover {
    background-color: var(--background-light);
    transform: scale(1.1);
}

.share-btn svg {
    width: 24px;
    height: 24px;
}

.instructions-section {
    padding: var(--spacing-xl) 0;
}

.section-title {
    font-size: var(--text-xl);
    font-weight: var(--weight-extra-bold);
    font-variation-settings: 'wdth' 151;
    line-height: 1;
    margin-bottom: var(--spacing-md);
}

.section-description {
    font-size: var(--text-lg);
    font-weight: var(--weight-normal);
    line-height: 1;
    margin-bottom: var(--spacing-xl);
}

.instruction-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.instruction-item {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
}

.instruction-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--primary-black);
}

.instruction-content {
    flex: 1;
}

.instruction-content h3 {
    font-size: var(--text-lg);
    font-weight: var(--weight-extra-bold);
    font-variation-settings: 'wdth' 151;
    line-height: 1;
    margin-bottom: var(--spacing-sm);
}

.instruction-content p {
    font-size: var(--text-lg);
    font-weight: var(--weight-normal);
    line-height: 1;
    margin-bottom: var(--spacing-sm);
}

.keyboard-explanation strong {
    font-weight: var(--weight-bold);
}

.app-section {
    padding: var(--spacing-xl) 0;
}

.sound-pack-nav {
    background-color: var(--primary-black);
    border-radius: var(--spacing-md) var(--spacing-md) 0 0;
    padding: var(--spacing-md);
    margin-bottom: 0;
}

.preset-selector {
    background-color: var(--overlay-light);
    border: 1px solid var(--overlay-border);
    border-radius: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    position: relative;
}

.preset-name {
    font-size: var(--text-lg);
    font-weight: var(--weight-normal);
    color: var(--primary-white);
    line-height: 1;
    flex: 1;
}

.preset-selector .dropdown-icon {
    color: var(--primary-white);
}

.preset-dropdown {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    border: none;
    background: transparent;
}

.beat-maker-app {
    background-color: var(--primary-black);
    border-radius: 0 0 var(--spacing-md) var(--spacing-md);
    padding: var(--spacing-md);
}

.pad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: var(--spacing-sm);
    aspect-ratio: 370/496;
    width: 100%;
}

.pad {
    background-color: var(--primary-white);
    border-radius: var(--spacing-md);
    border: 5px solid rgba(0, 0, 0, 0.1);
    padding: var(--spacing-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    min-height: 96px;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.pad:hover {
    transform: scale(0.98);
    border-color: rgba(0, 0, 0, 0.2);
}

.pad:active, .pad.active {
    transform: scale(0.95);
    background-color: var(--primary-black);
    border-color: #ffffff;
    color: var(--primary-white);
}

.pad:active .pad-number,
.pad.active .pad-number,
.pad:active .pad-sound,
.pad.active .pad-sound,
.pad:active .pad-key-text,
.pad.active .pad-key-text {
    color: var(--primary-white);
}

.pad.loading {
    background-color: var(--primary-white);
    border-color: rgba(0, 0, 0, 0.1);
    cursor: not-allowed;
}

.pad.error {
    background-color: #fff5f5;
    border-color: #f56565;
    cursor: pointer;
}

.pad.error .pad-sound {
    color: #c53030;
}

.pad-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: var(--spacing-xs);
}

.pad-number {
    font-size: var(--text-sm);
    font-weight: var(--weight-bold);
    color: var(--primary-black);
    line-height: 1;
}

.pad-sound {
    font-size: var(--text-sm);
    font-weight: var(--weight-normal);
    color: var(--text-secondary);
    line-height: 1;
}

.pad-key {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: var(--spacing-xs);
    flex: 1;
}

.pad-key-text {
    font-size: var(--text-lg);
    font-weight: var(--weight-bold);
    color: var(--primary-black);
    line-height: 1;
}

.skeleton {
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.pad.loading .pad-info {
    opacity: 0;
}

.pad.loading .pad-key {
    opacity: 0;
}

.pad.loading::before {
    content: '';
    position: absolute;
    top: var(--spacing-sm);
    left: var(--spacing-sm);
    right: var(--spacing-sm);
    bottom: var(--spacing-sm);
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--spacing-sm);
}

.download-section {
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.download-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
}

.download-btn {
    background-color: var(--primary-black);
    color: var(--primary-white);
    border: 1px solid var(--primary-black);
    border-radius: var(--spacing-md);
    padding: 16px;
    font-size: var(--text-base);
    font-weight: var(--weight-bold);
    cursor: pointer;
    transition: all var(--transition-fast);
    min-width: 158px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.download-btn:hover {
    background-color: var(--primary-white);
    color: var(--primary-black);
}

.download-btn:hover .qr-code {
    filter: invert(1);
}

.qr-code-container {
    width: 120px;
    height: 120px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
}

.qr-code {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    object-fit: contain;
    transition: filter var(--transition-fast);
}

.download-text {
    font-size: 14px;
    font-weight: var(--weight-bold);
    color: var(--primary-white);
    text-align: center;
    line-height: 1;
    width: 126px;
}

.download-btn:focus {
    outline: 2px solid var(--primary-white);
    outline-offset: 2px;
}

.download-btn:active {
    transform: translateY(1px);
}

.download-description {
    font-size: var(--text-base);
    font-weight: var(--weight-thin);
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1;
}

.structure-section {
    padding: var(--spacing-xl) 0;
}

.structure-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.structure-subtitle {
    font-size: var(--text-lg);
    font-weight: var(--weight-extra-bold);
    font-variation-settings: 'wdth' 151;
    line-height: 1;
}

.demo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: var(--spacing-sm);
    height: 496px;
    margin: var(--spacing-md) 0;
}

.demo-pad {
    border: 4px solid var(--border-light);
    border-radius: var(--spacing-md);
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-pad .pad-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
    width: 100%;
}

.demo-pad .pad-number {
    font-size: var(--text-sm);
    font-weight: var(--weight-normal);
    color: var(--text-light);
    line-height: 1;
}

.demo-pad .pad-sound {
    font-size: var(--text-sm);
    font-weight: var(--weight-bold);
    color: var(--primary-black);
    line-height: 1;
}

.grid-description {
    font-size: var(--text-base);
    font-weight: var(--weight-thin);
    font-style: italic;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1;
}

.structure-explanation {
    font-size: var(--text-lg);
    font-weight: var(--weight-normal);
    line-height: 1;
}

.benefits-section {
    padding: var(--spacing-xl) 0;
}

.benefits-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.benefit-card {
    border: 1px solid var(--border-light);
    border-radius: var(--spacing-md);
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--spacing-md);
}

.benefit-icon {
    background-color: var(--background-light);
    border: 1px solid var(--border-light);
    border-radius: 100px;
    padding: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-icon svg {
    width: 48px;
    height: 48px;
}

.benefit-card h3 {
    font-size: var(--text-lg);
    font-weight: var(--weight-extra-bold);
    font-variation-settings: 'wdth' 151;
    line-height: 1;
}

.benefit-card p {
    font-size: var(--text-lg);
    font-weight: var(--weight-normal);
    line-height: 1;
}

.live-section {
    padding: var(--spacing-xl) 0;
}

.live-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.live-item {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.live-item h3 {
    font-size: var(--text-lg);
    font-weight: var(--weight-extra-bold);
    font-variation-settings: 'wdth' 151;
    line-height: 1;
}

.live-item p {
    font-size: var(--text-lg);
    font-weight: var(--weight-normal);
    line-height: 1;
}

.faq-section {
    padding: var(--spacing-xl) 0;
}

.faq-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.faq-item {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.faq-item h3 {
    font-size: var(--text-lg);
    font-weight: var(--weight-extra-bold);
    font-variation-settings: 'wdth' 151;
    line-height: 1;
}

.faq-item p {
    font-size: var(--text-lg);
    font-weight: var(--weight-normal);
    line-height: 1;
}

.back-to-top {
    position: fixed;
    bottom: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-black);
    color: var(--primary-white);
    border: 1px solid var(--primary-black);
    border-radius: var(--spacing-md);
    padding: 10px var(--spacing-lg);
    font-size: var(--text-base);
    font-weight: var(--weight-bold);
    cursor: pointer;
    transition: all var(--transition-fast);
    opacity: 0;
    visibility: hidden;
    z-index: 50;
    min-width: 177px;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-white);
    color: var(--primary-black);
}

.footer {
    display: flex;
    border-top: 1px solid var(--border-light);
    padding: var(--spacing-md);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    text-align: center;
    height: auto;
    justify-content: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.footer-logo .app-icon {
    width: 32px;
    height: 32px;
}

.footer-logo .brand-title {
    font-size: var(--text-sm);
    font-weight: var(--weight-extra-bold);
    font-variation-settings: 'wdth' 151;
}

.footer-logo .brand-subtitle {
    font-size: var(--text-xs);
    font-weight: var(--weight-thin);
    color: var(--text-lighter);
}

.copyright {
    font-size: var(--text-lg);
    font-weight: var(--weight-normal);
    line-height: 1;
}

.footer-description {
    font-size: var(--text-base);
    font-weight: var(--weight-thin);
    font-style: italic;
    color: var(--primary-black);
    line-height: normal;
}

.rights {
    font-size: var(--text-base);
    font-weight: var(--weight-thin);
    font-style: italic;
    color: var(--primary-black);
    line-height: 1;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--primary-white);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--transition-slow);
    opacity: 0;
    visibility: hidden;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-lg);
    max-width: 300px;
    padding: var(--spacing-xl);
}

.loading-icon .app-icon {
    width: 64px;
    height: 64px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.loading-content h2 {
    font-size: var(--text-xl);
    font-weight: var(--weight-extra-bold);
    font-variation-settings: 'wdth' 151;
}

.loading-content p {
    font-size: var(--text-lg);
    font-weight: var(--weight-normal);
    color: var(--text-secondary);
}

.loading-bar {
    width: 100%;
    height: 4px;
    background-color: var(--border-light);
    border-radius: 2px;
    overflow: hidden;
}

.loading-progress {
    height: 100%;
    background-color: var(--primary-black);
    border-radius: 2px;
    transition: width var(--transition-normal);
    width: 0%;
}

@media (min-width: 768px) {
    .container {
        max-width: 800px;
        padding: 0 var(--spacing-lg);
    }
    
    .nav-container {
        max-width: 800px;
    }
    
    .hero-title {
        font-size: 56px;
    }
    
    .benefits-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
    
    .pad-grid {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .demo-grid {
        max-width: 600px;
        margin: var(--spacing-lg) auto;
    }
    
    .download-buttons {
        gap: var(--spacing-lg);
    }
    
    .share-section .container {
        justify-content: center;
        gap: var(--spacing-lg);
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1440px;
        padding: 0 var(--spacing-lg);
        margin: 0 auto;
    }
    
    .nav-container {
        max-width: 1440px;
        margin: 0 auto;
        padding: 16px;
    }
    
    .hero-section {
        padding: 88px 0 var(--spacing-xl);
        max-width: 800px;
        margin: 0 auto;
    }
    
    .hero-title {
        font-size: 48px;
        max-width: 800px;
        margin: 0 auto;
        font-weight: 800;
        line-height: 1.0;
    }
    
    .hero-description {
        font-size: 24px;
        line-height: 1.0;
        margin: 24px auto;
    }
    
    .hero-version {
        font-size: 16px;
        line-height: 1.0;
        margin: 24px auto 0;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-xl);
    }
    
    .instruction-list {
        max-width: 800px;
        margin: 0 auto;
    }
    
    .faq-content {
        max-width: 800px;
        margin: 0 auto;
    }
    
    .live-content {
        max-width: 800px;
        margin: 0 auto;
    }
    
    .structure-content {
        max-width: 800px;
        margin: 0 auto;
    }
    
    .instructions-section .section-description {
        text-align: center;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: var(--spacing-xl);
    }
    
    .app-section {
        max-width: 800px;
        margin: 0 auto;
        padding: var(--spacing-xl) 0;
    }
    
    .beat-maker-app {
        max-width: 800px;
        width: 100%;
    }
    
    .pad-grid {
        max-width: 370px;
        margin: 0 auto;
        aspect-ratio: 370/496;
    }
    
    .download-section {
        max-width: 800px;
        margin: 0 auto;
        padding: var(--spacing-xl) 0;
        text-align: center;
    }
    
    .download-buttons {
        display: flex;
        gap: 24px;
        justify-content: center;
        margin-bottom: var(--spacing-md);
        flex-wrap: nowrap;
    }
    
    .download-btn {
        min-width: 158px;
        height: 272px;
        padding: 16px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
        border-radius: 16px;
        cursor: pointer;
        transition: all var(--transition-fast);
    }
    
    .download-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    }
    
    .qr-code-container {
        width: 192px;
        height: 192px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        overflow: hidden;
    }
    
    .qr-code {
        width: 192px;
        height: 192px;
        border-radius: 8px;
        object-fit: contain;
    }
    
    .download-text {
        font-size: 16px;
        font-weight: var(--weight-bold);
        color: var(--primary-white);
        text-align: center;
        line-height: 1;
        width: 126px;
    }
    
    .download-btn:focus {
        outline: 2px solid var(--primary-white);
        outline-offset: 2px;
    }
    
    .download-btn:active {
        transform: translateY(0);
    }
    
    .download-description {
        font-size: 16px;
        text-align: center;
        margin-top: 8px;
        max-width: 402px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .instructions-section,
    .benefits-section,
    .live-section,
    .faq-section,
    .structure-section,
    .share-section {
        max-width: 800px;
        margin: 0 auto;
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .section-title {
        font-size: 32px;
        font-weight: 800;
        line-height: 1.0;
        margin-bottom: 24px;
    }
    
    .section-description {
        font-size: 24px;
        line-height: 1.0;
        margin-bottom: 24px;
    }
}

@media (min-width: 1440px) {
    .container {
        max-width: 1440px;
    }
    
    .nav-container {
        max-width: 1440px;
        padding: 16px;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        max-width: 800px;
        margin: 0 auto;
    }
    
    .instruction-list {
        display: flex;
        flex-wrap: wrap;
        gap: 24px;
        justify-content: space-between;
    }
    
    .instruction-item {
        flex: 0 1 calc(50% - 12px);
        max-width: 376px;
    }
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .app-icon, .loading-icon .app-icon {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

[data-theme="dark"] {
    --primary-black: #ffffff;
    --primary-white: #000000;
    --text-secondary: rgba(255, 255, 255, 0.5);
    --text-light: rgba(255, 255, 255, 0.4);
    --text-lighter: rgba(255, 255, 255, 0.8);
    --border-light: rgba(255, 255, 255, 0.1);
    --border-medium: rgba(255, 255, 255, 0.2);
    --background-light: rgba(255, 255, 255, 0.05);
    --overlay-light: rgba(0, 0, 0, 0.1);
    --overlay-border: rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .pad {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
}

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

[data-theme="dark"] .pad-number,
[data-theme="dark"] .pad-key-text {
    color: #ffffff;
}

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

[data-theme="dark"] .app-icon {
    background-color: var(--primary-white);
}

[data-theme="dark"] .app-icon .icon-dot {
    background-color: var(--primary-black);
}

[data-theme="dark"] .sound-pack-nav {
    background-color: var(--primary-white);
}

[data-theme="dark"] .beat-maker-app {
    background-color: var(--primary-white);
}

[data-theme="dark"] .preset-name {
    color: var(--primary-black);
}

[data-theme="dark"] .preset-selector .dropdown-icon {
    color: var(--primary-black);
}

[data-theme="dark"] .share-icon,
[data-theme="dark"] .feature-icon,
[data-theme="dark"] .method-icon {
    filter: invert(1);
}

[data-theme="dark"] .download-section .qr-code {
    filter: invert(1);
}

[data-theme="dark"] .download-section .download-btn:hover .qr-code {
    filter: none;
}

[data-theme="dark"] .pad:active,
[data-theme="dark"] .pad.active {
    background-color: rgba(255, 255, 255, 0);
    border-color: #ffffff;
    color: #ffffff;
}

[data-theme="dark"] .pad:active .pad-number,
[data-theme="dark"] .pad.active .pad-number,
[data-theme="dark"] .pad:active .pad-sound,
[data-theme="dark"] .pad.active .pad-sound,
[data-theme="dark"] .pad:active .pad-key-text,
[data-theme="dark"] .pad.active .pad-key-text {
    color: #ffffff;
}

[data-theme="dark"] .pad.error {
    background-color: #2d1b1b;
    border-color: #f56565;
}

[data-theme="dark"] .pad.error .pad-sound {
    color: #fc8181;
}

[data-theme="dark"] .pad.loading {
    background-color: rgba(255, 255, 255, 0);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .pad.loading::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .loading-icon .app-icon {
        animation: none;
    }
    
    .skeleton {
        animation: none;
    }
}

@media (hover: none) and (pointer: coarse) {
    .pad:hover {
        transform: none;
    }
    
    .share-btn:hover {
        transform: none;
        background-color: transparent;
    }
    
    .download-btn:hover,
    .back-to-top:hover {
        background-color: var(--primary-black);
        color: var(--primary-white);
    }
}

.pad:focus,
.share-btn:focus,
.download-btn:focus,
.back-to-top:focus,
.preset-selector:focus {
    outline: 2px solid var(--primary-black);
    outline-offset: 2px;
}

.site-footer {
    background-color: var(--background-light);
    border-top: 1px solid var(--border-light);
    padding: 40px 0 20px 0;
    margin-top: 40px;
    clear: both;
}

.footer-content {
    margin-bottom: 30px;
    width: 100%;
}

.footer-info {
    margin-bottom: 40px;
    padding: 0 16px;
    border-bottom: 1px solid transparent;
    padding-bottom: 20px;
}

.footer-links {
    margin-bottom: 40px;
    padding: 0 16px;
    border-bottom: 1px solid transparent;
    padding-bottom: 20px;
}

.footer-features {
    margin-bottom: 40px;
    padding: 0 16px;
    border-bottom: 1px solid transparent;
    padding-bottom: 20px;
}

.footer-content > * {
    display: block;
    width: 100%;
}

.footer-info h3,
.footer-links h4,
.footer-features h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary-black);
}

.footer-info p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

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

.footer-links li,
.footer-features li {
    margin-bottom: 8px;
    font-size: 14px;
}

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

.footer-links a:hover {
    color: var(--primary-black);
}

.footer-features li {
    color: var(--text-secondary);
}

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

.footer-bottom p {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0 0 8px 0;
    line-height: 1.4;
}

@media (min-width: 768px) {
    .site-footer {
        padding: 60px 0 30px 0;
    }
    
    .footer-content {
        display: grid;
        grid-template-columns: 2fr 1fr 1fr;
        grid-gap: 40px;
        margin-bottom: 40px;
    }
    
    .footer-info,
    .footer-links,
    .footer-features {
        margin-bottom: 0;
        padding: 0;
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .footer-info h3,
    .footer-links h4,
    .footer-features h4 {
        font-size: 20px;
        margin-bottom: 16px;
    }
    
    .footer-info p {
        font-size: 16px;
    }
    
    .footer-links li,
    .footer-features li {
        font-size: 15px;
        margin-bottom: 10px;
    }
    
    .footer-links a {
        font-size: 15px;
    }
    
    .footer-bottom p {
        font-size: 14px;
    }
}

[data-theme="dark"] .site-footer {
    background-color: var(--background-light);
    border-top-color: var(--border-light);
}

[data-theme="dark"] .footer-info h3,
[data-theme="dark"] .footer-links h4,
[data-theme="dark"] .footer-features h4 {
    color: var(--primary-black);
}

[data-theme="dark"] .footer-info p,
[data-theme="dark"] .footer-links a,
[data-theme="dark"] .footer-features li,
[data-theme="dark"] .footer-bottom p {
    color: var(--text-secondary);
}

[data-theme="dark"] .footer-links a:hover {
    color: var(--primary-black);
}

@media print {
    .navbar,
    .share-section,
    .app-section,
    .download-section,
    .back-to-top,
    .loading-overlay,
    .site-footer {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .hero-title {
        font-size: 24pt;
    }
    
    .section-title {
        font-size: 18pt;
    }
}

.share-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.share-btn:hover .share-icon {
    opacity: 1;
}

.feature-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    opacity: 0.8;
}

.method-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    opacity: 0.7;
}

.dropdown-icon {
    width: 24px;
    height: 24px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.dropdown-icon:hover {
    opacity: 1;
}

.benefit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--background-light);
    border-radius: var(--radius-full);
    border: 1px solid var(--border-light);
    margin-bottom: var(--spacing-md);
}

.instruction-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-right: var(--spacing-md);
    flex-shrink: 0;
}

.share-icons {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.share-btn:hover {
    background: var(--background-light);
    transform: translateY(-2px);
}