/* Based Plugins: black and white, technical, restrained.
   System fonts only, so no font service receives visitor requests. */
:root, [data-theme="dark"] {
  --bg: #000000; --card: #050505; --sunk: #0a0a0a; --fg: #ffffff; --muted: #a1a1a1; --subtle: #737373;
  --line: #262626; --line2: #3f3f3f; --hair: #1f1f1f; --btnhover: #d4d4d4; --logo: none; --spot: rgba(255,255,255,.06);
}
[data-theme="light"] {
  --bg: #ffffff; --card: #fafafa; --sunk: #f4f4f4; --fg: #000000; --muted: #525252; --subtle: #666666;
  --line: #e5e5e5; --line2: #c4c4c4; --hair: #ececec; --btnhover: #333333; --logo: invert(1); --spot: rgba(0,0,0,.045);
}
:root { --ease: cubic-bezier(.2,.7,.2,1); --spring: cubic-bezier(.34,1.4,.64,1);
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace; }
* { box-sizing: border-box; }
html { height: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100%; display: flex; flex-direction: column; background: var(--bg); color: var(--fg);
  font-family: var(--sans); -webkit-font-smoothing: antialiased; transition: background-color .25s ease, color .25s ease; animation: pagein .45s ease both; }
a { color: var(--fg); text-decoration: none; }
[hidden] { display: none !important; }
p { margin: 0; }
h1, h2, h3 { margin: 0; }
main { flex-grow: 1; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 10px 14px; background: var(--fg); color: var(--bg); border-radius: 4px; }
.skip:focus { left: 8px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; height: 72px; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 max(24px, calc((100% - 1152px) / 2)); border-bottom: 1px solid var(--hair);
  background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: border-color .3s ease; }
.site-header.scrolled { border-bottom-color: var(--line); }
.logo { display: block; height: 34px; width: auto; filter: var(--logo); }
.nav { display: flex; gap: 28px; font-size: 14px; }
.nav a { position: relative; color: var(--muted); transition: color .15s ease; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--fg); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.header-right { display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--line); border-radius: 4px; color: var(--fg); cursor: pointer; transition: border-color .15s ease, transform .2s var(--ease); }
.icon-btn:hover { border-color: var(--muted); }
.icon-btn:active { transform: scale(.92); }
#theme-toggle svg { transition: transform .5s var(--spring); }
#theme-toggle.spin svg { transform: rotate(180deg); }
.menu-btn { display: none; }
.mobile-menu { position: sticky; top: 72px; z-index: 39; display: flex; flex-direction: column; padding: 8px 24px 24px; background: var(--bg); border-bottom: 1px solid var(--hair); }
.mobile-menu a.plain { padding: 16px 0; font-size: 17px; border-bottom: 1px solid var(--hair); }
.mobile-menu .btn { margin-top: 16px; height: 48px; }
.mobile-menu:not([hidden]) { animation: drop .3s var(--ease) both; }
.mobile-menu:not([hidden]) > * { animation: rise .45s var(--ease) both; }
.mobile-menu > *:nth-child(2) { animation-delay: .04s; } .mobile-menu > *:nth-child(3) { animation-delay: .08s; }
.mobile-menu > *:nth-child(4) { animation-delay: .12s; } .mobile-menu > *:nth-child(5) { animation-delay: .16s; }
.mobile-menu > *:nth-child(6) { animation-delay: .2s; } .mobile-menu > *:nth-child(7) { animation-delay: .24s; }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; background: var(--fg); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 4px; border: 1px solid transparent;
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .15s ease, border-color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.97); transition-duration: .08s; }
.btn-primary { background: var(--fg); color: var(--bg); }
.btn-primary:hover { background: var(--btnhover); color: var(--bg); }
.btn-outline { background: transparent; color: var(--fg); border-color: var(--line2); font-weight: 500; }
.btn-outline:hover { border-color: var(--muted); }
.btn-sm { height: 40px; padding: 0 16px; }
.btn-lg { height: 48px; padding: 0 24px; font-size: 15px; }
.btn[aria-disabled="true"], .btn:disabled { background: transparent; color: var(--subtle); border: 1px dashed var(--line2); cursor: not-allowed; transform: none; font-weight: 500; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* Type */
.section { padding: clamp(72px, 10vw, 128px) 0; border-bottom: 1px solid var(--hair); }
.section:last-child { border-bottom: 0; }
.section-title { font-size: clamp(30px, 4vw, 40px); font-weight: 700; letter-spacing: -0.025em; }
.lead { margin-top: 14px; max-width: 580px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.muted { color: var(--muted); font-size: 14px; line-height: 1.6; }
.small { color: var(--subtle); font-size: 13px; line-height: 1.5; }
.tbd { color: var(--subtle); }
.page-head { padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 64px); border-bottom: 1px solid var(--hair); }
.page-head h1 { font-size: clamp(36px, 5vw, 52px); letter-spacing: -0.03em; }
.crumb { display: inline-block; margin-bottom: 20px; font-size: 14px; color: var(--muted); }
.crumb:hover { color: var(--fg); }

/* Hero */
.hero { display: flex; align-items: center; justify-content: space-between; gap: 64px; padding: clamp(80px, 12vw, 150px) 0 clamp(80px, 11vw, 140px); }
.hero-title { font-size: clamp(42px, 6vw, 68px); line-height: 1.02; letter-spacing: -0.035em; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: block; animation: lineup 1s var(--ease) both; }
.hero-title .line:nth-child(2) > span { animation-delay: .12s; }
.hero .sub { margin-top: 28px; max-width: 520px; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.55; color: var(--muted); animation: rise .8s var(--ease) .35s both; }
.hero .row { margin-top: 36px; animation: rise .8s var(--ease) .5s both; }
.hero .note { margin-top: 24px; font-size: 13px; color: var(--subtle); animation: rise .8s var(--ease) .65s both; }
.cube-wrap { flex-shrink: 0; perspective: 900px; animation: rise 1s var(--ease) .2s both; }
.cube { display: block; width: min(420px, 38vw); height: auto; color: var(--fg); transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--ease); animation: float 7s ease-in-out 1.8s infinite; }
.cube .grid { stroke: var(--line); }
.cube .edge { stroke-dasharray: 1100; animation: draw 1.6s cubic-bezier(.4,0,.2,1) .2s both; }
.cube .pixel { animation: blink 4s ease-in-out 2s infinite; }

