:root {
  color-scheme: dark;
  --bg: #0d1117;
  --panel: #121821;
  --panel-strong: #171f2a;
  --line: #263241;
  --line-soft: rgba(255, 255, 255, 0.08);
  --text: #f4f7fb;
  --muted: #9aa6b2;
  --muted-strong: #c3ccd6;
  --green: #2ee887;
  --blue: #6aa6ff;
  --amber: #f3b35f;
  --orange: #ff7847;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(180deg, rgba(23, 31, 42, 0.78) 0, rgba(13, 17, 23, 0) 320px),
    var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 0;
  z-index: 20;
  transform: translateY(-110%);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--text);
  color: var(--bg);
  padding: 10px 12px;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(13, 17, 23, 0.9);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(46, 232, 135, 0.35);
  border-radius: 8px;
  background: #123024;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.brand-text {
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding-block: 8px;
}

.nav a {
  border-radius: 6px;
  padding: 9px 11px;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.nav a:hover,
.nav a:focus-visible {
  background: var(--panel-strong);
  color: var(--text);
  outline: none;
}

.intro {
  min-height: 270px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: end;
  gap: 34px;
  padding-block: 52px 42px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: 64px;
  line-height: 1;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h2 {
  margin-bottom: 0;
  font-size: 34px;
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: 0;
}

.lead {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted-strong);
  font-size: 20px;
  overflow-wrap: anywhere;
}

.status-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.status-panel > div {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(18, 24, 33, 0.72);
  padding: 18px;
}

.metric {
  display: block;
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
}

.metric-label {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.apps-band {
  padding-block: 28px 48px;
  border-block: 1px solid var(--line-soft);
  background: rgba(7, 10, 15, 0.28);
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

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

.app-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.app-card-primary {
  border-color: rgba(46, 232, 135, 0.22);
}

.preview-link {
  display: block;
  height: 164px;
  overflow: hidden;
  background: #080c12;
}

.preview-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  transform: scale(1.01);
  transition: transform 180ms ease, opacity 180ms ease;
}

.preview-link:hover img,
.preview-link:focus-visible img {
  opacity: 0.86;
  transform: scale(1.04);
}

.app-body {
  padding: 16px;
}

.app-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.status,
.quick-open {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 6px;
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 800;
}

.status-live {
  background: rgba(46, 232, 135, 0.13);
  color: var(--green);
}

.status-beta {
  background: rgba(106, 166, 255, 0.13);
  color: var(--blue);
}

.status-staging {
  background: rgba(243, 179, 95, 0.14);
  color: var(--amber);
}

.quick-open {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
}

.quick-open:hover,
.quick-open:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  outline: none;
}

.app-body p {
  min-height: 56px;
  margin-bottom: 16px;
  color: var(--muted-strong);
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-strong);
  color: var(--text);
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.button:hover,
.button:focus-visible {
  border-color: rgba(255, 255, 255, 0.32);
  background: #202a37;
  outline: none;
}

.button-primary {
  border-color: rgba(46, 232, 135, 0.3);
  background: var(--green);
  color: #06130d;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #78f4b2;
}

.workbench {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 28px;
  padding-block: 58px;
}

.workbench-copy p:last-child {
  max-width: 520px;
  margin-top: 16px;
  margin-bottom: 0;
  color: var(--muted-strong);
}

.task-list {
  display: grid;
  gap: 10px;
}

.task {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(18, 24, 33, 0.68);
  padding: 16px;
}

.task span {
  color: var(--orange);
  font-weight: 800;
}

.task p {
  margin-bottom: 0;
  color: var(--muted-strong);
}

.footer {
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
}

.footer-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  font-weight: 650;
}

@media (max-width: 980px) {
  .intro,
  .workbench {
    grid-template-columns: 1fr;
  }

  .intro {
    min-height: 0;
    padding-block: 46px 36px;
  }

  h1 {
    font-size: 50px;
  }

  .app-grid {
    grid-template-columns: 1fr;
  }

  .app-card {
    display: grid;
    grid-template-columns: 320px 1fr;
  }

  .preview-link {
    height: auto;
    min-height: 220px;
  }

  .app-body p {
    min-height: 0;
  }
}

@media (max-width: 680px) {
  .shell {
    width: calc(100% - 28px);
    max-width: 1180px;
  }

  .header-inner {
    min-height: 68px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding-block: 10px;
  }

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

  .brand-text {
    white-space: normal;
  }

  .nav {
    width: 100%;
  }

  .intro {
    padding-block: 40px 32px;
  }

  .intro-copy,
  .section-head > div,
  .workbench-copy {
    max-width: 340px;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 26px;
  }

  h3 {
    font-size: 22px;
  }

  .lead {
    font-size: 17px;
  }

  .section-head {
    margin-bottom: 16px;
  }

  .app-card {
    display: block;
  }

  .preview-link {
    height: 190px;
    min-height: 0;
  }

  .app-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .workbench {
    padding-block: 44px;
  }

  .task {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}
