/* Icons8 homepage — hybrid A+B
   Dev-tool chrome (Linear/Vercel/Cursor) + editorial hero composition (Arc/Linear marketing).
   Yellow accent stays. */

/* ===== Fonts ===== */
@import url('https://rsms.me/inter/inter.css');
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&display=swap');

:root {
  /* core neutrals — slightly cooler than Noe to feel less product-ui, more landing */
  --ink:          #0a0a0a;
  --text:         #18181b;
  --text-2:       #3f3f46;
  --muted:        #71717a;
  --muted-2:      #a1a1aa;
  --line:         #e6e6e9;
  --line-strong:  #d4d4d8;
  --row-hover:    #f6f6f7;
  --bg:           #fafafa;
  --bg-2:         #f4f4f5;
  --panel:        #ffffff;

  /* accent (overridden at runtime from tweaks) */
  --accent:       #FACC15;
  --accent-ink:   #0a0a0a;
  --accent-soft:  color-mix(in oklch, var(--accent) 14%, transparent);

  /* type */
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --serif: "Instrument Serif", "GT Sectra", "Tiempos", Georgia, serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --tracking-tight: -0.035em;
  --tracking-body:  -0.005em;
  --tracking-label: 0.06em;

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
}

/* dark mode */
html[data-mode="dark"] {
  --ink:         #ffffff;
  --text:        #fafafa;
  --text-2:      #d4d4d8;
  --muted:       #a1a1aa;
  --muted-2:     #71717a;
  --line:        #27272a;
  --line-strong: #3f3f46;
  --row-hover:   #18181b;
  --bg:          #0a0a0a;
  --bg-2:        #131316;
  --panel:       #161618;
  color-scheme: dark;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: var(--tracking-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; letter-spacing: inherit; }
input, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
img { max-width: 100%; display: block; }

.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.005em; }
.italic { font-style: italic; }
.muted { color: var(--muted); }
.t-section-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--muted-2);
}
.t-section-label.dim { color: var(--muted); }

.kbd {
  font-family: var(--mono); font-size: 10.5px;
  background: var(--bg-2);
  color: var(--text-2);
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  line-height: 1;
}
kbd {
  font-family: var(--mono); font-size: 10px;
  background: rgba(0,0,0,0.06);
  padding: 1px 5px; border-radius: 3px;
  color: var(--text-2);
}
html[data-mode="dark"] kbd { background: rgba(255,255,255,0.08); }

/* ===== Wordmark ===== */
.wordmark {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 18px;
}

