/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0A0B07;
  --bg-2:      #111209;
  --bg-3:      #17190D;
  --bg-card:   #1C1E10;
  --gold:      #C9A84C;
  --gold-dim:  #6B5520;
  --gold-lt:   #E8C96A;
  --text:      #EDE8D8;
  --text-dim:  #7A7560;
  --text-muted:#4A4835;
  --border:    rgba(201,168,76,0.18);
  --border-hi: rgba(201,168,76,0.45);

  --font-body: 'IBM Plex Sans', sans-serif;
  --font-head: 'Bebas Neue', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  padding-top: 52px;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-lt); }
img { max-width: 100%; display: block; }

/* ===== LAYOUT ===== */
.container        { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; }
.section          { padding: 80px 0; }
.section-alt      { background: var(--bg-2); }

/* ===== TAB BAR ===== */
.tab-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  background: rgba(10,11,7,0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px);
}
.tab-link {
  padding: 1rem 2.2rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--text-dim);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  text-transform: uppercase;
}
.tab-link:hover { color: var(--text); }
.tab-link.active { color: var(--gold); border-bottom-color: var(--gold); }

.tab-content { display: none; }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 0.85rem 2rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-primary:hover { background: var(--gold); color: var(--bg); }

.btn-gold {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: var(--gold-dim);
  border: 1px solid var(--gold);
  color: var(--gold-lt);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-gold:hover { background: var(--gold); color: var(--bg); }

.btn-gold-outline {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-gold-outline:hover { background: rgba(201,168,76,0.1); }

.btn-outline {
  display: inline-block;
  background: transparent;
  border: 1px solid var(--border-hi);
  color: var(--text-dim);
  padding: 0.75rem 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.btn-danger {
  display: inline-block;
  background: rgba(180,60,40,0.15);
  border: 1px solid rgba(180,60,40,0.5);
  color: #e07060;
  padding: 0.6rem 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-danger:hover { background: rgba(180,60,40,0.3); }

.btn-sm   { padding: 0.5rem 1rem; font-size: 0.65rem; }
.btn-full { width: 100%; text-align: center; display: block; }
.btn-link { background: none; border: none; color: var(--text-dim); cursor: pointer; font-size: 13px; font-family: var(--font-body); }
.btn-link:hover { color: var(--gold); }

/* ===== SECTION EYEBROW ===== */
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

/* ===== HERO SECTION ===== */
.hero-section {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: center;
  background: var(--bg);
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 70% 50%, rgba(201,168,76,0.04) 0%, transparent 70%),
    repeating-linear-gradient(0deg, transparent, transparent 47px, rgba(201,168,76,0.03) 48px),
    repeating-linear-gradient(90deg, transparent, transparent 47px, rgba(201,168,76,0.03) 48px);
}
.hero-body {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  padding: 2.5rem 2.5rem;
}
.hero-eyebrow {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 0.75rem;
  line-height: 1;
}
.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: 0.04em;
  color: #fff;
  margin-bottom: 1rem;
}
.hero-sub {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

/* ===== FEATURE STRIP ===== */
.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
.feature-item {
  padding: 2rem 1.5rem;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.feature-item:last-child { border-right: none; }
.feature-icon {
  width: 36px;
  height: 36px;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.feature-icon svg { width: 100%; height: 100%; }
.feature-item h3 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--text);
}
.feature-item p { font-size: 0.8rem; color: var(--text-dim); }

/* ===== ABOUT SECTION ===== */
.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 960px;
  margin: 0 auto;
  padding: 5rem 2.5rem;
  align-items: center;
}
.about-left h2 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.04em;
  color: #fff;
  line-height: 1.05;
  margin: 0.75rem 0 1.25rem;
}
.about-left p { color: var(--text-dim); line-height: 1.8; margin-bottom: 2rem; }

/* ===== HUD PANEL ===== */
.hud-panel {
  border: 1px solid var(--border-hi);
  background: var(--bg-card);
  padding: 1.5rem;
}
.hud-header {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.hud-wave { margin-bottom: 1rem; }
.hud-wave svg { width: 100%; height: 50px; }
.hud-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}
.hud-row:last-child { border-bottom: none; }
.hud-label { color: var(--text-muted); letter-spacing: 0.08em; }
.hud-value { color: var(--gold-lt); letter-spacing: 0.06em; }

/* ===== CAPABILITIES ===== */
.capabilities-section {
  background: var(--bg-2);
  padding: 4rem 2.5rem;
}
.capabilities-section > .section-eyebrow {
  max-width: 960px;
  margin: 0 auto 2rem;
}
.cap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}
.cap-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 2px solid var(--gold-dim);
  padding: 1.75rem 1.5rem;
  transition: border-top-color 0.2s;
}
.cap-card:hover { border-top-color: var(--gold); }
.cap-icon { width: 40px; height: 40px; color: var(--gold); margin-bottom: 1rem; }
.cap-icon svg { width: 100%; height: 100%; }
.cap-card h3 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.cap-card p { font-size: 0.85rem; color: var(--text-dim); line-height: 1.6; }

