:root{
  --bg:#060504;
  --bg2:#15100b;
  --line:rgba(218,170,82,.22);
  --line-strong:rgba(240,198,106,.62);
  --gold:#d9aa52;
  --gold2:#f0c66a;
  --cream:#f4ead9;
  --muted:#a99b84;
}

*{box-sizing:border-box}

html,
body{
  margin:0;
  min-height:100%;
  background:
    radial-gradient(circle at 16% 4%, rgba(92,43,20,.45), transparent 30%),
    radial-gradient(circle at 86% 12%, rgba(217,170,82,.14), transparent 26%),
    linear-gradient(135deg,var(--bg2),var(--bg) 68%);
  color:var(--cream);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

body{
  min-height:100dvh;
  -webkit-tap-highlight-color:transparent;
}

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

.dock-shell{
  width:min(100%,1600px);
  min-height:100dvh;
  margin:0 auto;
  padding:14px max(16px, env(safe-area-inset-right)) 18px max(16px, env(safe-area-inset-left));
  display:grid;
  grid-template-rows:auto 1fr;
  gap:14px;
}

.status-strip{
  min-height:40px;
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.1em;
  font-size:12px;
}

.brand-mark,
.utility-link{
  color:var(--gold2);
}

.brand-mark{
  margin-right:auto;
  font-weight:900;
  letter-spacing:.24em;
}

.dock-kicker{
  color:var(--cream);
  font-size:13px;
  font-weight:800;
}

.utility-link{
  min-height:30px;
  border:1px solid rgba(240,198,106,.34);
  border-radius:999px;
  background:rgba(0,0,0,.24);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 12px;
  white-space:nowrap;
  font-size:10px;
  font-weight:900;
  box-shadow:0 8px 18px rgba(0,0,0,.18);
  transition:border-color .14s ease, background .14s ease, transform .14s ease;
}

.utility-link:hover{
  transform:translateY(-1px);
  border-color:rgba(240,198,106,.62);
  background:rgba(217,170,82,.1);
}

.dock-panel{
  min-height:0;
  border:1px solid var(--line);
  border-radius:10px;
  background:
    linear-gradient(145deg,rgba(255,255,255,.045),rgba(255,255,255,.018)),
    rgba(0,0,0,.18);
  padding:14px;
  box-shadow:0 18px 42px rgba(0,0,0,.24);
}

.section-heading{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin-bottom:14px;
  border-bottom:1px solid rgba(218,170,82,.18);
  padding-bottom:12px;
}

.section-heading h1,
.section-heading p,
.group-heading h2,
.group-heading p{
  margin:0;
}

.section-heading h1{
  color:var(--gold2);
  text-transform:uppercase;
  letter-spacing:.14em;
  font-size:clamp(18px,2vw,28px);
  font-weight:900;
}

.section-heading p{
  color:var(--muted);
  text-align:right;
  text-transform:uppercase;
  letter-spacing:.1em;
  font-size:10px;
  font-weight:900;
}

.launch-dock-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}

.launcher-group{
  min-width:0;
  border:1px solid rgba(218,170,82,.18);
  border-radius:10px;
  background:rgba(0,0,0,.18);
  padding:12px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 12px 26px rgba(0,0,0,.18);
}

.launcher-group--featured{
  grid-column:span 2;
}

.group-heading{
  min-height:44px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}

.group-heading h2{
  color:var(--gold2);
  text-transform:uppercase;
  letter-spacing:.13em;
  font-size:13px;
  font-weight:900;
}

.group-heading p{
  margin-top:5px;
  color:var(--muted);
  font-size:13px;
  line-height:1.35;
}

.launcher-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px;
}

.launcher-group--featured .launcher-list{
  grid-template-columns:repeat(3,minmax(0,1fr));
}

.launcher-card{
  position:relative;
  min-width:0;
  min-height:92px;
  border:1px solid rgba(218,170,82,.2);
  border-radius:8px;
  background:
    radial-gradient(circle at 14% 0%, rgba(240,198,106,.1), transparent 42%),
    linear-gradient(145deg,rgba(255,255,255,.065),rgba(255,255,255,.024)),
    rgba(0,0,0,.22);
  color:var(--cream);
  padding:11px;
  display:grid;
  grid-template-columns:1fr auto;
  grid-template-rows:auto auto 1fr auto;
  gap:5px 10px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06);
  transition:transform .14s ease, border-color .14s ease, background .14s ease, box-shadow .14s ease;
}

.launcher-card:hover{
  transform:translateY(-1px);
  border-color:rgba(240,198,106,.5);
  background:
    radial-gradient(circle at 14% 0%, rgba(240,198,106,.16), transparent 42%),
    linear-gradient(145deg,rgba(255,255,255,.08),rgba(255,255,255,.03)),
    rgba(0,0,0,.24);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.09),
    0 16px 30px rgba(0,0,0,.24);
}

.launcher-card--featured{
  min-height:154px;
  padding:14px;
  grid-template-columns:1fr;
  grid-template-rows:auto 1fr auto auto 34px;
  gap:9px;
}

.launcher-pill{
  justify-self:start;
  border:1px solid rgba(240,198,106,.25);
  border-radius:999px;
  padding:5px 8px;
  background:rgba(217,170,82,.08);
  color:var(--gold2);
  text-transform:uppercase;
  letter-spacing:.08em;
  font-size:9px;
  font-weight:900;
}

.launcher-card strong{
  grid-column:1 / -1;
  color:var(--cream);
  font-size:17px;
  line-height:1.1;
  overflow-wrap:anywhere;
}

.launcher-card--featured strong{
  align-self:end;
  font-size:clamp(24px,2.4vw,38px);
  line-height:.98;
}

.launcher-note{
  grid-column:1 / -1;
  color:var(--muted);
  font-size:13px;
  line-height:1.3;
}

.launcher-card code{
  grid-column:1 / -1;
  color:rgba(244,234,217,.72);
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:11px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.launcher-action{
  align-self:end;
  justify-self:start;
  border:1px solid rgba(240,198,106,.38);
  border-radius:999px;
  background:rgba(217,170,82,.09);
  color:var(--gold2);
  text-transform:uppercase;
  letter-spacing:.1em;
  font-size:9px;
  font-weight:900;
  padding:6px 8px;
}

.launcher-card--featured .launcher-action{
  justify-self:stretch;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:6px;
  min-height:32px;
}

.launcher-card.is-disabled{
  cursor:default;
  color:rgba(244,234,217,.7);
  border-style:dashed;
  background:rgba(0,0,0,.16);
}

.launcher-card.is-disabled:hover{
  transform:none;
  border-color:rgba(218,170,82,.2);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06);
}

@media (max-width:1180px){
  .launch-dock-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .launcher-group--featured{
    grid-column:1 / -1;
  }
}

@media (max-width:820px){
  .status-strip{
    flex-wrap:wrap;
  }

  .brand-mark{
    flex-basis:100%;
  }

  .launch-dock-grid{
    grid-template-columns:1fr;
  }

  .launcher-list,
  .launcher-group--featured .launcher-list{
    grid-template-columns:1fr;
  }

  .launcher-card--featured{
    min-height:132px;
  }
}

@media (max-width:560px){
  .dock-shell{
    padding-inline:max(12px, env(safe-area-inset-left));
  }

  .section-heading{
    align-items:flex-start;
    flex-direction:column;
  }

  .section-heading p{
    text-align:left;
  }

  .dock-kicker{
    flex-basis:100%;
  }
}