/* ============================================================
   TOP NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklch, var(--bg) 80%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1320px; margin: 0 auto;
  padding: 0 28px;
  height: 60px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
}
.nav-brand { line-height: 0; }
.nav-links { display: flex; gap: 4px; align-items: center; position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 7px 12px;
  font-size: 13.5px; font-weight: 500;
  color: var(--text-2);
  border-radius: var(--radius-sm);
  transition: background 0.12s, color 0.12s;
}
.nav-link:hover, .nav-link.is-open { background: var(--row-hover); color: var(--ink); }
.nav-link.compact { padding: 7px 10px; }
.nav-link svg { opacity: 0.55; }

.nav-right {
  display: flex; align-items: center; gap: 6px;
}
.nav-search-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 6px 8px 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  color: var(--muted);
  transition: border-color 0.12s;
  min-width: 240px;
}
.nav-search-btn:hover { border-color: var(--line-strong); }
.nav-search-btn span { flex: 1; text-align: left; }
.nav-search-btn svg { opacity: 0.7; }

.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--ink);
  color: var(--bg);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500;
  transition: filter 0.1s;
}
.nav-cta:hover { filter: brightness(1.08); }
html[data-mode="dark"] .nav-cta { background: var(--accent); color: var(--accent-ink); }

/* mega menu */
.nav-mega {
  position: absolute; top: calc(100% + 16px); left: 50%;
  transform: translateX(-50%);
  display: grid; grid-template-columns: repeat(3, 200px); gap: 4px;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  z-index: 60;
}
.nav-mega::before {
  content: ""; position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
  width: 16px; height: 16px;
}
.mega-col { display: flex; flex-direction: column; gap: 1px; }
.mega-label {
  font-size: 10px; font-weight: 600;
  letter-spacing: var(--tracking-label); text-transform: uppercase;
  color: var(--muted-2);
  padding: 8px 10px 4px;
}
.mega-col a {
  display: flex; flex-direction: column; gap: 1px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.mega-col a:hover { background: var(--row-hover); }
.mega-col a b { font-size: 13px; font-weight: 500; color: var(--ink); }
.mega-col a span { font-size: 11.5px; color: var(--muted); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding-top: 24px;
  padding-bottom: 80px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-bloom {
  position: absolute;
  top: -120px; right: -100px;
  width: 720px; height: 720px;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, color-mix(in oklch, var(--accent) 40%, transparent), transparent 70%),
    radial-gradient(closest-side at 60% 60%, color-mix(in oklch, #FF8AB0 30%, transparent), transparent 70%);
  filter: blur(80px);
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}
html[data-mode="dark"] .hero-bloom { opacity: 0.35; }

.hero-inner {
  position: relative; z-index: 1;
  max-width: 1320px; margin: 0 auto;
  padding: 56px 28px 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 72px;
  align-items: start;
}

.hero-text { padding-top: 8px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 28px;
  padding: 5px 10px 5px 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.hero-eyebrow em { color: var(--text); font-style: normal; font-weight: 500; }
.hero-eyebrow .sep { color: var(--muted-2); }
.dot-pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34,197,94,0.18);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(34,197,94,0.18); }
  50%      { box-shadow: 0 0 0 5px rgba(34,197,94,0.0); }
}

.hero-h1 {
  margin: 0 0 22px;
  font-size: clamp(40px, 6vw, 78px);
  line-height: 0.96;
  letter-spacing: var(--tracking-tight);
  font-weight: 500;
  color: var(--ink);
  text-wrap: balance;
}
.h1-line { display: block; }
.h1-line.serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.025em;
}

.hero-deck {
  margin: 0 0 30px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--text-2);
  max-width: 50ch;
  text-wrap: pretty;
}
.hero-deck code {
  font-family: var(--mono); font-size: 13px;
  background: var(--bg-2);
  padding: 1px 6px; border-radius: 4px;
  color: var(--ink);
  border: 1px solid var(--line);
}

/* hero search */
.hero-search {
  display: flex; align-items: center; gap: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 9px 9px 9px 14px;
  border-radius: 14px;
  box-shadow: 0 2px 0 rgba(0,0,0,0.02), 0 12px 32px -16px rgba(0,0,0,0.08);
  max-width: 540px;
  transition: border-color 0.12s, box-shadow 0.12s;
}
.hero-search:focus-within {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 4px var(--accent-soft), 0 12px 32px -16px rgba(0,0,0,0.08);
}
.hero-search svg { color: var(--muted); flex-shrink: 0; }
.hero-search input {
  flex: 1; border: 0; background: none; outline: 0;
  font-size: 15px; min-width: 0;
}
.hero-search input::placeholder { color: var(--muted-2); }
.hero-search-go {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 7px 12px;
  border-radius: 9px;
  font-size: 13px; font-weight: 500;
  transition: filter 0.1s;
}
.hero-search-go:hover { filter: brightness(1.08); }

.hero-trending {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  margin-top: 18px;
}
.hero-trending .t-label {
  font-size: 10.5px; font-weight: 600;
  letter-spacing: var(--tracking-label);
  color: var(--muted-2);
  margin-right: 6px;
}
.trend-chip {
  font-size: 12px; padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-2);
  background: var(--panel);
  transition: border-color 0.12s, color 0.12s;
}
.trend-chip:hover { border-color: var(--line-strong); color: var(--ink); }

/* hero showcase */
.hero-show {
  position: relative;
}
.show-frame {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex; flex-direction: column; gap: 16px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02), 0 30px 60px -30px rgba(0,0,0,0.12);
}
.show-meta {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 11px;
  color: var(--muted);
}
.show-meta em { color: var(--text); font-style: normal; }
.show-meta-r em { font-family: var(--serif); font-style: italic; font-size: 13px; color: var(--text); }

