/* ============================================================
   ACREN COUNTY — Design Tokens
   ============================================================ */
:root {
  /* Color */
  --bg-0: #0a0c10;       /* base asphalt black */
  --bg-1: #12151b;       /* panel */
  --bg-2: #1a1e26;       /* raised panel */
  --line: #2a2f3a;       /* hairline / border */
  --line-soft: #20242d;

  --red: #c22032;
  --red-dim: #7a1420;
  --blue: #1e4fc2;
  --blue-dim: #15326e;

  --ink: #eceef2;        /* primary text */
  --ink-dim: #9aa0ac;    /* secondary text */
  --ink-faint: #5c6270;  /* tertiary / disabled */

  /* Type */
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  /* Layout */
  --page-max: 1180px;
  --radius: 3px;
  --header-h: 84px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 0.5em 0;
  color: var(--ink);
}

p { margin: 0 0 1em 0; color: var(--ink-dim); }

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

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* ============================================================
   Signature motif — dashed road line divider
   ============================================================ */
.road-divider {
  height: 24px;
  margin: 0;
  background-image: repeating-linear-gradient(
    90deg,
    var(--ink-faint) 0px,
    var(--ink-faint) 28px,
    transparent 28px,
    transparent 56px
  );
  background-position: center;
  background-size: 56px 3px;
  background-repeat: repeat-x;
  opacity: 0.35;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(10, 12, 16, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 32px;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand img {
  height: 46px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.main-nav a {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding: 10px 14px;
  border-radius: var(--radius);
  transition: color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--ink);
  background: var(--bg-2);
}

.main-nav a.active {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--red);
}

.main-nav a.external-link::after {
  content: "↗";
  font-size: 11px;
  margin-left: 4px;
  color: var(--ink-faint);
}

.play-now-btn {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(180deg, var(--red) 0%, var(--red-dim) 100%);
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 1px solid #e0384c;
  box-shadow: 0 2px 0 var(--red-dim);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.play-now-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 0 var(--red-dim);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 8px 10px;
  border-radius: var(--radius);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-1);
  margin-top: 96px;
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand img {
  height: 56px;
  margin-bottom: 14px;
}

.footer-brand p {
  max-width: 320px;
  font-size: 14px;
}

.footer-col h4 {
  font-size: 13px;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 14px;
  color: var(--ink-dim);
  transition: color 0.15s ease;
}

.footer-col a:hover { color: var(--ink); }

.footer-col a.link-play { color: var(--red); }
.footer-col a.link-play:hover { color: #e0384c; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--ink-faint);
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================================
   Home hero
   ============================================================ */
.home-hero {
  padding: 88px 0 72px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.home-hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 9vw, 104px);
  line-height: 0.94;
  letter-spacing: 0.005em;
  margin: 0 0 40px;
}

.home-hero-title .t-red { color: var(--red); }
.home-hero-title .t-blue { color: var(--blue); }

.home-hero-media {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 14px;
  max-width: 980px;
  margin: 0 auto 40px;
}

.home-hero-media-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.home-hero-media .img-placeholder { aspect-ratio: auto; height: 100%; min-height: 160px; }

.home-hero-desc {
  max-width: 660px;
  margin: 0 auto 32px;
  font-size: 17px;
}

.home-hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-trailer svg { width: 14px; height: 14px; }

@media (max-width: 720px) {
  .home-hero { padding: 56px 0 48px; }
  .home-hero-media { grid-template-columns: 1fr; }
  .home-hero-media-col { flex-direction: row; }
}

/* ============================================================
   Team page
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 24px 28px;
}

.team-card.vacant {
  border-style: dashed;
  background: transparent;
}

.team-avatar {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-avatar .avatar-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--ink-faint);
}

.team-card-name {
  font-family: var(--font-display);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0;
}

.team-card-roles {
  font-size: 13px;
  color: var(--ink-dim);
  line-height: 1.6;
  margin: 0;
}

.team-card-roles.vacant-label {
  color: var(--ink-faint);
  font-style: italic;
}

.team-socials {
  display: flex;
  gap: 8px;
  margin-top: 2px;
}

.team-social-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  color: var(--ink-dim);
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.team-social-btn:hover {
  color: var(--ink);
  border-color: var(--ink-faint);
  background: var(--bg-2);
}

.team-social-btn svg {
  width: 15px;
  height: 15px;
}

.team-section {
  margin-bottom: 56px;
}

.team-section:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .team-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   404 page
   ============================================================ */
.error-hero {
  padding: 120px 0;
  text-align: center;
}

.error-code {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(96px, 18vw, 200px);
  line-height: 0.9;
  margin: 0 0 16px;
}

.error-hero h2 {
  font-size: 22px;
  margin-bottom: 12px;
}

.error-hero p {
  max-width: 460px;
  margin: 0 auto 32px;
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .error-hero { padding: 72px 0; }
}

/* ============================================================
   Shared page structure
   ============================================================ */
.page-hero {
  padding: 72px 0 48px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--blue);
  background: var(--blue-dim);
  border: 1px solid #2a5adb;
  padding: 5px 10px;
  border-radius: var(--radius);
  margin-bottom: 18px;
}

