:root {
  --ink: #f1eee5;
  --muted: #8e918d;
  --dim: #575b5b;
  --night: #101415;
  --night-2: #151a1b;
  --line: rgba(241, 238, 229, .15);
  --line-bright: rgba(241, 238, 229, .34);
  --paper: #ece9df;
  --orange: #ff8a3d;
  --acid: #c9ef54;
  --cyan: #5fe4d0;
  --pink: #ec77b7;
  --blue: #7c9dff;
  --paper-1: #dedbd1;
  --paper-2: #e7e4db;
  --paper-3: #f5f2e9;
  --mono: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --display: 'Space Grotesk', 'Inter', sans-serif;
  --gutter: 5vw;
  --content: 1240px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--night); scroll-behavior: smooth; }
body {
  min-width: 320px;
  overflow-x: hidden;
  background: var(--night);
  color: var(--ink);
  font-family: var(--display);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }

.site-noise {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: .035;
  mix-blend-mode: screen;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.grid-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .45;
  background-image: linear-gradient(rgba(241, 238, 229, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(241, 238, 229, .035) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.solutions-nav {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(700px, calc(100vw - 40px));
  min-height: 54px;
  padding: 0 20px 0 24px;
  transform: translateX(-50%);
  border: 1px solid rgba(241, 238, 229, .24);
  border-radius: 999px;
  background: rgba(16, 20, 21, .76);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .24), inset 0 1px rgba(255,255,255,.08);
  backdrop-filter: blur(24px) saturate(1.35);
  -webkit-backdrop-filter: blur(24px) saturate(1.35);
}
.nav-logo { font-size: 16px; font-weight: 700; letter-spacing: .04em; }
.nav-logo span { color: var(--orange); }
.nav-links { display: flex; gap: 30px; }
.nav-links a, .nav-back { color: var(--muted); font: 11px var(--mono); transition: color .25s ease; }
.nav-links a:hover, .nav-back:hover, .nav-links .active { color: var(--ink); }
.nav-links .active::after { display: inline-block; width: 4px; height: 4px; margin: 0 0 2px 6px; border-radius: 50%; background: var(--acid); content: ''; }
.nav-back { display: flex; align-items: center; gap: 7px; }
.nav-back span { color: var(--acid); font-size: 17px; line-height: 0; }

main { position: relative; z-index: 1; }
.solutions-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, .7fr);
  gap: 9vw;
  align-items: end;
  width: min(var(--content), calc(100vw - 2 * var(--gutter)));
  min-height: 670px;
  margin: 0 auto;
  padding: 180px 0 98px;
}
.eyebrow { color: var(--muted); font: 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.eyebrow-dot { display: inline-block; width: 7px; height: 7px; margin: 0 9px 1px 0; border-radius: 50%; background: var(--acid); box-shadow: 0 0 16px var(--acid); }
.hero-copy h1 { margin: 26px 0 40px; font-size: clamp(68px, 10.6vw, 154px); font-weight: 500; letter-spacing: -.075em; line-height: .82; }
.hero-copy h1 em { color: var(--acid); font-style: normal; }
.hero-rule { width: min(620px, 100%); height: 1px; background: var(--line-bright); }
.hero-bottomline { display: flex; justify-content: space-between; gap: 24px; padding-top: 16px; color: var(--muted); font: 11px var(--mono); }
.live-state { color: var(--acid); white-space: nowrap; }
.live-state i { display: inline-block; width: 5px; height: 5px; margin: 0 7px 1px 0; border-radius: 50%; background: currentColor; }
.hero-aside { min-height: 270px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; border: 1px solid var(--line); border-radius: 3px; padding: 30px 30px 0; }
.repo-mark { position: relative; display: block; padding: 0 0 42px; transition: transform .35s var(--ease); }
.repo-mark:hover { transform: translateX(8px); }
.repo-mark-label { display: block; margin-bottom: 15px; color: var(--muted); font: 10px var(--mono); letter-spacing: .12em; }
.repo-mark strong { font-size: 18px; font-weight: 500; line-height: 1.35; }
.repo-mark-arrow { position: absolute; top: 26px; right: 0; color: var(--orange); font-size: 24px; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 -30px; padding: 0 30px; border-top: 1px solid var(--line); }
.stat { min-height: 105px; padding: 17px 13px 12px 0; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; padding-left: 13px; }
.stat:not(:first-child) { padding-left: 13px; }
.stat span { display: block; color: var(--muted); font: 10px var(--mono); text-transform: uppercase; }
.stat strong { display: block; margin-top: 14px; color: var(--ink); font: 26px var(--mono); font-weight: 400; }

.solutions-toolbar { display: flex; align-items: center; gap: 26px; width: min(var(--content), calc(100vw - 2 * var(--gutter))); margin: 0 auto 86px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.toolbar-label { flex: 0 0 auto; color: var(--muted); font: 500 13px var(--mono); letter-spacing: .06em; }
.platform-filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-button { min-height: 42px; padding: 9px 15px; border: 1px solid transparent; border-radius: 3px; background: transparent; color: var(--muted); cursor: pointer; font: 500 14px var(--mono); transition: all .25s ease; }
.filter-button:hover { border-color: var(--line-bright); color: var(--ink); }
.filter-button.active { border-color: var(--acid); color: var(--acid); }
.search-box { display: flex; align-items: center; gap: 10px; min-width: 238px; min-height: 52px; margin-left: auto; padding: 0 16px; border: 1px solid rgba(241, 238, 229, .32); border-radius: 999px; background: rgba(27, 32, 33, .78); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), 0 8px 24px rgba(0, 0, 0, .18); color: var(--muted); backdrop-filter: blur(18px) saturate(1.45); -webkit-backdrop-filter: blur(18px) saturate(1.45); transition: border-color .25s ease, background .25s ease, box-shadow .25s ease; }
.search-box:focus-within { border-color: rgba(201, 239, 84, .55); background: rgba(31, 37, 38, .88); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 10px 28px rgba(0, 0, 0, .24), 0 0 0 3px rgba(201, 239, 84, .08); }
.search-box span { font-size: 22px; line-height: 1; }
.search-box input { width: 100%; padding: 9px 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: 500 14px var(--mono); }
.search-box input::placeholder { color: var(--muted); opacity: .86; }

.platform-list { width: min(var(--content), calc(100vw - 2 * var(--gutter))); margin: 0 auto; }
.platform-section { padding: 0 0 106px; animation: section-in .8s var(--ease) both; }
@keyframes section-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.platform-head { display: grid; grid-template-columns: 62px 144px minmax(0, 1fr) auto; gap: 25px; align-items: center; padding-bottom: 28px; border-bottom: 1px solid var(--line-bright); }
.platform-index { align-self: start; padding-top: 12px; color: var(--acid); font: 11px var(--mono); }
.platform-folder { display: flex; justify-content: center; align-items: center; height: 105px; }
.platform-title { font-size: clamp(32px, 4.2vw, 56px); font-weight: 500; letter-spacing: -.06em; line-height: 1; }
.platform-sub { margin-top: 12px; color: var(--muted); font: 10px var(--mono); }
.platform-count { align-self: start; padding-top: 12px; color: var(--muted); font: 11px var(--mono); white-space: nowrap; }
.platform-count strong { color: var(--ink); font-weight: 400; }
.solution-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 1px; background: var(--line); }
.solution-card { position: relative; display: flex; flex-direction: column; min-height: 272px; padding: 32px; background: var(--night); color: inherit; cursor: pointer; text-decoration: none; transition: background .3s ease, box-shadow .3s ease; }
.solution-card:hover { z-index: 2; background: var(--night-2); box-shadow: 0 16px 30px rgba(0,0,0,.22); }
.solution-card.border-glow-card:hover { --border-glow-surface: var(--night-2); }
.solution-card:focus-visible { z-index: 2; outline: 2px solid var(--acid); outline-offset: -2px; }
.solution-card-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font: 10px var(--mono); }
.difficulty { color: var(--accent, var(--acid)); }
.solution-title { max-width: 100%; margin: 40px 0 24px; font-size: 20px; font-weight: 500; letter-spacing: 0; line-height: 1.3; }
.solution-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.solution-tag { padding: 5px 8px; border: 1px solid var(--line); color: var(--muted); font: 9px var(--mono); }
.solution-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: auto; padding-top: 36px; color: var(--muted); font: 9px var(--mono); }
.solution-link { color: var(--ink); transition: color .2s ease; }
.solution-card:hover .solution-link { color: var(--acid); }
.solution-arrow { color: var(--orange); font-size: 16px; }
.empty-state { min-height: 190px; display: flex; justify-content: center; align-items: center; border-bottom: 1px solid var(--line); color: var(--dim); font: 11px var(--mono); }
.empty-state::before, .empty-state::after { width: 44px; height: 1px; margin: 0 16px; background: var(--line); content: ''; }
.offline-note { margin-top: 12px; color: var(--dim); font: 10px var(--mono); }