.show-icon {
  position: relative;
  aspect-ratio: 1 / 0.78;
  border-radius: var(--radius);
  background: var(--bg-2);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.show-icon-inner {
  position: relative; z-index: 1;
  width: 50%; max-width: 220px;
  aspect-ratio: 1;
  color: var(--ink);
  transition: transform 0.3s ease;
}
.show-icon-inner svg { width: 100%; height: 100%; stroke-width: 1.2; }

.show-bg-grid {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(8, 1fr);
  opacity: 0.4;
}
.show-bg-grid span {
  border-right: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
}
.show-bg-grid span:nth-child(8n) { border-right: 0; }
.show-bg-grid span:nth-last-child(-n+8) { border-bottom: 0; }

/* style variants of featured icon */
.show-icon.style-outline .show-icon-inner svg { stroke-width: 1.2; fill: none; }
.show-icon.style-filled  .show-icon-inner svg { stroke: var(--ink); stroke-width: 0; fill: var(--ink); }
.show-icon.style-filled  .show-icon-inner svg path,
.show-icon.style-filled  .show-icon-inner svg circle { fill: var(--ink); }
.show-icon.style-color   {
  background: var(--accent);
}
.show-icon.style-color .show-icon-inner svg { stroke-width: 1.8; }
.show-icon.style-glyph   .show-icon-inner { transform: scale(0.85); }
.show-icon.style-glyph   .show-icon-inner svg { stroke-width: 2.4; }
.show-icon.style-hand    .show-icon-inner svg { stroke-width: 1.8; stroke-linecap: round; filter: url(#wobble); }
.show-icon.style-3d      {
  background: radial-gradient(circle at 30% 25%, #fff, var(--bg-2) 50%, var(--line-strong));
}
.show-icon.style-3d .show-icon-inner svg { stroke-width: 1.4; filter: drop-shadow(0 6px 10px rgba(0,0,0,0.18)); }

.show-styles {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}
.show-style {
  display: flex; flex-direction: column; gap: 6px; align-items: center;
  padding: 8px 4px 6px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 10.5px; color: var(--muted);
  background: var(--panel);
  transition: all 0.12s;
}
.show-style:hover { border-color: var(--line-strong); color: var(--text-2); }
.show-style.is-on { border-color: var(--ink); color: var(--ink); }
.style-thumb {
  width: 100%; aspect-ratio: 1;
  background: var(--bg-2);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
}
.style-thumb svg { width: 65%; height: 65%; }
.thumb-color { background: var(--accent); }
.thumb-color svg { stroke-width: 1.8; }
.thumb-filled svg { fill: var(--ink); stroke-width: 0; }
.thumb-glyph svg { stroke-width: 2.4; }
.thumb-hand svg { stroke-width: 1.8; }
.thumb-3d { background: radial-gradient(circle at 30% 25%, #fff, var(--bg-2) 60%, var(--line-strong)); }

.show-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.show-foot-l { display: flex; gap: 4px; flex-wrap: wrap; }
.show-foot-l kbd {
  font-family: var(--mono); font-size: 10px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-2);
}
.show-foot-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--ink); color: var(--bg);
  padding: 7px 12px;
  border-radius: 7px;
  font-size: 12px; font-weight: 500;
}
.show-foot-cta:hover { filter: brightness(1.1); }

/* hero marquee */
.hero-marquee {
  margin-top: 14px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0.12em;
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
          mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.marquee-track {
  display: flex; gap: 3px; white-space: nowrap;
  animation: marquee 32s linear infinite;
  will-change: transform;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   GRID BLOCK
   ============================================================ */
.grid-block {
  max-width: 1320px;
  margin: 0 auto;
  padding: 96px 28px 80px;
}
.block-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: end;
  margin-bottom: 36px;
}
.block-head.simple { grid-template-columns: 1fr; margin-bottom: 28px; }
.block-h2 {
  margin: 8px 0 0;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.05;
  letter-spacing: var(--tracking-tight);
  font-weight: 500;
  color: var(--ink);
  text-wrap: balance;
}
.block-h2 .muted { color: var(--muted); }

.grid-filter-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.grid-search {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 7px 10px;
  border-radius: 8px;
  min-width: 200px;
}
.grid-search svg { color: var(--muted); }
.grid-search input {
  flex: 1; border: 0; background: none; outline: 0;
  font-size: 13px; min-width: 0;
}
.grid-search button {
  color: var(--muted-2); font-size: 14px;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.grid-search button:hover { background: var(--bg-2); color: var(--ink); }

.pack-chips { display: flex; gap: 4px; flex-wrap: wrap; }
.pack-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 500;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-2);
  background: var(--panel);
  transition: all 0.12s;
}
.pack-chip:hover { border-color: var(--line-strong); color: var(--ink); }
.pack-chip.is-on {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.chip-count {
  font-family: var(--mono); font-size: 10px;
  background: rgba(255,255,255,0.18);
  padding: 1px 5px; border-radius: 999px;
}
.pack-chip:not(.is-on) .chip-count { background: var(--bg-2); color: var(--muted); }

.icon-grid {
  display: grid;
  gap: 4px;
}
.icon-grid.d-comfortable { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.icon-grid.d-dense       { grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); }

.cell {
  position: relative;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 6px;
  padding: 18px 8px 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: all 0.1s ease;
  aspect-ratio: 1;
}
.icon-grid.d-dense .cell { padding: 12px 6px 8px; }
.cell:hover {
  border-color: var(--line-strong);
  background: var(--panel);
  transform: translateY(-1px);
  z-index: 2;
}
.cell:hover .cell-copy { opacity: 1; transform: translateY(0); }
.cell-icon {
  color: var(--ink);
  width: 38%;
}
.icon-grid.d-dense .cell-icon { width: 44%; }
.cell-icon svg { width: 100%; height: auto; display: block; }
.cell-name {
  font-family: var(--mono); font-size: 10px;
  color: var(--muted);
  margin-top: auto;
  overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; max-width: 100%;
}
.icon-grid.d-dense .cell-name { display: none; }
.cell-copy {
  position: absolute; top: 6px; right: 6px;
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  opacity: 0; transform: translateY(-2px);
  transition: opacity 0.12s, transform 0.12s, color 0.12s;
}
.cell-copy:hover { color: var(--ink); }

.grid-empty {
  grid-column: 1 / -1;
  padding: 80px 0;
  text-align: center;
  color: var(--muted);
}
.grid-empty p { margin: 6px 0 0; }

.grid-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}
.grid-foot-l { font-family: var(--mono); font-size: 11.5px; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 500;
  color: var(--ink);
}
.link-arrow svg { transition: transform 0.12s; }
.link-arrow:hover svg { transform: translateX(2px); }

/* ============================================================
   BENTO
   ============================================================ */
.bento {
  max-width: 1320px;
  margin: 0 auto;
  padding: 80px 28px;
  border-top: 1px solid var(--line);
}
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 260px;
  gap: 8px;
}
.tile {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 22px 18px;
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: border-color 0.12s;
}
.tile:hover { border-color: var(--line-strong); }
.tile-wide { grid-column: span 2; grid-row: span 2; }
.tile header {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px;
  margin-bottom: 12px;
}
.tile-kicker {
  font-family: var(--mono);
  color: var(--muted);
  letter-spacing: 0.04em;
}
.tile-stat {
  font-family: var(--mono); font-size: 11px;
  color: var(--text-2);
  background: var(--bg-2);
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.tile-stat-new {
  background: var(--accent); color: var(--accent-ink);
  border-color: transparent;
}
.tile h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--ink);
  text-wrap: balance;
  max-width: 22ch;
}
.tile-wide h3 { font-size: 30px; max-width: 18ch; }
.tile footer {
  margin-top: auto;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px;
}
.tile-link {
  font-weight: 500; color: var(--ink);
}
.tile-link:hover { text-decoration: underline; }
.tile-meta {
  font-family: var(--mono); font-size: 10.5px;
  color: var(--muted-2);
}

.tile-art {
  flex: 1;
  margin: 14px -6px 14px;
  position: relative;
  overflow: hidden;
}

/* icons tile art — floating colored squares */
.tile-art-icons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  align-content: center;
  padding: 6px;
}
.tile-art-icons .floaty {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 8px;
  width: 100%;
  height: 100%;
}
.tile-art-icons .floaty span {
  border-radius: 12px;
  aspect-ratio: 1;
  display: block;
}

