/* landing.css - Potential Chess Landing Page */

:root {
    --bg-dark: #08080a;
    --bg-card: rgba(18, 18, 22, 0.4);
    --accent-blue: #38bdf8; /* Cleaner professional blue */
    --accent-purple: #818cf8;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(12px);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Effects */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('img/noise.png'); /* Fallback to CSS grain if missing */
    opacity: 0.03;
    pointer-events: none;
    z-index: 9999;
}

.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(0, 210, 255, 0.05), transparent 40%),
                radial-gradient(circle at 80% 70%, rgba(157, 80, 187, 0.05), transparent 40%);
    z-index: -1;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.text-gradient {
    color: var(--text-primary);
}

/* New Standard Layout Classes */
.navbar-standard {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(8, 8, 10, 0.85);
    backdrop-filter: var(--glass-blur);
}

.nav-flex {
    height: 72px; /* Fixed height for exact sync */
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-standard .container {
    padding-top: 0; /* Overriding global container padding */
    padding-bottom: 0;
}

.logo-standard {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

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

.nav-links-standard a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.15s ease;
}

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

.nav-btn-highlight {
    background: rgba(255, 255, 255, 0.04);
    padding: 0.4rem 1.1rem;
    border-radius: 6px;
    border: 1px solid var(--glass-border);
    color: var(--text-primary) !important;
    font-size: 0.9rem !important;
}

.cta-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
}

.logo-standard-footer {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* Glassmorphism Components */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: #238636; /* Professional GitHub Green */
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1rem;
    position: relative;
}

.hero-title {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
}

.hero-tagline {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Grid Sections */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.grid {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

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

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

/* Feature Cards */
.feature-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

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

/* Downloads Section */
.tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.tab-btn.active {
    color: var(--accent-blue);
    border-bottom-color: var(--accent-blue);
}

/* Terminal Block */
.terminal {
    background: #000;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 1.5rem;
    font-family: 'Courier New', Courier, monospace;
    color: #00ff00;
    position: relative;
    overflow-x: auto;
}

.terminal-header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-actions { flex-direction: column; align-items: stretch; }
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 4rem 0;
    margin-top: 4rem;
}

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

.footer-col h4 {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.8rem; }
.footer-col ul li a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover { color: var(--accent-blue); }
