:root {
    --bg-color: #0f1115;
    --card-bg: #161b22;
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --accent: #238636;
    /* GitHub green-ish */
    --accent-hover: #2ea043;
    --border: #30363d;
    --danger: #da3633;
    --warning: #d29922;
    --primary-gradient: linear-gradient(135deg, #238636 0%, #1a7f37 100%);
    --font-main: 'Inter', system-ui, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    color: #58a6ff;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #79c0ff;
    text-decoration: underline;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.25;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-hover);
    text-decoration: none;
    color: #fff;
    transform: translateY(-1px);
}

.btn-outline {
    border: 1px solid var(--border);
    color: var(--text-primary);
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    text-decoration: none;
    color: #fff;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Header */
.main-header {
    background: rgba(22, 27, 34, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo:hover {
    text-decoration: none;
}

.main-nav ul {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    align-items: center;
}

.main-nav a {
    color: var(--text-primary);
    font-weight: 500;
}

.main-nav a:hover {
    text-decoration: none;
    color: #fff;
}

.mobile-menu-toggle {
    display: none;
}

/* Hero */
.hero {
    padding: 6rem 0;
    text-align: center;
    background: radial-gradient(circle at center, #1b2636 0%, var(--bg-color) 70%);
}

.hero h1 {
    font-size: 3.5rem;
    background: linear-gradient(90deg, #fff, #a5d6ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Auth Pages */
.auth-container {
    max-width: 400px;
    margin: 4rem auto;
    padding: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    background: #0d1117;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: #fff;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: #58a6ff;
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.1);
}

.alert-danger {
    background: rgba(218, 54, 51, 0.15);
    border: 1px solid rgba(218, 54, 51, 0.4);
    color: #f85149;
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

/* Footer */
.main-footer {
    background: var(--card-bg);
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-col h4 {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: var(--text-secondary);
}

.footer-col a:hover {
    color: #58a6ff;
}

.footer-legal-disclaimer {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.footer-bottom {
    text-align: center;
    font-size: 0.85rem;
    color: #484f58;
}

/* Responsive */
@media (max-width: 768px) {
    .main-header {
        padding: 1rem;
    }

    .main-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        background: #fff;
        margin: 5px 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Layout Spacing Fixes */
main {
    flex: 1;
    /* Ensures main takes available space pushing footer down */
    padding-top: 3rem;
    /* Space after header */
    padding-bottom: 4rem;
    /* Space before footer */
    width: 100%;
}

/* Button & Text Spacing */
p+.btn,
.btn+.btn {
    margin-top: 1rem;
}

@media (min-width: 768px) {
    .btn+.btn {
        margin-top: 0;
        margin-left: 1rem;
    }
}

.section-padding {
    padding: 4rem 0;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.mt-5 {
    margin-top: 3rem !important;
}