* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #e0e0e0;
  background: #0b0b14;
}

/* ── Skip to Content (accessibility) ── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: #ff6b35;
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 6px 6px;
  z-index: 100;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ── Back to Top ── */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ff6b35;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.25s;
  z-index: 50;
  box-shadow: 0 4px 16px rgba(255,107,53,0.3);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: #e85d2a; transform: translateY(-2px); }

/* ── Navigation ── */
nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  border-bottom: 1px solid #2a2a3a;
  background: #0f0f1ae0;
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
  max-width: 1100px;
  margin: 0 auto;
}

nav .logo { font-size: 20px; font-weight: 700; color: #ff6b35 !important; text-decoration: none; flex-shrink: 0; }
nav .logo span { color: #e0e0e0; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.nav-menu a { color: #a0a0b0; text-decoration: none; font-weight: 500; font-size: 14px; padding: 6px 10px; border-radius: 6px; white-space: nowrap; min-width: 72px; text-align: center; flex: 1 1 auto; transition: color 0.15s, background 0.15s; }
.nav-menu a:hover { color: #ff6b35; background: rgba(255,107,53,0.06); }
.nav-menu a.active { color: #ff6b35; background: rgba(255,107,53,0.1); font-weight: 600; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 11;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #a0a0b0;
  border-radius: 2px;
  transition: all 0.25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero Banner ── */
.hero {
  text-align: center;
  padding: 80px 24px 60px;
  background: linear-gradient(135deg, #1a0a20 0%, #0f1a2e 40%, #1a1a0a 70%, #1a0a10 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255,107,53,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(0,150,255,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(255,200,0,0.05) 0%, transparent 50%);
  pointer-events: none;
}
.hero h1 { font-size: 40px; color: #fff; position: relative; }
.hero p  { font-size: 18px; color: #a0a0b0; max-width: 600px; margin: 12px auto 0; position: relative; }

/* ── Section Banner ── */
.section-banner {
  padding: 50px 24px; text-align: center; position: relative;
}
.section-banner.cars  { background: linear-gradient(135deg, #1a0a10 0%, #1a100a 100%); }
.section-banner.map   { background: linear-gradient(135deg, #0a1a10 0%, #0a101a 100%); }
.section-banner.specs  { background: linear-gradient(135deg, #0a0a1a 0%, #1a0a1a 100%); }
.section-banner.guides { background: linear-gradient(135deg, #1a1a0a 0%, #1a0a1a 100%); }
.section-banner h1 { font-size: 36px; color: #fff; position: relative; }
.section-banner p  { color: #a0a0b0; max-width: 600px; margin: 8px auto 0; position: relative; }

/* ── Content Wrapper ── */
.content { max-width: 1040px; margin: 0 auto; padding: 0 24px 40px; }

/* ── Typography ── */
h1 { font-size: 32px; margin: 30px 0 15px; color: #fff; }
h2 { font-size: 22px; margin: 36px 0 14px; color: #f0f0f0; border-left: 3px solid #ff6b35; padding-left: 12px; }
h3 { font-size: 17px; margin: 16px 0 8px; color: #d0d0d0; display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 28px; height: 28px; flex-shrink: 0; }
p  { margin: 10px 0; }
a  { color: #ff6b35; }

/* ── Card Grid ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin: 20px 0 40px;
  align-items: stretch;
}
.card-grid > .info-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card-grid > .info-card .info-card-head {
  flex-shrink: 0;
  min-height: 68px;
  display: flex;
  align-items: center;
}
.card-grid > .info-card .info-card-body {
  flex: 1;
}

/* Card as clickable link — the entire card is an <a> */
a.card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #14142a;
  border: 1px solid #252540;
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.15s;
}
a.card:hover { border-color: #ff6b35; transform: translateY(-2px); }

.img-placeholder {
  width: 100%;
  height: 200px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  overflow: hidden;
}
.img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.img-placeholder.news   { background: linear-gradient(135deg, #2a1a3a, #1a2a3a); }
.img-placeholder.cars   { background: linear-gradient(135deg, #3a1a1a, #1a1a2a); }
.img-placeholder.map    { background: linear-gradient(135deg, #1a3a1a, #1a2a3a); }
.img-placeholder.specs  { background: linear-gradient(135deg, #1a1a3a, #2a1a2a); }

.card-body { padding: 18px 20px; }
.card-body h3 { margin-top: 0; font-size: 17px; color: #ff6b35; }
.card-body p  { color: #a0a0b0; }

.tag {
  display: inline-block;
  background: rgba(255,107,53,0.15);
  color: #ff6b35;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  margin-bottom: 6px;
}

.breadcrumb { color: #666; font-size: 14px; margin: 16px 0; }
.breadcrumb a { color: #888; }

/* ── Quick Facts (homepage, inline text bar) ── */
.quick-facts {
  text-align: center;
  font-size: 14px;
  color: #aaa;
  margin: 12px 0 28px;
  line-height: 1.8;
}

/* ── Region Cards (Map page) ── */
.region-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin: 20px 0 40px;
}
a.region-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #14142a;
  border: 1px solid #252540;
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.15s;
}
a.region-card:hover { border-color: #ff6b35; transform: translateY(-2px); }

.region-img {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  overflow: hidden;
}
.region-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.region-img.coastal { background: linear-gradient(135deg, #1a3a4a, #0a2a3a); }
.region-img.mountain { background: linear-gradient(135deg, #2a2a3a, #1a1a2a); }
.region-img.urban    { background: linear-gradient(135deg, #3a2a3a, #2a1a2a); }
.region-img.desert   { background: linear-gradient(135deg, #3a3a1a, #2a2a0a); }
.region-img.forest   { background: linear-gradient(135deg, #1a3a1a, #0a2a0a); }
.region-img.hub      { background: linear-gradient(135deg, #3a1a1a, #2a0a0a); }

.region-body { padding: 16px 18px; }
.region-body h3 { color: #ff6b35; margin-top: 0; }
.region-body p  { color: #a0a0b0; }

/* ── Specs Tier Cards ── */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin: 20px 0 40px;
}
.spec-card {
  border-radius: 10px;
  overflow: hidden;
}
.spec-card.minimum  { background: linear-gradient(135deg, #2a2a1a, #1a2a1a); border: 1px solid #3a3a2a; }
.spec-card.rec      { background: linear-gradient(135deg, #2a1a2a, #1a1a2a); border: 1px solid #3a2a3a; }
.spec-card.ultra    { background: linear-gradient(135deg, #1a1a2a, #1a2a2a); border: 1px solid #2a3a3a; }
.spec-card .spec-header {
  padding: 14px 18px;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  text-align: center;
}
.spec-card.minimum .spec-header  { background: #3a3a1a; }
.spec-card.rec .spec-header      { background: #3a1a3a; }
.spec-card.ultra .spec-header    { background: #1a3a3a; }
.spec-card .spec-body { padding: 14px 18px; }
.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 14px;
}
.spec-row .label { color: #888; }
.spec-row .val   { color: #e0e0e0; font-weight: 500; text-align: right; }

/* ── Tables ── */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 40px;
  font-size: 14px;
}
th {
  background: #14142a;
  color: #ff6b35;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 2px solid #252540;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
td { padding: 12px 16px; border-bottom: 1px solid #1a1a30; }
tr:hover td { background: #14142a; }

/* ── Lists ── */
ul, ol { margin: 10px 0 10px 24px; }
li { margin: 6px 0; }

/* ── Race Types Grid (Guides page) ── */
.race-types-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 16px 0 32px;
}
.race-type-card {
  background: #14142a;
  border: 1px solid #252540;
  border-radius: 8px;
  padding: 18px;
}
.race-type-card h3 { color: #ff6b35; margin-top: 0; }
.race-type-card p  { color: #a0a0b0; margin: 6px 0; font-size: 14px; }
.rt-icon { display: block; margin-bottom: 8px; }
.rt-icon svg { width: 32px; height: 32px; display: block; }
.rt-tag {
  display: inline-block;
  background: rgba(255,107,53,0.12);
  color: #ff6b35;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 12px;
  margin-top: 8px;
}

/* ── Guide Quick-Jump Nav ── */
.guide-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 28px 0 40px;
}
a.guide-nav-card {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  background: #14142a;
  border: 1px solid #252540;
  border-radius: 10px;
  padding: 20px 22px;
  transition: border-color 0.2s, transform 0.15s, background 0.2s;
}
a.guide-nav-card:hover {
  border-color: #ff6b35;
  transform: translateY(-2px);
  background: #181835;
}
.guide-nav-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255,107,53,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}
.guide-nav-icon svg {
  width: 26px;
  height: 26px;
}
.guide-nav-label {
  font-size: 16px;
  font-weight: 600;
  color: #e0e0e0;
  line-height: 1.3;
}
.guide-nav-label small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: #888;
  margin-top: 2px;
}

/* ── Info Cards ── */
.info-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 16px 0 24px;
}
.info-card-grid.three-col { grid-template-columns: repeat(3, 1fr); }
.info-card {
  background: #14142a;
  border: 1px solid #252540;
  border-radius: 10px;
  overflow: hidden;
}
.content > .info-card + .info-card { margin-top: 16px; }
.card-grid + .info-card { margin-top: 16px; }
.info-card + .card-grid { margin-top: 16px; }
.card-grid-3 { grid-template-columns: repeat(3, 1fr) !important; }
.card-grid-2 { grid-template-columns: repeat(2, 1fr) !important; }
.info-card-head {
  background: #1a1a35;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}
.info-card-head svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.info-card-body { padding: 14px 16px; }
.info-card-body p { margin-top: 0; color: #a0a0b0; font-size: 14px; }

.kv-row {
  display: flex;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 13px;
  color: #b0b0b0;
  line-height: 1.5;
}
.kv-row:last-child { border-bottom: none; }
.kv-row span {
  flex-shrink: 0;
  min-width: 90px;
  font-weight: 600;
  color: #e0e0e0;
  font-size: 12px;
}
.kv-row.highlight { color: #ff6b35; font-weight: 600; }
.kv-row.highlight span { color: #ff6b35; }

/* ── Compact Table ── */
table.compact th { font-size: 11px; padding: 8px 10px; }
table.compact td { font-size: 13px; padding: 7px 10px; }
td.cr { color: #4caf50; font-weight: 600; }
td.xp { color: #ff6b35; font-weight: 600; }
td.hl { color: #ff6b35; font-weight: 600; }
td.highlight-row { background: rgba(255,107,53,0.08); }
tr.highlight-row td { color: #ff6b35; font-weight: 600; }

/* ── Tier List Grid ── */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 20px 0 32px;
}
.tier-card {
  background: #14142a;
  border: 1px solid #252540;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
}
.tier-card.tier-s2 { border-top: 3px solid #e91e63; }
.tier-card.tier-s1 { border-top: 3px solid #ff9800; }
.tier-card.tier-a  { border-top: 3px solid #2196f3; }
.tier-card.tier-b  { border-top: 3px solid #4caf50; }
.tier-badge {
  font-size: 28px;
  font-weight: 800;
  padding: 16px 0 4px;
}
.tier-s2 .tier-badge { color: #e91e63; }
.tier-s1 .tier-badge { color: #ff9800; }
.tier-a  .tier-badge { color: #2196f3; }
.tier-b  .tier-badge { color: #4caf50; }
.tier-range { font-size: 13px; color: #888; margin-bottom: 2px; }
.tier-label { font-size: 12px; color: #ff6b35; font-weight: 600; text-transform: uppercase; margin-bottom: 10px; }
.tier-table { width: 100%; border-collapse: collapse; margin: 0; }
.tier-table th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 10px;
  background: rgba(255,255,255,0.03);
  color: #888;
}
.tier-table td { font-size: 12px; padding: 5px 10px; border-bottom: 1px solid rgba(255,255,255,0.04); }
.tier-table tr:hover td { background: rgba(255,255,255,0.02); }

/* ── Beginner Tips Grid ── */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 16px 0 32px;
}
a.tip-card {
  display: flex;
  gap: 14px;
  background: #14142a;
  border: 1px solid #252540;
  border-radius: 10px;
  padding: 18px;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.15s;
}
a.tip-card:hover { border-color: #ff6b35; transform: translateY(-2px); }
.tip-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,107,53,0.15);
  color: #ff6b35;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}
.tip-text { font-size: 14px; color: #a0a0b0; line-height: 1.6; }
.tip-text strong { color: #e0e0e0; }

/* ── Tuning Grid ── */
.tuning-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 16px 0 24px;
}
.tuning-card {
  background: #14142a;
  border: 1px solid #252540;
  border-radius: 10px;
  padding: 18px;
}
.tuning-card h3 { color: #ff6b35; font-size: 15px; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.tuning-card h3 svg { width: 20px; height: 20px; flex-shrink: 0; }
.tuning-card .kv-row span {
  display: block;
  font-weight: 600;
  color: #d0d0d0;
  font-size: 12px;
  margin-bottom: 1px;
}
.tuning-card .kv-row.tip { color: #ff6b35; }
.tuning-card .kv-row.tip span { color: #ff6b35; }

/* ── Vehicle Detail Page ── */
.vehicle-hero {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin: 32px 0;
  flex-wrap: wrap;
}
.vehicle-hero-img {
  flex: 0 0 400px;
  max-width: 100%;
  aspect-ratio: 800 / 520;
  background: linear-gradient(135deg, #1a1a30, #14142a);
  border: 1px solid #252540;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  overflow: hidden;
}
.vehicle-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.vehicle-hero-info {
  flex: 1;
  min-width: 280px;
}
.vehicle-hero-info h1 {
  margin-top: 0;
  font-size: 34px;
}
.vehicle-hero-info .subtitle {
  color: #888;
  font-size: 16px;
  margin-bottom: 20px;
}
.vehicle-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.vehicle-stat {
  background: #14142a;
  border: 1px solid #252540;
  border-radius: 8px;
  padding: 14px;
  text-align: center;
}
.vehicle-stat .stat-val {
  font-size: 20px;
  font-weight: 700;
  color: #ff6b35;
}
.vehicle-stat .stat-label {
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.pro-con-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 20px 0 32px;
}
.pro-con {
  background: #14142a;
  border: 1px solid #252540;
  border-radius: 10px;
  padding: 18px;
}
.pro-con h3 { margin-top: 0; display: flex; align-items: center; gap: 8px; font-size: 15px; }
.pro-con.pros h3 { color: #4caf50; }
.pro-con.cons h3 { color: #f44336; }
.pro-con ul { margin: 8px 0 0 20px; }
.pro-con li { color: #a0a0b0; font-size: 14px; margin: 4px 0; }

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin: 20px 0 40px;
}
a.related-card {
  display: block;
  text-decoration: none;
  background: #14142a;
  border: 1px solid #252540;
  border-radius: 8px;
  padding: 16px;
  transition: border-color 0.2s, transform 0.15s;
  color: inherit;
}
a.related-card:hover { border-color: #ff6b35; transform: translateY(-2px); }
.related-card h4 { color: #ff6b35; font-size: 14px; margin: 0 0 4px; }
.related-card p { color: #888; font-size: 12px; margin: 0; }

/* ── Section Header ── */
.section-header {
  text-align: center;
  margin: 48px 0 20px;
}
.section-header h2 {
  font-size: 24px;
  color: #fff;
  border-left: none;
  padding-left: 0;
  margin: 0 0 8px;
}
.section-header p {
  color: #888;
  font-size: 15px;
  max-width: 600px;
  margin: 0 auto;
}

/* ── Hero Badge ── */
.hero-badge {
  display: inline-block;
  background: rgba(255,107,53,0.12);
  color: #ff6b35;
  padding: 4px 14px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  position: relative;
}

/* ── Download Route Cards ── */
.download-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 20px 0 40px;
}
a.dl-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  background: #14142a;
  border: 1px solid #252540;
  border-radius: 10px;
  padding: 22px 16px;
  text-align: center;
  transition: border-color 0.2s, transform 0.15s;
  color: inherit;
}
a.dl-card:hover { border-color: #ff6b35; transform: translateY(-2px); }
.dl-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(255,107,53,0.08);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
  font-size: 26px;
}
.dl-card h4 { color: #fff; font-size: 15px; margin: 0 0 4px; }
.dl-card p  { color: #888; font-size: 12px; margin: 0; line-height: 1.4; }
.dl-card .dl-badge {
  display: inline-block;
  background: rgba(76,175,80,0.15);
  color: #4caf50;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  margin-top: 6px;
}

/* ── Route Cards (Quick Start) ── */
.route-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 20px 0 40px;
}
a.route-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: linear-gradient(160deg, rgba(20,20,42,0.9) 0%, rgba(20,20,50,0.6) 100%);
  border: 1px solid #252540;
  border-radius: 12px;
  padding: 24px 20px 18px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s, transform 0.2s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}
a.route-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.route-cars::before  { background: linear-gradient(90deg, #ff6b35, #ff8c5a); }
.route-beginner::before { background: linear-gradient(90deg, #4a90d9, #6db3f2); }
.route-map::before  { background: linear-gradient(90deg, #2ecc71, #58d68d); }

a.route-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.route-cars:hover  { border-color: rgba(255,107,53,0.4); }
.route-beginner:hover { border-color: rgba(74,144,217,0.4); }
.route-map:hover  { border-color: rgba(46,204,113,0.4); }

.route-icon {
  font-size: 32px;
  line-height: 1;
}
.route-card h4 {
  color: #e0e0e0;
  font-size: 15px;
  margin: 0;
}
.route-card p {
  color: #888;
  font-size: 13px;
  margin: 0;
  line-height: 1.5;
  flex: 1;
}
.route-cta {
  font-size: 12px;
  font-weight: 600;
  margin-top: 4px;
  transition: opacity 0.15s;
}
.route-cars .route-cta  { color: #ff8c5a; }
.route-beginner .route-cta { color: #6db3f2; }
.route-map .route-cta  { color: #58d68d; }
a.route-card:hover .route-cta { opacity: 0.8; }

/* ── Tools Grid ── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 20px 0 40px;
}
a.tool-card {
  display: block;
  text-decoration: none;
  background: #14142a;
  border: 1px solid #252540;
  border-radius: 10px;
  padding: 22px 20px;
  transition: border-color 0.2s, transform 0.15s;
  color: inherit;
}
a.tool-card:hover { border-color: #ff6b35; transform: translateY(-2px); }
.tool-icon {
  font-size: 32px;
  margin-bottom: 12px;
  display: block;
}
.tool-card h4 { color: #fff; font-size: 16px; margin: 0 0 6px; }
.tool-card p  { color: #888; font-size: 13px; margin: 0; line-height: 1.5; }

/* ── FAQ ── */
.faq-grid { margin: 20px 0 40px; }
.faq-item {
  background: #14142a;
  border: 1px solid #252540;
  border-radius: 10px;
  padding: 18px 22px;
  margin-bottom: 12px;
  transition: border-color 0.2s;
}
.faq-item:hover { border-color: #3a3a50; }
.faq-q {
  font-size: 16px;
  font-weight: 600;
  color: #ff6b35;
  margin-bottom: 6px;
  cursor: pointer;
}
.faq-a {
  font-size: 14px;
  color: #a0a0b0;
  line-height: 1.6;
}

/* ── Community Grid ── */
.community-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 20px 0 40px;
}
a.community-card {
  display: flex;
  gap: 14px;
  background: #14142a;
  border: 1px solid #252540;
  border-radius: 10px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  align-items: center;
  transition: border-color 0.2s, transform 0.15s;
}
a.community-card:hover { border-color: #ff6b35; transform: translateY(-2px); }
.comm-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(255,107,53,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
}
.community-card h4 { color: #e0e0e0; font-size: 15px; margin: 0 0 4px; }
.community-card p  { color: #888; font-size: 13px; margin: 0; }

/* ── Footer (multi-column) ── */
.site-footer {
  border-top: 1px solid #2a2a3a;
  margin-top: 50px;
  padding: 40px 24px 24px;
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 24px;
}
.footer-brand h3 {
  color: #ff6b35;
  font-size: 18px;
  margin: 0 0 8px;
  border-left: none;
  padding-left: 0;
}
.footer-brand p  { color: #888; font-size: 13px; line-height: 1.6; margin: 0; }
.footer-col h4 {
  color: #e0e0e0;
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-col a {
  display: block;
  color: #888;
  text-decoration: none;
  font-size: 13px;
  padding: 4px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: #ff6b35; }
.footer-bottom {
  text-align: center;
  color: #555;
  font-size: 12px;
  padding-top: 16px;
  border-top: 1px solid #1a1a30;
}

/* ── Language Switcher ── */
.lang-switcher {
  position: relative;
  margin-left: 12px;
  flex-shrink: 0;
}
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #14142a;
  border: 1px solid #252540;
  color: #a0a0b0;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  transition: border-color 0.2s;
}
.lang-toggle:hover { border-color: #ff6b35; color: #e0e0e0; }
.lang-toggle .arrow { font-size: 10px; margin-left: 2px; }
.lang-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  background: #14142a;
  border: 1px solid #252540;
  border-radius: 10px;
  min-width: 180px;
  z-index: 20;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.lang-dropdown.open { display: block; }
.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: #a0a0b0;
  text-decoration: none;
  font-size: 13px;
  transition: background 0.15s, color 0.15s;
}
.lang-option:hover { background: #1a1a35; color: #fff; }
.lang-option.active { color: #ff6b35; font-weight: 600; }
.lang-flag { font-size: 18px; flex-shrink: 0; }


/* ══════════════════════════════════════════════════════════════════════
   2026 UI Enhancements — glassmorphism · reveal · skeleton · 3D tilt
   animated bars · toast · command palette · ToC · mobile bottom nav
   ══════════════════════════════════════════════════════════════════════ */

/* ── Glassmorphism Nav ── */
nav {
  background: rgba(15,15,26,0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 1px 0 0 rgba(255,107,53,0.08), 0 4px 24px rgba(0,0,0,0.3);
}
nav .logo {
  background: linear-gradient(135deg, #ff6b35, #ff8c5a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-menu a {
  position: relative;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}
.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 0; height: 2px;
  background: #ff6b35;
  border-radius: 2px;
  transition: width 0.25s ease;
}
.nav-menu a:hover::after,
.nav-menu a.active::after { width: 60%; }
.nav-menu a:hover {
  box-shadow: 0 0 20px rgba(255,107,53,0.12);
}

/* ── Particle Canvas (Hero) ── */
#heroParticles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero h1, .hero p, .hero .hero-badge {
  position: relative;
  z-index: 1;
}

/* ── Scroll-Reveal Animation ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Skeleton Loading ── */
.skeleton {
  background: linear-gradient(90deg,
    rgba(255,255,255,0.04) 25%,
    rgba(255,255,255,0.08) 50%,
    rgba(255,255,255,0.04) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-text { height: 14px; margin-bottom: 8px; }
.skeleton-text.short { width: 60%; }
.skeleton-heading { height: 22px; width: 40%; margin-bottom: 16px; }
.skeleton-card { height: 200px; }
.skeleton-table-row { height: 40px; margin-bottom: 4px; }

/* ── 3D Card Tilt ── */
.tilt-container { perspective: 800px; }
.tilt-card {
  transition: transform 0.1s ease-out;
  will-change: transform;
  transform-style: preserve-3d;
}
.tilt-card-inner { transform: translateZ(20px); }

/* ── Animated Progress Bars ── */
.bar-animated {
  width: 0 !important;
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.bar-animated.animated { width: var(--bar-width) !important; }

.bar-mini-fill {
  background: linear-gradient(90deg, var(--bar-color, #ff6b35), var(--bar-color-end, #ff8c5a));
}
.bar-mini-fill.bar-fill-s { --bar-color: #2ecc71; --bar-color-end: #27ae60; }
.bar-mini-fill.bar-fill-a { --bar-color: #f1c40f; --bar-color-end: #f39c12; }
.bar-mini-fill.bar-fill-b { --bar-color: #e67e22; --bar-color-end: #d35400; }
.bar-mini-fill.bar-fill-c { --bar-color: #e74c3c; --bar-color-end: #c0392b; }

/* ── Full-width Performance Bar ── */
.perf-bar-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0;
}
.perf-bar-label {
  width: 80px;
  font-size: 11px;
  color: #888;
  text-align: right;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.perf-bar-track {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
}
.perf-bar-fill {
  height: 100%;
  border-radius: 3px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.perf-bar-fill.animated { width: var(--bar-width); }
.perf-bar-val {
  width: 32px;
  font-size: 12px;
  font-weight: 700;
  color: #e0e0e0;
  flex-shrink: 0;
}

/* ── Toast Notification ── */
.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  background: rgba(20,20,42,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,107,53,0.2);
  border-radius: 10px;
  padding: 12px 20px;
  color: #e0e0e0;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  animation: toastIn 0.35s cubic-bezier(0.16, 1, 0.3, 1),
             toastOut 0.3s cubic-bezier(0.16, 1, 0.3, 1) 2.7s forwards;
  max-width: 360px;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(80px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(80px); }
}

/* ── Command Palette (Ctrl+K) ── */
.cmd-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}
.cmd-overlay.open {
  opacity: 1;
  visibility: visible;
}
.cmd-palette {
  background: rgba(20,20,42,0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,107,53,0.15);
  border-radius: 14px;
  width: 560px;
  max-width: 90vw;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
  overflow: hidden;
  transform: translateY(-20px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.cmd-overlay.open .cmd-palette { transform: translateY(0); }
.cmd-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cmd-input-wrap svg { flex-shrink: 0; color: #888; }
.cmd-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #e0e0e0;
  font-size: 16px;
  font-family: inherit;
  outline: none;
}
.cmd-input::placeholder { color: #555; }
.cmd-kbd {
  font-size: 11px;
  color: #666;
  background: rgba(255,255,255,0.06);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.cmd-results { max-height: 360px; overflow-y: auto; }
.cmd-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  cursor: pointer;
  transition: background 0.1s;
  color: #b0b0b0;
  text-decoration: none;
}
.cmd-result:hover,
.cmd-result.active { background: rgba(255,107,53,0.08); color: #fff; }
.cmd-result .cmd-icon { font-size: 18px; flex-shrink: 0; width: 28px; text-align: center; }
.cmd-result .cmd-title { font-weight: 600; font-size: 14px; color: #e0e0e0; }
.cmd-result .cmd-desc { font-size: 12px; color: #777; margin-top: 1px; }
.cmd-empty { padding: 32px 20px; text-align: center; color: #555; font-size: 14px; }

/* ── Table of Contents ── */
.toc-sidebar {
  position: sticky;
  top: 80px;
  background: rgba(20,20,42,0.5);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 16px 20px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  font-size: 13px;
}
.toc-sidebar h4 {
  color: #888;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 12px;
}
.toc-sidebar a {
  display: block;
  color: #888;
  text-decoration: none;
  padding: 5px 0 5px 12px;
  border-left: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  line-height: 1.4;
}
.toc-sidebar a:hover { color: #b0b0b0; }
.toc-sidebar a.active {
  color: #ff6b35;
  border-left-color: #ff6b35;
  font-weight: 500;
}
.toc-sidebar a.toc-h3 { padding-left: 24px; font-size: 12px; }

.toc-layout {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}
.toc-layout .toc-sidebar {
  flex: 0 0 220px;
}
.toc-layout .toc-content {
  flex: 1;
  min-width: 0;
}

/* ── Mobile Bottom Navigation ── */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15,15,26,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255,255,255,0.06);
  z-index: 50;
  padding: 6px 8px env(safe-area-inset-bottom, 8px);
  justify-content: space-around;
}
.mobile-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #777;
  text-decoration: none;
  font-size: 10px;
  font-weight: 500;
  padding: 6px 4px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
  min-width: 56px;
}
.mobile-nav a .mb-icon { font-size: 20px; }
.mobile-nav a.active { color: #ff6b35; background: rgba(255,107,53,0.08); }
.mobile-nav a:hover { color: #b0b0b0; }

/* ── Floating Action Button (mobile search) ── */
.fab-search {
  display: none;
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ff6b35;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 22px;
  box-shadow: 0 4px 20px rgba(255,107,53,0.35);
  z-index: 45;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.fab-search:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(255,107,53,0.45); }
.fab-search:active { transform: scale(0.95); }

/* ── Animated Border Gradient ── */
.glow-border {
  position: relative;
}
.glow-border::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,107,53,0), rgba(255,107,53,0.3), rgba(255,107,53,0));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.glow-border:hover::before { opacity: 1; }

/* ── Glassmorphism Cards ── */
.glass-card {
  background: rgba(20,20,42,0.6) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: rgba(255,255,255,0.08) !important;
}

/* ── Pulse Dot (live indicator) ── */
.pulse-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4caf50;
  margin-right: 6px;
  position: relative;
}
.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: rgba(76,175,80,0.3);
  animation: pulse-ring 2s infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* ══════════════════════════════════════════════════════════════════════
   Responsive — appended mobile nav + ToC collapse
   ══════════════════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .toc-layout { flex-direction: column; }
  .toc-layout .toc-sidebar {
    flex: none;
    position: static;
    max-height: none;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .mobile-nav { display: flex; }
  .fab-search { display: flex; }
  body { padding-bottom: 80px; }
  .back-to-top { bottom: 90px; }
}

@media (max-width: 600px) {
  .cmd-palette { max-width: 95vw; }
  .toast-container { right: 10px; left: 10px; }
  .toast { max-width: 100%; }
}


/* ── Responsive ── */
@media (max-width: 900px) {
  .guide-nav { grid-template-columns: repeat(2, 1fr); }
  .tier-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid-3 { grid-template-columns: repeat(2, 1fr) !important; }
  .download-grid { grid-template-columns: repeat(2, 1fr); }
  .route-grid { grid-template-columns: repeat(2, 1fr); }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .community-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-menu a { font-size: 13px; padding: 5px 8px; min-width: 60px; }
}
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex: none;
    justify-content: flex-start;
    flex-direction: column;
    align-items: stretch;
    background: #0f0f1a;
    border-bottom: 1px solid #2a2a3a;
    padding: 8px 16px 16px;
    gap: 2px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.5);
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 10px 12px; font-size: 15px; border-radius: 8px; flex: none; min-width: 0; text-align: left; }
  .nav-menu .lang-switcher { margin: 8px 0 0; }
  .nav-menu .lang-switcher .lang-dropdown { left: 0; right: auto; }
}
@media (max-width: 600px) {
  h1 { font-size: 24px; }
  .hero { padding: 50px 16px 40px; }
  .hero h1 { font-size: 28px; }
  .card-grid, .region-grid, .specs-grid { grid-template-columns: 1fr; }
  .card-grid-3, .card-grid-2 { grid-template-columns: 1fr !important; }
  .guide-nav { grid-template-columns: 1fr; }
  a.guide-nav-card { padding: 14px 16px; gap: 12px; }
  .guide-nav-icon { width: 40px; height: 40px; border-radius: 10px; }
  .guide-nav-icon svg { width: 22px; height: 22px; }
  .guide-nav-label { font-size: 14px; }
  .info-card-grid, .info-card-grid.three-col { grid-template-columns: 1fr; }
  .tier-grid { grid-template-columns: 1fr; }
  .tips-grid { grid-template-columns: 1fr; }
  .tuning-grid { grid-template-columns: 1fr; }
  .race-types-grid { grid-template-columns: 1fr; }
  .download-grid { grid-template-columns: 1fr; }
  .route-grid { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr; }
  .community-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .back-to-top { bottom: 16px; right: 16px; width: 40px; height: 40px; font-size: 18px; }
}
