:root {
  --bg: #030305;
  --bg-soft: #0c0c14;
  --panel: rgba(10, 10, 15, 0.7);
  --panel-strong: rgba(15, 15, 23, 0.85);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.15);
  --text: #ffffff;
  --muted: #a1a1aa;
  --soft: #71717a;
  --accent: #ff3366;
  --accent-secondary: #ff9933;
  --success: #34d399;
  --cool: #60a5fa;
  --radius-xl: 24px;
  --shadow-lg: 0 30px 90px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 20px 48px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 40px rgba(255, 51, 102, 0.2);
  --max: 1320px;
  --font-display: "Outfit", "Inter", sans-serif;
  --font-sans: "Inter", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Cascadia Code", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

@property --grad-x {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 10%;
}

@property --grad-y {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 0%;
}

@property --grad-x2 {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 90%;
}

@keyframes fluid-bg {
  0% {
    --grad-x: 10%;
    --grad-y: 0%;
    --grad-x2: 90%;
  }

  50% {
    --grad-x: 25%;
    --grad-y: 15%;
    --grad-x2: 75%;
  }

  100% {
    --grad-x: 10%;
    --grad-y: 0%;
    --grad-x2: 90%;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at var(--grad-x) var(--grad-y), oklch(0.7 0.08 60 / 0.18), transparent 30%),
    radial-gradient(circle at var(--grad-x2) 20%, oklch(0.6 0.04 250 / 0.12), transparent 30%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 50%, var(--bg) 100%);
  animation: fluid-bg 15s ease-in-out infinite;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 94px 94px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.36), transparent 84%);
  opacity: 0.34;
}

.ambient-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 0.7px, transparent 0.7px);
  background-size: 5px 5px;
  animation: ambient-shift 20s ease-in-out infinite alternate;
}

.skip-link {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  z-index: 30;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: rgba(10, 10, 15, 0.96);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

a {
  color: inherit;
  text-decoration: none;
  touch-action: manipulation;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

button {
  touch-action: manipulation;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 14px 14px 0;
}

.header-shell,
.hero-shell,
.section-shell,
.footer-shell,
.error-card {
  width: min(100%, var(--max));
  margin: 0 auto;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 58%),
    var(--panel);
  box-shadow: var(--shadow-md);
}

.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: 999px;
  backdrop-filter: blur(18px);
}

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

.brand-lockup img {
  width: 50px;
  height: 50px;
}

.brand-copy {
  display: grid;
  gap: 0.08rem;
}

.brand-root,
.brand-copy strong,
.eyebrow,
.section-index,
.card-type,
.card-status,
.card-family,
.hero-total span,
.footer-title,
.footer-links a,
.error-card .eyebrow {
  font-family: var(--font-mono);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.brand-root {
  color: var(--soft);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
}

.brand-copy strong {
  font-size: 1.36rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem;
}

.top-nav a {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

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

.brand-lockup:focus-visible,
.top-nav a:focus-visible,
.button:focus-visible,
.footer-links a:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 4px;
}

main {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0 14px 56px;
}

.hero-section,
.showcase-section {
  margin-top: 18px;
  scroll-margin-top: 96px;
}

.hero-shell {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border-radius: 40px;
  background:
    radial-gradient(circle at top left, rgba(215, 161, 111, 0.14), transparent 26%),
    radial-gradient(circle at bottom right, rgba(96, 165, 250, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 58%),
    var(--panel-strong);
  box-shadow: var(--shadow-lg);
}

.hero-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-state {
  margin: 0;
  min-height: 2rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--soft);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-copy {
  display: grid;
  gap: 0.95rem;
}

.hero-support {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: end;
}

.hero-support-copy {
  display: grid;
  gap: 1rem;
  max-width: 38rem;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
}

.hero-copy h1,
.section-heading h2,
.error-card h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.94;
  text-wrap: balance;
}

.hero-copy h1 {
  max-width: 12ch;
  font-size: clamp(3.2rem, 7vw, 6.25rem);
}

.hero-text,
.notice-copy,
.card-body p,
.footer-copy,
.error-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.hero-text {
  max-width: 34rem;
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  padding-top: 0.25rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.9rem 1.3rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 16px rgba(255, 51, 102, 0.3);
}

.button-secondary {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
}

.hero-totals {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-end;
  align-self: end;
}

.hero-total {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  padding-right: 1rem;
  border-right: 1px solid var(--line);
}

.hero-total:last-child {
  padding-right: 0;
  border-right: 0;
}

.hero-total strong {
  display: block;
  font-size: clamp(1.9rem, 3vw, 2.35rem);
  font-weight: 700;
  line-height: 1;
}

.hero-total span {
  color: var(--soft);
  font-size: 0.62rem;
}

.hero-stage {
  position: relative;
  min-height: clamp(24rem, 44vw, 38rem);
  margin-top: 0.25rem;
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 16% 8% 12%;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 72%),
    rgba(255, 255, 255, 0.01);
}

