/* base.css — global tokens, typography, generic components (ported from reference main.css/child.css) */
:root {
  --base-font: "Arimo", sans-serif;
  --bg-color: #0d0d0d;
  --text-color: #f0f0f0;
  --text-color-sec: #616161;
  --a-color: #f0f0f0;
  --color-primary: #bf282b;
  --color-base-red: #bf282b;
  --color-base-gray: #525555;
  --color-base-orange: #d47430;
  --bg-base: #0d0d0d;
  --bg-secondary: #dfeaea;
  --bg-optional: #fcf0ec;
  --color-base: #0d0d0d;
  --color-secondary: #d5d0fa;
  --color-optional: #fcf0ec;
  --bg-color-primary: #ffffff;
  --bg-color-primary-faded: #ffffff9d;
  --bg-color-secondary: #f3f3f3;
  --bg-color-optional: #c0c0c0;
  --text-color-primary: #020202;
}

body {
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background-color: var(--bg-color) !important;
  font-family: var(--base-font) !important;
  color: var(--text-color) !important;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.text-r { color: var(--color-base-red) !important; }
.text-g { color: var(--color-base-gray) !important; }
.text-o { color: var(--color-base-orange) !important; }

a {
  color: var(--a-color) !important;
  letter-spacing: 0.04em;
  font-weight: 600;
  text-decoration: none;
}
a:hover { opacity: 0.8 !important; }

body::-webkit-scrollbar { width: 6px; }
body::-webkit-scrollbar-track { background: #f1f1f1; }
body::-webkit-scrollbar-thumb { background: #6c757d; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; }
body::-webkit-scrollbar-thumb:hover { background: #555; }
::selection { background: #3d3e3e; color: whitesmoke; }
::-moz-selection { background: #3d3e3e; color: whitesmoke; }

.container { flex: 1; }
.bg-main { background-color: var(--bg-color) !important; color: var(--text-color) !important; }
.bg-base, .bgb { background-color: var(--bg-base) !important; }
.bg-trans { background-color: transparent !important; }
.cb { color: var(--bg-base) !important; }

.footer { background-color: transparent; padding: 20px 0; text-align: center; position: relative; bottom: 0; width: 100%; }
footer a { text-decoration: none !important; }
footer li { margin: 4px 0px; }

.btn:active { opacity: 0.6 !important; }
.btn:focus, button:focus { outline: 0 !important; box-shadow: none !important; opacity: 0.8; }

.lead { font-size: 1.25rem; font-weight: 400; }
.font-xs { font-size: 11px !important; }
.font-sm { font-size: 14px !important; }
.font-md { font-size: 17px !important; }
.font-lg { font-size: 20px !important; }

.mtitle {
  margin: 0;
  color: var(--text-color);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  font-size: 63px;
}
.mstitle {
  color: var(--text-color);
  letter-spacing: -0.05em;
  margin-top: 10px;
  font-family: "Inter", sans-serif;
  font-size: 45px;
  font-weight: 600;
  line-height: 1.1em;
}
.stitle {
  font-size: 1.08rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #aeabab;
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.sstitle {
  color: var(--text-color);
  letter-spacing: -0.03em;
  margin-top: 10px;
  margin-bottom: 10px;
  font-family: Inter, sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5em;
}
.mainp {
  margin: 0 0 1rem 0;
  color: var(--text-color);
  max-width: 62ch;
  font-size: clamp(0.88rem, 1vw, 1rem);
  line-height: 1.45;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.mono { font-family: "Roboto Mono", monospace; font-weight: 400; }
.tracking-wide { letter-spacing: 0.08em; }

span.hcube, .hcube {
  z-index: 1;
  display: inline-block;
  font-size: 14px;
  color: var(--text-color-sec) !important;
  font-family: "Roboto Mono", monospace;
  background-color: #ffffff;
  padding: 0px 5px;
  position: relative;
  border-bottom: 1px solid #383838;
}

.btn-main {
  border-bottom: 1px solid #383838;
  background-color: #ffffff;
  color: #1b1b1b !important;
  text-align: center;
  letter-spacing: -0.03em;
  border-radius: 0;
  padding: 13px 30px;
  font-family: Inter, sans-serif;
  font-size: 16px;
  line-height: 1.5em;
  transition: all 0.3s;
  display: inline-block;
}
.btn-main:hover { background-color: #383838; color: white !important; }

.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 45px;
  height: 45px;
  background: #313041;
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1000;
}
.back-to-top.show { opacity: 1; transform: translateY(0); }
.back-to-top i { font-size: 18px; }
.back-to-top:hover { background: #414053; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media all and (max-width: 767px) {
  .mtitle { font-size: 46px; }
}