/* Product cards */
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; margin-top: 56px; }
.product { position: relative; isolation: isolate; display: flex; flex-direction: column; gap: 24px; padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line); border-radius: 6px; background: var(--card); transition: border-color .25s ease, transform .4s var(--ease); }
.product:hover { border-color: var(--line2); transform: translateY(-4px); }
.spot { position: relative; isolation: isolate; }
.product::before, .spot::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0; transition: opacity .3s ease; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), var(--spot), transparent 45%); }
.product:hover::before, .spot:hover::before { opacity: 1; }
.product-top { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.product h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.015em; }
.product .desc { font-size: 15px; line-height: 1.65; color: var(--muted); }
.product .row { margin-top: auto; }
.badge { display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 10px; border: 1px solid var(--line2); border-radius: 3px;
  font-size: 11px; font-weight: 500; letter-spacing: .08em; white-space: nowrap; }
.badge svg { animation: turn 6s linear infinite; }
.badge.solid svg { animation: none; }
.feature-box { display: flex; flex-direction: column; gap: 14px; padding-top: 20px; border-top: 1px solid var(--hair); }
.bullets { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; font-size: 14px; }
.bullets.one { grid-template-columns: 1fr; }
.bullets li { display: flex; align-items: center; gap: 10px; }
.bullets li::before { content: ""; width: 4px; height: 4px; background: var(--fg); flex-shrink: 0; }

/* Principles */
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 64px; border-top: 1px solid var(--line); }
.pillars > div { display: flex; flex-direction: column; gap: 14px; padding: 36px 32px 0; border-left: 1px solid var(--line); }
.pillars > div:first-child { padding-left: 0; border-left: 0; }
.pillars h3 { font-size: 18px; font-weight: 600; }
.pillars p { font-size: 14px; line-height: 1.65; color: var(--muted); }
.pillars svg { transition: transform .4s var(--spring); }
.pillars > div:hover svg { transform: translateY(-4px); }

/* Cards, lists, tables */
.card { display: flex; flex-direction: column; gap: 18px; padding: clamp(24px, 3vw, 40px); border: 1px solid var(--line); border-radius: 6px; background: var(--card); }
.card h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.trio { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.list { margin: 0; padding: 0; list-style: none; font-size: 14px; }
.list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--hair); transition: padding-left .3s var(--ease); }
.list li:last-child { border-bottom: 1px solid var(--hair); }
.list li:hover { padding-left: 6px; }
.list li > span:last-child { color: var(--subtle); text-align: right; }
.list a { border-bottom: 1px solid var(--line2); }
dl.facts { margin: 0; font-size: 14px; }
dl.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--hair); }
dl.facts div:first-child { border-top: 0; padding-top: 0; }
dl.facts dt { color: var(--subtle); }
dl.facts dd { margin: 0; text-align: right; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
th, td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--hair); }
th { font-weight: 500; color: var(--subtle); font-size: 13px; background: var(--card); }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; }
.quote { padding: 20px 24px; border-left: 2px solid var(--fg); background: var(--sunk); font-size: 15px; line-height: 1.6; }
.note-box { display: flex; flex-direction: column; gap: 8px; padding: 20px; background: var(--sunk); border: 1px solid var(--hair); border-radius: 4px; }
.note-box strong { font-size: 14px; font-weight: 600; }
code { font-family: var(--mono); font-size: .92em; padding: 2px 6px; background: var(--sunk); border: 1px solid var(--hair); border-radius: 3px; }

