/* Variables - Warm Light Theme */
:root {
    --bg-white: #ffffff;
    --bg-light: #FAFAFA;
    --bg-subtle: #F5F5F4;
    --bg-terminal: #1e293b;
    --text-dark: #1f2937;
    --text-primary: #4B5563;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --accent: #B5886A;
    --accent-light: #C9A088;
    --accent-dark: #9A7259;
    --accent-bg: #FAF7F5;
    --border: #e5e5e5;
    --border-dark: #d4d4d4;
    --red: #ef4444;
    --yellow: #f59e0b;
    --green: #22c55e;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.12);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-white);
    color: var(--text-primary);
    line-height: 1.6;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

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

h1, h2, h3 {
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.2;
}

code {
    font-family: var(--font-mono);
}

/* Logo Mark */
.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--accent);
    color: white;
    font-weight: 800;
    font-size: 0.875rem;
    border-radius: 8px;
    letter-spacing: -0.02em;
}

.logo-mark.small {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
    border-radius: 6px;
}

.logo-image {
    display: block;
    width: 162px;
    height: 60px;
    object-fit: contain;
}

.logo-image.small {
    display: block;
    width: 108px;
    height: 40px;
    object-fit: contain;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--text-dark);
}

.nav-social {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background 0.2s;
}

.nav-social:hover {
    background: var(--bg-light);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background: var(--accent-dark);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-dark);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 6rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 10rem 4rem 6rem;
}

.hero-badge {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: var(--accent-bg);
    color: var(--accent);
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 50px;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 800;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 3rem;
    line-height: 1.75;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
}

.install-command {
    display: flex;
    align-items: center;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    gap: 1rem;
}

.install-command code {
    font-size: 0.95rem;
    color: var(--text-dark);
}

.install-command .copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.install-command .copy-btn:hover {
    color: var(--accent);
    background: var(--accent-bg);
}

/* Terminal */
.hero-visual {
    position: relative;
}

.terminal {
    background: var(--bg-terminal);
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.terminal-header {
    display: flex;
    align-items: center;
    padding: 0.875rem 1rem;
    background: #0f172a;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.terminal-dots {
    display: flex;
    gap: 0.5rem;
}

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

.dot.red { background: #f87171; }
.dot.yellow { background: #fbbf24; }
.dot.green { background: #4ade80; }

.terminal-title {
    margin-left: auto;
    color: #64748b;
    font-size: 0.8rem;
}

.terminal-body {
    padding: 1.75rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.8;
    color: #e2e8f0;
}

.terminal-body pre {
    white-space: pre-wrap;
}

.terminal-body .prompt { color: #4ade80; }
.terminal-body .title { color: #fbbf24; font-weight: 500; }
.terminal-body .team { color: #f8fafc; }
.terminal-body .score { color: var(--accent-light); font-weight: 600; }
.terminal-body .status { color: #64748b; font-size: 0.85rem; }
.terminal-body .status.live { color: #f87171; }
.terminal-body .fixture { color: #f8fafc; }
.terminal-body .date { color: #94a3b8; }

/* OpenClaw Section */
.openclaw-section {
    background: linear-gradient(180deg, var(--accent-bg) 0%, var(--bg-white) 100%);
    padding: 6rem 2rem 7rem;
    text-align: center;
}

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

.openclaw-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.openclaw-logo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
}

.openclaw-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.openclaw-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.openclaw-badge {
    background: var(--accent);
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.openclaw-section h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.openclaw-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 550px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.openclaw-install {
    margin-bottom: 3rem;
}

.openclaw-install .code-block {
    display: inline-flex;
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
}

.openclaw-examples {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.example-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: left;
    transition: all 0.2s;
}

.example-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-sm);
}

.example-prompt {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.example-response {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.openclaw-note {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Sections */
section {
    padding: 7rem 2rem;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 5rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* Features */
.features {
    background: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-white);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.feature-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.feature-icon {
    width: 52px;
    height: 52px;
    background: var(--accent-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon svg {
    width: 26px;
    height: 26px;
    color: var(--accent);
}

.feature-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Leagues */
.leagues {
    max-width: 1000px;
    margin: 0 auto;
}

.leagues-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1rem;
}

.league-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.25rem 0.75rem;
    text-align: center;
    transition: all 0.2s;
    aspect-ratio: 1;
}

.league-card:hover {
    border-color: var(--accent);
    background: var(--accent-bg);
}

.league-card.highlight {
    background: var(--accent);
    border-color: var(--accent);
}

.league-card.highlight .league-region {
    color: rgba(255,255,255,0.8);
}

.league-card.highlight .league-name {
    color: white;
}

.league-region {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.league-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-dark);
    line-height: 1.3;
}

/* Personality */
.personality {
    background: var(--bg-light);
}

.personality-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.personality-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--border);
}

.personality-card.win-big {
    border-left: 4px solid var(--green);
}

.personality-card.win-close {
    border-left: 4px solid var(--yellow);
}

.personality-card.loss {
    border-left: 4px solid var(--red);
}

.result-badge {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.result-score {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.result-comment {
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.5;
}

/* Installation */
.install {
    max-width: 950px;
    margin: 0 auto;
}

.install-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.install-card {
    background: var(--bg-light);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.install-step {
    width: 36px;
    height: 36px;
    background: var(--accent);
    color: white;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.install-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}

.install-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 1rem;
    line-height: 1.5;
}

.code-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.875rem 1rem;
}

.code-block code {
    font-size: 0.9rem;
    color: var(--text-dark);
}

.code-block .copy-btn {
    background: var(--bg-subtle);
    border: none;
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.code-block .copy-btn:hover {
    background: var(--accent);
    color: white;
}

/* Commands */
.commands {
    max-width: 750px;
    margin: 0 auto;
}

.commands-list {
    background: var(--bg-light);
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.command-item {
    display: grid;
    grid-template-columns: 260px 1fr;
    padding: 1.125rem 1.75rem;
    border-bottom: 1px solid var(--border);
    align-items: center;
    gap: 2rem;
}

.command-item:last-child {
    border-bottom: none;
}

.command-item code {
    background: var(--bg-white);
    padding: 0.5rem 0.875rem;
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--accent);
    border: 1px solid var(--border);
}

.command-item span {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.commands-tip {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.commands-tip code {
    background: var(--bg-light);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

/* Footer */
.footer {
    background: var(--bg-light);
    border-top: 1px solid var(--border);
    padding: 4rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.footer-links {
    display: flex;
    gap: 2.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

.footer-credit {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 8rem 2rem 5rem;
        gap: 4rem;
    }
    
    .hero-subtitle {
        margin: 0 auto 2.5rem;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-visual {
        order: -1;
        max-width: 550px;
        margin: 0 auto;
    }
    
    .openclaw-examples {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .leagues-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .personality-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        gap: 1.25rem;
    }
    
    .nav-links a:not(.btn):not(.nav-social) {
        display: none;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    section {
        padding: 5rem 1.5rem;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .features-grid,
    .install-grid {
        grid-template-columns: 1fr;
    }
    
    .command-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .terminal-body {
        font-size: 0.8rem;
        overflow-x: auto;
    }
    
    .leagues-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
