:root {
  --bg-dark: #090d16;
  --bg-card: #131b2a;
  --bg-card-hover: #1c273c;
  --text-light: #f8fafc;
  --text-muted: #94a3b8;
  --accent-orange: #ea580c;
  --accent-orange-bright: #fb923c;
  --border-dark: #243046;
  --font-condensed: "Roboto Condensed", "Noto Sans SC", -apple-system, sans-serif;
  --font-body: "Inter", "Noto Sans SC", sans-serif;
  --max-w: 1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-family: var(--font-body);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent-orange-bright); }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* Ticker Bar */
.ticker-bar {
  background: var(--accent-orange);
  color: #fff;
  font-family: var(--font-condensed);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 0;
  text-transform: uppercase;
}
.ticker-in {
  display: flex;
  align-items: center;
  gap: 16px;
}
.ticker-tag {
  background: #000;
  padding: 2px 8px;
  border-radius: 2px;
  letter-spacing: 1px;
}

/* Header */
.site-nav {
  background: #0d1422;
  border-bottom: 2px solid var(--border-dark);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 68px;
}
.logo-box {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-condensed);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.5px;
  text-transform: uppercase;
}
.logo-badge {
  background: var(--accent-orange);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
}
.nav-links {
  display: flex;
  gap: 22px;
  font-family: var(--font-condensed);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
}
.nav-links a { color: var(--text-muted); padding: 8px 0; border-bottom: 3px solid transparent; }
.nav-links a.active, .nav-links a:hover { color: #fff; border-color: var(--accent-orange); }

/* Hero High-Density Layout */
.portal-hero {
  padding: 30px 0;
  display: grid;
  grid-template-columns: 2fr 1.2fr;
  gap: 24px;
}
.hero-main {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  height: 440px;
  background: #000;
}
.hero-main img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; transition: transform 0.3s; }
.hero-main:hover img { transform: scale(1.03); opacity: 0.9; }
.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px;
  background: linear-gradient(180deg, transparent 0%, rgba(9, 13, 22, 0.95) 100%);
}
.badge-field {
  display: inline-block;
  background: var(--accent-orange);
  color: #fff;
  font-family: var(--font-condensed);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.hero-headline {
  font-family: var(--font-condensed);
  font-size: 34px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 12px;
}
.hero-summary { font-size: 14px; color: #cbd5e1; line-height: 1.5; }

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.side-item {
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: 6px;
  padding: 16px;
  display: flex;
  gap: 14px;
  transition: background 0.2s, border-color 0.2s;
}
.side-item:hover { background: var(--bg-card-hover); border-color: var(--accent-orange); }
.side-thumb { width: 100px; height: 80px; flex-shrink: 0; border-radius: 4px; overflow: hidden; }
.side-thumb img { width: 100%; height: 100%; object-fit: cover; }
.side-title {
  font-family: var(--font-condensed);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 6px;
}

/* 4-Column Grid */
.grid-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--border-dark);
  padding-bottom: 10px;
  margin: 30px 0 20px;
}
.grid-title {
  font-family: var(--font-condensed);
  font-size: 22px;
  font-weight: 900;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}
.grid-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 18px;
  background: var(--accent-orange);
}

.gear-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.gear-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s;
}
.gear-card:hover { transform: translateY(-3px); }
.gear-thumb { height: 160px; overflow: hidden; position: relative; }
.gear-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gear-info { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.gear-name { font-family: var(--font-condensed); font-size: 17px; font-weight: 800; line-height: 1.35; margin-bottom: 8px; }
.gear-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; flex: 1; }

/* Article View */
.article-wrap { max-width: 860px; margin: 40px auto 70px; padding: 0 20px; }
.art-badge { display: inline-block; background: var(--accent-orange); color: #fff; font-family: var(--font-condensed); font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 3px; margin-bottom: 12px; }
.art-title { font-family: var(--font-condensed); font-size: 42px; font-weight: 900; line-height: 1.18; margin-bottom: 16px; }
.art-meta { font-size: 13px; color: var(--text-muted); border-bottom: 1px solid var(--border-dark); padding-bottom: 18px; margin-bottom: 24px; }
.art-cover { border-radius: 6px; overflow: hidden; margin-bottom: 30px; height: 420px; }
.art-cover img { width: 100%; height: 100%; object-fit: cover; }
.art-body { font-size: 17px; line-height: 1.8; color: #e2e8f0; }
.art-body h2 { font-family: var(--font-condensed); font-size: 26px; font-weight: 800; margin: 36px 0 16px; color: #fff; border-left: 4px solid var(--accent-orange); padding-left: 12px; }
.art-body h3 { font-family: var(--font-condensed); font-size: 20px; font-weight: 700; margin: 24px 0 12px; color: #f1f5f9; }
.art-body p { margin-bottom: 20px; }
.art-body ul, .art-body ol { margin-bottom: 20px; padding-left: 24px; }
.spec-box { background: var(--bg-card); border: 1px solid var(--border-dark); border-radius: 6px; padding: 20px; margin: 24px 0; }

/* Footer */
.site-footer {
  background: #060910;
  border-top: 1px solid var(--border-dark);
  padding: 40px 0 24px;
  font-size: 13px;
  color: #64748b;
}
.footer-row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; padding-bottom: 30px; border-bottom: 1px solid var(--border-dark); }
.footer-logo { font-family: var(--font-condensed); font-size: 22px; font-weight: 900; color: #fff; margin-bottom: 10px; }
.footer-copy { text-align: center; padding-top: 20px; font-size: 12px; }

@media (max-width: 900px) {
  .portal-hero { grid-template-columns: 1fr; }
  .gear-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .gear-grid { grid-template-columns: 1fr; }
  .hero-headline { font-size: 26px; }
  .art-title { font-size: 28px; }
}
