:root {
  --bg: #0c0d0f;
  --panel: #131519;
  --panel-2: #191c21;
  --text: #f4f4f5;
  --muted: #a7abb4;
  --line: #2a2e35;
  --accent: #d7ff4f;
  --accent-ink: #11130a;
  --danger: #ff6b6b;
  --radius: 18px;
  --shadow: 0 24px 80px rgba(0, 0, 0, .28);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 15% 0%, rgba(215,255,79,.08), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  line-height: 1.5;
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  color: var(--accent);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 32px), var(--max));
  margin: 16px auto 0;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background: rgba(12,13,15,.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -.04em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 13px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  color: var(--muted);
}

.nav a:hover {
  color: var(--text);
}

.cart-button,
.icon-button {
  border: 0;
  cursor: pointer;
}

.cart-button {
  padding: 10px 13px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  font-weight: 800;
}

.cart-button span {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-left: 6px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 12px;
}

main,
.site-footer {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 70px;
  min-height: 690px;
  padding: 96px 0 72px;
}

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

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

h1 {
  max-width: 760px;
  margin-bottom: 26px;
  font-size: clamp(52px, 7vw, 94px);
  line-height: .94;
  letter-spacing: -.075em;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1;
  letter-spacing: -.055em;
}

h3 {
  letter-spacing: -.03em;
}

.hero-text {
  max-width: 660px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 17px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 800;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.button-secondary {
  border-color: var(--line);
  background: var(--panel);
  color: var(--text);
}

.button-full {
  width: 100%;
}

.code-window {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}

.code-window-bar {
  display: flex;
  gap: 7px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.code-window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3a3f48;
}

.code-window pre {
  margin: 0;
  padding: 34px;
  overflow: auto;
  color: #d7dae0;
  font-size: clamp(14px, 2vw, 18px);
  line-height: 1.8;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 110px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.stats-strip div {
  padding: 26px;
  border-right: 1px solid var(--line);
}

.stats-strip div:last-child {
  border-right: 0;
}

.stats-strip strong,
.stats-strip span {
  display: block;
}

.stats-strip strong {
  margin-bottom: 6px;
  font-size: 24px;
}

.stats-strip span {
  color: var(--muted);
  font-size: 13px;
}

.shop-section,
.how-section {
  padding: 40px 0 110px;
}

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

.section-heading > p {
  max-width: 400px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(360px, 2fr) auto;
  gap: 12px;
  margin-bottom: 24px;
}

.search-wrap input,
.toolbar select {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  background: var(--panel);
  color: var(--text);
}

.search-wrap input {
  padding: 0 14px;
}

.search-wrap input:focus,
.toolbar select:focus {
  border-color: var(--accent);
}

.toolbar select {
  padding: 0 36px 0 12px;
}

.filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.filter-button {
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  white-space: nowrap;
  background: var(--panel);
  color: var(--muted);
  cursor: pointer;
}

.filter-button.active,
.filter-button:hover {
  border-color: var(--accent);
  color: var(--text);
}

.filter-button.active {
  background: rgba(215,255,79,.08);
}

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

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,.015), transparent 45%),
    var(--panel);
  transition: transform .18s ease, border-color .18s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: #444a55;
}

.product-card::before {
  content: "{ }";
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 26px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--accent);
  font-weight: 900;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.product-card h3 {
  margin-bottom: 12px;
  font-size: 22px;
}

.product-card p {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 13px;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.price {
  font-size: 22px;
  font-weight: 900;
}

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

.card-link,
.add-button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.add-button {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.empty-state {
  padding: 56px 0;
  color: var(--muted);
  text-align: center;
}

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

.step-card {
  min-height: 240px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.step-card span {
  display: block;
  margin-bottom: 50px;
  color: var(--accent);
  font-size: 12px;
}

.step-card h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.step-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.cta-section {
  margin: 0 0 90px;
  padding: 70px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    radial-gradient(circle at 100% 0%, rgba(215,255,79,.14), transparent 24rem),
    var(--panel);
}

.cta-section h2 {
  max-width: 800px;
  margin-bottom: 30px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 30px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.site-footer strong {
  color: var(--text);
}

.site-footer p {
  margin-bottom: 0;
}

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  width: min(430px, 100%);
  height: 100dvh;
  border-left: 1px solid var(--line);
  background: var(--bg);
  box-shadow: var(--shadow);
  transform: translateX(105%);
  transition: transform .25s ease;
}

.cart-panel.open {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}

.cart-header h2 {
  font-size: 34px;
}

.icon-button {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--panel);
  color: var(--text);
  font-size: 26px;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 14px 24px;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item strong,
.cart-item span {
  display: block;
}

.cart-item span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.remove-button {
  align-self: center;
  border: 0;
  background: transparent;
  color: var(--danger);
  cursor: pointer;
  font-size: 12px;
}

.cart-empty {
  padding: 30px 0;
  color: var(--muted);
}

.cart-footer {
  padding: 24px;
  border-top: 1px solid var(--line);
  background: var(--panel);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.cart-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0,0,0,.58);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 70;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--text);
  color: var(--bg);
  font-size: 12px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity .2s ease, transform .2s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Product detail page */

.product-page {
  padding: 90px 0 120px;
}

.back-link {
  display: inline-block;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 13px;
}

.back-link:hover {
  color: var(--text);
}

.product-detail {
  display: grid;
  grid-template-columns: 1fr .8fr;
  gap: 20px;
}

.detail-main,
.detail-side {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
}

.detail-main {
  padding: clamp(28px, 5vw, 58px);
}

.detail-main h1 {
  margin-bottom: 22px;
  font-size: clamp(48px, 7vw, 82px);
}

.detail-description {
  max-width: 720px;
  color: var(--muted);
  font-size: 16px;
}

.tag-list,
.file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.tag-list li,
.file-list li {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  font-size: 12px;
}

.detail-section {
  margin-top: 38px;
}

.detail-section h3 {
  margin-bottom: 14px;
}

.feature-list {
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
}

.feature-list li {
  margin-bottom: 9px;
}

.detail-side {
  align-self: start;
  padding: 26px;
  position: sticky;
  top: 100px;
}

.detail-price {
  margin-bottom: 16px;
  font-size: 38px;
  font-weight: 900;
}

.detail-side p {
  color: var(--muted);
  font-size: 12px;
}

.detail-badge {
  display: inline-block;
  margin-bottom: 24px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(215,255,79,.1);
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

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

  .hero {
    min-height: auto;
    padding-top: 72px;
  }

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

  .product-grid,
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-side {
    position: static;
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
  }

  .nav a {
    display: none;
  }

  h1 {
    font-size: clamp(48px, 15vw, 72px);
  }

  .hero {
    gap: 38px;
  }

  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-strip div:nth-child(2) {
    border-right: 0;
  }

  .stats-strip div:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .product-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: block;
  }

  .section-heading > p {
    margin-top: 14px;
    text-align: left;
  }

  .cta-section {
    padding: 34px 24px;
  }

  .site-footer {
    display: block;
  }

  .site-footer > p {
    margin-top: 18px;
  }
}


.button:disabled,
.add-button:disabled,
.cart-button:disabled {
  cursor: wait;
  opacity: .65;
  transform: none;
}