/* React Bits Folder, adapted for the no-framework site. */
.folder-wrap { transform: scale(.92); transform-origin: center; }
.folder { position: relative; width: 100px; height: 80px; cursor: pointer; transition: transform .25s ease-in; }
.folder:hover, .folder.open { transform: translateY(-7px); }
.folder__back { position: relative; width: 100px; height: 80px; border-radius: 0 9px 9px 9px; background: var(--folder-back-color); }
.folder__back::after { position: absolute; bottom: 98%; left: 0; width: 30px; height: 10px; border-radius: 5px 5px 0 0; background: var(--folder-back-color); content: ''; }
.folder__front { position: absolute; z-index: 3; width: 100%; height: 100%; border-radius: 5px 10px 10px 10px; background: var(--folder-color); transform-origin: bottom; transition: transform .3s ease-in-out; }
.folder__front.right { z-index: 4; opacity: .94; transform-origin: bottom right; }
.folder:hover .folder__front, .folder.open .folder__front { transform: skew(15deg) scaleY(.6); }
.folder:hover .folder__front.right, .folder.open .folder__front.right { transform: skew(-15deg) scaleY(.6); }
.paper { position: absolute; z-index: 2; bottom: 10%; left: 50%; width: 70%; height: 80%; padding: 8px; overflow: hidden; transform: translate(-50%, 10%); border-radius: 4px; background: var(--paper-1); color: #232526; transition: transform .3s ease-in-out; font: 7px var(--mono); line-height: 1.2; }
.paper:nth-child(2) { width: 80%; height: 70%; background: var(--paper-2); }
.paper:nth-child(3) { width: 90%; height: 60%; background: var(--paper-3); }
.paper em { display: block; margin-top: 4px; color: #757872; font-size: 6px; font-style: normal; }
.folder.open .paper:nth-child(1) { transform: translate(-120%, -70%) rotate(-15deg); }
.folder.open .paper:nth-child(2) { height: 80%; transform: translate(10%, -70%) rotate(15deg); }
.folder.open .paper:nth-child(3) { height: 80%; transform: translate(-50%, -100%) rotate(5deg); }
.folder:focus-visible { outline: 2px solid var(--acid); outline-offset: 5px; }

.solutions-footer { display: flex; justify-content: space-between; width: min(var(--content), calc(100vw - 2 * var(--gutter))); margin: 30px auto 0; padding: 22px 0 40px; border-top: 1px solid var(--line); color: var(--dim); font: 10px var(--mono); }

@media (max-width: 760px) {
  .solutions-nav { top: 12px; width: calc(100vw - 28px); }
  .nav-links { gap: 14px; }
  .nav-back { font-size: 0; }
  .nav-back span { font-size: 20px; }
  .solutions-hero { display: block; min-height: 0; padding-top: 155px; padding-bottom: 72px; }
  .hero-copy h1 { margin-top: 22px; font-size: clamp(64px, 19vw, 108px); }
  .hero-bottomline { display: block; }
  .live-state { display: block; margin-top: 10px; }
  .hero-aside { min-height: auto; margin-top: 64px; }
  .repo-mark { padding: 25px 0 30px; border-top: 1px solid var(--line); }
  .stat { min-height: 95px; }
  .stat strong { font-size: 20px; }
  .solutions-toolbar { display: block; margin-bottom: 62px; }
  .platform-filters { margin: 15px 0 18px; }
  .search-box { width: 100%; margin-left: 0; }
  .platform-head { grid-template-columns: 35px 100px minmax(0, 1fr); gap: 13px; }
  .platform-folder { height: 94px; transform: scale(.82); }
  .platform-count { grid-column: 3; padding-top: 0; }
  .platform-title { font-size: clamp(29px, 9vw, 42px); }
  .solution-grid { grid-template-columns: 1fr; }
  .solution-card { min-height: 244px; padding: 27px 24px; }
  .solution-title { margin-top: 32px; }
  .solution-footer { padding-top: 30px; }
  .empty-state { min-height: 150px; text-align: center; }
  .empty-state::before, .empty-state::after { width: 18px; margin: 0 8px; }
  .solutions-footer { display: block; line-height: 2; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.platform-sub, .solution-link { line-height: 1.7; }
