/*
 * DENNIS MIRAS — RIMM BRAND
 * Complete Design System v2.0
 * Uniform background · Full responsive · Hamburger mobile nav
 */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Outfit:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, video { max-width: 100%; display: block; }
input, button, textarea, select { font: inherit; }

/* ── COLOUR SYSTEM ── */
:root {
  --bg:        #0d1117;
  --bg2:       #111720;
  --bg3:       #161b22;
  --bg4:       #1c2333;

  --texthi:    #f0f6ff;
  --text:      #c9d8e8;
  --textmid:   #b8cfe0;
  --textdim:   #8aafc8;
  --textmute:  #6a90aa;

  --gold:      #f0a500;
  --goldl:     #ffc844;
  --goldd:     rgba(240,165,0,0.12);
  --purple:    #8b5cf6;
  --purpled:   rgba(139,92,246,0.12);
  --blue:      #2979FF;
  --blued:     rgba(41,121,255,0.12);
  --green:     #00e87a;
  --greend:    rgba(0,232,122,0.10);
  --red:       #ff5555;

  --border:    rgba(255,255,255,0.10);
  --borderhi:  rgba(255,255,255,0.18);

  --bebas:  'Bebas Neue', sans-serif;
  --outfit: 'Outfit', sans-serif;
  --mono:   'JetBrains Mono', monospace;

  --max-w:  1100px;
  --max-txt: 680px;
  --nav-h:  68px;
  --radius: 12px;
  --trans:  0.2s ease;
}

/* ── RESET & BASE ── */
html {
  font-size: 18px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--outfit);
  background: var(--bg);
  color: var(--text);
  line-height: 1.9;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── TYPOGRAPHY ── */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--bebas);
  color: var(--texthi);
  letter-spacing: 0.04em;
  line-height: 1.1;
}
h1 { font-size: clamp(2.2rem, 7vw, 4.8rem); }
h2 { font-size: clamp(1.7rem, 4.5vw, 3rem); }
h3 { font-size: clamp(1.15rem, 3vw, 1.5rem); }

p {
  font-family: var(--outfit);
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text);
  max-width: var(--max-txt);
}
p + p { margin-top: 1rem; }

a { color: var(--gold); text-decoration: none; transition: opacity var(--trans); }
a:hover { opacity: 0.82; }
strong { color: var(--texthi); font-weight: 600; }

.lead, .sec-sub, .hero-sub {
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--textmid);
  max-width: var(--max-txt);
}
.sec-label, .section-tag, .eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--textdim);
  display: block;
  margin-bottom: 0.75rem;
}
.sec-title {
  font-family: var(--bebas);
  font-size: clamp(1.7rem, 4vw, 3rem);
  color: var(--texthi);
  letter-spacing: 0.05em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

/* ── LAYOUT ── */
.wrap, .container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
section { padding: 5rem 0; }

/* ── NAV — DESKTOP ── */
nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(13,17,23,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 2rem;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  height: 100%;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(240,165,0,0.3);
}
.nav-logo-name {
  font-family: var(--bebas);
  font-size: 1.2rem;
  color: var(--texthi);
  letter-spacing: 0.12em;
  line-height: 1;
}
.nav-logo-name span { color: var(--gold); }
.nav-logo-tag {
  font-family: var(--mono);
  font-size: 0.58rem;
  color: var(--textdim);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
  margin-top: 3px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.nav-links a {
  font-family: var(--outfit);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--textmid);
  text-decoration: none;
  transition: color var(--trans);
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--texthi); opacity: 1; }
.nav-cta {
  font-family: var(--outfit);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.5rem 1.1rem;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--trans);
  flex-shrink: 0;
}
.nav-cta:hover { transform: translateY(-1px); opacity: 1; }

/* ── HAMBURGER BUTTON ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--textmid);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE MENU DRAWER ── */
.nav-drawer {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: rgba(13,17,23,0.99);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 999;
  padding: 1.5rem 1.5rem;
  flex-direction: column;
  gap: 0;
  transform: translateY(-10px);
  opacity: 0;
  transition: all 0.25s ease;
}
.nav-drawer.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}
.nav-drawer a {
  font-family: var(--outfit);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--textmid);
  text-decoration: none;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--trans);
  display: block;
}
.nav-drawer a:last-child { border-bottom: none; }
.nav-drawer a:hover { color: var(--texthi); }
.nav-drawer .drawer-cta {
  margin-top: 1rem;
  text-align: center;
  padding: 0.9rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  border-bottom: none;
}