.hero-screen {
  position: relative;
  overflow: hidden;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(160deg, rgba(215, 161, 111, 0.14), transparent 36%),
    rgba(19, 23, 28, 0.95);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}

.hero-stage .hero-screen {
  position: absolute;
}

.hero-screen-primary {
  top: 5.6rem;
  left: 18%;
  width: 56%;
  aspect-ratio: 16 / 10;
  z-index: 3;
}

.hero-screen-secondary {
  top: 0.5rem;
  left: 0;
  width: 31%;
  aspect-ratio: 16 / 10;
  transform: rotate(-4deg);
  z-index: 2;
}

.hero-screen-tertiary {
  top: 2rem;
  right: 0;
  width: 28%;
  aspect-ratio: 16 / 10;
  transform: rotate(3deg);
  z-index: 2;
}

.hero-screen-quaternary {
  right: 8%;
  bottom: 0;
  width: 34%;
  aspect-ratio: 16 / 10;
  transform: rotate(-2deg);
  z-index: 1;
}

.hero-screen::after,
.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(8, 10, 12, 0.22) 100%);
  pointer-events: none;
}

.hero-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
  animation: frame-drift 22s ease-in-out infinite alternate;
}

.section-shell,
.footer-shell {
  border-radius: var(--radius-xl);
}

.section-shell {
  padding: clamp(1.2rem, 3vw, 1.8rem);
}

.section-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.2rem;
}

.section-index {
  color: var(--accent);
  font-size: 0.7rem;
  transform: translateY(-0.2rem);
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.showcase-grid {
  display: grid;
  gap: 1rem;
}

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

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

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

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

.showcase-card,
.entry-empty {
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 58%),
    rgba(16, 19, 23, 0.94);
}

.showcase-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 0.95rem;
  min-height: 100%;
  padding: 0;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.showcase-card:hover,
.showcase-card:focus-within {
  transform: translateY(-5px);
  border-color: rgba(255, 51, 102, 0.4);
  box-shadow: var(--shadow-glow);
}

.feature-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 58%),
    rgba(14, 17, 21, 0.96);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.feature-card:hover,
.feature-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(255, 51, 102, 0.28);
  box-shadow: var(--shadow-glow);
}

.feature-card > :not(.card-overlay-link) {
  position: relative;
  z-index: 1;
}

.feature-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background:
    linear-gradient(160deg, rgba(215, 161, 111, 0.15), transparent 42%),
    rgba(18, 22, 27, 0.98);
}

.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms ease;
}

.feature-card:hover .feature-media img,
.feature-card:focus-within .feature-media img {
  transform: scale(1.03);
}

.feature-body {
  display: grid;
  gap: 0.5rem;
  padding: 1rem 1.1rem 0.9rem;
}

.feature-family {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.feature-body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.feature-body p {
  margin: 0;
  color: var(--soft);
  font-size: 0.92rem;
  line-height: 1.6;
}

.feature-footer {
  display: flex;
  justify-content: flex-end;
  padding: 0 1.1rem 1.1rem;
}

.showcase-card > :not(.card-overlay-link) {
  position: relative;
  z-index: 1;
}

.card-media {
  position: relative;
  overflow: hidden;
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background:
    linear-gradient(160deg, rgba(215, 161, 111, 0.16), transparent 36%),
    rgba(18, 22, 27, 0.98);
}

.card-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 320ms ease;
}

.showcase-card:hover .card-media img,
.showcase-card:focus-within .card-media img {
  transform: scale(1.035);
}

.showcase-card[data-group="tools"] .card-media img,
.showcase-card[data-group="games"] .card-media img {
  filter: brightness(1.12) contrast(1.04);
}

.card-meta,
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  padding: 0 1.25rem;
}

.card-footer {
  padding-bottom: 1.25rem;
}

.card-type,
.card-status,
.card-family {
  display: inline-flex;
  align-items: center;
  min-height: 1.85rem;
  padding: 0.34rem 0.7rem;
  border-radius: 999px;
  font-size: 0.6rem;
}

.card-type {
  color: var(--cool);
  background: rgba(157, 171, 181, 0.12);
}

.card-status {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
}

.card-status[data-status="live"] {
  color: #dff6e7;
  background: rgba(143, 208, 166, 0.18);
}

