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

:root {
    --primary: #1565C0;
    --primary-light: #E3F2FD;
    --primary-dark: #0D47A1;
    --accent: #F59E0B;
    --bg: #FAFBFC;
    --bg-alt: #F0F4F8;
    --text: #1A202C;
    --text-light: #64748B;
    --card-bg: #FFFFFF;
    --radius: 12px;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

/* Nav */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    max-width: 1100px;
    margin: 0 auto;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
}
.logo-box {
    width: 44px;
    height: 44px;
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
}
.logo-box-sm {
    width: 36px;
    height: 36px;
    font-size: 16px;
    border-radius: 10px;
}
.nav-logo-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}
.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.lang-toggle {
    background: none;
    border: 1px solid #CBD5E1;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text);
}
.lang-toggle:hover { border-color: var(--primary); color: var(--primary); }
.nav-cta {
    background: var(--primary);
    color: white;
    padding: 8px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
}
.nav-cta:hover { background: var(--primary-dark); }

/* Hero */
.hero {
    padding: 0 24px 60px;
    background: linear-gradient(180deg, var(--primary-light) 0%, var(--bg) 100%);
}
.hero-content {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding-top: 40px;
}
.hero-text h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
}
.highlight { color: var(--primary); }
.hero-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 32px;
    max-width: 480px;
}
.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}
.btn-primary {
    background: var(--primary);
    color: white;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-secondary {
    background: white;
    color: var(--text);
    border: 2px solid #E2E8F0;
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-disabled {
    background: #F1F5F9;
    color: #94A3B8;
    cursor: default;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    display: inline-block;
}
.btn-store-soon {
    opacity: 0.6;
    cursor: default;
}

/* Demo Grid */
.hero-visual {
    display: flex;
    justify-content: center;
}
.demo-grid {
    display: grid;
    grid-template-columns: repeat(6, 52px);
    grid-template-rows: repeat(6, 52px);
    gap: 4px;
}
.demo-cell {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s;
}
.demo-cell.empty { background: #E8EDF2; }
.demo-cell.filled { background: #E8F5E9; color: #2E7D32; border: 1px solid #A5D6A7; }
.demo-cell.current { background: var(--primary); color: white; }
.demo-cell.possible { background: #FFF8E1; border: 2px solid #FFB74D; cursor: pointer; }
.demo-cell.possible:hover { background: #FFECB3; transform: scale(1.05); }

/* Sections */
.section {
    padding: 80px 24px;
    max-width: 1100px;
    margin: 0 auto;
}
.section-alt {
    background: var(--bg-alt);
    max-width: 100%;
    padding-left: 24px;
    padding-right: 24px;
}
.section-alt > h2,
.section-alt > .modes-grid,
.section-alt > .download-grid {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}
.section h2 {
    font-size: 32px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 48px;
}

/* Rules */
.rules-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.rule-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--shadow);
}
.rule-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    margin: 0 auto 16px;
}
.rule-card h3 { font-size: 16px; margin-bottom: 8px; }
.rule-card p { font-size: 14px; color: var(--text-light); }

/* Modes */
.modes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.mode-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--shadow);
}
.mode-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.mode-normal { background: #E3F2FD; color: #1565C0; }
.mode-timed { background: #FFF3E0; color: #E65100; }
.mode-zen { background: #E8F5E9; color: #2E7D32; }
.mode-daily { background: #F3E5F5; color: #7B1FA2; }
.mode-card h3 { font-size: 16px; margin-bottom: 8px; }
.mode-card p { font-size: 14px; color: var(--text-light); }

/* Levels */
.levels-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.level-badge {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 24px 28px;
    text-align: center;
    box-shadow: var(--shadow);
    min-width: 120px;
    transition: transform 0.2s;
}
.level-badge:hover { transform: translateY(-4px); }
.level-size {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
}
.level-name {
    display: block;
    font-weight: 600;
    margin: 4px 0;
}
.level-count {
    display: block;
    font-size: 13px;
    color: var(--text-light);
}

/* Download */
.download-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.download-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 36px 24px;
    text-align: center;
    box-shadow: var(--shadow);
}
.download-card.download-web { border: 2px solid var(--primary); }
.download-icon {
    color: var(--primary);
    margin-bottom: 16px;
}
.download-card h3 { font-size: 20px; margin-bottom: 8px; }
.download-card p { font-size: 14px; color: var(--text-light); margin-bottom: 20px; }
.download-soon { opacity: 0.7; }

/* Footer */
.footer {
    padding: 32px 24px;
    text-align: center;
    border-top: 1px solid #E2E8F0;
}
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.footer-logo-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}
.footer p { font-size: 14px; color: var(--text-light); }

/* Responsive */
@media (max-width: 768px) {
    .hero-content { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .hero-text h1 { font-size: 32px; }
    .hero-subtitle { margin: 0 auto 24px; }
    .hero-buttons { justify-content: center; }
    .demo-grid { grid-template-columns: repeat(6, 44px); grid-template-rows: repeat(6, 44px); }
    .demo-cell { width: 44px; height: 44px; font-size: 12px; }
    .rules-grid, .modes-grid { grid-template-columns: repeat(2, 1fr); }
    .download-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .levels-row { gap: 12px; }
    .level-badge { min-width: 100px; padding: 16px; }
}
