/* Global Styles */
:root {
    --primary-color: #1a73e8;
    --secondary-color: #4285f4;
    --accent-color: #fbbc05;
    --highlight-color: #34a853;
    --text-color: #333;
    --light-text: #666;
    --bg-color: #fff;
    --light-bg: #f8f9fa;
    --border-color: #e0e0e0;
    --success-color: #34a853;
    --danger-color: #ea4335;
    --code-bg: #282c34;
    --code-text: #abb2bf;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

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

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--secondary-color);
}

h1, h2, h3, h4 {
    margin-bottom: 1rem;
    line-height: 1.3;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

p {
    margin-bottom: 1rem;
}

/* Header */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 1.5rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

header .tagline {
    font-size: 1.1rem;
    opacity: 0.9;
}

header .version {
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: bold;
    margin-top: 0.5rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 4rem 0;
    text-align: center;
}

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

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s;
    text-align: center;
}

.btn i {
    margin-right: 0.5rem;
}

.btn.primary {
    background-color: var(--accent-color);
    color: var(--text-color);
}

.btn.primary:hover {
    background-color: #f0b400;
    transform: translateY(-2px);
}

.btn.secondary {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn.secondary:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Features Section */
.features {
    padding: 4rem 0;
    background-color: var(--light-bg);
}

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

.feature-card {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.feature-card.highlight {
    border: 2px solid var(--highlight-color);
}

.feature-card.highlight i {
    color: var(--highlight-color);
}

/* What's New Section */
.whats-new {
    padding: 4rem 0;
    background: linear-gradient(135deg, #34a853, #4285f4);
    color: white;
}

.whats-new h2 {
    color: white;
}

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

.new-feature {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.new-feature:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
}

.new-feature i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.new-feature h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.new-feature pre {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 0.5rem;
    border-radius: 4px;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.new-feature code {
    color: white;
}

/* Screenshot Section */
.screenshot {
    padding: 4rem 0;
}

.screenshot-container {
    max-width: 900px;
    margin: 0 auto;
}

.terminal {
    background-color: var(--code-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.terminal-header {
    background-color: #21252b;
    padding: 0.8rem;
    display: flex;
    align-items: center;
}

.terminal-buttons {
    display: flex;
    gap: 0.5rem;
    margin-right: 1rem;
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-button.red {
    background-color: #ff5f56;
}

.terminal-button.yellow {
    background-color: #ffbd2e;
}

.terminal-button.green {
    background-color: #27c93f;
}

.terminal-title {
    color: #ddd;
    font-size: 0.9rem;
}

.terminal-content {
    padding: 1.5rem;
    overflow-x: auto;
}

.terminal-content pre {
    margin: 0;
}

.terminal-content code {
    font-family: 'Courier New', Courier, monospace;
    color: var(--code-text);
    line-height: 1.5;
    font-size: 0.9rem;
}

/* Historical Demo Section */
.historical-demo {
    padding: 4rem 0;
    background-color: var(--light-bg);
}

/* Usage Section */
.usage {
    padding: 4rem 0;
}

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

.step {
    display: flex;
    margin-bottom: 2rem;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.step-number {
    background-color: var(--primary-color);
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-content {
    padding: 1.5rem;
    flex: 1;
}

.step-content h3 {
    margin-bottom: 0.8rem;
}

.step-content pre {
    background-color: var(--code-bg);
    padding: 0.8rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    overflow-x: auto;
}

.step-content code {
    color: var(--code-text);
    font-family: 'Courier New', Courier, monospace;
}

.step-content p {
    color: var(--light-text);
    font-size: 0.9rem;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

footer a {
    color: white;
    text-decoration: underline;
}

footer a:hover {
    color: var(--accent-color);
}

footer .fa-heart {
    color: #ea4335;
}

.version-footer {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 1rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 2rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .new-features {
        grid-template-columns: 1fr;
    }
    
    .step {
        flex-direction: column;
    }
    
    .step-number {
        min-width: 100%;
        padding: 0.5rem;
    }
}

/* Rank Colors (for reference) */
.rank-newbie {
    color: gray;
}

.rank-pupil {
    color: green;
}

.rank-specialist {
    color: #03a89e;
}

.rank-expert {
    color: blue;
}

.rank-candidate-master {
    color: #a0a;
}

.rank-master, .rank-international-master {
    color: #ff8c00;
}

.rank-grandmaster, .rank-international-grandmaster, .rank-legendary-grandmaster {
    color: red;
} 