.card-status[data-status="in-progress"] {
  color: #f7e7d7;
  background: rgba(215, 161, 111, 0.16);
}

.card-body {
  display: grid;
  gap: 0.55rem;
  padding: 0 1.25rem;
}

.card-body h3 {
  margin: 0;
  font-size: clamp(1.35rem, 1.8vw, 1.8rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.card-body p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.card-family {
  color: var(--soft);
  background: rgba(255, 255, 255, 0.035);
}

.card-link {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.card-link::after {
  content: " ->";
  color: var(--accent);
}

.card-link.is-disabled {
  color: var(--soft);
}

.card-link.is-disabled::after {
  content: "";
}

.card-overlay-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
}

.card-overlay-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: -6px;
}

.entry-empty {
  padding: 1rem;
  color: var(--soft);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.02);
}

.site-footer {
  width: min(100%, var(--max));
  margin: 18px auto 0;
  padding: 0 14px 40px;
}

.footer-shell {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.35rem;
}

.footer-title {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
}

.footer-copy {
  max-width: 38ch;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  color: var(--soft);
  font-size: 0.66rem;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text);
}

.reveal {
  opacity: 1;
  transform: none;
}

.error-page {
  display: grid;
  min-height: 100vh;
  padding: 22px;
}

.error-shell {
  display: grid;
  align-content: center;
  width: 100%;
}

.error-card {
  display: grid;
  gap: 1rem;
  padding: 1.6rem;
  border-radius: 32px;
}

.error-card h1 {
  font-size: clamp(2.7rem, 7vw, 4.5rem);
}

@keyframes ambient-shift {
  0% {
    opacity: 0.03;
    transform: translate3d(0, 0, 0);
  }

  100% {
    opacity: 0.05;
    transform: translate3d(0, -8px, 0);
  }
}

@keyframes frame-drift {
  0% {
    transform: scale(1.02) translate3d(0, 0, 0);
  }

  100% {
    transform: scale(1.06) translate3d(0, -8px, 0);
  }
}

@media (max-width: 1100px) {
  .hero-support {
    grid-template-columns: 1fr;
  }

  .hero-totals {
    justify-content: flex-start;
  }

  .hero-stage {
    min-height: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .hero-stage::before {
    display: none;
  }

  .hero-stage .hero-screen {
    position: relative;
    inset: auto;
    width: auto;
    aspect-ratio: 16 / 10;
    transform: none;
  }

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

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

@media (max-width: 760px) {
  html {
    scroll-behavior: auto;
  }

  .site-header {
    padding: 10px 10px 0;
  }

  .header-shell {
    flex-direction: column;
    align-items: flex-start;
    border-radius: 28px;
  }

  .top-nav {
    width: 100%;
    justify-content: space-between;
    gap: 0.85rem;
  }

  main,
  .site-footer {
    padding-left: 10px;
    padding-right: 10px;
  }

  .hero-shell,
  .section-shell,
  .footer-shell,
  .showcase-card,
  .error-card {
    border-radius: 24px;
  }

  .hero-copy h1 {
    max-width: 10ch;
    font-size: clamp(2.8rem, 12vw, 4.4rem);
  }

  .hero-topline,
  .hero-support,
  .hero-stage,
  .showcase-grid-websites,
  .showcase-grid-tools,
  .showcase-grid-features,
  .showcase-grid-games {
    grid-template-columns: 1fr;
  }

  .hero-topline {
    align-items: flex-start;
  }

  .hero-stage .hero-screen {
    aspect-ratio: 16 / 10;
  }

  .hero-totals {
    gap: 0.7rem;
  }

  .hero-total {
    width: 100%;
    justify-content: space-between;
    padding-right: 0;
    padding-bottom: 0.7rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-total:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .hero-actions,
  .footer-shell {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }
}

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

@supports (animation-timeline: view()) {
  .showcase-card {
    animation: fade-in-up linear both;
    animation-timeline: view();
    animation-range: entry 5% cover 25%;
  }
}

@keyframes fade-in-up {
  from {
    opacity: 1;
    transform: translateY(24px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.4s;
}

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 18px;
  height: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.22);
  border-radius: 2px;
  clip-path: polygon(0 0, 82% 50%, 52% 58%, 66% 100%, 50% 100%, 38% 64%, 0 100%);
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transform: translate(0, 0);
  transform-origin: 0 0;
  transition: filter 0.18s ease, opacity 0.12s ease;
  will-change: transform;
}

.cursor-dot.cursor-hover {
  filter: drop-shadow(0 0 10px rgba(255, 153, 51, 0.45));
}
