/* ─────────────────────────────────────────────
   REMAPHUB — Shared Stylesheet
   ───────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=JetBrains+Mono:wght@400;500&family=Barlow:ital,wght@0,400;0,500;0,600;1,400&display=swap');

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

:root {
  --bg:       #0c0c0e;
  --bg2:      #111114;
  --surface:  #161619;
  --surface2: #1c1c20;
  --border:   #2a2a30;
  --border2:  #333339;
  --orange:   #e8571e;
  --orange2:  #ff6a2f;
  --text:     #efefef;
  --muted:    #888894;
  --dim:      #555560;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Barlow', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}


a { color: inherit; text-decoration: none; }
img { display: block; }

/* ─── NAV ─── */
.logo-wrap { display: flex; align-items: center; }
.logo-wrap .logo { height: 55px; }

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  padding: 0 52px;
  height: 64px;
  background: rgba(12,12,14,0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  justify-content: space-between;
}

.logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  letter-spacing: 3px;
}
.logo span { color: var(--orange); }

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.3px;
}
.nav-links a { transition: color 0.2s; color: rgba(239,239,239,0.72); }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); border-bottom: 1px solid var(--orange); padding-bottom: 2px; }

.btn-nav {
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 9px 22px;
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-nav:hover { background: var(--orange2); }

/* ─── LANG SWITCHER ─── */
.nav-right { display: flex; align-items: center; gap: 16px; }

.lang-switcher { position: relative; }

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Barlow', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: background 0.2s, border-color 0.2s;
}
.lang-btn:hover,
.lang-btn.open { background: rgba(255,255,255,0.1); border-color: var(--orange); }

.lang-flag { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex-shrink: 0; display: block; }
.lang-chevron { color: var(--muted); transition: transform 0.2s; flex-shrink: 0; }
.lang-btn.open .lang-chevron { transform: rotate(180deg); }

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(18,18,20,0.97);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  display: none;
  flex-direction: column;
  min-width: 88px;
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.55);
  z-index: 300;
}
.lang-dropdown.open { display: flex; }

.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-family: 'Barlow', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: background 0.15s, color 0.15s;
  width: 100%;
  text-align: left;
}
.lang-option:hover { background: rgba(255,255,255,0.06); color: var(--text); }
.lang-option.active { color: var(--orange); }
.lang-option.active .lang-code::after { content: ' ✓'; font-size: 10px; }

/* ─── BUTTONS ─── */
.btn-primary {
  background: var(--orange);
  color: #fff;
  border: none;
  padding: 14px 34px;
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}
.btn-primary:hover { background: var(--orange2); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border2);
  padding: 14px 34px;
  font-family: 'Barlow', sans-serif;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  display: inline-block;
}
.btn-ghost:hover { color: var(--text); border-color: var(--muted); }

/* ─── SECTION SHARED ─── */
section { position: relative; }

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 52px;
}

.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--orange);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(44px, 5.5vw, 76px);
  letter-spacing: 1.5px;
  line-height: 0.95;
}

/* ─── TICKER ─── */
.ticker {
  background: var(--orange);
  overflow: hidden;
  height: 44px;
  display: flex;
  align-items: center;
  position: relative; z-index: 1;
}
.ticker-track {
  display: flex;
  animation: ticker 22s linear infinite;
  white-space: nowrap;
}
.ticker-item {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.9);
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.ticker-item::after { content: '//'; color: rgba(255,255,255,0.35); }
@keyframes ticker { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ─── FOOTER ─── */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 36px 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  position: relative; z-index: 1;
}

.footer-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 3px;
}
.footer-logo span { color: var(--orange); }

.footer-links {
  list-style: none;
  display: flex;
  gap: 28px;
  font-size: 12px;
  color: var(--dim);
}
.footer-links a { transition: color 0.2s; }
.footer-links a:hover { color: var(--muted); }

.copy {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--dim);
  letter-spacing: 0.5px;
}

/* ─── PAGE HERO (inner pages) ─── */
.page-hero {
  padding: 140px 52px 80px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  max-width: 100%;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--orange);
}
.page-hero .section-inner { padding-top: 0; }
.page-hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(52px, 7vw, 100px);
  letter-spacing: 2px;
  line-height: 0.92;
  margin-bottom: 20px;
}
.page-hero h1 span { color: var(--orange); }
.page-hero p {
  font-size: 17px;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.75;
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fu  { animation: fadeUp 0.65s ease both; }
.d1  { animation-delay: 0.1s; }
.d2  { animation-delay: 0.22s; }
.d3  { animation-delay: 0.36s; }
.d4  { animation-delay: 0.5s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  .section-inner { padding: 0 24px; }
  .page-hero { padding: 120px 24px 60px; }
  footer { padding: 32px 24px; }
}
