@font-face {
  font-family: "Open Sans";
  src: local("Open Sans");
  font-display: swap;
}

:root {
  --bg: #02080c;
  --panel: #071218;
  --panel-2: #0b1a21;
  --line: rgba(159, 216, 224, 0.2);
  --text: #f4f8f8;
  --muted: #9fb1b5;
  --cyan: #20d6e6;
  --orange: #ff7a1a;
  --green: #93e06f;
  --white: #ffffff;
  --sidebar: 286px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(rgba(32, 214, 230, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 214, 230, 0.055) 1px, transparent 1px),
    var(--bg);
  background-size: 40px 40px;
  color: var(--text);
  font-family: "Open Sans", Arial, sans-serif;
  letter-spacing: 0;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.filters {
  position: fixed;
  z-index: 20;
  inset: 0 auto 0 0;
  display: flex;
  width: var(--sidebar);
  flex-direction: column;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: rgba(2, 8, 12, 0.97);
  padding: 24px 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
}

.brand span {
  display: grid;
}

.brand strong {
  font-size: 21px;
  line-height: 1.1;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.filter-intro {
  margin: 50px 0 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.filter-intro > span,
.headline > p,
.catalog-head p {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.filter-intro p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.filter-form {
  display: grid;
  gap: 14px;
}

.filter-form > label:not(.toggle) {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.filter-form input[type="search"],
.filter-form select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 4px;
  outline: 0;
  background: var(--panel);
  color: var(--text);
  padding: 0 12px;
  font-size: 14px;
  text-transform: none;
}

.filter-form input[type="search"]:focus,
.filter-form select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(32, 214, 230, 0.13);
}

.toggle {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
}

.toggle input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--orange);
}

.reset-filters {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.reset-filters:hover {
  border-color: var(--cyan);
  color: var(--text);
}

.filter-foot {
  display: grid;
  gap: 14px;
  margin-top: auto;
  padding-top: 30px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.filter-foot a {
  color: var(--cyan);
  text-decoration: none;
}

.filter-toggle {
  display: none;
}

.store {
  min-height: 100vh;
  margin-left: var(--sidebar);
}

.topbar {
  position: relative;
  display: flex;
  min-height: 620px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: url("/assets/fractal-market.webp") center / cover no-repeat;
  padding: 64px 5vw 54px;
}

.topbar::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: rgba(2, 8, 12, 0.72);
  content: "";
}

.headline,
.stats {
  position: relative;
  z-index: 1;
}

.headline {
  max-width: 810px;
}

.headline > p {
  margin: 0 0 16px;
}

.headline h1 {
  margin: 0;
  color: var(--white);
  font-size: 92px;
  line-height: 0.92;
}

.headline .lead {
  max-width: 760px;
  margin: 24px 0 0;
  color: #dce8e9;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.55;
  text-transform: none;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.hero-actions a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.primary-link {
  background: var(--orange);
  color: #150803;
}

.primary-link:hover {
  background: #ff9b52;
}

.secondary-link {
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(2, 8, 12, 0.5);
  color: var(--white);
}

.stats {
  display: grid;
  min-width: 230px;
  border-left: 1px solid rgba(255, 255, 255, 0.28);
  gap: 20px;
  padding-left: 24px;
}

.stats span {
  display: grid;
}

.stats strong {
  color: var(--white);
  font-size: 31px;
  line-height: 1;
}

.stats small {
  margin-top: 5px;
  color: #c2d1d3;
  font-size: 11px;
  text-transform: uppercase;
}

.stage-market {
  display: grid;
  border-bottom: 1px solid var(--line);
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.stage-market > div {
  display: grid;
  min-height: 116px;
  align-content: center;
  gap: 5px;
  border-right: 1px solid var(--line);
  padding: 18px 24px;
}

.stage-market > div:last-child {
  border-right: 0;
}

.stage-market span {
  color: var(--orange);
  font-size: 11px;
  font-weight: 700;
}

.stage-market strong {
  font-size: 15px;
}

.stage-market small {
  color: var(--muted);
  font-size: 11px;
}

.workbench {
  padding: 54px 5vw 80px;
  scroll-margin-top: 20px;
}

.preview {
  margin-bottom: 52px;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}

.preview-head {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--panel);
  padding: 12px 18px;
}

.preview-head p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 11px;
}

.preview-head h2 {
  margin: 0;
  font-size: 20px;
}

.preview-head > div:last-child {
  display: flex;
  align-items: center;
  gap: 12px;
}

.preview-head button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  font-size: 22px;
}

.preview-head a {
  color: var(--cyan);
  font-size: 13px;
  text-decoration: none;
}

.preview iframe {
  display: block;
  width: 100%;
  min-height: 640px;
  border: 0;
  background: #fff;
}

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

.catalog-head p {
  margin: 0 0 7px;
}

.catalog-head h2 {
  margin: 0;
  font-size: 42px;
  line-height: 1;
}

#syncState {
  color: var(--muted);
  font-size: 12px;
}

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

