:root{
  --bg: #0d0d0d;
  --text: #f5f5f5;
  --text-dim: #7a7a7a;
  --text-faint: #585858;
  --surface: #282828;
  --accent: #ffd300;
}
*{ box-sizing: border-box; margin: 0; padding: 0; }
html, body{ height: 100%; }
body{
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}
.mono{ font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* ---- cross-page navigation transition ---- */
@view-transition{
  navigation: auto;
}
::view-transition-old(root){
  animation: 220ms cubic-bezier(.4,0,.2,1) both vt-fade-out;
}
::view-transition-new(root){
  animation: 340ms cubic-bezier(.2,0,.2,1) both vt-fade-in;
}
@keyframes vt-fade-out{
  to{ opacity: 0; transform: scale(0.985); }
}
@keyframes vt-fade-in{
  from{ opacity: 0; transform: scale(1.015); }
}

/* ---- blueprint frame + telemetry marks ---- */
.frame{
  position: fixed;
  inset: 18px;
  z-index: 1;
  border: 1px solid rgba(255,255,255,0.08);
  pointer-events: none;
}
.frame .corner{ position: absolute; width: 16px; height: 16px; opacity: 0.55; }
.frame .corner.tl{ top: -1px; left: -1px; border-top: 1px solid var(--accent); border-left: 1px solid var(--accent); }
.frame .corner.tr{ top: -1px; right: -1px; border-top: 1px solid var(--accent); border-right: 1px solid var(--accent); }
.frame .corner.bl{ bottom: -1px; left: -1px; border-bottom: 1px solid var(--accent); border-left: 1px solid var(--accent); }
.frame .corner.br{ bottom: -1px; right: -1px; border-bottom: 1px solid var(--accent); border-right: 1px solid var(--accent); }

.telemetry-marks{ position: fixed; inset: 0; z-index: 1; pointer-events: none; color: var(--text-faint); }
.telemetry-marks .tmark{ position: absolute; opacity: 0.6; }
.telemetry-marks svg{ display: block; }
.telemetry-marks .label{
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.telemetry-marks .dim-label{
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.03em;
  margin-top: 3px;
  text-align: center;
}

/* ---- header ---- */
header{
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 40px;
}
.logo{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
}
.logo .mark{
  display: block;
  height: 26px;
  width: auto;
  flex-shrink: 0;
  view-transition-name: logo-mark;
}
.logo .chip{
  background: var(--accent);
  color: var(--bg);
  font-weight: 800;
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.02em;
  padding: 2px 7px 3px;
  margin-left: 2px;
  transform: skewX(-10deg);
  display: inline-block;
}
.logo .chip span{ display: inline-block; transform: skewX(10deg); }

/* ---- outline button ---- */
.btn-outline{
  display: inline-block;
  padding: 12px 30px;
  border: 1px solid var(--accent);
  color: var(--text);
  background: transparent;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.btn-outline:hover{ background: var(--accent); color: var(--bg); }

.btn-solid{
  display: inline-block;
  padding: 12px 30px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--bg);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.btn-solid:hover{ opacity: 0.85; }

.btn-row{ display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ---- footer ---- */
footer{
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  padding: 24px 40px 32px;
  font-size: 11px;
  color: var(--text-faint);
}

@media (max-width: 640px){
  header{ padding: 24px 22px; }
  footer{ padding: 18px 22px 26px; flex-direction: column; gap: 6px; }
  .frame{ inset: 10px; }
  .telemetry-marks{ display: none; }
}