/* Mobile: show hamburger, hide links */
@media(max-width: 768px) {
  nav { padding: 0 1.25rem; }
  .nav-hamburger { display: flex; }
  .nav-links { display: none; }
  .nav-logo-tag { display: none; }
}

/* ── TICKER ── */
.ticker-wrap {
  overflow: hidden;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  white-space: nowrap;
}
.ticker-inner {
  display: inline-flex;
  animation: ticker-scroll 35s linear infinite;
}
.ticker-inner:hover { animation-play-state: paused; }
.ti {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--textdim);
  letter-spacing: 0.08em;
  padding: 0 2rem;
}
.td { color: var(--gold); }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── CARDS ── */
.card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--trans);
}
.card:hover { border-color: var(--borderhi); }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--gold), #d4830a);
  color: #050709;
  font-family: var(--outfit);
  font-size: 1rem;
  font-weight: 700;
  padding: 0.9rem 1.8rem;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--trans);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(240,165,0,0.35);
  opacity: 1;
  color: #050709;
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--texthi);
  font-family: var(--outfit);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.85rem 1.6rem;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--trans);
  white-space: nowrap;
}
.btn-ghost:hover {
  border-color: var(--borderhi);
  background: rgba(255,255,255,0.05);
  color: var(--texthi);
  opacity: 1;
}

/* Mobile buttons — full width */
@media(max-width: 480px) {
  .btn-primary, .btn-ghost {
    width: 100%;
    justify-content: center;
    padding: 1rem 1.5rem;
    min-height: 52px;
  }
}

/* ── INPUTS ── */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font-family: var(--outfit);
  font-size: 1rem;
  color: var(--texthi);
  outline: none;
  transition: border-color var(--trans);
  min-height: 52px;
}
input:focus, textarea:focus {
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.08);
}
input::placeholder, textarea::placeholder { color: var(--textmute); }
input[type="number"] { -moz-appearance: textfield; }
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; }

/* ── RANGE SLIDERS ── */
input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 5px;
  border-radius: 3px;
  background: rgba(255,255,255,0.1);
  outline: none;
  cursor: pointer;
  margin: 0.5rem 0;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  box-shadow: 0 0 0 4px rgba(240,165,0,0.18);
}
input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  border: none;
}

/* ── BADGES ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--textmid);
}

/* ── REVEAL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* ── FOOTER ── */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}

/* ── DIVIDER ── */
hr, .divider {
  height: 1px;
  background: var(--border);
  border: none;
  margin: 2rem 0;
}

/* ── UTILITY CLASSES ── */
.text-gold   { color: var(--gold); }
.text-hi     { color: var(--texthi); }
.text-mid    { color: var(--textmid); }
.text-dim    { color: var(--textdim); }
.text-center { text-align: center; }
.text-left   { text-align: left; }
.w-full      { width: 100%; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ── SECTION BACKGROUNDS — UNIFORM ── */
.bg-page  { background: var(--bg); }
.bg-alt   { background: var(--bg2); }
.bg-card  { background: var(--bg3); }

/* ── GLOBAL MOBILE ── */
@media(max-width: 768px) {
  html { font-size: 17px; }
  body { font-size: 1rem; }
  section { padding: 3.5rem 0; }
  .wrap, .container { padding: 0 1.25rem; }
  p, .lead, .sec-sub, .hero-sub { font-size: 1rem; max-width: 100%; }
  footer { padding: 3rem 0 1.5rem; }
}
@media(max-width: 480px) {
  html { font-size: 16px; }
  p, .lead, .sec-sub { font-size: 1rem; line-height: 1.85; }
  section { padding: 2.5rem 0; }
}

/* ── HAMBURGER JS HELPER ── */
body.menu-open { overflow: hidden; }