.page-hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  max-width: 760px;
}

.page-hero .lede {
  font-size: 17px;
  max-width: 620px;
  margin-top: 12px;
}

section { padding: 64px 0; }
section.tight { padding: 40px 0; }

/* ============================================================
   Image placeholder component
   ============================================================ */
.img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  aspect-ratio: 16 / 9;
  background: var(--bg-2);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  padding: 16px;
}

.img-placeholder svg {
  width: 28px;
  height: 28px;
  opacity: 0.5;
}

.img-placeholder.square { aspect-ratio: 1 / 1; }
.img-placeholder.wide { aspect-ratio: 21 / 9; }

/* Real images dropped into a hero media slot or gallery grid are sized
   automatically — no extra classes needed, just use a plain <img>. */
.home-hero-media img {
  width: 100%;
  height: 100%;
  min-height: 160px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

/* For a standalone image outside those grids (e.g. a single showcase
   image), add class="media-img" — same sizing behavior as .img-placeholder,
   plus optional .square / .wide modifiers. */
.media-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  display: block;
}

.media-img.square { aspect-ratio: 1 / 1; }
.media-img.wide { aspect-ratio: 21 / 9; }

/* ============================================================
   Cards / grids
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card h3 {
  font-size: 18px;
  color: var(--ink);
}

.card p { font-size: 14px; margin: 0; }

.tag-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 13px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue-dim) 100%);
  border-color: #3563d6;
  box-shadow: 0 2px 0 var(--blue-dim);
}

.btn-primary:hover { transform: translateY(-1px); }

.btn-outline {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}

.btn-outline:hover { border-color: var(--ink-faint); background: var(--bg-1); }

.btn-block { width: 100%; justify-content: center; }

/* ============================================================
   Guidelines page
   ============================================================ */
.guide-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}

.guide-tab {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding: 12px 18px;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

.guide-tab:hover { color: var(--ink); }

.guide-tab.active {
  color: var(--ink);
  border-bottom-color: var(--red);
}

.guide-panel { display: none; }
.guide-panel.active { display: block; }

.guide-note {
  border: 1px solid var(--line);
  background: var(--bg-1);
  border-left: 3px solid var(--blue);
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 32px;
}

.guide-block {
  margin-bottom: 36px;
}

.guide-block h2 {
  font-size: 20px;
  margin-bottom: 12px;
}

.guide-block ol,
.guide-block ul {
  padding-left: 22px;
  color: var(--ink-dim);
}

.guide-block ol li,
.guide-block ul li {
  margin-bottom: 8px;
}

.guide-block ul ul {
  margin-top: 8px;
}

.wip-banner {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ============================================================
   Forms page
   ============================================================ */
.forms-section { margin-bottom: 56px; }

.forms-section-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.forms-section-head h2 { font-size: 20px; margin: 0; }
.forms-section-head span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
}

.form-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.form-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.form-link:hover {
  border-color: var(--ink-faint);
  background: var(--bg-2);
}

.form-link-title {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink);
}

.form-link-desc {
  font-size: 13px;
  color: var(--ink-faint);
  margin-top: 4px;
}

.form-link-arrow {
  color: var(--ink-faint);
  font-size: 16px;
  flex-shrink: 0;
}

/* ============================================================
   Private Servers page
   ============================================================ */
.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feature-item .icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: var(--radius);
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
}

.livery-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(120deg, var(--bg-1) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  flex-wrap: wrap;
}

.livery-cta h3 { margin-bottom: 6px; }
.livery-cta p { margin: 0; max-width: 420px; }

/* ============================================================
   Highlights page
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat-cell {
  padding: 24px;
  text-align: center;
  border-right: 1px solid var(--line);
  background: var(--bg-1);
}

.stat-cell:last-child { border-right: none; }

.stat-cell .num {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--ink);
  display: block;
}

.stat-cell .label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-list { grid-template-columns: 1fr; }
  .form-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-cell:nth-child(2) { border-right: none; }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .site-header .container { flex-wrap: wrap; }

  .site-header.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg-1);
    border-bottom: 1px solid var(--line);
    padding: 12px;
    gap: 2px;
  }

  .card-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .livery-cta { flex-direction: column; align-items: flex-start; }
  .gallery-grid { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: 1fr; }
  .stat-cell { border-right: none; border-bottom: 1px solid var(--line); }
  .stat-cell:last-child { border-bottom: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}