/* nexora-demo */
:root {
  color-scheme: light;
  --canvas: #f6f6ef;
  --surface: #ffffff;
  --ink: #182a28;
  --muted: #526661;
  --line: #dce5dd;
  --forest-deep: #112421;
  --green: #176451;
  --green-hover: #104e40;
  --mint: #e3f2e9;
  --amber: #805015;
  --ochre: #f8edd9;
  --shadow: 0 2px 4px rgb(21 44 40 / 4%), 0 8px 24px rgb(21 44 40 / 4%);
  --radius: 18px;
  --max-width: 1180px;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  min-width: 0;
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.5;
}

h1, h2, h3, p, ol, ul { margin: 0; }
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; }
button { color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid #167e61;
  outline-offset: 4px;
}

.container {
  width: min(calc(100% - 64px), var(--max-width));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 10;
  inset: 8px auto auto 8px;
  translate: 0 -150%;
  border-radius: 8px;
  padding: 10px 16px;
  background: var(--surface);
  color: var(--ink);
}

.skip-link:focus { translate: 0; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.app-header {
  background: var(--forest-deep);
  color: #f6fbf7;
}

.header-inner {
  display: flex;
  width: min(calc(100% - 64px), var(--max-width));
  min-height: 68px;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand, .header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand { text-decoration: none; }

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border: 1px solid #4c826e;
  border-radius: 11px;
  background: #275448;
  color: #e3ffe7;
}

.brand-mark img { width: 100%; height: 100%; border-radius: inherit; }

.brand-name {
  display: block;
  font-size: .91rem;
  font-weight: 780;
  letter-spacing: .075em;
  line-height: 1.2;
}

.brand-label {
  display: block;
  margin-top: 3px;
  color: #b3cac1;
  font-size: .72rem;
}

.header-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #4b685e;
  border-radius: 100px;
  padding: 6px 11px;
  background: #203b34;
  color: #e7f6ee;
  font-size: .73rem;
  font-weight: 650;
  white-space: nowrap;
}

.header-pill > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9ee4b3;
  box-shadow: 0 0 0 3px rgb(158 228 179 / 13%);
}

.icon {
  width: 1.1em;
  height: 1.1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

main.container { padding-block: 28px 34px; }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 330px;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, .84fr);
  align-items: center;
  overflow: hidden;
  border: 1px solid #2b5248;
  border-radius: 22px;
  padding: clamp(26px, 3.2vw, 42px) clamp(26px, 4.25vw, 54px);
  background: radial-gradient(ellipse at 84% 26%, #326957, transparent 52%), #193d33;
  color: #f5fcf7;
  box-shadow: var(--shadow);
}