/* Detail pages */
.detail-hero { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 64px; padding: clamp(48px, 7vw, 72px) 0 clamp(64px, 9vw, 96px); }
.detail-hero .intro { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.detail-hero h1 { font-size: clamp(38px, 5vw, 56px); letter-spacing: -0.03em; }
.detail-hero .desc { max-width: 600px; font-size: 18px; line-height: 1.6; color: var(--muted); }
.info { align-self: start; display: flex; flex-direction: column; gap: 20px; padding: 28px; border: 1px solid var(--line); border-radius: 6px; }
.info .btn { width: 100%; }
.split { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 64px; }
.split h2 { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.split .aside-text { margin-top: 12px; font-size: 14px; line-height: 1.6; color: var(--subtle); }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.feature-grid > div { padding: 20px 0; border-top: 1px solid var(--hair); }
.feature-grid h3 { margin-bottom: 6px; font-size: 16px; font-weight: 600; }
.feature-grid p { font-size: 14px; line-height: 1.6; color: var(--muted); }

/* Changelog */
.release { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; padding: 36px 0; border-top: 1px solid var(--hair); }
.release:first-child { border-top: 0; padding-top: 0; }
.release .meta { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--muted); }
.release .version { font-family: var(--mono); font-size: 22px; color: var(--fg); }
.release .body { display: flex; flex-direction: column; gap: 16px; }
.release h2 { font-size: 20px; font-weight: 600; }

/* Pricing */
.price { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; }

.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 32px max(24px, calc((100% - 1152px) / 2)); border-top: 1px solid var(--hair); font-size: 13px; color: var(--subtle); }
.site-footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.site-footer a { color: var(--subtle); } .site-footer a:hover { color: var(--fg); }

/* Motion */
@keyframes pagein { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes lineup { from { transform: translateY(105%); } to { transform: none; } }
@keyframes draw { from { stroke-dashoffset: 1100; } to { stroke-dashoffset: 0; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes blink { 0%, 100% { fill-opacity: .9; } 50% { fill-opacity: .35; } }
@keyframes turn { to { transform: rotate(360deg); } }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.shown { opacity: 1; transform: none; }
.reveal.shown .bullets li { animation: rise .6s var(--ease) both; }
.bullets li:nth-child(2) { animation-delay: .05s; } .bullets li:nth-child(3) { animation-delay: .1s; } .bullets li:nth-child(4) { animation-delay: .15s; }
.bullets li:nth-child(5) { animation-delay: .2s; } .bullets li:nth-child(6) { animation-delay: .25s; } .bullets li:nth-child(7) { animation-delay: .3s; }
.bullets li:nth-child(8) { animation-delay: .35s; }


/* Discord promo */
.promo { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 48px; padding: clamp(32px, 5vw, 64px);
  border: 1px solid var(--line2); border-radius: 8px; background: var(--card); overflow: hidden; }
.promo-text { display: flex; flex-direction: column; align-items: flex-start; }
.promo-icon { margin-bottom: 24px; }
.promo-list { margin: 28px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.promo-list li { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border: 1px solid var(--line); border-radius: 17px; font-size: 13.5px; color: var(--fg); }
.promo-cta { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.reveal.shown .promo-list li { animation: rise .6s var(--ease) both; }
.promo-list li:nth-child(2) { animation-delay: .08s; } .promo-list li:nth-child(3) { animation-delay: .16s; }
@media (max-width: 800px) { .promo { grid-template-columns: 1fr; gap: 32px; } .promo-cta { align-items: stretch; } }
/* Responsive */
@media (max-width: 1080px) {
  .nav, .hide-sm { display: none; }
  .menu-btn { display: flex; }
  .cube-wrap { display: none; }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .pillars > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .detail-hero, .split, .release { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 600px) {
  .bullets, .feature-grid, .pillars { grid-template-columns: 1fr; }
  .pillars > div { padding-left: 0; border-left: 0; }
  .hero .row .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .progress { display: none; }
}
