:root {
  --paper: #f7f8fb;
  --paper-2: #e8edf3;
  --ink: #101014;
  --muted: #666b73;
  --line: #d7dde6;
  --soft: #ffffff;
  --charcoal: #17181d;
  --charcoal-2: #262932;
  --blue: #2b55ff;
  --green: #0b8f6a;
  --orange: #f0642d;
  --gold: #b7822c;
  --shadow: 0 24px 70px rgba(16, 16, 20, .16);
  --soft-shadow: 0 16px 42px rgba(16, 16, 20, .10);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(16, 16, 20, .08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(16, 16, 20, .05) 1px, transparent 1px),
    linear-gradient(180deg, var(--paper), #fbfcfd 560px, var(--paper-2));
  background-size: 44px 44px, 44px 44px, auto;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.deck-shell {
  min-height: 100vh;
}

.topline {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 15px clamp(18px, 3vw, 42px);
  background: rgba(247, 248, 251, .88);
  border-bottom: 1px solid rgba(215, 221, 230, .88);
  backdrop-filter: blur(18px);
}

.wordmark {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
}

.wordmark strong {
  font-size: 18px;
  line-height: 1;
}

.wordmark span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.nav-pills {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.nav-pills a,
.nav-pills button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
  color: var(--ink);
  padding: 8px 11px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.nav-pills .is-primary {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.deck-titlebar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 18px clamp(18px, 3vw, 42px) 12px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: #3b3e45;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.hero-kicker::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), var(--blue), var(--green));
}

.deck-titlebar h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 58px);
  line-height: .9;
  letter-spacing: 0;
}

.title-stats {
  display: grid;
  justify-items: end;
  border-top: 1px solid rgba(16, 16, 20, .22);
  padding-top: 10px;
}

.title-stats strong {
  font-size: 38px;
  line-height: .9;
}

.title-stats span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.option-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 clamp(18px, 3vw, 42px) 18px;
}

.option-filters button {
  min-height: 38px;
  border: 1px solid rgba(16, 16, 20, .16);
  border-radius: 8px;
  background: rgba(255, 255, 255, .74);
  padding: 8px 12px;
  color: #20242b;
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
}

.option-filters button.is-active {
  border-color: #111217;
  background: #111217;
  color: #fff;
}

.stage {
  display: grid;
  grid-template-columns: minmax(0, 1.58fr) minmax(320px, .64fr);
  gap: 20px;
  padding: 0 clamp(18px, 3vw, 42px) 26px;
}

.stage-preview {
  min-width: 0;
}

.screen-frame {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border: 1px solid rgba(16, 16, 20, .18);
  border-radius: 8px;
  background: var(--charcoal);
  box-shadow: var(--shadow);
}

.screen-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0) 26%),
    linear-gradient(135deg, rgba(43, 85, 255, .15), rgba(240, 100, 45, 0) 48%, rgba(11, 143, 106, .13));
}

.screen-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 42px;
  padding: 0 14px;
  background: rgba(10, 11, 14, .86);
  color: rgba(255, 255, 255, .72);
  font-size: 11px;
  font-weight: 850;
}

.screen-badges {
  position: absolute;
  top: 54px;
  left: 14px;
  right: 14px;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.screen-badges span {
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(17, 18, 23, .78);
  padding: 6px 9px;
  color: rgba(255, 255, 255, .9);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 850;
  overflow-wrap: anywhere;
  backdrop-filter: blur(10px);
}

.traffic {
  display: inline-flex;
  gap: 7px;
}

.traffic i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #ff5f57;
}

.traffic i:nth-child(2) {
  background: #ffbd2e;
}

.traffic i:nth-child(3) {
  background: #28c840;
}

.screen-frame img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  display: block;
  object-fit: cover;
  object-position: top center;
  filter: saturate(1.02) contrast(1.02);
}

.stage-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  min-height: 520px;
  border-left: 1px solid rgba(16, 16, 20, .18);
  padding: 2px 0 2px 22px;
}

.stage-info h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 56px);
  line-height: .95;
}

.short-code {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  margin-bottom: 14px;
  border: 1px solid rgba(16, 16, 20, .18);
  border-radius: 8px;
  background: rgba(255, 255, 255, .62);
  padding: 8px 10px;
  color: #30343a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.stage-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.metric {
  border-top: 1px solid rgba(16, 16, 20, .18);
  padding-top: 10px;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin-top: 4px;
  font-size: 15px;
}

.tag-row,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span {
  border: 1px solid rgba(16, 16, 20, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .64);
  padding: 6px 9px;
  color: #30343a;
  font-size: 12px;
  font-weight: 860;
}

.action-row {
  margin-top: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 930;
  cursor: pointer;
}

.button.secondary {
  border-color: rgba(16, 16, 20, .18);
  background: rgba(255, 255, 255, .72);
  color: var(--ink);
}

