:root {
  --ink: #05070d;
  --ink-2: #0b1220;
  --panel: rgba(14, 22, 38, 0.72);
  --panel-solid: #101826;
  --line: rgba(148, 163, 184, 0.16);
  --text: #e8eef7;
  --muted: #8b9bb4;
  --cyan: #33e1c2;
  --cyan-dim: rgba(51, 225, 194, 0.14);
  --amber: #f0b429;
  --live: #33e1c2;
  --soon: #f0b429;
  --radius: 16px;
  --font: "Outfit", system-ui, sans-serif;
  --display: "Syne", "Outfit", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --max: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
}

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

button,
input {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
}

ul {
  list-style: none;
}

.mono {
  font-family: var(--mono);
}

/* —— FX —— */
.fx-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

#orbit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}

.fx-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(51, 225, 194, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(51, 225, 194, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 20%, #000 20%, transparent 75%);
}

.fx-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
}

.fx-glow-a {
  width: 42vw;
  height: 42vw;
  top: -10%;
  right: -8%;
  background: rgba(51, 225, 194, 0.22);
  animation: drift 14s ease-in-out infinite alternate;
}

.fx-glow-b {
  width: 36vw;
  height: 36vw;
  bottom: 5%;
  left: -10%;
  background: rgba(240, 180, 41, 0.12);
  animation: drift 18s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(4%, -3%, 0) scale(1.08); }
}

.topbar,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

/* —— Topbar —— */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.2rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  background: rgba(5, 7, 13, 0.55);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--ink);
  background: linear-gradient(135deg, var(--cyan), #7cf0de 45%, var(--amber));
  box-shadow: 0 0 24px rgba(51, 225, 194, 0.35);
}

.brand-text {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

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

.top-nav .ghost {
  cursor: pointer;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.75rem;
}

/* —— Hero —— */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(1.75rem, 5vw, 5.5rem) clamp(1rem, 4vw, 2.5rem) clamp(1.5rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
  min-height: auto;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--cyan);
  margin-bottom: 1rem;
}

.hero-copy h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.1rem, 8.5vw, 4.8rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.1rem;
  word-break: break-word;
  animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-copy h1 em {
  font-style: normal;
  color: var(--cyan);
}

.lead {
  max-width: 30rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.12rem);
  margin-bottom: 1.6rem;
  animation: rise 0.8s 0.08s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.8rem;
  animation: rise 0.8s 0.14s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
  max-width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), #7cf0de);
  color: var(--ink);
  box-shadow: 0 0 28px rgba(51, 225, 194, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(51, 225, 194, 0.42);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.btn-ghost:hover {
  border-color: rgba(51, 225, 194, 0.45);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  animation: rise 0.8s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-stats .chip {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.82rem;
  color: var(--muted);
}

.hero-stats .chip strong {
  color: var(--cyan);
  font-family: var(--display);
  font-size: 1.05rem;
}

.hero-stage {
  position: relative;
  aspect-ratio: 1;
  width: min(220px, 58vw);
  max-width: 420px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  animation: rise 1s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.stage-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(51, 225, 194, 0.18);
}

.ring-1 { inset: 8%; animation: spin 28s linear infinite; }
.ring-2 { inset: 20%; border-style: dashed; animation: spin 40s linear infinite reverse; }
.ring-3 { inset: 34%; animation: spin 22s linear infinite; }

.stage-core {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--ink);
  background: linear-gradient(145deg, var(--cyan), #9af5e4 50%, var(--amber));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.2),
    0 0 48px rgba(51, 225, 194, 0.45);
  z-index: 2;
}

.stage-nodes span {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 16px var(--cyan);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.25); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* —— Platform —— */
.platform,
.services {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem clamp(1rem, 4vw, 2.5rem) 3rem;
}

.section-head {
  margin-bottom: 1.6rem;
}

.section-head.row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: end;
}

.section-head h2 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.section-head p {
  color: var(--muted);
  max-width: 36rem;
}

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

.platform-grid article {
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  transition: border-color 0.2s, transform 0.2s;
}

.platform-grid article:hover {
  border-color: rgba(51, 225, 194, 0.35);
  transform: translateY(-3px);
}

.platform-grid .mono {
  color: var(--cyan);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.platform-grid h3 {
  margin: 0.55rem 0 0.35rem;
  font-size: 1.05rem;
}

.platform-grid p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* —— Search / filters —— */
.search-form {
  position: relative;
  width: 100%;
  max-width: 320px;
  min-width: 0;
}

.search-form input {
  width: 100%;
  height: 44px;
  padding: 0 2.4rem 0 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-form input:focus {
  border-color: rgba(51, 225, 194, 0.55);
  box-shadow: 0 0 0 3px rgba(51, 225, 194, 0.12);
}

.search-form kbd {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.1rem 0.35rem;
}

.filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.15rem;
}

.filters::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.18s;
  flex: 0 0 auto;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.filter-btn:hover {
  color: var(--text);
  border-color: rgba(51, 225, 194, 0.35);
}

.filter-btn.active {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink);
}

.status-filters .filter-btn.active {
  background: transparent;
  color: var(--cyan);
  border-color: rgba(51, 225, 194, 0.55);
  box-shadow: inset 0 0 0 1px rgba(51, 225, 194, 0.2);
}

.meta-bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.4rem 0 1rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.content-layout {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  max-width: 100%;
  min-width: 0;
}

.content-main {
  flex: 1;
  min-width: 0;
}

.preview-panel {
  display: none;
  width: 280px;
  flex-shrink: 0;
}

.preview-sticky {
  position: sticky;
  top: 5.5rem;
}

/* —— Cards —— */
.section {
  margin-bottom: 2rem;
  scroll-margin-top: 5rem;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--cyan-dim);
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 650;
  margin-bottom: 0.9rem;
}