/* illustrations: organic blobs */
.tile-art-ill {
  position: relative;
}
.tile-art-ill .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(4px);
}
.tile-art-ill .b1 { width: 80%; height: 80%; left: -10%; top: 0; background: radial-gradient(circle at 30% 30%, #ffd0a0, transparent 70%); }
.tile-art-ill .b2 { width: 70%; height: 70%; right: -10%; top: 20%; background: radial-gradient(circle at 30% 30%, #b8b3ff, transparent 70%); }
.tile-art-ill .b3 { width: 50%; height: 50%; left: 30%; bottom: -10%; background: radial-gradient(circle at 30% 30%, #ffb4b4, transparent 70%); }

/* dark tile */
.tile-dark {
  background: #0a0a0a;
  border-color: #0a0a0a;
  color: #fafafa;
}
.tile-dark h3 { color: #fff; }
.tile-dark .tile-kicker { color: #71717a; }
.tile-dark .tile-stat { background: rgba(255,255,255,0.06); color: #d4d4d8; border-color: rgba(255,255,255,0.1); }
.tile-dark .tile-link { color: #fff; }

.tile-art-ai {
  display: flex; flex-direction: column; gap: 10px;
  justify-content: center;
  padding: 6px;
}
.ai-prompt {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 12px;
}
.ai-prompt-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #FF8AB0);
  flex-shrink: 0;
}
.ai-prompt-text { flex: 1; color: #d4d4d8; }
.ai-prompt-send {
  width: 20px; height: 20px;
  background: var(--accent); color: var(--accent-ink);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600;
}
.ai-out {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
}
.ai-out span {
  aspect-ratio: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.ai-out span svg { width: 50%; height: 50%; }

/* photos: grid of fake photos */
.tile-art-photos {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 4px;
}
.tile-art-photos .ph {
  border-radius: 8px;
  background-size: cover;
}
.ph.p1 { background: linear-gradient(135deg, #f8d4a8, #d97a4a); }
.ph.p2 { background: linear-gradient(160deg, #b9d4ff, #6b89c4); }
.ph.p3 { background: linear-gradient(120deg, #c9efc4, #4a8a6a); }
.ph.p4 { background: linear-gradient(180deg, #f0c4d0, #b86a8a); }

/* lunacy: little design canvas */
.tile-art-lunacy {
  display: flex; align-items: center; justify-content: center;
}
.lunacy-canvas {
  width: 80%; aspect-ratio: 1.4;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.lc-toolbar {
  display: flex; gap: 4px;
  padding: 6px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.lc-toolbar i { width: 8px; height: 8px; border-radius: 2px; background: var(--line-strong); }
.lc-content {
  flex: 1; position: relative;
}
.lc-rect { position: absolute; left: 18%; top: 20%; width: 40%; height: 50%; background: var(--accent); border-radius: 4px; }
.lc-circle { position: absolute; right: 12%; bottom: 14%; width: 30%; aspect-ratio: 1; background: var(--ink); border-radius: 50%; }

/* pichon: app window */
.tile-art-pichon {
  display: flex; align-items: center; justify-content: center;
}
.pichon-win {
  width: 92%; aspect-ratio: 1.6;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid; grid-template-columns: 40px 1fr;
  overflow: hidden;
}
.pw-side {
  background: var(--bg-2);
  padding: 8px 6px;
  display: flex; flex-direction: column; gap: 4px;
}
.pw-side i { height: 5px; background: var(--line-strong); border-radius: 2px; }
.pw-side i:first-child { background: var(--ink); }
.pw-main {
  padding: 6px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
}
.pw-main span {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 3px;
}

/* mega creator: accent tile */
.tile-accent {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: transparent;
}
.tile-accent h3 { color: var(--accent-ink); }
.tile-accent .tile-kicker { color: color-mix(in oklch, var(--accent-ink) 70%, transparent); }
.tile-accent .tile-stat {
  background: color-mix(in oklch, var(--accent-ink) 10%, transparent);
  color: var(--accent-ink);
  border-color: color-mix(in oklch, var(--accent-ink) 18%, transparent);
}
.tile-accent .tile-link { color: var(--accent-ink); }

.tile-art-mega {
  position: relative;
}
.tile-art-mega .mc {
  position: absolute;
  border-radius: 50%;
  background: color-mix(in oklch, var(--accent-ink) 12%, transparent);
}
.tile-art-mega .m1 { width: 70%; height: 70%; left: 5%; top: 10%; }
.tile-art-mega .m2 { width: 40%; height: 40%; right: 8%; top: 14%; background: color-mix(in oklch, var(--accent-ink) 92%, transparent); }
.tile-art-mega .m3 { width: 30%; height: 30%; left: 38%; bottom: 6%; background: var(--accent-ink); border-radius: 8px; }

/* plugins */
.tile-art-plugins {
  display: flex; flex-wrap: wrap; gap: 6px;
  align-content: center;
  padding: 0 4px;
}
.tile-art-plugins .pl {
  font-family: var(--mono); font-size: 11px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-2);
  background: var(--bg-2);
}

/* ============================================================
   STYLES BLOCK (horizontal scroller)
   ============================================================ */
.styles-block {
  max-width: 1320px;
  margin: 0 auto;
  padding: 64px 28px 80px;
}
.styles-scroller {
  display: grid;
  grid-template-columns: repeat(9, minmax(180px, 1fr));
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  margin: 0 -28px;
  padding: 0 28px 8px;
  scrollbar-width: thin;
}
@media (max-width: 1100px) {
  .styles-scroller { grid-template-columns: repeat(9, 180px); }
}

.style-card {
  scroll-snap-align: start;
  display: flex; flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 0.85;
  transition: border-color 0.12s, transform 0.12s;
}
.style-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }

.style-art {
  flex: 1;
  background: var(--bg-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
}
.style-art svg { width: 44%; height: 44%; }

.style-meta {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
}
.style-name { font-size: 13px; font-weight: 500; color: var(--ink); }
.style-count { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.style-num { font-family: var(--mono); font-size: 10.5px; color: var(--muted-2); }

/* style variants */
.sty-filled svg { fill: var(--ink); stroke-width: 0; }
.sty-filled svg path, .sty-filled svg circle { fill: var(--ink); }
.sty-glass .style-art { background: linear-gradient(135deg, #cfe1ff, #d8c5ff); }
.sty-glass svg { stroke: rgba(0,0,0,0.7); stroke-width: 1.8; }
.sty-fluency .style-art { background: linear-gradient(135deg, #fff5cc, var(--accent)); }
.sty-fluency svg { stroke-width: 1.8; }
.sty-3d-plastic .style-art { background: radial-gradient(circle at 30% 25%, #fff, #ddd 60%, #999); }
.sty-3d-plastic svg { filter: drop-shadow(0 6px 8px rgba(0,0,0,0.18)); stroke-width: 1.6; }
.sty-3d-fluency .style-art { background: radial-gradient(circle at 30% 25%, #fff7d6, var(--accent), #b88a00); }
.sty-3d-fluency svg { filter: drop-shadow(0 6px 8px rgba(0,0,0,0.3)); stroke-width: 1.8; }
.sty-hand svg { stroke-width: 2.2; stroke-linecap: round; }
.sty-doodle .style-art { background: #f8f4eb; }
.sty-doodle svg { stroke-width: 2.6; stroke-linecap: round; transform: rotate(-3deg); }
.sty-iso svg { transform: rotate(45deg) skew(15deg); stroke-width: 1.6; }

/* ============================================================
   AI BLOCK
   ============================================================ */
.ai-block {
  background: #0a0a0a;
  color: #fafafa;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.ai-block::before {
  content: "";
  position: absolute;
  inset: -20% -20% auto auto;
  width: 70%; height: 100%;
  background:
    radial-gradient(closest-side, color-mix(in oklch, var(--accent) 50%, transparent), transparent 70%),
    radial-gradient(closest-side at 70% 50%, color-mix(in oklch, #FF8AB0 30%, transparent), transparent 70%);
  filter: blur(80px);
  opacity: 0.5;
  pointer-events: none;
}
.ai-inner {
  position: relative; z-index: 1;
  max-width: 1320px; margin: 0 auto;
  padding: 96px 28px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 72px; align-items: center;
}
.ai-left .t-section-label { color: #a1a1aa; }
.ai-h2 {
  margin: 14px 0 22px;
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 500;
  color: #fff;
  text-wrap: balance;
}
.ai-deck {
  margin: 0 0 24px;
  font-size: 17px;
  line-height: 1.55;
  color: #d4d4d8;
  max-width: 50ch;
}
.ai-deck em { color: #fff; font-style: italic; font-family: var(--serif); font-size: 1.05em; }
.ai-points {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.ai-points li {
  display: flex; align-items: baseline; gap: 12px;
  font-size: 14px;
  color: #d4d4d8;
}
.ai-points .dot {
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  transform: translateY(-2px);
}

.ai-card {
  background: #161618;
  border: 1px solid #27272a;
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex; flex-direction: column; gap: 14px;
}
.ai-card-head {
  display: flex; justify-content: space-between; align-items: center;
}
.ai-card-label {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: var(--tracking-label);
  color: #71717a; font-weight: 600;
}
.ai-card-style-chips { display: flex; gap: 4px; }
.ai-card-style-chips span {
  font-size: 11px;
  padding: 3px 9px;
  border: 1px solid #27272a;
  border-radius: 999px;
  color: #a1a1aa;
}
.ai-card-style-chips span.is-on {
  background: var(--accent); color: var(--accent-ink);
  border-color: transparent;
}

.ai-input {
  width: 100%;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 19px;
  line-height: 1.4;
  color: #fff;
  resize: none;
  font-family: var(--sans);
  letter-spacing: -0.005em;
}
.ai-card-foot {
  display: flex; justify-content: space-between; align-items: center;
}
.ai-card-meta { font-size: 11px; color: #71717a; }
.ai-card-meta kbd {
  background: #27272a;
  color: #d4d4d8;
  margin-left: 2px;
}
.ai-card-go {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent); color: var(--accent-ink);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px; font-weight: 500;
}
.ai-card-go:hover { filter: brightness(1.08); }

.ai-out-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
  padding-top: 14px;
  border-top: 1px solid #27272a;
  transition: opacity 0.2s;
}
.ai-out-grid.is-loading { opacity: 0.4; }
.ai-out-cell {
  position: relative;
  aspect-ratio: 1;
  background: #0a0a0a;
  border: 1px solid #27272a;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.ai-out-icon { width: 45%; }
.ai-out-icon svg { width: 100%; height: 100%; }
.ai-out-actions {
  position: absolute; top: 4px; right: 4px;
  display: flex; gap: 2px;
  opacity: 0;
  transition: opacity 0.12s;
}
.ai-out-cell:hover .ai-out-actions { opacity: 1; }
.ai-out-actions button {
  width: 20px; height: 20px;
  background: #27272a;
  border-radius: 4px;
  color: #fff; font-size: 11px;
  display: flex; align-items: center; justify-content: center;
}

/* ============================================================
   PACKS
   ============================================================ */
.packs {
  max-width: 1320px; margin: 0 auto;
  padding: 96px 28px 80px;
}
.packs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.pack-card {
  display: flex; flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.12s, transform 0.12s;
}
.pack-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.pack-art {
  aspect-ratio: 1.2;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.pack-art-icons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 22px;
  width: 100%;
  height: 100%;
  align-content: center;
  justify-items: center;
  align-items: center;
  color: var(--ink);
}
.pack-art-icons span { width: 100%; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.pack-art-icons span svg { width: 70%; height: 70%; }

.pack-meta {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
}
.pack-name { font-size: 14px; font-weight: 500; color: var(--ink); }
.pack-by { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.pack-arrow { color: var(--muted); font-size: 16px; }
.pack-card:hover .pack-arrow { color: var(--ink); }

/* ============================================================
   DEV BLOCK
   ============================================================ */
.dev-block {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.dev-inner {
  max-width: 1320px; margin: 0 auto;
  padding: 96px 28px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 72px;
  align-items: start;
}
.dev-text { padding-top: 6px; }
.dev-h2 {
  margin: 14px 0 18px;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.05;
  letter-spacing: var(--tracking-tight);
  font-weight: 500;
  color: var(--ink);
}
.dev-text p {
  margin: 0 0 28px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-2);
  max-width: 50ch;
}
.dev-bullets {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 18px 28px;
}
.dev-bullets > div {
  display: flex; flex-direction: column; gap: 2px;
}
.dev-bullets b { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.dev-bullets span { font-size: 12.5px; color: var(--muted); line-height: 1.45; }

.dev-code {
  background: #0a0a0a;
  border-radius: var(--radius);
  overflow: hidden;
  font-family: var(--mono);
  box-shadow: 0 24px 60px -24px rgba(0,0,0,0.3);
}
.dev-code-tabs {
  display: flex; align-items: center; gap: 2px;
  padding: 8px 8px 0;
  background: #0a0a0a;
  border-bottom: 1px solid #1c1c20;
}
.dev-code-tabs button {
  font-family: var(--mono); font-size: 11.5px;
  padding: 8px 12px;
  color: #71717a;
  border-radius: 6px 6px 0 0;
}
.dev-code-tabs button:hover { color: #d4d4d8; }
.dev-code-tabs button.is-on {
  color: #fff;
  background: #161618;
  border: 1px solid #1c1c20;
  border-bottom: 1px solid transparent;
  margin-bottom: -1px;
}
.dev-copy {
  margin-left: auto; font-size: 11px; padding: 6px 10px !important;
  color: #71717a !important;
}
.dev-copy:hover { color: #fff !important; }
.dev-code-body {
  margin: 0;
  padding: 22px 24px;
  font-size: 13px;
  color: #f4f4f5;
  line-height: 1.65;
  overflow-x: auto;
  background: #0a0a0a;
}
.dev-code-foot {
  display: flex; justify-content: space-between;
  font-size: 10.5px; color: #71717a;
  padding: 8px 14px;
  border-top: 1px solid #1c1c20;
  background: #0a0a0a;
}

/* ============================================================
   STATS
   ============================================================ */
.stats {
  border-bottom: 1px solid var(--line);
}
.stats-inner {
  max-width: 1320px; margin: 0 auto;
  padding: 64px 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.stat {
  display: flex; flex-direction: column;
  gap: 6px;
}
.stat-n {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 500;
  letter-spacing: -0.035em;
  color: var(--ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-l {
  font-size: 13px;
  color: var(--muted);
  max-width: 22ch;
  line-height: 1.4;
}

/* ============================================================
   FOOTER
   ============================================================ */
.foot {
  background: var(--bg);
  padding: 80px 0 28px;
}
.foot-inner {
  max-width: 1320px; margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 48px;
}
.foot-brand { max-width: 280px; }
.foot-tag {
  margin: 14px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}
.foot-col { display: flex; flex-direction: column; gap: 8px; }
.foot-h {
  font-size: 11px; font-weight: 600;
  letter-spacing: var(--tracking-label); text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 6px;
}
.foot-col a {
  font-size: 13.5px;
  color: var(--text-2);
}
.foot-col a:hover { color: var(--ink); }

.foot-rule {
  max-width: 1320px;
  margin: 56px auto 18px;
  border-top: 1px solid var(--line);
}
.foot-meta {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--muted);
}
.foot-meta-r { display: flex; gap: 18px; }
.foot-meta-r a:hover { color: var(--ink); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* nav-only intermediate breakpoint — kicks in well before the hero stacks
   so the top bar never wraps */
@media (max-width: 1180px) {
  .nav-inner { gap: 16px; }
  .nav-links { gap: 0; }
  .nav-link { padding: 7px 9px; }
  .nav-search-btn { min-width: auto; padding: 6px 8px; }
  .nav-search-btn span { display: none; }
}
@media (max-width: 1040px) {
  /* drop the lowest-priority nav items entirely before mobile collapse */
  .nav-link[href='#packs'],
  .nav-link[href='#plugins'] { display: none; }
}

@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-show { max-width: 620px; }
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .tile-wide { grid-column: span 2; }
  .ai-inner { grid-template-columns: 1fr; gap: 48px; }
  .dev-inner { grid-template-columns: 1fr; gap: 48px; }
  .packs-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-inner { grid-template-columns: repeat(2, 1fr); }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-search-btn { min-width: auto; padding: 6px 8px; }
  .nav-search-btn span, .nav-search-btn kbd { display: none; }
  .hero-inner, .grid-block, .bento, .styles-block, .packs, .ai-inner, .dev-inner, .foot-inner, .stats-inner, .foot-meta { padding-left: 18px; padding-right: 18px; }
  .nav-inner { padding: 0 18px; }
  .hero-search { flex-wrap: wrap; }
  .hero-search input { width: 100%; order: 1; }
  .hero-search-go { width: 100%; justify-content: center; order: 3; }
  .block-head { grid-template-columns: 1fr; }
  .show-styles { grid-template-columns: repeat(3, 1fr); }
  .bento-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .tile-wide { grid-column: span 1; grid-row: span 2; }
  .dev-bullets { grid-template-columns: 1fr; }
}
