/* League of Tiny Robots — single-file theme (Color C: black / gunmetal / red) */

:root{
  --bg: #07090c;
  --panel: #0e1218;
  --panel-2: #0b0f15;
  --text: #e6e9ee;
  --muted: #a7b0bd;
  --line: #1b2430;
  --accent: #e11d2e;
  --accent-2: #ff3b4d;
  --silver: #c7cdd6;
  --shadow: 0 10px 30px rgba(0,0,0,.45);
  --radius: 16px;
  --radius-sm: 12px;
  --max: 1100px;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background:
    radial-gradient(1200px 700px at 20% 0%, rgba(225,29,46,.10), transparent 60%),
    radial-gradient(900px 500px at 100% 10%, rgba(255,59,77,.06), transparent 65%),
    linear-gradient(180deg, var(--bg), #05070a 60%, #040608);
  color: var(--text);
  line-height: 1.5;
}

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; }

.container{ width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

header{
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(7,9,12,.75);
  border-bottom: 1px solid var(--line);
}

.topbar{
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 0;
}

.brand{
  display: flex; align-items: center; gap: 12px; min-width: 240px;
}

.brand a{
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;

}

.brand-mark{
  width: 106px;
  height: 106px;
}

.brand-mark img{
  width: 100%;
  height: 100%;
  display: block;
}

.brand strong{
  font-size: 36px;
  letter-spacing: .04em;
}

.nav{
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end;
}
.nav a{
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: .01em;
}
.nav a:hover{
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: var(--text);
  text-decoration: none;
}
.nav a[aria-current="page"]{
  border-color: rgba(225,29,46,.40);
  background: rgba(225,29,46,.10);
  color: var(--text);
}

.hero{ padding: 32px 0 30px; }

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

.grid{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  padding: 12px 0 10px;
}
.col-8{ grid-column: span 8; }
.col-4{ grid-column: span 4; }
.col-6{ grid-column: span 6; }
.col-12{ grid-column: span 12; }
@media (max-width: 900px){
  .col-8, .col-4, .col-6{ grid-column: span 12; }
  .brand{ min-width: auto; }
}

h1{ margin: 0 0 10px; font-size: clamp(28px, 3.4vw, 40px); letter-spacing: .02em; }
h2{
  margin: 18px 0 8px;
  font-size: 16px;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--silver);
}
h3{ margin: 14px 0 6px; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--silver); }
.lede{ margin: 0 0 10px; color: var(--muted); font-size: 15px; max-width: 90ch; }
.small{ color: var(--muted); font-size: 13px; }

.table{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
}
.table th, .table td{
  padding: 12px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  vertical-align: top;
}
.table th{
  text-align: left;
  color: var(--silver);
  font-size: 12px;
  letter-spacing: .10em;
  text-transform: uppercase;
  background: rgba(255,255,255,.03);
}
.table tr:last-child td{ border-bottom: none; }

.badge{
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
}
.badge.red{
  border-color: rgba(225,29,46,.55);
  background: rgba(225,29,46,.14);
}
hr.sep{ border:none; border-top:1px solid var(--line); margin:16px 0; }

.footer{
  border-top: 1px solid var(--line);
  padding: 26px 0 34px;
  color: var(--muted);
  font-size: 13px;
}

.nav-root{
  display:flex;
  gap:14px;
  list-style:none;
  margin:0;
  padding:0;
}

.nav-item{ position:relative; }

.nav-label{
  display:inline-block;
  padding:10px 12px;
  border-radius:12px;
  color: var(--silver);
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  font-size:12px;
  cursor: default;
}

.nav-sub{
  position:absolute;
  top: 100%;
  left:0;
  min-width: 220px;
  padding: 8px;
  list-style:none;
  margin:0;
  border-radius:14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(14,18,24,.98), rgba(11,15,21,.98));
  box-shadow: var(--shadow);

  opacity:0;
  transform: translateY(-6px);
  pointer-events:none;
  transition: opacity .15s ease, transform .15s ease;
}

.nav-sub a{
  display:block;
  padding:10px 12px;
  border-radius:10px;
  color: var(--muted);
  font-weight:600;
}

.nav-sub a:hover{
  background: rgba(255,255,255,.04);
  color: var(--text);
  text-decoration:none;
}

.nav-sub a[aria-current="page"]{
  background: rgba(225,29,46,.14);
  border: 1px solid rgba(225,29,46,.45);
  color: var(--text);
}

.nav-item:hover .nav-sub,
.nav-item:focus-within .nav-sub{
  opacity:1;
  transform: translateY(0);
  pointer-events:auto;
}

.hero-logo{
  display: flex;
  align-items: center;   /* vertical alignment */
  gap: 16px;
}

.hero-logo img{
  width: 50%; 
  height: auto;
  display: block;
}

/* =========================
   RESPONSIVE REFINEMENTS
   (non-destructive)
   ========================= */

/* ---------- <= 1100px ---------- */
@media (max-width: 1100px){

  .brand-mark{
    width: 88px;
    height: 88px;
  }

  .brand strong{
    font-size: 30px;
  }

  .container{
    width: min(var(--max), calc(100% - 32px));
  }
}

/* ---------- <= 900px ---------- */
@media (max-width: 900px){

  /* Header stays horizontal, just tighter */
  .topbar{
    gap: 12px;
  }

  .brand{
    min-width: unset;
  }

  .brand-mark{
    width: 72px;
    height: 72px;
  }

  .brand strong{
    font-size: 24px;
  }

  /* Nav still horizontal, but wraps more cleanly */
  .nav-root{
    gap: 8px;
  }

  .nav-label{
    padding: 8px 10px;
    font-size: 11px;
  }

  .nav-sub{
    min-width: 200px;
  }

  /* Hero layout unchanged, logo slightly smaller */
  .hero-logo img{
    width: 160px;
  }

  /* Tables: allow scroll if needed, but don’t force it */
  .table{
    overflow-x: auto;
  }
}

/* ---------- <= 700px ---------- */
@media (max-width: 700px){

  /* Container breathes a bit more */
  .container{
    width: calc(100% - 24px);
  }

  /* Header still horizontal, but can wrap */
  .topbar{
    flex-wrap: wrap;
  }

  .brand{
    flex: 1 1 auto;
  }

  /* Logo + text remain inline, just smaller */
  .brand-mark{
    width: 60px;
    height: 60px;
  }

  .brand strong{
    font-size: 20px;
  }

  /* Nav stays dropdown-based, but touch-friendly */
  .nav-label{
    padding: 10px 12px;
  }

  .nav-sub a{
    padding: 12px 14px;
  }

  /* Hero logo scales down but layout remains */
  .hero-logo img{
    width: 140px;
  }

  /* Cards slightly tighter */
  .card{
    padding: 16px;
  }

  h1{
    font-size: 26px;
  }
}