@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root{
  --bg: #ffffff;
  --bg-alt: #f6f7fb;
  --panel: #ffffff;
  --panel-2: #f6f7fb;
  --line: #e5e8f0;
  --text: #1a2340;
  --muted: #667085;
  --navy: #223974;
  --navy-deep: #16274f;
  --navy-tint: #eaeefa;
  --live: #e62d2c;
  --live-tint: #fdecec;
  --live-dim: #f7c9c8;
  --amber: #c9711f;
  --amber-tint: #fbf0e3;
  --amber-dim: #f0d3ac;
  --mono-bg: #f6f7fb;
  --shadow: 0 1px 2px rgba(20,26,60,0.04), 0 1px 1px rgba(20,26,60,0.03);
  --shadow-hover: 0 10px 24px rgba(20,26,60,0.09), 0 2px 6px rgba(20,26,60,0.06);
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3{
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--navy);
}

code, .mono{
  font-family: 'IBM Plex Mono', monospace;
}

a{ color: var(--live); }

/* ---------- top bar ---------- */
.topbar{
  position: sticky; top:0; z-index: 50;
  background: var(--navy-deep);
  padding: 14px 24px;
  display:flex; align-items:center; justify-content:space-between;
  flex-wrap: wrap; gap: 10px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.brand{
  display:flex; align-items:center; gap:10px;
  text-decoration:none;
}
.brand .mark{
  width: 28px; height: 28px;
  object-fit: contain;
  flex-shrink:0;
}
.brand .wordmark{
  display:flex; flex-direction:column; line-height: 1.1;
}
.brand .wordmark b{
  font-family:'Space Grotesk', sans-serif;
  font-weight:700; font-size: 14.5px;
  color: #ffffff;
  letter-spacing: 0.01em;
}
.brand .wordmark span{
  font-family:'IBM Plex Mono', monospace;
  font-size: 10px;
  color: #a9b3d6;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav-pills{
  display:flex; gap:6px; flex-wrap: wrap;
}
.nav-pills a{
  text-decoration:none;
  color: #c3cbe6;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  transition: all .15s ease;
  white-space: nowrap;
}
.nav-pills a:hover, .nav-pills a.active{ color: #ffffff; border-color: var(--live); background: rgba(230,45,44,0.18); }

/* ---------- hero ---------- */
.hero{
  max-width: 880px;
  margin: 0 auto;
  padding: 64px 24px 40px;
}
.eyebrow{
  color: var(--live);
  font-family:'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
  display:flex; align-items:center; gap:8px;
}
.eyebrow::before{
  content:"";
  display:inline-block; width:6px; height:6px; border-radius:50%;
  background: var(--live);
}
.hero h1{
  font-size: 40px;
  line-height: 1.1;
  max-width: 640px;
}
.hero p.sub{
  color: var(--muted);
  font-size: 16px;
  max-width: 560px;
  margin-top: 16px;
}

/* ---------- breadcrumb ---------- */
.crumb{
  max-width: 880px;
  margin: 22px auto 0;
  padding: 0 24px;
  font-family:'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--muted);
}
.crumb a{ color: var(--muted); text-decoration:none; }
.crumb a:hover{ color: var(--live); }
.crumb span.sep{ margin: 0 6px; color: var(--line); }
.crumb span.here{ color: var(--navy); font-weight: 600; }

/* ---------- dock / link grid (signature element) ---------- */
.dock{
  max-width: 880px;
  margin: 28px auto 60px;
  padding: 0 24px;
}
.dock-label{
  font-family:'IBM Plex Mono', monospace;
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 10px;
  display:flex; justify-content: space-between;
  align-items:center;
}
.dock-label .badge{
  background: var(--navy-tint);
  border: 1px solid var(--line);
  padding: 3px 9px;
  border-radius: 5px;
  color: var(--navy);
}
.dock-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.dock-grid.cols-3{ grid-template-columns: repeat(3, 1fr); }
.dock-grid.cols-2{ grid-template-columns: repeat(2, 1fr); }
.slot{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 14px;
  text-decoration:none;
  color: var(--text);
  display:flex;
  flex-direction:column;
  gap: 10px;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
  position: relative;
  overflow:hidden;
  box-shadow: var(--shadow);
}
.slot:hover{ border-color: var(--live); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.slot .status{
  display:flex; align-items:center; gap:6px;
  font-family:'IBM Plex Mono', monospace;
  font-size: 10.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.slot .status .led{
  width:7px; height:7px; border-radius:50%;
  background: var(--line);
  border: 1px solid var(--line);
}
.slot:hover .status .led{
  background: var(--live);
  border-color: var(--live);
  box-shadow: 0 0 6px rgba(230,45,44,0.5);
}
.slot .platform{ font-weight: 700; font-size: 15px; color: var(--navy); }
.slot .aspect{ font-size: 11.5px; color: var(--muted); }
.slot .go{ font-size: 12px; color: var(--live); font-weight:600; margin-top:2px; }
.slot.disabled{ opacity: .55; pointer-events: none; }
.slot .soon{
  font-size: 10px; font-weight:700; letter-spacing:.05em; text-transform:uppercase;
  color: var(--amber); border:1px solid var(--amber-dim); background: var(--amber-tint);
  padding: 2px 7px; border-radius: 999px; align-self:flex-start;
}

/* ---------- sections ---------- */
.section{
  max-width: 880px;
  margin: 0 auto;
  padding: 56px 24px;
  border-top: 1px solid var(--line);
}
.section-head{
  display:flex; align-items:baseline; gap: 14px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.section-head .num{
  font-family:'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--live);
  border: 1px solid var(--live-dim);
  background: var(--live-tint);
  padding: 3px 9px;
  border-radius: 6px;
}
.section-head h2{ font-size: 26px; }
.section-head .tag{
  margin-left: auto;
  font-family:'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--navy);
  border: 1px solid var(--line);
  background: var(--navy-tint);
  padding: 3px 9px;
  border-radius: 999px;
}

.lead{ color: var(--muted); font-size: 15px; margin-bottom: 26px; max-width: 640px; }

/* step list */
.steps{ counter-reset: step; list-style:none; margin:0; padding:0; }
.steps li{
  counter-increment: step;
  position: relative;
  padding: 0 0 26px 44px;
  border-left: 1px solid var(--line);
  margin-left: 14px;
}
.steps li:last-child{ border-left-color: transparent; padding-bottom: 2px;}
.steps li::before{
  content: counter(step);
  position:absolute;
  left: -15px; top: -2px;
  width: 28px; height:28px;
  background: var(--panel);
  border: 2px solid var(--live);
  border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  font-family:'IBM Plex Mono', monospace;
  font-size: 12.5px;
  font-weight:600;
  color: var(--live);
}
.steps li .step-title{ font-weight: 600; margin-bottom: 4px; color: var(--navy); }
.steps li .step-body{ color: var(--muted); font-size: 14.5px; }
.steps li .step-body code{ color: var(--text); background: var(--mono-bg); padding: 1px 5px; border-radius: 4px; }
.steps li .step-body ol.substeps{ margin: 8px 0 0 0; padding-left: 18px; }
.steps li .step-body ol.substeps li{ margin-bottom: 6px; }
.steps li .step-img{
  display:block; max-width:100%; margin: 12px 0 4px;
  border: 1px solid var(--line); border-radius: 8px;
  box-shadow: var(--shadow);
}

/* toggle tabs */
.toggle{
  display:inline-flex;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 3px;
  margin-bottom: 24px;
}
.toggle button{
  font-family:'Inter', sans-serif;
  font-weight:600;
  font-size: 13px;
  color: var(--muted);
  background: none;
  border: none;
  padding: 7px 16px;
  border-radius: 6px;
  cursor: pointer;
}
.toggle button.active{
  background: var(--live);
  color: #fff;
}
.os-panel{ display:none; }
.os-panel.active{ display:block; }

/* callouts */
.callout{
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 14px;
  margin: 20px 0;
  border: 1px solid;
  display:flex; gap: 12px;
}
.callout .icon{ font-family:'IBM Plex Mono',monospace; font-weight:700; flex-shrink:0; }
.callout.warn{
  background: var(--amber-tint);
  border-color: var(--amber-dim);
  color: #7a4813;
}
.callout.warn .icon{ color: var(--amber); }
.callout.info{
  background: var(--live-tint);
  border-color: var(--live-dim);
  color: #9c1f1e;
}
.callout.info .icon{ color: var(--live); }
.callout.note{
  background: var(--navy-tint);
  border-color: #c7d1ef;
  color: var(--navy);
}
.callout.note .icon{ color: var(--navy); }
.callout.danger{
  background: #fde2e1;
  border-color: var(--live);
  color: #8f1917;
}
.callout.danger .icon{ color: var(--live); }
.callout strong{ color: inherit; }

/* keyval box */
.keyval{
  background: var(--mono-bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  margin: 10px 0;
  font-family:'IBM Plex Mono', monospace;
  font-size: 13px;
}
.keyval .k{ color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 3px;}
.keyval .v{ color: var(--text); }

.req-table, .data-table{
  width:100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 13.5px;
}
.req-table th, .req-table td, .data-table th, .data-table td{
  text-align:left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.req-table th, .data-table th{
  color: var(--navy);
  font-weight: 600;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--bg-alt);
}
.data-table tbody tr:nth-child(even){ background: var(--bg-alt); }

.back-to-dock{
  display:inline-block;
  margin-top: 30px;
  font-size: 12.5px;
  color: var(--muted);
  text-decoration:none;
  border-bottom: 1px dotted var(--line);
}
.back-to-dock:hover{ color: var(--live); border-color: var(--live); }

/* ---------- card grid (hub pages) ---------- */
.card-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.card-grid.cols-2{ grid-template-columns: repeat(2, 1fr); }
.link-card{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 20px;
  text-decoration: none;
  color: var(--text);
  display:flex; flex-direction:column; gap:8px;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
  box-shadow: var(--shadow);
}
.link-card:hover{ border-color: var(--live); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.link-card .card-eyebrow{
  font-family:'IBM Plex Mono', monospace; font-size: 10.5px; color: var(--live);
  text-transform: uppercase; letter-spacing: .06em; font-weight: 600;
}
.link-card h3{ font-size: 17px; }
.link-card p{ color: var(--muted); font-size: 13.5px; margin:0; line-height:1.5; }
.link-card .go{ font-size: 12px; color: var(--live); font-weight:600; margin-top:auto; padding-top:6px; }
.link-card.placeholder{ opacity: .7; box-shadow:none; }
.link-card.placeholder:hover{ border-color: var(--line); transform:none; box-shadow:none; }

.section-intro{ color: var(--muted); font-size: 15px; max-width: 640px; margin: -6px 0 30px; }

/* ---------- FAQ accordion ---------- */
.faq-group{ margin-bottom: 8px; }
.faq-item{
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.faq-item summary{
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: var(--navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.faq-item summary::-webkit-details-marker{ display: none; }
.faq-item summary::after{
  content: "+";
  color: var(--live);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 16px;
  flex-shrink: 0;
}
.faq-item[open] summary::after{ content: "\2212"; }
.faq-item .answer{
  color: var(--muted);
  font-size: 14.5px;
  margin-top: 12px;
  line-height: 1.7;
  max-width: 700px;
}
.faq-item .answer a{ color: var(--live); }
.faq-item .answer p{ margin: 0 0 10px; }
.faq-item .answer p:last-child{ margin-bottom: 0; }

/* ---------- policy / legal document body ---------- */
.legal h2{ font-size: 20px; margin: 40px 0 12px; color: var(--navy); }
.legal h2:first-child{ margin-top: 0; }
.legal h3{ font-size: 16px; margin: 26px 0 10px; color: var(--navy); }
.legal p{ color: var(--muted); font-size: 14.5px; margin: 0 0 14px; max-width: 720px; }
.legal ul, .legal ol{ color: var(--muted); font-size: 14.5px; padding-left: 22px; margin: 0 0 16px; max-width: 700px; line-height: 1.75;}
.legal li{ margin-bottom: 4px; }
.legal strong{ color: var(--text); }
.legal a{ color: var(--live); }
.legal .updated{
  font-family:'IBM Plex Mono', monospace; font-size: 11.5px; color: var(--muted);
  margin-bottom: 30px; display:inline-block; border:1px solid var(--line); padding: 4px 10px; border-radius:6px;
  background: var(--bg-alt);
}
.legal hr{ border:none; border-top:1px solid var(--line); margin: 26px 0; }

footer{
  background: var(--navy-deep);
  margin-top: 20px;
}
footer .footer-inner{
  max-width: 880px;
  margin: 0 auto;
  padding: 40px 24px 60px;
  color: #a9b3d6;
  font-size: 13.5px;
}
footer a{ color: #a9b3d6; }
footer .footer-links{
  display:flex; gap:16px; flex-wrap:wrap; margin-top:14px;
}
footer .footer-links a{ color: #a9b3d6; text-decoration:none; font-size:13px; }
footer .footer-links a:hover{ color: #ffffff; }

/* ---------- blog / post content ---------- */
.post-meta{
  display:flex; gap:14px; flex-wrap:wrap; align-items:center;
  font-family:'IBM Plex Mono', monospace; font-size: 12px; color: var(--muted);
  margin-top: 10px;
}
.post-meta .cat{
  color: var(--live); border: 1px solid var(--live-dim); background: var(--live-tint);
  padding: 2px 9px; border-radius: 999px; font-weight:600;
}
.post-cover{
  width:100%; max-height: 380px; object-fit: cover;
  border-radius: 12px; border:1px solid var(--line); margin: 26px 0; box-shadow: var(--shadow);
}
.post-content{ color: var(--text); font-size: 15.5px; line-height: 1.75; max-width: 720px; }
.post-content h2{ font-size: 22px; margin: 34px 0 12px; color: var(--navy); }
.post-content h3{ font-size: 18px; margin: 26px 0 10px; color: var(--navy); }
.post-content p{ margin: 0 0 16px; color: var(--text); }
.post-content ul, .post-content ol{ margin: 0 0 16px; padding-left: 22px; color: var(--text); }
.post-content li{ margin-bottom: 6px; }
.post-content a{ color: var(--live); }
.post-content img{ max-width:100%; border-radius: 8px; border:1px solid var(--line); margin: 14px 0; }
.post-content blockquote{
  margin: 18px 0; padding: 4px 18px; border-left: 3px solid var(--live);
  color: var(--muted); font-style: italic;
}
.post-content code{ background: var(--mono-bg); padding: 1px 6px; border-radius: 4px; font-size: 13.5px; }
.post-content pre{ background: var(--mono-bg); padding: 14px 16px; border-radius: 8px; overflow-x:auto; border:1px solid var(--line); }
.post-content pre code{ background:none; padding:0; }

.post-card{
  background: var(--panel); border:1px solid var(--line); border-radius: 12px;
  overflow:hidden; text-decoration:none; color: var(--text); display:flex; flex-direction:column;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
  box-shadow: var(--shadow);
}
.post-card:hover{ border-color: var(--live); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.post-card .post-card-img{ width:100%; height:150px; object-fit:cover; background: var(--bg-alt); }
.post-card .post-card-body{ padding: 16px 18px 20px; display:flex; flex-direction:column; gap:8px; flex:1; }
.post-card h3{ font-size: 16px; line-height:1.3; }
.post-card p{ color: var(--muted); font-size: 13px; margin:0; line-height:1.5; }
.post-card .post-meta{ margin-top:auto; padding-top:8px; font-size:11px; }

.filter-bar{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom: 30px; }
.filter-bar button{
  font-family:'IBM Plex Mono', monospace; font-size: 12px; font-weight:600;
  color: var(--muted); background: var(--panel); border: 1px solid var(--line);
  padding: 7px 14px; border-radius: 999px; cursor:pointer; transition: all .15s ease;
}
.filter-bar button:hover{ border-color: var(--live); color: var(--live); }
.filter-bar button.active{ background: var(--live); border-color: var(--live); color: #fff; }

.blog-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 640px){ .blog-grid{ grid-template-columns: 1fr; } }

/* ---------- tip cards + lightbox ---------- */
.tip-grid{
  display:grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 10px 0 6px;
}
@media (max-width: 640px){ .tip-grid{ grid-template-columns: 1fr; } }
.tip-card{
  background: var(--panel); border:1px solid var(--line); border-radius: 12px;
  overflow:hidden; cursor: pointer; text-align:left;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
  box-shadow: var(--shadow); padding:0; display:flex; flex-direction:column; font-family:inherit;
}
.tip-card:hover{ border-color: var(--live); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.tip-card img{ width:100%; height:150px; object-fit:cover; object-position: top; display:block; background: var(--bg-alt); }
.tip-card .tip-body{ padding: 14px 16px 16px; }
.tip-card h4{ font-family:'Space Grotesk', sans-serif; font-size:15px; color:var(--navy); margin:0 0 6px; }
.tip-card p{ color:var(--muted); font-size:13px; margin:0; line-height:1.5; }

.lightbox-overlay{
  display:none; position: fixed; inset:0; background: rgba(15,20,40,0.82);
  z-index: 200; align-items:center; justify-content:center; padding: 30px;
  cursor: zoom-out;
}
.lightbox-overlay.open{ display:flex; }
.lightbox-overlay img{
  max-width: 100%; max-height: 90vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-close{
  position: absolute; top: 22px; right: 28px; color:#fff; font-size: 32px; line-height:1;
  cursor:pointer; font-family: sans-serif; opacity:0.85;
}
.lightbox-close:hover{ opacity:1; }

@media (max-width: 640px){
  .dock-grid, .dock-grid.cols-3, .dock-grid.cols-2{ grid-template-columns: repeat(2, 1fr); }
  .card-grid, .card-grid.cols-2{ grid-template-columns: 1fr; }
  .hero h1{ font-size: 30px; }
  .nav-pills{ display:none; }
}