/* ===== NEWS + CAREER ===== */
.news-career-section {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  max-width: 960px;
  margin: 0 auto;
  padding: 5rem 2.5rem;
  align-items: start;
}
.news-row {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: all 0.15s;
  cursor: pointer;
}
.news-row:hover .news-title { color: var(--gold); }
.news-date {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  min-width: 75px;
}
.news-title { font-size: 0.9rem; color: var(--text); flex: 1; line-height: 1.5; }
.news-arrow { color: var(--gold-dim); font-size: 0.8rem; }

.career-col h2 {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  letter-spacing: 0.04em;
  color: #fff;
  line-height: 1.05;
  margin: 0.75rem 0 1.5rem;
}
.career-perks { display: flex; flex-direction: column; gap: 0.75rem; }
.perk-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}
.perk-icon { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; }
.perk-icon svg { width: 100%; height: 100%; }
.perk-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--text);
  min-width: 180px;
}
.perk-desc { font-size: 0.8rem; color: var(--text-dim); }

/* ===== APPLY FORMS ===== */
.apply-form { display: flex; flex-direction: column; gap: 0.75rem; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.apply-form input,
.apply-form select,
.apply-form textarea {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.7rem 1rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}
.apply-form input:focus,
.apply-form select:focus,
.apply-form textarea:focus { border-color: var(--gold); }
.apply-form textarea { min-height: 90px; resize: vertical; }
.apply-form select option { background: var(--bg-3); }
.form-check { display: flex; align-items: flex-start; gap: 0.6rem; }
.form-check input { margin-top: 3px; accent-color: var(--gold); width: 14px; height: 14px; flex-shrink: 0; }
.form-check label { font-size: 0.78rem; color: var(--text-dim); line-height: 1.4; }

/* ===== GENERIC FORM (admin/other pages) ===== */
.form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2rem;
}
.form-title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.form-sub { font-size: 0.8rem; color: var(--text-dim); margin-bottom: 1.75rem; }
.form-row  { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 16px; display: flex; flex-direction: column; gap: 5px; }
.form-group label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}
input, select, textarea {
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--border-hi); }
select option { background: var(--bg-3); }
textarea { resize: vertical; }

.form-status { padding: 12px 16px; margin-bottom: 16px; font-size: 0.83rem; font-family: var(--font-mono); }
.form-status.ok  { background: rgba(100,180,80,0.1); border: 1px solid rgba(100,180,80,0.4); color: #80c870; }
.form-status.err { background: rgba(180,80,60,0.1); border: 1px solid rgba(180,80,60,0.4); color: #e08070; }

/* ===== PAGE HERO (news/inner pages) ===== */
.page-hero {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: 60px 0 40px;
}
.page-title {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: 0.04em;
  color: var(--text);
}
.section-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.section-body {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 2rem;
}
.breadcrumb { margin-bottom: 16px; font-size: 13px; color: var(--text-dim); font-family: var(--font-mono); }
.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--gold); }
.article-meta { margin-top: 10px; font-size: 13px; color: var(--text-dim); font-family: var(--font-mono); }

