:root {
    --primary-color: #2d7aef;
    --secondary-color: #1e1e1e;
    --accent-color: #7957d5;
    --text-color: #333;
    --light-bg: #f9f9f9;
    --white: #ffffff;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

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

/* Language Selector */
.language-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 5px;
    background-color: var(--white);
    padding: 5px;
    border-radius: 20px;
    box-shadow: var(--box-shadow);
}

.language-selector button {
    background: none;
    border: none;
    padding: 5px 10px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
}

.language-selector button.active {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Header */
header {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.keyboard-icon {
    font-size: 2rem;
    margin-right: 15px;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

.cta-button a {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
}

.cta-button a:hover {
    background-color: #1b5fc9;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.hero {
    padding: 100px 0 60px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    text-align: center;
}

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

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #555;
}

.keyboard-animation {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
}

.key {
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Source Code Pro', monospace;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--secondary-color);
    box-shadow: 0 4px 0 #ccc;
    transition: transform 0.1s, box-shadow 0.1s;
    cursor: pointer;
}

.key.active {
    transform: translateY(4px);
    box-shadow: 0 0 0 #ccc;
}

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

.features h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.2rem;
    color: var(--secondary-color);
}

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

.feature-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.feature-card p {
    color: #666;
}

/* Usage Section */
.usage {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.usage h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.2rem;
    color: var(--secondary-color);
}

.usage-steps {
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    margin-bottom: 40px;
    align-items: flex-start;
}

.step-number {
    background-color: var(--primary-color);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-right: 20px;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.step-content p {
    color: #666;
}

/* Settings Section */
.settings {
    padding: 80px 0;
    background-color: var(--white);
}

.settings h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.2rem;
    color: var(--secondary-color);
}

.settings-table {
    max-width: 900px;
    margin: 0 auto;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.setting-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    border-bottom: 1px solid #eee;
}

.setting-row:last-child {
    border-bottom: none;
}

.setting-row.header {
    background-color: var(--secondary-color);
    color: var(--white);
    font-weight: 700;
}

.setting-name, .setting-description {
    padding: 15px 20px;
}

.setting-name {
    font-family: 'Source Code Pro', monospace;
    font-weight: 600;
    border-right: 1px solid #eee;
    background-color: #f5f5f5;
}

.setting-row.header .setting-name {
    background-color: var(--secondary-color);
    border-right: 1px solid #444;
}

/* Platforms Section */
.platforms {
    padding: 80px 0;
    background-color: var(--light-bg);
    text-align: center;
}

.platforms h2 {
    margin-bottom: 50px;
    font-size: 2.2rem;
    color: var(--secondary-color);
}

.platform-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}

.platform {
    text-align: center;
}

.platform-icon {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.platform h3 {
    font-size: 1.2rem;
    color: var(--secondary-color);
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

.footer-links {
    margin-top: 20px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    margin: 0 10px;
    transition: var(--transition);
}

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

/* Language specific display */
body:not(.jp) .jp {
    display: none !important;
}

body.jp .en {
    display: none !important;
}

/* Responsive Styling */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .keyboard-animation {
        flex-wrap: wrap;
    }
    
    .feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .setting-row {
        grid-template-columns: 1fr;
    }
    
    .setting-name {
        border-right: none;
        border-bottom: 1px solid #eee;
    }
    
    .setting-row.header .setting-name {
        border-bottom: 1px solid #444;
    }
    
    .platform-list {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .logo {
        flex-direction: column;
        text-align: center;
    }
    
    .keyboard-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .hero {
        padding: 60px 0 40px;
    }
    
    .step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .step-number {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .language-selector {
        top: 10px;
        right: 10px;
    }
}