.button.accent {
  border-color: #173eff;
  background: linear-gradient(135deg, var(--blue), #0b8f6a);
}

.deck-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 10px;
  overflow-x: auto;
  padding: 0 clamp(18px, 3vw, 42px) 28px;
  scrollbar-width: thin;
}

.strip-item {
  min-width: 0;
  border: 1px solid rgba(16, 16, 20, .14);
  border-radius: 8px;
  background: rgba(255, 255, 255, .68);
  padding: 8px;
  text-align: left;
  cursor: pointer;
}

.strip-item.is-active {
  border-color: var(--ink);
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.strip-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  object-position: top center;
  border-radius: 6px;
}

.strip-item strong {
  display: block;
  margin-top: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.strip-item span {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collection {
  padding: 20px clamp(18px, 3vw, 42px) 48px;
  background: #111217;
  color: #fff;
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: .96;
}

.section-head p {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, .7);
  line-height: 1.45;
}

.collection-body {
  display: grid;
  gap: 30px;
}

.collection-group {
  display: grid;
  gap: 14px;
}

.collection-group + .collection-group {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 26px;
}

.collection-group-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.collection-group-head span {
  display: block;
  margin-bottom: 5px;
  color: rgba(255, 255, 255, .58);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.collection-group-head h3 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1;
}

.collection-group-head p {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, .66);
  line-height: 1.42;
}

.starter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 14px;
}

.starter-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background: #1c1e24;
}

.starter-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
  object-position: top center;
}

.starter-card-body {
  display: grid;
  gap: 10px;
  padding: 13px;
}

.card-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.card-topline .short-code {
  margin-bottom: 0;
}

.industry-pill {
  flex: 0 0 auto;
  max-width: 46%;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  padding: 7px 9px;
  color: rgba(255, 255, 255, .86);
  font-size: 11px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.starter-card h3 {
  margin: 0;
  font-size: 19px;
}

.starter-card p {
  margin: 0;
  color: rgba(255, 255, 255, .66);
  font-size: 13px;
  line-height: 1.42;
}

.route-line {
  border-left: 3px solid var(--green);
  padding-left: 9px;
  color: rgba(255, 255, 255, .76);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.starter-card .tag-row span {
  border-color: rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .82);
}

.demo-shell {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(16, 16, 20, .06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(16, 16, 20, .04) 1px, transparent 1px),
    #f7f8fb;
  background-size: 44px 44px;
  color: var(--ink);
}

.demo-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 13px clamp(16px, 3vw, 34px);
  border-bottom: 1px solid rgba(16, 16, 20, .12);
  background: rgba(247, 248, 251, .9);
  backdrop-filter: blur(16px);
}

.demo-topbar span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.demo-topbar strong {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid rgba(16, 16, 20, .14);
  border-radius: 8px;
  background: #fff;
  padding: 8px 12px;
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 950;
}

.button.compact {
  min-height: 38px;
  padding: 8px 12px;
  font-size: 12px;
}

.demo-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  gap: 18px;
  min-height: calc(100vh - 65px);
  padding: 18px clamp(16px, 3vw, 34px) 34px;
}

.demo-panel {
  align-self: start;
  border: 1px solid rgba(16, 16, 20, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .84);
  padding: 18px;
  box-shadow: var(--soft-shadow);
}

.demo-panel h1 {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1;
}

.demo-panel p {
  color: var(--muted);
  line-height: 1.44;
}

.demo-preview {
  min-width: 0;
}

.demo-preview .screen-frame {
  min-height: calc(100vh - 118px);
}

.demo-preview .screen-frame img {
  min-height: calc(100vh - 118px);
}

.redirect-shell {
  display: grid;
  place-content: center;
  gap: 12px;
  min-height: 100vh;
  padding: 24px;
  background: #f7f8fb;
  color: var(--ink);
  text-align: center;
}

.redirect-shell span {
  justify-self: center;
  border: 1px solid rgba(16, 16, 20, .16);
  border-radius: 999px;
  background: #fff;
  padding: 7px 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 850;
}

.redirect-shell h1,
.redirect-shell p {
  margin: 0;
}

@media (max-width: 980px) {
  .topline,
  .stage,
  .section-head,
  .collection-group-head,
  .demo-stage {
    grid-template-columns: 1fr;
  }

  .nav-pills {
    justify-content: flex-start;
  }

  .stage-info {
    min-height: auto;
    border-left: 0;
    border-top: 1px solid rgba(16, 16, 20, .18);
    padding: 18px 0 0;
  }

  .screen-frame,
  .screen-frame img {
    min-height: 360px;
  }

  .demo-panel {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
  }
}

@media (max-width: 640px) {
  .wordmark {
    display: grid;
    gap: 5px;
  }

  .deck-titlebar h1 {
    font-size: 42px;
  }

  .deck-titlebar {
    display: grid;
  }

  .title-stats {
    justify-items: start;
  }

  .stage-meta {
    grid-template-columns: 1fr;
  }

  .deck-strip {
    grid-auto-columns: minmax(190px, 75vw);
  }
}
