/* =========================================
   1. CORE & RESET
   ========================================= */
:root {
    --bg: #ffffff;
    --fg: #000000;
    --accent: #FFEA00; /* Neon Yellow */
    --accent-hover: #ffe100;
    --border: 3px solid var(--fg);
    --shadow: 6px 6px 0px var(--fg);
    --shadow-hover: 2px 2px 0px var(--fg);
    --font-stack: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --container-width: 1200px;
}

::selection {
    background: #000;
    color: #fff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-stack);
    line-height: 1.5;
    background-image: radial-gradient(#ddd 1px, transparent 1px);
    background-size: 20px 20px;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.2s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* =========================================
   2. TYPOGRAPHY & UTILS
   ========================================= */
h1, h2, h3, h4, h5 {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.text-highlight {
    background: var(--accent);
    padding: 0 10px;
    display: inline;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-pad { padding: 100px 0; }
.border-top { border-top: var(--border); }
.border-bottom { border-bottom: var(--border); }
.text-center { text-align: center; }
.flex-center { display: flex; justify-content: center; align-items: center; }

/* =========================================
   3. GLOBAL COMPONENTS (Nav, Buttons, Footer)
   ========================================= */

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    border: var(--border);
    background: var(--bg);
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.1s ease;
}

.btn:hover {
    transform: translate(2px, 2px);
    box-shadow: var(--shadow-hover);
}

.btn-primary { background: var(--accent); }
.btn-dark { background: var(--fg); color: var(--accent); }
.btn-dark:hover { color: #fff; }
.btn-full { width: 100%; }

/* --- NAVBAR --- */
header {
    background: var(--bg);
    border-bottom: var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -1px;
    background: var(--accent);
    padding: 5px 15px;
    border: var(--border);
}

.nav-menu { display: flex; gap: 30px; }
.nav-actions { display: flex; gap: 15px; }

.nav-link {
    font-weight: 600;
    font-size: 16px;
    position: relative;
}

.nav-link:hover { 
    text-decoration: underline; 
    text-decoration-thickness: 3px; 
    text-decoration-color: var(--accent); 
}

/* --- FOOTER --- */
footer {
    background: #f9f9f9;
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    font-size: 14px;
    color: #888;
    margin-bottom: 20px;
}

.footer-col a {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 16px;
}

.footer-col a:hover { 
    transform: translateX(5px); 
    color: #000; 
    text-decoration: underline; 
}

/* =========================================
   4. HOME PAGE (Light & Dark Variants)
   ========================================= */

/* --- STANDARD LIGHT HERO (Careers/Life) --- */
.hero {
    padding: 140px 0 100px;
    text-align: center;
}

.hero h1 {
    font-size: clamp(3.5rem, 6vw, 5.5rem);
    margin-bottom: 30px;
}

.hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 40px;
    color: #444;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* --- DARK INDUSTRIAL HERO (Index) --- */
.dark-section {
    background-color: #0a0a0a;
    background-image: url('https://placehold.co/1920x1080/050505/0a0a0a?text=.'); /* Texture */
    color: white;
}

.hero-split {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    min-height: 80vh;
    border-bottom: var(--border);
}

.hero-text-side {
    padding: 100px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: var(--border);
    background: #000;
}

.hero-visual-side {
    background: url('https://placehold.co/800x1000/111111/222222?text=SERVER+RACK') center/cover;
    position: relative;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    background: var(--accent);
    color: black;
    padding: 20px;
    font-weight: 900;
    font-size: 24px;
    border-top: 3px solid black;
    border-right: 3px solid black;
}

/* --- CHECKERBOARD FEATURES --- */
.feature-checkerboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: var(--border);
}

.checker-text {
    padding: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.checker-img {
    border-left: var(--border);
    position: relative;
    overflow: hidden;
}

.checker-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.2);
    transition: 0.5s;
}

.checker-img:hover img {
    filter: grayscale(0%) contrast(1);
    transform: scale(1.05);
}

/* --- PIPELINE UI --- */
.pipeline-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 60px;
    flex-wrap: wrap;
    gap: 0;
}

.pipeline-step {
    background: white;
    border: var(--border);
    padding: 20px;
    width: 200px;
    text-align: center;
    z-index: 2;
    position: relative;
}

.pipeline-connector {
    width: 80px;
    height: 10px;
    background: var(--fg);
    position: relative;
    z-index: 1;
}

/* --- BROWSER MOCKUP --- */
.browser-mockup {
    border: 3px solid #333;
    background: #000;
    border-radius: 0;
    box-shadow: 0 0 50px rgba(255, 234, 0, 0.1);
    margin-top: 60px;
}

.browser-header {
    background: #222;
    padding: 10px 20px;
    display: flex;
    gap: 8px;
    border-bottom: 3px solid #333;
}

.browser-dot { width: 12px; height: 12px; border-radius: 50%; background: #444; }

/* --- COMPARISON TABLE --- */
.compare-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 40px;
    font-size: 1.1rem;
}

.compare-table th, .compare-table td {
    border: 2px solid #ddd;
    padding: 20px;
    text-align: left;
}

.compare-table th { background: #f4f4f4; color: #666; font-size: 0.9rem; }

.compare-table .ronin-cell {
    background: var(--accent);
    border: 3px solid black;
    font-weight: bold;
    color: black;
    position: relative;
}

/* =========================================
   5. CAREERS / BOUNTY BOARD
   ========================================= */
.job-card {
    border: var(--border);
    background: white;
    margin-bottom: 20px;
    box-shadow: 4px 4px 0 #eee;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    will-change: transform;
}

.job-card:hover {
    box-shadow: 6px 6px 0 var(--fg);
    border-color: black;
    transform: translate(-2px, -2px);
    z-index: 10;
}

.job-header {
    padding: 25px 30px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    cursor: pointer;
    background: white;
    gap: 20px;
}

.job-title-group h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.job-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.job-tag {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 8px;
    border: 2px solid black;
    letter-spacing: 0.5px;
}

.tag-senior { background: #FF5F56; color: white; border-color: #FF5F56; }
.tag-mid { background: var(--accent); color: black; border-color: black; }
.tag-jr { background: white; color: black; border-color: black; }
.tag-stack { background: black; color: white; border-color: black; font-family: monospace; }

.job-salary-group {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.salary-badge {
    background: #eeffee;
    color: #008800;
    font-family: monospace;
    font-weight: 900;
    font-size: 16px;
    padding: 4px 8px;
    border: 2px solid #008800;
    box-shadow: 3px 3px 0 #ccffcc;
}

/* Smooth Expand Transition */
.job-details-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease-out;
}

.job-card.active .job-details-wrapper {
    grid-template-rows: 1fr;
}

.job-details-inner {
    overflow: hidden;
    background: #fafafa;
    border-top: 2px solid black;
}

.job-content { padding: 30px; }

.mission-box {
    border-left: 5px solid var(--accent);
    padding-left: 20px;
    margin-bottom: 30px;
}

.mission-box h4 { margin-bottom: 10px; font-size: 14px; color: #666; }
.mission-box p { font-size: 16px; font-weight: 500; line-height: 1.6; }

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.detail-col h5 {
    border-bottom: 2px solid black;
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 14px;
}

.detail-list { list-style: none; }

.detail-list li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    font-size: 14px;
    color: #444;
}

.detail-list li::before {
    content: "■";
    color: var(--accent);
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 10px;
}

.apply-btn {
    width: 100%;
    margin-top: 30px;
    padding: 15px;
    background: black;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}

.apply-btn:hover { background: var(--accent); color: black; }

.toggle-icon { font-size: 12px; transition: transform 0.3s; }
.job-card.active .toggle-icon { transform: rotate(180deg); }


/* =========================================
   6. LIFE / CULTURE
   ========================================= */
.value-card {
    background: var(--fg);
    color: var(--bg);
    padding: 40px;
    border: var(--border);
    position: relative;
    overflow: hidden;
    transition: 0.3s;
}

.value-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 8px 8px 0 var(--accent);
}

.value-number {
    font-size: 80px;
    font-weight: 900;
    position: absolute;
    top: -20px;
    right: -10px;
    color: #333;
    opacity: 0.5;
    z-index: 0;
}

.value-content { position: relative; z-index: 1; }

.card {
    background: var(--bg);
    border: var(--border);
    padding: 30px;
    transition: transform 0.2s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

/* =========================================
   7. LEGAL & SHAREHOLDERS
   ========================================= */
.legal-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 60px;
    align-items: start;
}

.legal-sidebar {
    position: sticky;
    top: 100px;
    border: var(--border);
    background: white;
}

.legal-nav-item {
    display: block;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    font-weight: 600;
}

.legal-nav-item:hover, .legal-nav-item.active {
    background: var(--accent);
    color: black;
}

.chart-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 60px 0;
}

.donut-chart {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: conic-gradient(var(--accent) 0% 100%, #000 0%);
    border: 4px solid black;
    box-shadow: 10px 10px 0 black;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 24px;
}

/* =========================================
   8. MEDIA QUERIES
   ========================================= */
@media (max-width: 900px) {
    /* Home Hero */
    .hero-split { grid-template-columns: 1fr; min-height: auto; }
    .hero-text-side { border-right: none; border-bottom: var(--border); padding: 60px 20px; }
    .hero-visual-side { height: 400px; }
    
    /* Feature Checker */
    .feature-checkerboard { grid-template-columns: 1fr; }
    .checker-img { border-left: none; border-top: var(--border); height: 300px; }
    .checker-img:nth-child(1) { order: 2; }
}

@media (max-width: 768px) {
    /* Job Board */
    .job-header { grid-template-columns: 1fr; gap: 15px; }
    .job-salary-group { text-align: left; align-items: flex-start; flex-direction: row; justify-content: space-between; width: 100%; }
    .details-grid { grid-template-columns: 1fr; }
    
    /* Nav & Life */
    .nav-menu { display: none; }
    .hero h1 { font-size: 3rem; }
    .hero-btns { flex-direction: column; }
    .legal-grid { grid-template-columns: 1fr; }
}



/* --- BOUNTY BOARD (DARK THEME) --- */
.bounty-section {
    background-color: #0a0a0a;
    background-image: url('https://placehold.co/1920x1080/050505/0a0a0a?text=.');
    color: white;
    min-height: 100vh;
}

.filter-bar-sticky {
    background: #000;
    border-bottom: 1px solid #333;
    position: sticky;
    top: 80px;
    z-index: 900;
    padding: 20px 0;
}

/* The Job Card (Mission File) */
.mission-card {
    background: #111; /* Dark card */
    border: 1px solid #333;
    margin-bottom: 20px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.mission-card:hover {
    border-color: var(--accent);
    transform: translateX(10px);
    box-shadow: -10px 10px 0 rgba(0,0,0,0.5);
}

.mission-card.active {
    background: #1a1a1a;
    border-color: var(--accent);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    z-index: 10;
    transform: scale(1.02);
}

/* Header Grid */
.mission-header {
    padding: 30px;
    display: grid;
    grid-template-columns: 80px 1fr auto; /* Status Icon | Info | Salary */
    gap: 30px;
    cursor: pointer;
    align-items: center;
}

.status-indicator {
    width: 60px;
    height: 60px;
    background: #000;
    border: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #444;
}

.mission-card:hover .status-indicator {
    background: var(--accent);
    color: black;
    border-color: var(--accent);
}

.mission-title h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: white;
}

.mission-meta {
    display: flex;
    gap: 15px;
    font-family: monospace;
    color: #888;
    font-size: 14px;
}

.bounty-amount {
    text-align: right;
}

.bounty-price {
    font-size: 24px;
    font-weight: 900;
    color: var(--accent);
    font-family: monospace;
    display: block;
}

.bounty-equity {
    font-size: 12px;
    color: #666;
    display: block;
}

/* Expanded Content */
.mission-brief {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s ease-out;
}

.mission-card.active .mission-brief {
    grid-template-rows: 1fr;
}

.brief-inner {
    overflow: hidden;
    border-top: 1px solid #333;
    background: #000;
}

.brief-content {
    padding: 40px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

/* Typography inside brief */
.brief-section { margin-bottom: 40px; }

.brief-label {
    color: var(--accent);
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: bold;
    margin-bottom: 15px;
    display: block;
    text-transform: uppercase;
}

.brief-text {
    color: #ccc;
    font-size: 16px;
    line-height: 1.8;
}

.brief-list {
    list-style: none;
    color: #ccc;
}

.brief-list li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
}

.brief-list li::before {
    content: ">";
    color: var(--accent);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.tech-stack-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-pill {
    background: #222;
    border: 1px solid #444;
    padding: 5px 10px;
    font-family: monospace;
    font-size: 12px;
    color: white;
}

/* Apply Button */
.mission-apply-btn {
    width: 100%;
    background: var(--accent);
    color: black;
    font-weight: 900;
    text-transform: uppercase;
    padding: 20px;
    border: none;
    cursor: pointer;
    font-size: 18px;
    margin-top: 20px;
    transition: 0.2s;
}

.mission-apply-btn:hover {
    background: white;
    box-shadow: 0 0 20px rgba(255,255,255,0.3);
}

@media (max-width: 900px) {
    .brief-content { grid-template-columns: 1fr; gap: 30px; }
    .mission-header { grid-template-columns: 1fr; gap: 15px; }
    .status-indicator { display: none; }
    .bounty-amount { text-align: left; }
}


/* --- AUTH PAGES (LOGIN/SIGNUP) --- */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #050505;
    background-image: url('https://placehold.co/1920x1080/050505/000000?text=.');
    padding: 20px;
}

.auth-box {
    width: 100%;
    max-width: 450px;
    background: #000;
    border: 1px solid #333;
    padding: 40px;
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
    position: relative;
}

.auth-box::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 20px;
    height: 20px;
    border-top: 2px solid var(--accent);
    border-left: 2px solid var(--accent);
}

.auth-box::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 1px solid #222;
    padding-bottom: 20px;
}

.input-group {
    margin-bottom: 25px;
}

.input-label {
    display: block;
    color: #666;
    font-family: monospace;
    margin-bottom: 10px;
    font-size: 12px;
}

.terminal-input {
    width: 100%;
    background: #111;
    border: 1px solid #333;
    color: var(--accent);
    padding: 15px;
    font-family: monospace;
    font-size: 16px;
    outline: none;
    transition: 0.3s;
}

.terminal-input:focus {
    border-color: var(--accent);
    background: #000;
}

.auth-footer {
    margin-top: 30px;
    text-align: center;
    font-size: 14px;
    color: #444;
}

.auth-footer a { color: #888; text-decoration: underline; }
.auth-footer a:hover { color: var(--accent); }

/* --- 404 PAGE --- */
.error-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #000;
    color: white;
    text-align: center;
}

.glitch-text {
    font-size: 10rem;
    font-weight: 900;
    line-height: 1;
    color: #222;
    position: relative;
    text-shadow: 2px 2px 0 var(--accent);
}

.error-desc {
    font-family: monospace;
    color: var(--accent);
    margin-top: 20px;
    font-size: 1.5rem;
}