.project {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 340px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(7, 18, 24, 0.94);
  padding: 18px;
}

.project::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--accent, var(--cyan));
  content: "";
}

.project:hover {
  border-color: rgba(32, 214, 230, 0.52);
}

.project-head,
.project-stage,
.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.logo {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 65%, transparent);
  border-radius: 3px;
  color: var(--accent, var(--cyan));
  font-size: 16px;
  font-weight: 800;
}

.status {
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.project[data-generated="false"] .status {
  color: var(--muted);
}

.project-stage {
  margin-top: 18px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.project-stage > span {
  color: var(--orange);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.project-stage strong {
  display: grid;
  justify-items: end;
  font-size: 16px;
}

.project-stage strong small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 400;
  text-transform: uppercase;
}

.project-copy {
  min-width: 0;
  flex: 1;
}

.project .meta {
  margin: 16px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.project h3 {
  margin: 9px 0 8px;
  overflow-wrap: anywhere;
  font-size: 21px;
  line-height: 1.14;
}

.project-copy > p:last-of-type {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #c2d1d3;
  font-size: 13px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.actions {
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-top: 18px;
}

.actions button,
.actions a,
.load-more,
.catalog-empty a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.actions button:hover,
.actions a:hover {
  border-color: var(--cyan);
}

.actions .basis-link {
  border-color: rgba(255, 122, 26, 0.65);
  color: #ffc79e;
}

.catalog-empty {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 44px 0;
}

.catalog-empty strong {
  font-size: 26px;
}

.catalog-empty p {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.6;
}

.catalog-empty a {
  border-color: var(--orange);
}

.load-more {
  width: 100%;
  min-height: 48px;
  margin-top: 18px;
  border-color: rgba(32, 214, 230, 0.5);
}

.load-more:disabled {
  cursor: progress;
  opacity: 0.6;
}

.sr-url {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.tree-page .store {
  padding: 30px;
}

.tree-main,
.tree-index,
.tree-domain,
.tree-items,
.tree-item {
  color: var(--text);
}

.tree-index {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tree-index a,
.seo-links a {
  color: var(--cyan);
}

@media (max-width: 1240px) {
  .headline h1 {
    font-size: 72px;
  }

  .catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stage-market > div {
    padding: 16px;
  }
}

@media (max-width: 900px) {
  :root {
    --sidebar: 0px;
  }

  .filter-toggle {
    position: fixed;
    z-index: 40;
    top: 12px;
    right: 12px;
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    border: 1px solid var(--cyan);
    border-radius: 4px;
    background: #071218;
    color: var(--white);
    padding: 0 14px;
  }

  .filters {
    width: min(88vw, 330px);
    transform: translateX(-105%);
    transition: transform 180ms ease;
  }

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

  .filters-open::after {
    position: fixed;
    z-index: 15;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
    content: "";
  }

  .store {
    margin-left: 0;
  }

  .topbar {
    min-height: 620px;
    align-items: center;
    padding: 70px 24px 40px;
  }

  .headline {
    max-width: 670px;
  }

  .stats {
    display: none;
  }

  .stage-market {
    overflow-x: auto;
    grid-template-columns: repeat(5, minmax(170px, 1fr));
    scrollbar-width: none;
  }

  .stage-market::-webkit-scrollbar {
    display: none;
  }

  .workbench {
    padding: 44px 24px 70px;
  }
}

@media (max-width: 620px) {
  body {
    background-size: 28px 28px;
  }

  .topbar {
    min-height: 590px;
    background-position: 58% center;
    padding: 76px 18px 32px;
  }

  .headline h1 {
    font-size: 48px;
  }

  .headline .lead {
    margin-top: 18px;
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
    margin-top: 24px;
  }

  .hero-actions a {
    width: 100%;
  }

  .stage-market > div {
    min-height: 96px;
  }

  .workbench {
    padding: 36px 14px 58px;
  }

  .catalog-head {
    display: grid;
    align-items: start;
  }

  .catalog-head h2 {
    font-size: 32px;
  }

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

  .project {
    min-height: 320px;
  }

  .preview-head {
    align-items: flex-start;
  }

  .preview-head > div:last-child {
    align-items: flex-end;
    flex-direction: column;
  }

  .preview iframe {
    min-height: 540px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .filters {
    transition: none;
  }
}