.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: linear-gradient(#b1e1cd24 1px, transparent 1px), linear-gradient(90deg, #b1e1cd24 1px, transparent 1px);
  background-size: 33px 33px;
  mask-image: linear-gradient(90deg, transparent 35%, #000 84%);
  opacity: .8;
  content: "";
}

.hero-content { position: relative; z-index: 1; }

.eyebrow, .section-index, .hero-caption {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: .75rem;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 15px;
  color: #bde8ce;
}

.eyebrow::before {
  width: 19px;
  height: 1px;
  flex: 0 0 19px;
  background: #bde8ce;
  content: "";
}

.eyebrow > span:empty { display: none; }

.hero-title {
  max-width: 15ch;
  font-size: clamp(2.3rem, 4.6vw, 4rem);
  font-weight: 760;
  letter-spacing: -.055em;
  line-height: .99;
  text-wrap: balance;
}

.hero-title > span { color: #bdf4a9; }

.hero-description {
  max-width: 50ch;
  margin-top: 17px;
  color: #d4e7dd;
  font-size: clamp(.94rem, 1.5vw, 1.05rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}

.hero-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 7px;
  border-radius: 5px;
  padding: 6px 7px;
  color: #e0f1e7;
  font-size: .84rem;
  font-weight: 670;
  text-decoration: none;
}

.hero-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.hero-link span { color: #bdf4a9; }

.hero-art {
  display: grid;
  width: min(100%, 430px);
  min-width: 0;
  justify-self: end;
  place-items: center;
}

.hero-art svg { width: 100%; height: auto; }

.hero-caption {
  position: absolute;
  inset: auto 22px 15px auto;
  color: #c0dbcd;
  font-size: .63rem;
}

.hero :focus-visible, .app-header :focus-visible { outline-color: #d6ffe2; }

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 9px 14px;
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 130ms ease, border-color 130ms ease, color 130ms ease;
}

.button svg { width: 17px; height: 17px; flex: 0 0 17px; }
.hero-actions .button svg { fill: currentColor; stroke: none; }
.button:disabled { opacity: .68; cursor: default; }
.button-primary { background: var(--green); color: #fff; }
.button-primary:not(:disabled):hover { background: var(--green-hover); }
.button-secondary { border-color: #cddbd2; background: #f6faf7; color: #234e40; }
.button-secondary:not(:disabled):hover { border-color: #9eb6a9; background: #e8f4eb; }
.button-quiet { border-color: #d9e3db; background: #fff; color: #38534b; }
.button-quiet:not(:disabled):hover { border-color: #adc2b5; background: #f2f8f3; }
.hero .button-primary { background: #d7f6de; color: #17382b; }
.hero .button-primary:not(:disabled):hover { background: #effbf0; }

.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-block: 18px 22px;
}

.metric-card {
  display: grid;
  min-width: 0;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.metric-card > :not(.metric-icon) { grid-column: 2; }
.metric-icon, .check-icon {
  display: grid;
  place-items: center;
  background: var(--mint);
  color: var(--green);
}

.metric-icon {
  width: 42px;
  height: 42px;
  grid-column: 1;
  border-radius: 11px;
}

.metric-icon svg { width: 21px; height: 21px; }
.metric-card:nth-child(2) .metric-icon { background: #ebf0e0; color: #52652b; }
.metric-card:nth-child(3) .metric-icon { background: var(--ochre); color: var(--amber); }

.metric-label {
  display: block;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 670;
}

.metric-value {
  display: block;
  color: var(--ink);
  font-size: clamp(1rem, 1.8vw, 1.24rem);
  font-weight: 760;
  letter-spacing: -.025em;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.metric-detail {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  align-items: start;
  gap: 18px;
}

.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(16px, 2.25vw, 24px);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.panel-heading h2 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 760;
  letter-spacing: -.035em;
  line-height: 1.2;
}

.panel-heading p { margin-top: 5px; color: var(--muted); font-size: .84rem; }

.section-index {
  flex-shrink: 0;
  border-radius: 7px;
  padding: 4px 7px;
  background: var(--ochre);
  color: var(--amber);
  font-size: .64rem;
  white-space: nowrap;
}

.check-grid { display: grid; gap: 8px; }

.check-card {
  display: grid;
  min-width: 0;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  border: 1px solid #e2e9e2;
  border-radius: 11px;
  padding: 10px;
  background: #fafcf9;
}

.check-icon { width: 34px; height: 34px; border-radius: 8px; }
.check-icon svg { width: 18px; height: 18px; }
.check-copy h3 { font-size: .88rem; font-weight: 730; line-height: 1.25; }
.check-copy p { margin-top: 3px; color: var(--muted); font-size: .77rem; line-height: 1.4; overflow-wrap: anywhere; }

.protocol-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 5px;
  color: var(--green);
  font-size: .75rem;
  font-weight: 690;
  text-underline-offset: 2px;
}

.protocol-link .icon { flex-shrink: 0; }
.protocol-link:hover { color: var(--green-hover); }

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 100px;
  padding: 4px 8px;
  background: #ebefed;
  color: #455953;
  font-size: .7rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}

.status-pill::before {
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.status-pill[data-state="pass"] { background: #dcf1e4; color: #216044; }
.status-pill[data-state="warn"] { background: #f8edd9; color: #75470e; }
.status-pill[data-state="fail"] { background: #f9e7e5; color: #873e38; }
.status-pill[data-state="running"] { background: #e6eff8; color: #315985; }

.check-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 13px;
  color: var(--muted);
  font-size: .76rem;
}

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

.scenario-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 13px;
  border: 1px solid #e1eadf;
  border-radius: 9px;
  padding: 9px 10px;
  background: #f0f6ef;
  color: #3a574c;
  font-size: .76rem;
  line-height: 1.45;
}

.scenario-note svg { width: 15px; height: 15px; flex: 0 0 15px; margin-top: 1px; }

.activity-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-block: 19px 9px;
  border-top: 1px solid #e4ebe5;
  padding-top: 13px;
  font-size: .87rem;
  font-weight: 750;
}

.activity-list { display: grid; gap: 0; padding: 0; list-style: none; }

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 8px 0;
  border-bottom: 1px solid #edf0ec;
  font-size: .83rem;
}

.activity-item:last-child { border-bottom: 0; }
.activity-item strong { display: block; font-weight: 680; overflow-wrap: anywhere; }
.activity-item time { display: block; margin-top: 2px; color: var(--muted); font-size: .72rem; }

.activity-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: #34866a;
}

.activity-empty {
  border: 1px dashed #cfdad0;
  border-radius: 10px;
  padding: 13px 11px;
  background: #fafcf9;
  color: var(--muted);
  font-size: .78rem;
  text-align: center;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 20px;
  margin-top: 25px;
  border-top: 1px solid #d9e3d9;
  padding-block: 13px 21px;
  color: var(--muted);
  font-size: .76rem;
}

.site-footer strong { font-size: .73rem; letter-spacing: .04em; }
.site-footer p > span { margin-inline: 3px; }

@media (max-width: 830px) {
  .workspace-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { min-height: 300px; }
  .hero-caption { inset: auto 14px 10px auto; }
}

@media (max-width: 620px) {
  :is(.container, .header-inner) { width: calc(100% - 32px); }
  .header-inner { min-height: 62px; }
  main.container { padding-block: 16px 23px; }
  .hero {
    min-height: auto;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 23px 21px 25px;
  }
  .hero::before { mask-image: linear-gradient(155deg, transparent 35%, #000 95%); }
  .hero-title { font-size: clamp(2rem, 8.6vw, 3.2rem); }
  .hero-description { margin-top: 13px; }
  .hero-actions { margin-top: 17px; }
  .hero-art { max-width: 220px; justify-self: center; }
  .hero-caption { display: none; }
  .overview-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; margin-block: 12px; }
  .metric-card { padding: 11px 13px; }
  .workspace-grid { gap: 12px; }
  .check-card { column-gap: 8px; padding: 9px; }
  .panel-heading { margin-bottom: 12px; }
}

@media (max-width: 370px) {
  :is(.container, .header-inner) { width: calc(100% - 24px); }
  .brand, .header-actions { gap: 7px; }
  .header-pill { padding: 5px 7px; }
  .header-actions:has(#install-app:not([hidden])) .header-pill { display: none; }
  .panel { padding: 13px; }
  .check-card { grid-template-columns: 30px minmax(0, 1fr); }
  .check-icon { width: 30px; height: 30px; }
  .check-card .status-pill { grid-column: 2; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