.section-count {
  margin-left: 0.6rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
}

.card {
  display: block;
  padding: 0.95rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01)),
    var(--panel-solid);
  transition: transform 0.22s, border-color 0.22s, box-shadow 0.22s;
  opacity: 0;
  animation: rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  -webkit-tap-highlight-color: transparent;
  max-width: 100%;
  overflow: hidden;
}

@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: translateY(-5px);
    border-color: rgba(51, 225, 194, 0.4);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(51, 225, 194, 0.08);
  }
}

.card.is-soon {
  opacity: 0.7;
  cursor: default;
}

.card.is-soon:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--line);
}

.card-row {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}

.card-body {
  min-width: 0;
  flex: 1;
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 750;
  font-family: var(--display);
  flex-shrink: 0;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  font-size: 0.98rem;
  margin-bottom: 0.2rem;
}

.card-title strong {
  font-weight: 700;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.badge {
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.badge-live { color: var(--live); }
.badge-soon { color: var(--soon); }

.card-desc {
  font-size: 0.8rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-host {
  margin-top: 0.45rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: rgba(51, 225, 194, 0.75);
  max-width: 100%;
  line-height: 1.4;
  overflow-wrap: anywhere;
  word-break: break-all;
}

/* —— Preview —— */
.preview-empty,
.preview-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(12px);
  padding: 1.15rem;
}

.preview-empty {
  border-style: dashed;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.7;
}

.preview-card {
  border-color: rgba(51, 225, 194, 0.28);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  animation: rise 0.25s ease-out;
}

.preview-top {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 0.85rem;
}

.preview-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.1rem;
}

.preview-name {
  font-weight: 750;
  font-size: 1.05rem;
}

.preview-blurb {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.preview-meta {
  display: inline-block;
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--cyan-dim);
  color: var(--cyan);
  margin-bottom: 0.55rem;
}

.preview-host {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: rgba(51, 225, 194, 0.8);
  margin-bottom: 0.75rem;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.preview-tags span {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
}

.preview-actions {
  display: flex;
  gap: 0.5rem;
}

.preview-actions a,
.preview-actions span {
  flex: 1;
  text-align: center;
  padding: 0.65rem 0;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 650;
}

.preview-actions .btn-primary {
  border-radius: 10px;
  padding: 0.65rem 0;
}

.preview-actions .btn-ghost {
  border-radius: 10px;
  padding: 0.65rem 0;
}

.preview-actions .btn-disabled {
  border: 1px solid var(--line);
  color: var(--muted);
}

.empty {
  display: none;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
}

.empty.show { display: block; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem clamp(1.2rem, 4vw, 2.5rem) 2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.85rem;
  background: rgba(5, 7, 13, 0.7);
}

.site-footer strong {
  color: var(--text);
  font-family: var(--display);
  letter-spacing: 0.08em;
}

/* —— Responsive —— */
@media (max-width: 899px) {
  .topbar {
    padding: 0.85rem 1rem;
  }

  .brand-text {
    font-size: 0.82rem;
    letter-spacing: 0.08em;
  }

  .top-nav {
    gap: 0.55rem;
  }

  .top-nav a {
    display: none;
  }

  .top-nav .ghost {
    padding: 0.4rem 0.7rem;
  }

  .search-form kbd {
    display: none;
  }

  .search-form input {
    padding-right: 1rem;
  }

  .hero-stage {
    width: min(180px, 48vw);
  }

  .stage-core {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    font-size: 1.15rem;
  }

  .stage-nodes span {
    width: 7px;
    height: 7px;
  }

  .cta-row .btn {
    width: 100%;
  }

  .hero-stats .chip {
    font-size: 0.76rem;
    max-width: 100%;
  }

  .section-head.row {
    align-items: stretch;
    flex-direction: column;
  }

  .search-form {
    max-width: none;
  }

  .card-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.65rem;
  }

  .card {
    padding: 0.9rem 0.95rem;
  }

  .card-row {
    gap: 0.75rem;
    align-items: center;
  }

  .card-icon {
    width: 40px;
    height: 40px;
  }

  .card-title {
    flex-wrap: nowrap;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
  }

  .card-title strong {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .card-desc {
    -webkit-line-clamp: 2;
    font-size: 0.78rem;
  }

  .card-host {
    font-size: 0.7rem;
    margin-top: 0.35rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-break: normal;
    overflow-wrap: normal;
  }

  .meta-bar {
    flex-direction: column;
    gap: 0.25rem;
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  .services {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .fx-glow-a,
  .fx-glow-b {
    width: 70vw;
    height: 70vw;
    opacity: 0.28;
    filter: blur(60px);
  }

  #orbit {
    opacity: 0.28;
  }

  .site-footer {
    padding: 1.1rem 1rem 1.6rem;
    font-size: 0.8rem;
  }
}

@media (min-width: 720px) {
  .filters {
    flex-wrap: wrap;
    overflow: visible;
  }

  .hero-stage {
    width: min(280px, 42vw);
  }
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.5rem;
    min-height: min(78vh, 760px);
  }

  .hero-stage {
    width: 100%;
    order: 0;
  }

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

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

@media (min-width: 1100px) {
  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .preview-panel {
    display: block;
  }
}

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