:root{
  --bg: #0b0f17;
  --panel: rgba(255,255,255,0.06);
  --panel2: rgba(255,255,255,0.09);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.68);
  --border: rgba(255,255,255,0.10);
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
  --radius: 18px;
  --radius-sm: 14px;
  --gap: 14px;
}

*{ box-sizing: border-box; }
html,body{ height: 100%; }

html{
  background:
    radial-gradient(1200px 800px at 20% 0%, rgba(126,87,194,0.18), transparent 55%),
    radial-gradient(1200px 800px at 80% 0%, rgba(33,150,243,0.12), transparent 55%),
    var(--bg);
}

body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: transparent;
  color: var(--text);
}

a{ color: inherit; text-decoration: none; }
code{
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 8px;
}

/* Shared page width */
.container,
.topbar-inner{
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px;
}

/* Topbar */
.topbar{
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(24px);
  background: rgba(11,15,23,0.55);
  border-bottom: 1px solid var(--border);
}

.topbar-inner{
  padding: 14px 18px; /* overides the 18px from the shared rule above */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

/* Brand */
.brand{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo{
  height: 72px;
  width: auto;
  display: block;
  flex: 0 0 auto;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.35));
}

.brand-text{ min-width: 0; }

.brand-title{
  font-weight: 750;
  font-size:20px;
  letter-spacing: 0.2px;
  line-height: 1.1;
}

.brand-subtitle{
  color: var(--muted);
  font-size: 16px;
  margin-top: 2px;
  line-height: 1.1;
}

.brand:focus-visible{
  outline: 2px solid rgba(255,255,255,0.35);
  outline-offset: 6px;
  border-radius: 12px;
}

/* Controls (kept, in case you add them back) */
.controls{
  display: flex;
  gap: 10px;
  align-items: end;
}
.control{ display:flex; flex-direction: column; gap: 6px; }
.control-label{ font-size: 12px; color: var(--muted); }
.select{
  min-width: 120px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
  outline: none;
}
.btn{
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.08);
  color: var(--text);
  cursor: pointer;
}
.btn:hover{ background: rgba(255,255,255,0.11); }

/* Main UI */
.hero{
  margin-top: 14px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  box-shadow: var(--shadow);
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}

h1{ margin: 0; font-size: 18px; }
.muted{ color: var(--muted); }

.pill-row{ display:flex; gap: 8px; flex-wrap: wrap; }
.pill{
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  font-size: 12px;
}

.grid{
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
}

.card{
  grid-column: span 6;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-inner{ padding: 16px; }
.card-title{
  font-weight: 720;
  margin: 0 0 8px 0;
  font-size: 16px;
  letter-spacing: 0.2px;
}
.card-body{ color: var(--muted); font-size: 14px; line-height: 1.5; }
.card ul{ margin: 10px 0 0 18px; padding: 0; }
.card li{ margin: 4px 0; color: var(--text); }

.badge{
  display:inline-block;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.07);
  margin-top: 10px;
}

.footer{
  margin-top: 18px;
  padding: 16px 0 calc(30px + env(safe-area-inset-bottom));
  font-size: 10px;
}

/* Responsive */
@media (max-width: 900px){
  /* Cards go full width */
  .card{ grid-column: span 12; }

  /* Make the topbar stack nicely */
  .topbar-inner{
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  /* Bigger logo is fine, but don’t let it dominate */
  .brand-logo{ height: 56px; }

  /* Buttons become a full-width row */
  .controls{
    width: 100%;
    display: flex;
    gap: 10px;
  }

  .btn{
    flex: 1;            /* each button takes equal space */
    min-height: 44px;   /* good finger target */
  }

  /* Hero section stacks */
  .hero{
    flex-direction: column;
    gap: 14px;
  }

  h1{ font-size: 20px; }
}