/* ===== NEWS LIST (news.html) ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 2px solid var(--gold-dim);
  padding: 1.75rem;
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color 0.2s, transform 0.2s;
  color: inherit;
}
.news-card:hover { border-top-color: var(--gold); transform: translateY(-2px); color: inherit; }
.news-card-meta { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.1em; color: var(--text-dim); }
.news-card-title { font-family: var(--font-head); font-size: 1.3rem; letter-spacing: 0.03em; color: var(--text); }
.news-card-summary { font-size: 0.85rem; color: var(--text-dim); flex: 1; }
.news-card-more { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.12em; color: var(--gold); text-transform: uppercase; margin-top: auto; }

/* ===== ARTICLE ===== */
.article-summary {
  font-size: 1.1rem; color: var(--text-dim);
  border-left: 3px solid var(--gold); padding-left: 20px; margin-bottom: 2rem;
}
.article-body { font-size: 0.95rem; line-height: 1.85; color: var(--text); }
.article-body h2, .article-body h3 { font-family: var(--font-head); color: var(--text); margin: 2rem 0 0.75rem; letter-spacing: 0.03em; }
.article-body p { margin-bottom: 1rem; }
.article-body a { color: var(--gold); }
.article-body ul, .article-body ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.article-body li { margin-bottom: 0.4rem; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* ===== EMPTY STATE ===== */
.empty-state { color: var(--text-dim); font-size: 0.9rem; padding: 3rem 0; font-family: var(--font-mono); }

/* ===== ADMIN ===== */
.admin-body { background: var(--bg); min-height: 100vh; }

.login-box {
  max-width: 380px; margin: 120px auto; padding: 2.5rem;
  background: var(--bg-card); border: 1px solid var(--border);
}
.login-title {
  font-family: var(--font-head); font-size: 1.75rem; letter-spacing: 0.06em;
  color: var(--gold); margin-bottom: 1.75rem; text-align: center;
}
.login-error {
  background: rgba(180,60,40,.12); border: 1px solid rgba(180,60,40,.4);
  color: #e08070; padding: 10px 14px; font-size: 0.83rem; margin-bottom: 1.25rem;
  font-family: var(--font-mono);
}

.admin-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 56px; background: var(--bg-2);
  border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50;
}
.logo-unit { font-family: var(--font-head); font-size: 1.25rem; letter-spacing: 0.06em; color: var(--gold); }

.admin-layout { display: grid; grid-template-columns: 1fr 1fr; max-width: 1600px; margin: 0 auto; }
@media (max-width: 900px) { .admin-layout { grid-template-columns: 1fr; } }

.admin-section { padding: 2rem 1.5rem; border-right: 1px solid var(--border); }
.admin-section:last-child { border-right: none; }
.admin-section-title { font-family: var(--font-head); font-size: 1.5rem; letter-spacing: 0.05em; color: var(--text); margin-bottom: 1.5rem; }

.admin-news-form { margin-bottom: 2rem; }
.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.admin-table th {
  text-align: left; padding: 8px 10px;
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-dim);
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
.admin-table td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: top; color: var(--text); }
.admin-table tr:hover td { background: var(--bg-card); }
.td-msg { max-width: 200px; white-space: pre-wrap; word-break: break-word; }

.news-admin-list { display: flex; flex-direction: column; gap: 10px; }
.news-admin-row {
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 12px 16px; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.news-admin-info { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; flex: 1; min-width: 0; }
.news-admin-date { font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-dim); white-space: nowrap; }
.news-admin-title { font-size: 0.85rem; color: var(--text); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-admin-actions { display: flex; gap: 8px; flex-shrink: 0; }

.badge { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 8px; white-space: nowrap; }
.badge-green { background: rgba(100,180,80,0.12); color: #80c870; }
.badge-gray  { background: rgba(138,132,112,0.15); color: var(--text-dim); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .feature-strip    { grid-template-columns: 1fr 1fr; }
  .about-section    { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 1.25rem; }
  .cap-grid         { grid-template-columns: 1fr 1fr; }
  .news-career-section { grid-template-columns: 1fr; gap: 3rem; padding: 3rem 1.25rem; }
  .form-row-2       { grid-template-columns: 1fr; }
  .hero-body        { padding: 3rem 1.25rem; }
  .capabilities-section { padding: 3rem 1.25rem; }
  .perk-label       { min-width: 0; }
}
@media (max-width: 480px) {
  .feature-strip { grid-template-columns: 1fr; }
  .cap-grid      { grid-template-columns: 1fr; }
}
