/* =====================================================================
   BitCops :: Phase 1 Foundation
   assets/css/style.css

   Dark, terminal/hacker-themed styling for the public marketing
   site and the shared auth page shell. Vanilla CSS3 only (no
   Sass/Less build step), so it can be dropped straight onto
   shared hosting. Bootstrap 5 is intentionally NOT used here --
   this hand-rolled sheet keeps the exact BitCops aesthetic and a
   minimal footprint.
   ===================================================================== */

:root {
    --bg: #0a0e14;
    --bg-alt: #0f151d;
    --bg-card: #121a24;
    --border: #1f2b38;
    --fg: #d8e6e6;
    --fg-muted: #8296a3;
    --accent: #39ff88;
    --accent-dim: #1f8f52;
    --accent2: #38bdf8;
    --danger: #ff5c5c;
    --font-mono: ui-monospace, SFMono-Regular, 'Consolas', 'Liberation Mono', monospace;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --radius: 10px;
    --max-width: 1180px;
    --transition: 180ms ease;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--accent2); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------------------------------------------------------------
   Navbar
   --------------------------------------------------------------- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 14, 20, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
}

.brand {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--fg);
    font-size: 1.05rem;
    letter-spacing: 0.5px;
}

.brand-prompt { color: var(--accent); margin-right: 4px; }
.brand-sub { color: var(--fg-muted); font-weight: 400; font-size: 0.75rem; display: inline-block; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav-links a:not(.btn-nav):not(.btn-nav-ghost) {
    color: var(--fg-muted);
    font-size: 0.92rem;
}
.nav-links a:not(.btn-nav):not(.btn-nav-ghost):hover { color: var(--fg); }

.btn-nav, .btn-nav-ghost {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid var(--accent-dim);
}
.btn-nav { background: var(--accent); color: #04140a; font-weight: 700; }
.btn-nav:hover { background: #5dffa2; color: #04140a; }
.btn-nav-ghost { color: var(--accent); border-color: var(--accent-dim); }
.btn-nav-ghost:hover { background: rgba(57, 255, 136, 0.08); color: var(--accent); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--fg); display: block; }

/* ---------------------------------------------------------------
   Hero
   --------------------------------------------------------------- */
.hero {
    position: relative;
    overflow: hidden;
    padding: 96px 0 64px;
    text-align: center;
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(57, 255, 136, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(57, 255, 136, 0.06) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(ellipse 60% 60% at 50% 20%, black, transparent);
    animation: gridPan 30s linear infinite;
}

@keyframes gridPan {
    from { background-position: 0 0, 0 0; }
    to { background-position: 42px 42px, 42px 42px; }
}

.hero-inner { position: relative; z-index: 1; }

.hero-eyebrow {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 0.85rem;
    margin-bottom: 18px;
    animation: fadeInUp 600ms ease both;
}

.hero-title {
    font-size: clamp(2.1rem, 5vw, 3.4rem);
    font-weight: 800;
    margin: 0 0 18px;
    letter-spacing: -0.5px;
    animation: fadeInUp 700ms ease both;
    animation-delay: 80ms;
}
.hero-title .accent { color: var(--accent); }

.hero-subtitle {
    color: var(--fg-muted);
    font-size: 1.15rem;
    max-width: 640px;
    margin: 0 auto 34px;
    animation: fadeInUp 700ms ease both;
    animation-delay: 160ms;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 56px;
    animation: fadeInUp 700ms ease both;
    animation-delay: 220ms;
}

.btn-primary-lg, .btn-ghost-lg {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    padding: 14px 28px;
    border-radius: 8px;
    display: inline-block;
    transition: transform var(--transition), background var(--transition);
}
.btn-primary-lg { background: var(--accent); color: #04140a; font-weight: 700; border: 1px solid var(--accent); }
.btn-primary-lg:hover { transform: translateY(-2px); background: #5dffa2; color: #04140a; }
.btn-ghost-lg { border: 1px solid var(--border); color: var(--fg); }
.btn-ghost-lg:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 780px;
    margin: 0 auto;
    animation: fadeInUp 800ms ease both;
    animation-delay: 280ms;
}

.stat {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 10px;
}
.stat-num { display: block; font-family: var(--font-mono); font-size: 1.5rem; font-weight: 800; color: var(--accent); }
.stat-label { display: block; font-size: 0.78rem; color: var(--fg-muted); margin-top: 4px; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------------------------------------------------------------
   Sections (shared)
   --------------------------------------------------------------- */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-eyebrow {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 0.82rem;
    margin: 0 0 10px;
}

.section-title {
    font-size: clamp(1.6rem, 3.2vw, 2.2rem);
    font-weight: 800;
    margin: 0 0 16px;
    max-width: 720px;
}

.section-note {
    color: var(--fg-muted);
    max-width: 680px;
    margin-bottom: 36px;
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
    margin-top: 36px;
}
.about-copy p { color: var(--fg-muted); }
.link-arrow { font-family: var(--font-mono); font-size: 0.9rem; display: inline-block; margin-top: 8px; }
.link-disabled { color: var(--fg-muted); cursor: default; }
.link-disabled:hover { color: var(--fg-muted); }

.about-terminal {
    background: #060a0f;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.terminal-bar { display: flex; gap: 6px; padding: 10px 14px; background: #0d131a; border-bottom: 1px solid var(--border); }
.terminal-bar span { width: 10px; height: 10px; border-radius: 50%; background: #3a4553; }
.terminal-bar span:first-child { background: #ff5f57; }
.terminal-bar span:nth-child(2) { background: #febc2e; }
.terminal-bar span:nth-child(3) { background: #28c840; }
.terminal-body {
    margin: 0;
    padding: 18px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--accent);
    white-space: pre-wrap;
    line-height: 1.7;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 8px;
}
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 20px;
    transition: transform var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-4px); border-color: var(--accent-dim); }
.card h3 { margin: 4px 0 8px; font-size: 1.05rem; }
.card p { color: var(--fg-muted); font-size: 0.92rem; margin: 0; }

.card-icon {
    width: 42px; height: 42px;
    border-radius: 8px;
    background: rgba(57, 255, 136, 0.08);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 14px;
}
.card-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.course-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent2);
    border: 1px solid var(--accent2);
    border-radius: 4px;
    padding: 2px 8px;
    margin-bottom: 10px;
}

.center-cta { text-align: center; margin-top: 36px; }

/* Ecosystem */
.ecosystem-grid { grid-template-columns: repeat(4, 1fr); }
.ecosystem-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.badge {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
}
.badge-live { background: rgba(57,255,136,0.15); color: var(--accent); border: 1px solid var(--accent-dim); }
.badge-soon { background: rgba(130,150,163,0.12); color: var(--fg-muted); border: 1px solid var(--border); }

/* Testimonials */
.testimonial-card p { color: var(--fg); font-style: italic; }
.testimonial-name { display: block; margin-top: 14px; font-family: var(--font-mono); font-size: 0.8rem; color: var(--fg-muted); }

/* FAQ */
.faq-list { max-width: 760px; }
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 4px 20px;
    margin-bottom: 12px;
}
.faq-item summary {
    cursor: pointer;
    padding: 16px 0;
    font-weight: 600;
    list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: '// '; color: var(--accent); font-family: var(--font-mono); }
.faq-item p { color: var(--fg-muted); padding-bottom: 16px; margin: 0; }

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
    margin-top: 20px;
}
.contact-form { display: flex; flex-direction: column; gap: 4px; }
.contact-form label { font-size: 0.85rem; color: var(--fg-muted); margin-top: 14px; margin-bottom: 4px; }
.contact-form input, .contact-form textarea, .auth-form input, .admin-search-form input, .admin-search-form select, select {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 12px 14px;
    color: var(--fg);
    font-family: var(--font-body);
    font-size: 0.95rem;
    width: 100%;
}
.contact-form input:focus, .contact-form textarea:focus, .auth-form input:focus {
    outline: none;
    border-color: var(--accent);
}
.contact-form button { margin-top: 20px; align-self: flex-start; }
.contact-feedback { margin-top: 14px; font-size: 0.9rem; }
.contact-feedback.ok { color: var(--accent); }
.contact-feedback.error { color: var(--danger); }
.honeypot { position: absolute; left: -9999px; opacity: 0; }

.contact-info p { margin: 0 0 20px; }
.contact-info strong { display: block; margin-bottom: 4px; font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent); text-transform: uppercase; }

.social-row { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.social-row a {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    width: 34px; height: 34px;
    border: 1px solid var(--border);
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    color: var(--fg-muted);
}
.social-row a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------------------------------------------------------------
   Footer
   --------------------------------------------------------------- */
.footer { padding: 48px 0 20px; border-top: 1px solid var(--border); }
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 28px;
    padding-bottom: 24px;
}
.footer-copy { color: var(--fg-muted); font-size: 0.9rem; max-width: 320px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--fg-muted); font-size: 0.9rem; }
.footer-legal { text-align: center; color: var(--fg-muted); font-size: 0.78rem; margin: 0; padding-top: 18px; border-top: 1px solid var(--border); }

/* ---------------------------------------------------------------
   Buttons (shared primitives)
   --------------------------------------------------------------- */
.btn-primary {
    font-family: var(--font-mono);
    background: var(--accent);
    color: #04140a;
    border: 1px solid var(--accent);
    border-radius: 6px;
    padding: 12px 22px;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--transition);
}
.btn-primary:hover { background: #5dffa2; }

/* ---------------------------------------------------------------
   Auth pages (login/register/forgot/reset/dashboard)
   --------------------------------------------------------------- */
.auth-body {
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}
.auth-wrap { width: 100%; max-width: 440px; }
.auth-brand {
    display: block;
    text-align: center;
    font-family: var(--font-mono);
    color: var(--fg);
    margin-bottom: 24px;
    font-weight: 700;
}
.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
}
.auth-title { font-size: 1.3rem; margin: 0 0 20px; }
.auth-form { display: flex; flex-direction: column; }
.auth-form label { font-size: 0.85rem; color: var(--fg-muted); margin-top: 14px; margin-bottom: 4px; }
.auth-form button { margin-top: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checkbox-row { flex-direction: row !important; align-items: center; gap: 8px; font-size: 0.85rem; }
.checkbox-row input { width: auto; }
.field-hint { font-size: 0.75rem; color: var(--fg-muted); margin: 4px 0 0; }
.auth-copy { color: var(--fg-muted); margin-bottom: 8px; }
.auth-links { text-align: center; margin-top: 20px; font-size: 0.9rem; color: var(--fg-muted); }
.auth-back { text-align: center; margin-top: 18px; font-size: 0.85rem; }

.alert { border-radius: 8px; padding: 12px 16px; margin-bottom: 18px; font-size: 0.9rem; }
.alert-success { background: rgba(57,255,136,0.1); border: 1px solid var(--accent-dim); color: var(--accent); }
.alert-error { background: rgba(255,92,92,0.1); border: 1px solid var(--danger); color: #ffb3b3; }
.alert ul { margin: 0; padding-left: 18px; }

/* ---------------------------------------------------------------
   Responsive
   --------------------------------------------------------------- */
@media (max-width: 960px) {
    .card-grid, .ecosystem-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
    .nav-toggle { display: flex; }
    .nav-links {
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 24px 24px;
        gap: 14px;
        display: none;
    }
    .nav-links.open { display: flex; }
    .card-grid, .ecosystem-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
}
