/* ==========================================================================
 * ModSeed — style.css (the whole design system, no framework)
 * ---------------------------------------------------------------------------
 * A faithful port of the workspace app's Tailwind 4 + shadcn/ui look:
 *   - Design tokens (oklch) copied 1:1 from the app's globals.css
 *   - The exact Tailwind utility subset the pages use (same class names, so
 *     markup can be ported from the app nearly line-for-line)
 *   - Component classes: .btn .card .badge .input .label .checkbox .accordion
 *   - ModSeed specials: .font-pixel .bg-grid .pixel-corners .mojang-strip
 * Light + dark themes (html.dark), responsive via sm/md/lg/xl breakpoints.
 * ========================================================================== */

/* ── Tokens (copied from the app's globals.css) ──────────────────────────── */
:root {
  --radius: 0.625rem;

  --background: oklch(0.987 0.003 86.05);
  --foreground: oklch(0.21 0.006 285.885);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.21 0.006 285.885);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.21 0.006 285.885);
  --primary: oklch(0.666 0.179 58.42);
  --primary-foreground: oklch(0.985 0.001 106.42);
  --secondary: oklch(0.967 0.001 286.38);
  --secondary-foreground: oklch(0.21 0.006 285.885);
  --muted: oklch(0.967 0.001 286.38);
  --muted-foreground: oklch(0.552 0.016 285.94);
  --accent: oklch(0.947 0.033 81.94);
  --accent-foreground: oklch(0.42 0.1 57.4);
  --destructive: oklch(0.577 0.245 27.325);
  --border: oklch(0.92 0.004 286.32);
  --input: oklch(0.92 0.004 286.32);
  --ring: oklch(0.666 0.179 58.42);

  /* literal Tailwind palette bits used by marketing surfaces */
  --amber-300: #fcd34d;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --orange-500: #f97316;
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --violet-400: #a78bfa;
  --violet-500: #8b5cf6;
  --violet-600: #7c3aed;
  --zinc-950: #09090b;
  --rose-600: #e11d48;
}

.dark {
  --background: oklch(0.141 0.005 285.823);
  --foreground: oklch(0.985 0 0);
  --card: oklch(0.179 0.005 285.823);
  --card-foreground: oklch(0.985 0 0);
  --popover: oklch(0.179 0.005 285.823);
  --popover-foreground: oklch(0.985 0 0);
  --primary: oklch(0.795 0.184 86.05);
  --primary-foreground: oklch(0.21 0.006 285.885);
  --secondary: oklch(0.274 0.006 286.033);
  --secondary-foreground: oklch(0.985 0 0);
  --muted: oklch(0.274 0.006 286.033);
  --muted-foreground: oklch(0.712 0.013 286.07);
  --accent: oklch(0.295 0.043 84.5);
  --accent-foreground: oklch(0.937 0.131 82.35);
  --destructive: oklch(0.704 0.191 22.216);
  --border: oklch(1 0 0 / 12%);
  --input: oklch(1 0 0 / 16%);
  --ring: oklch(0.795 0.184 86.05);
}

/* ── Base ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; border-color: var(--border); }
* { margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: "Press Start 2P", ui-monospace, SFMono-Regular, Menlo, monospace; /* placeholder, overridden below */
  background: var(--background);
  color: var(--foreground);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* The app uses the system sans stack for body copy */
body, .font-sans {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
::selection { background: oklch(0.795 0.184 86.05 / 0.35); }

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

/* thin custom scrollbars, like the app */
* { scrollbar-width: thin; scrollbar-color: oklch(0.44 0.026 285.9 / 0.6) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: oklch(0.44 0.026 285.9 / 0.5); border-radius: 8px; }
*::-webkit-scrollbar-thumb:hover { background: oklch(0.55 0.026 285.9 / 0.7); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--primary); color: var(--primary-foreground);
  padding: 8px 14px; border-radius: 0 0 var(--radius) 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ── ModSeed specials ─────────────────────────────────────────────────────── */
.font-pixel {
  font-family: "Press Start 2P", ui-monospace, "SFMono-Regular", monospace;
  letter-spacing: 0.02em;
}
.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.bg-grid {
  background-image:
    linear-gradient(to right, oklch(1 0 0 / 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(1 0 0 / 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
}
:root:not(.dark) .bg-grid {
  background-image:
    linear-gradient(to right, oklch(0.21 0.006 285.885 / 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(0.21 0.006 285.885 / 0.05) 1px, transparent 1px);
}

.pixel-corners {
  box-shadow:
    inset -2px -2px 0 0 oklch(0 0 0 / 0.35),
    inset 2px 2px 0 0 oklch(1 0 0 / 0.18);
}

/* the legally-required amber strip at the very top of every page */
.mojang-strip { width: 100%; background: var(--amber-500); color: var(--zinc-950); }
.mojang-strip p {
  margin: 0 auto; max-width: 80rem; padding: 6px 12px; text-align: center;
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.14em; line-height: 1.5;
}
@media (min-width: 640px) { .mojang-strip p { font-size: 11px; } }

.mojang-inline {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; line-height: 1.625;
  color: var(--amber-600);
}
.dark .mojang-inline { color: var(--amber-400); }

/* ── Layout utilities (Tailwind subset — same names) ─────────────────────── */
.container-tight { width: 100%; margin-inline: auto; max-width: 80rem; padding-inline: 16px; }
@media (min-width: 640px) { .container-tight { padding-inline: 24px; } }

.mx-auto { margin-left: auto; margin-right: auto; }
.ml-auto { margin-left: auto; }
.mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; } .mt-5 { margin-top: 20px; } .mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; } .mt-10 { margin-top: 40px; } .mt-12 { margin-top: 48px; }
.mb-2 { margin-bottom: 8px; } .mb-6 { margin-bottom: 24px; } .mb-8 { margin-bottom: 32px; }
.mb-10 { margin-bottom: 40px; }
.my-2 { margin-block: 8px; } .my-6 { margin-block: 24px; }
.mr-1 { margin-right: 4px; } .mr-2 { margin-right: 8px; } .mr-3 { margin-right: 12px; }
.ml-2 { margin-left: 8px; } .ml-3 { margin-left: 12px; }
.-ml-2 { margin-left: -8px; }
.mt-0\.5 { margin-top: 2px; }
.mx-1 { margin-inline: 4px; }

.p-1 { padding: 4px; } .p-3 { padding: 12px; } .p-4 { padding: 16px; }
.p-5 { padding: 20px; } .p-6 { padding: 24px; }
.px-1 { padding-left: 4px; padding-right: 4px; }
.px-1\.5 { padding-left: 6px; padding-right: 6px; }
.px-2 { padding-left: 8px; padding-right: 8px; }
.px-2\.5 { padding-left: 10px; padding-right: 10px; }
.px-3 { padding-left: 12px; padding-right: 12px; }
.px-4 { padding-left: 16px; padding-right: 16px; }
.px-6 { padding-left: 24px; padding-right: 24px; }
.px-8 { padding-left: 32px; padding-right: 32px; }
.py-0\.5 { padding-top: 2px; padding-bottom: 2px; }
.py-1 { padding-top: 4px; padding-bottom: 4px; }
.py-1\.5 { padding-top: 6px; padding-bottom: 6px; }
.py-2 { padding-top: 8px; padding-bottom: 8px; }
.py-10 { padding-top: 40px; padding-bottom: 40px; }
.py-14 { padding-top: 56px; padding-bottom: 56px; }
.py-20 { padding-top: 80px; padding-bottom: 80px; }
.pt-1 { padding-top: 4px; } .pt-2 { padding-top: 8px; }
.pt-14 { padding-top: 56px; } .pt-4 { padding-top: 16px; }
.pb-2 { padding-bottom: 8px; } .pb-16 { padding-bottom: 64px; }
.pb-3 { padding-bottom: 12px; } .pb-4 { padding-bottom: 16px; }
.pl-1 { padding-left: 4px; }
.pr-10 { padding-right: 40px; }

.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }
.block { display: block; }

.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 4px; } .gap-1\.5 { gap: 6px; } .gap-2 { gap: 8px; }
.gap-2\.5 { gap: 10px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.gap-6 { gap: 24px; } .gap-8 { gap: 32px; }
.grow { flex-grow: 1; }
.shrink-0 { flex-shrink: 0; }

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

.space-y-1 > * + * { margin-top: 4px; }
.space-y-2 > * + * { margin-top: 8px; }
.space-y-2\.5 > * + * { margin-top: 10px; }
.space-y-3 > * + * { margin-top: 12px; }
.space-y-4 > * + * { margin-top: 16px; }
.space-y-6 > * + * { margin-top: 24px; }
.space-y-8 > * + * { margin-top: 32px; }

.w-full { width: 100%; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-7xl { max-width: 80rem; }
.max-w-md { max-width: 28rem; }
.max-w-xs { max-width: 20rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-full { max-width: 100%; }

.h-8 { height: 32px; } .h-9 { height: 36px; } .h-11 { height: 44px; }
.h-12 { height: 48px; } .h-14 { height: 56px; }
.min-h-11 { min-height: 44px; }
.min-h-screen { min-height: 100vh; }
.size-2 { width: 8px; height: 8px; }
.size-2\.5 { width: 10px; height: 10px; }
.size-3 { width: 12px; height: 12px; }
.size-3\.5 { width: 14px; height: 14px; }
.size-4 { width: 16px; height: 16px; }
.size-5 { width: 20px; height: 20px; }
.size-9 { width: 36px; height: 36px; }
.size-10 { width: 40px; height: 40px; }
.size-11 { width: 44px; height: 44px; }
.size-12 { width: 48px; height: 48px; }
.w-72 { width: 18rem; }
.w-10 { width: 40px; }

.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.inset-0 { inset: 0; }
.inset-y-0 { top: 0; bottom: 0; }
.right-0 { right: 0; }
.top-0 { top: 0; }
.top-1\/2 { top: 50%; transform: translateY(-50%); }
.-left-1 { left: -4px; } .-right-1 { right: -4px; }
.bottom-3 { bottom: 12px; } .right-3 { right: 12px; }
.z-0 { z-index: 0; } .z-10 { z-index: 10; } .z-50 { z-index: 50; }

.overflow-hidden { overflow: hidden; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scroll-mt-24 { scroll-margin-top: 96px; }
.pointer-events-none { pointer-events: none; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.uppercase { text-transform: uppercase; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-\[0\.14em\] { letter-spacing: 0.14em; }

.text-\[8px\] { font-size: 8px; } .text-\[9px\] { font-size: 9px; }
.text-\[10px\] { font-size: 10px; } .text-\[11px\] { font-size: 11px; }
.text-\[15px\] { font-size: 15px; }
.text-xs { font-size: 12px; line-height: 1rem; }
.text-sm { font-size: 14px; line-height: 1.4285; }
.text-base { font-size: 16px; line-height: 1.5; }
.text-lg { font-size: 18px; line-height: 1.55; }
.text-xl { font-size: 20px; }
.text-2xl { font-size: 24px; }
.text-3xl { font-size: 30px; }
.text-4xl { font-size: 36px; }

.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.leading-7 { line-height: 1.75rem; }

/* ── Token colors ─────────────────────────────────────────────────────────── */
.bg-background { background-color: var(--background); }
.bg-card { background-color: var(--card); }
.bg-muted { background-color: var(--muted); }
.bg-muted\/40 { background-color: color-mix(in oklab, var(--muted) 40%, transparent); }
.bg-muted\/50 { background-color: color-mix(in oklab, var(--muted) 50%, transparent); }
.bg-muted\/60 { background-color: color-mix(in oklab, var(--muted) 60%, transparent); }
.bg-secondary { background-color: var(--secondary); }
.bg-popover { background-color: var(--popover); }
.bg-primary { background-color: var(--primary); }
.bg-accent { background-color: var(--accent); }

.bg-card\/95 { background-color: color-mix(in oklab, var(--card) 95%, transparent); }
.bg-background\/70 { background-color: color-mix(in oklab, var(--background) 70%, transparent); }
.bg-background\/90 { background-color: color-mix(in oklab, var(--background) 90%, transparent); }
.bg-background\/75 { background-color: color-mix(in oklab, var(--background) 75%, transparent); }

.text-foreground { color: var(--foreground); }
.text-muted-foreground { color: var(--muted-foreground); }
.text-primary { color: var(--primary); }
.text-primary-foreground { color: var(--primary-foreground); }
.text-destructive { color: var(--destructive); }
.text-card-foreground { color: var(--card-foreground); }
.text-accent-foreground { color: var(--accent-foreground); }

.foreground\/90 { color: color-mix(in oklab, var(--foreground) 90%, transparent); }

.border { border-width: 1px; border-style: solid; }
.border-2 { border-width: 2px; border-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-y { border-top-width: 1px; border-top-style: solid; border-bottom-width: 1px; border-bottom-style: solid; }
.border-border { border-color: var(--border); }
.border-border\/70 { border-color: color-mix(in oklab, var(--border) 70%, transparent); }

/* ── Literal palette utilities ────────────────────────────────────────────── */
.text-amber-500 { color: var(--amber-500); }
.text-amber-600 { color: var(--amber-600); }
.text-amber-700 { color: var(--amber-700); }
.text-amber-400 { color: var(--amber-400); }
.text-amber-300 { color: var(--amber-300); }
.text-orange-400 { color: var(--orange-500); }
.text-emerald-500 { color: var(--emerald-500); }
.text-emerald-600 { color: var(--emerald-600); }
.text-emerald-400 { color: var(--emerald-400); }
.text-violet-500 { color: var(--violet-500); }
.text-violet-600 { color: var(--violet-600); }
.text-violet-400 { color: var(--violet-400); }
.text-white { color: #fff; }
.text-zinc-950 { color: var(--zinc-950); }

.bg-amber-400 { background-color: var(--amber-400); }
.bg-amber-500 { background-color: var(--amber-500); }
.bg-amber-500\/10 { background-color: color-mix(in oklab, var(--amber-500) 10%, transparent); }
.bg-amber-500\/15 { background-color: color-mix(in oklab, var(--amber-500) 15%, transparent); }
.bg-amber-500\/40 { background-color: color-mix(in oklab, var(--amber-500) 40%, transparent); }
.bg-amber-500\/30 { background-color: color-mix(in oklab, var(--amber-500) 30%, transparent); }
.bg-amber-500\/5 { background-color: color-mix(in oklab, var(--amber-500) 5%, transparent); }
.bg-amber-500\/10 { background-color: color-mix(in oklab, var(--amber-500) 10%, transparent); }
.bg-orange-500\/5 { background-color: color-mix(in oklab, var(--orange-500) 5%, transparent); }
.bg-emerald-500\/10 { background-color: color-mix(in oklab, var(--emerald-500) 10%, transparent); }
.bg-emerald-400 { background-color: var(--emerald-400); }
.bg-violet-500\/10 { background-color: color-mix(in oklab, var(--violet-500) 10%, transparent); }
.bg-violet-600 { background-color: var(--violet-600); }

.border-amber-500\/30 { border-color: color-mix(in oklab, var(--amber-500) 30%, transparent); }
.border-amber-500\/40 { border-color: color-mix(in oklab, var(--amber-500) 40%, transparent); }
.border-amber-500\/50 { border-color: color-mix(in oklab, var(--amber-500) 50%, transparent); }
.border-amber-500\/70 { border-color: color-mix(in oklab, var(--amber-500) 70%, transparent); }
.border-emerald-500\/30 { border-color: color-mix(in oklab, var(--emerald-500) 30%, transparent); }
.border-violet-500\/30 { border-color: color-mix(in oklab, var(--violet-500) 30%, transparent); }
.border-violet-500\/40 { border-color: color-mix(in oklab, var(--violet-500) 40%, transparent); }
.border-amber-400 { border-color: var(--amber-400); }
.border-emerald-500 { border-color: var(--emerald-500); }

.shadow-amber-500\/5 { box-shadow: 0 10px 15px -3px color-mix(in oklab, var(--amber-500) 5%, transparent); }
.shadow-violet-500\/5 { box-shadow: 0 10px 15px -3px color-mix(in oklab, var(--violet-500) 5%, transparent); }

.dark .text-amber-600, .dark .text-amber-700 { color: var(--amber-400); }
.dark .text-amber-300 { color: var(--amber-300); }
.dark .dark\:text-amber-400 { color: var(--amber-400); }
.dark .dark\:text-amber-300 { color: var(--amber-300); }
.dark .dark\:text-emerald-400 { color: var(--emerald-400); }
.dark .dark\:text-violet-400 { color: var(--violet-400); }
.text-amber-600:hover, .text-amber-500:hover { color: var(--amber-500); }
.dark .text-amber-600:hover, .dark .text-amber-500:hover { color: var(--amber-400); }

/* gradient text (hero accent) */
.bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--amber-500), var(--orange-500), var(--amber-400));
}
.bg-gradient-to-br {
  background-image: linear-gradient(to bottom right,
    color-mix(in oklab, var(--amber-500) 10%, transparent),
    color-mix(in oklab, var(--orange-500) 5%, transparent),
    transparent);
}
.bg-clip-text { -webkit-background-clip: text; background-clip: text; }
.text-transparent { color: transparent; }

/* blur glows */
.blur-3xl { filter: blur(64px); }
.blur-2xl { filter: blur(40px); }

.backdrop-blur { backdrop-filter: blur(8px); }
.backdrop-blur-sm { backdrop-filter: blur(4px); }

/* ── Borders, radius, shadows ─────────────────────────────────────────────── */
.rounded-sm { border-radius: 2px; }
.rounded { border-radius: 4px; }
.rounded-md { border-radius: calc(var(--radius) - 2px); }
.rounded-lg { border-radius: var(--radius); }
.rounded-xl { border-radius: calc(var(--radius) + 4px); }
.rounded-2xl { border-radius: calc(var(--radius) + 12px); }
.rounded-full { border-radius: 9999px; }

.shadow-sm { box-shadow: 0 1px 2px 0 oklch(0 0 0 / 0.05); }
.shadow-md { box-shadow: 0 4px 6px -1px oklch(0 0 0 / 0.1), 0 2px 4px -2px oklch(0 0 0 / 0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px oklch(0 0 0 / 0.1), 0 4px 6px -4px oklch(0 0 0 / 0.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px oklch(0 0 0 / 0.1), 0 8px 10px -6px oklch(0 0 0 / 0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px oklch(0 0 0 / 0.25); }
.group:hover .group-hover\:shadow-md, .hover\:shadow-md:hover { box-shadow: 0 4px 6px -1px oklch(0 0 0 / 0.1), 0 2px 4px -2px oklch(0 0 0 / 0.1); }
.transition-shadow { transition: box-shadow 0.2s ease; }
.transition-colors { transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease; }

/* aspect helpers */
.aspect-\[16\/11\] { aspect-ratio: 16 / 11; }
.aspect-\[16\/10\] { aspect-ratio: 16 / 10; }

/* ── Components: buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; white-space: nowrap; border-radius: calc(var(--radius) - 2px);
  font-size: 14px; font-weight: 500; line-height: 1.4285;
  height: 36px; padding: 0 16px; border: 1px solid transparent;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none; cursor: pointer; user-select: none;
}
.btn:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.btn:disabled { pointer-events: none; opacity: 0.5; }

.btn-primary { background: var(--primary); color: var(--primary-foreground); box-shadow: 0 1px 2px oklch(0 0 0 / 0.05); }
.btn-primary:hover { background: color-mix(in oklab, var(--primary) 90%, var(--background)); }

.btn-outline { background: var(--background); border-color: var(--border); color: var(--foreground); box-shadow: 0 1px 2px oklch(0 0 0 / 0.05); }
.btn-outline:hover { background: color-mix(in oklab, var(--accent) 60%, var(--background)); }

.btn-secondary { background: var(--secondary); color: var(--secondary-foreground); box-shadow: 0 1px 2px oklch(0 0 0 / 0.05); }
.btn-secondary:hover { background: color-mix(in oklab, var(--secondary) 80%, var(--secondary-foreground)); }

.btn-ghost { color: var(--foreground); }
.btn-ghost:hover { background: color-mix(in oklab, var(--accent) 60%, transparent); color: var(--foreground); }
.btn-ghost.text-muted-foreground:hover { color: var(--foreground); }

.btn-destructive { background: var(--destructive); color: #fff; }
.btn-destructive:hover { background: color-mix(in oklab, var(--destructive) 90%, #000); }

.btn-lg { height: 40px; padding: 0 24px; }
.btn-hero { height: 48px; padding: 0 32px; font-size: 16px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; gap: 6px; }
.btn-icon { width: 44px; height: 44px; padding: 0; }
.btn-w-full { width: 100%; }

.btn-amber { color: var(--amber-600); }
.dark .btn-amber { color: var(--amber-400); }
.btn-amber:hover { color: var(--amber-500); }
.dark .btn-amber:hover { color: var(--amber-400); }

.btn .icon { width: 16px; height: 16px; flex-shrink: 0; }
.btn-lg .icon, .btn-hero .icon { width: 18px; height: 18px; }
.icon { width: 16px; height: 16px; }
.icon-sm { width: 14px; height: 14px; }
.icon-lg { width: 20px; height: 20px; }
.icon-xl { width: 24px; height: 24px; }

/* ── Components: card ─────────────────────────────────────────────────────── */
.card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--card-foreground);
  box-shadow: 0 1px 2px oklch(0 0 0 / 0.05);
}
.card-header { padding: 24px 24px 0; }
.card-header.text-center { text-align: center; }
.card-content { padding: 24px; }
.card-title { font-weight: 600; letter-spacing: -0.025em; font-size: 18px; }
.card-description { font-size: 14px; color: var(--muted-foreground); margin-top: 4px; }

/* ── Components: badge ────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9999px; border: 1px solid transparent;
  padding: 2px 10px; font-size: 12px; font-weight: 600; line-height: 1.2;
  white-space: nowrap; width: fit-content;
  background: var(--primary); color: var(--primary-foreground);
}
.badge-secondary { background: var(--secondary); color: var(--secondary-foreground); }
.badge-outline { border-color: var(--border); color: var(--foreground); background: transparent; }
.badge-violet { background: var(--violet-600); color: #fff; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 9999px; border: 1px solid color-mix(in oklab, var(--amber-500) 40%, transparent);
  background: color-mix(in oklab, var(--amber-500) 10%, transparent);
  padding: 6px 16px; font-size: 12px; font-weight: 600;
  color: var(--amber-700); max-width: 100%;
}
.dark .pill { color: var(--amber-300); }

/* ── Components: form controls ────────────────────────────────────────────── */
.label {
  font-size: 14px; font-weight: 500; line-height: 1.4285;
  display: block; user-select: none; cursor: default;
}
.input {
  display: flex; width: 100%; height: 36px;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid var(--input); background: transparent;
  padding: 0 12px; font-size: 14px; color: var(--foreground);
  box-shadow: 0 1px 2px oklch(0 0 0 / 0.05);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input::placeholder { color: color-mix(in oklab, var(--muted-foreground) 70%, transparent); }
.input:focus { outline: none; border-color: var(--ring); box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 20%, transparent); }
.input:disabled { opacity: 0.5; pointer-events: none; }
.input[aria-invalid="true"] { border-color: var(--destructive); }
textarea.input { height: auto; min-height: 120px; padding: 10px 12px; resize: vertical; line-height: 1.6; }

.checkbox {
  width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px;
  border: 1px solid var(--input); border-radius: 4px; background: transparent;
  appearance: none; cursor: pointer; position: relative;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.checkbox:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.checkbox:checked {
  background: var(--primary); border-color: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 12px 12px; background-repeat: no-repeat; background-position: center;
}

.field-error { font-size: 12px; color: var(--destructive); }
.field-hint { font-size: 12px; color: var(--muted-foreground); }

/* ── Components: accordion (FAQ) ──────────────────────────────────────────── */
.accordion { border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.accordion-item + .accordion-item { border-top: 1px solid var(--border); }
.accordion-trigger {
  display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; padding: 16px 20px; text-align: left;
  font-size: 14px; font-weight: 600; color: var(--foreground);
  transition: color 0.15s ease;
}
@media (min-width: 640px) { .accordion-trigger { font-size: 16px; } }
.accordion-trigger:hover { text-decoration: underline; text-decoration-color: color-mix(in oklab, var(--muted-foreground) 60%, transparent); text-underline-offset: 4px; }
.accordion-chevron { width: 16px; height: 16px; flex-shrink: 0; color: var(--muted-foreground); transition: transform 0.2s ease; }
.accordion-item.open .accordion-chevron { transform: rotate(180deg); }
.accordion-content { overflow: hidden; display: none; padding: 0 20px 16px; font-size: 14px; line-height: 1.625; color: var(--muted-foreground); }
.accordion-item.open .accordion-content { display: block; }

/* ── Components: separator ────────────────────────────────────────────────── */
.separator { height: 1px; width: 100%; background: var(--border); border: none; }

/* ── Components: header chrome ────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 50; width: 100%; }
.site-header-bar {
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--background) 90%, transparent);
  backdrop-filter: blur(8px);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header-bar { background: color-mix(in oklab, var(--background) 75%, transparent); }
}
.header-inner {
  margin: 0 auto; max-width: 80rem; height: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 0 16px;
}
@media (min-width: 640px) { .header-inner { padding: 0 24px; } }

.logo-lockup { display: flex; align-items: center; gap: 10px; user-select: none; }
.logo-mark { width: 36px; height: 36px; flex-shrink: 0; border-radius: 6px; }
.logo-word { font-size: 14px; letter-spacing: -0.025em; color: var(--foreground); }

.nav-desktop { display: none; align-items: center; gap: 4px; }
@media (min-width: 768px) { .nav-desktop { display: flex; } }

.header-actions { display: flex; align-items: center; gap: 6px; }

.lang-menu { position: relative; }
.lang-menu-panel {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 60;
  min-width: 176px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--popover); color: var(--popover-foreground);
  box-shadow: 0 10px 15px -3px oklch(0 0 0 / 0.1), 0 4px 6px -4px oklch(0 0 0 / 0.1);
  padding: 4px; display: none;
}
.lang-menu.open .lang-menu-panel { display: block; }
.lang-menu-item {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 8px 10px; border-radius: calc(var(--radius) - 4px);
  font-size: 14px; color: var(--foreground); text-align: left;
}
.lang-menu-item:hover { background: var(--accent); }
.lang-menu-item .check { width: 16px; height: 16px; visibility: hidden; }
.lang-menu-item.active .check { visibility: visible; }

/* mobile nav sheet */
.mobile-toggle { display: inline-flex; }
@media (min-width: 768px) { .mobile-toggle { display: none; } }
.mobile-sheet {
  position: fixed; inset: 0; z-index: 70; display: none;
}
.mobile-sheet.open { display: block; }
.mobile-sheet-backdrop { position: absolute; inset: 0; background: oklch(0 0 0 / 0.5); }
.mobile-sheet-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: 288px;
  background: var(--background); border-left: 1px solid var(--border);
  padding: 16px; overflow-y: auto; box-shadow: -10px 0 30px oklch(0 0 0 / 0.2);
}
.mobile-sheet-nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-sheet-nav .btn { justify-content: flex-start; height: 44px; }
.sheet-divider { margin: 8px 0; height: 1px; background: var(--border); border: none; }

/* ── Components: footer chrome ────────────────────────────────────────────── */
.site-footer { margin-top: auto; border-top: 1px solid var(--border); background: var(--card); }
.footer-inner { margin: 0 auto; max-width: 80rem; padding: 40px 16px; }
@media (min-width: 640px) { .footer-inner { padding: 40px 24px; } }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.footer-heading { font-size: 10px; color: var(--muted-foreground); margin-bottom: 12px; }
.footer-list { display: flex; flex-direction: column; gap: 4px; }
.footer-link {
  display: flex; min-height: 44px; align-items: center; gap: 8px;
  font-size: 14px; color: var(--muted-foreground); padding: 0 8px;
  border-radius: 6px; text-align: left; width: 100%;
}
.footer-link:hover { color: var(--foreground); background: transparent; }

/* ── Components: toasts ───────────────────────────────────────────────────── */
.toast-region { position: fixed; bottom: 16px; right: 16px; z-index: 90; display: flex; flex-direction: column; gap: 8px; }
.toast {
  display: flex; align-items: start; gap: 10px; min-width: 280px; max-width: 380px;
  border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--popover); color: var(--popover-foreground);
  padding: 14px 16px; font-size: 14px; box-shadow: 0 10px 15px -3px oklch(0 0 0 / 0.1);
  animation: toast-in 0.25s ease;
}
.toast-success .toast-dot { background: var(--emerald-500); }
.toast-error .toast-dot { background: var(--destructive); }
.toast-dot { width: 8px; height: 8px; border-radius: 9999px; margin-top: 5px; flex-shrink: 0; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ── Hero mock node editor (landing) ──────────────────────────────────────── */
.mock-wrap { margin: 48px auto 0; max-width: 48rem; }
.mock {
  position: relative; border-radius: calc(var(--radius) + 4px);
  border: 2px solid var(--border); background: var(--card);
  box-shadow: 0 25px 50px -12px oklch(0 0 0 / 0.25);
  overflow: hidden;
}
.mock-titlebar {
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--muted) 60%, transparent);
  padding: 8px 12px;
}
.mock-palette {
  display: flex; align-items: center; gap: 6px; overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--background) 70%, transparent);
  padding: 6px 12px;
}
.mock-canvas { position: relative; aspect-ratio: 16 / 11; background-image: inherit; }
@media (min-width: 640px) { .mock-canvas { aspect-ratio: 16 / 10; } }
.mock-canvas.bg-grid { background-size: 32px 32px; }
.mock-node {
  position: absolute; width: 26%; z-index: 10;
  border-radius: 6px; border: 1px solid var(--border);
  background: color-mix(in oklab, var(--card) 95%, transparent);
  padding: 8px 10px; box-shadow: 0 10px 15px -3px oklch(0 0 0 / 0.1);
  backdrop-filter: blur(4px);
}
.mock-node-handle {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 8px; height: 8px; border-radius: 9999px;
  background: var(--amber-400);
  border: 1px solid color-mix(in oklab, var(--amber-500) 70%, transparent);
}
.mock-node-handle.left { left: -4px; }
.mock-node-handle.right { right: -4px; }
.mock-node-kind {
  display: block; font-size: 8px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--muted-foreground);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
@media (min-width: 640px) { .mock-node-kind { font-size: 9px; } }
.mock-node-name { display: block; margin-top: 4px; font-size: 10px; font-weight: 700; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 640px) { .mock-node-name { font-size: 12px; } }
.mock-node-detail { display: block; margin-top: 2px; font-size: 8px; line-height: 1.25; color: var(--muted-foreground); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 640px) { .mock-node-detail { font-size: 10px; } }
.mock-swatch { display: inline-block; width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0; }
.mock-swatch.round { border-radius: 9999px; }
.mock-chip {
  border-radius: 4px; border: 1px solid var(--border);
  background: color-mix(in oklab, var(--muted) 50%, transparent);
  padding: 2px 6px; font-size: 8px; color: var(--muted-foreground);
}
.mock-export-chip {
  position: absolute; bottom: 12px; right: 12px; z-index: 10;
  display: flex; align-items: center; gap: 6px;
  border-radius: var(--radius); border: 1px solid color-mix(in oklab, var(--amber-500) 40%, transparent);
  background: color-mix(in oklab, var(--amber-500) 10%, transparent);
  padding: 6px 10px; font-size: 10px; font-weight: 600; color: var(--amber-700);
}
.dark .mock-export-chip { color: var(--amber-300); }
.mock-edge-label {
  position: absolute; left: 34%; top: 27%; z-index: 10;
  border-radius: 4px; background: color-mix(in oklab, var(--amber-500) 15%, transparent);
  padding: 1px 4px; font-family: ui-monospace, monospace;
  font-size: 7px; color: var(--amber-700);
}
@media (min-width: 640px) { .mock-edge-label { font-size: 8px; } }
.dark .mock-edge-label { color: var(--amber-300); }

/* ── Responsive helpers (sm/md/lg/xl used by ported markup) ──────────────── */
@media (min-width: 640px) {
  .sm\:px-6 { padding-left: 24px; padding-right: 24px; }
  .sm\:py-16 { padding-top: 64px; padding-bottom: 64px; }
  .sm\:pt-20 { padding-top: 80px; }
  .sm\:flex-row { flex-direction: row; }
  .sm\:text-3xl { font-size: 30px; }
  .sm\:text-lg { font-size: 18px; line-height: 1.55; }
  .sm\:text-xl { font-size: 20px; }
  .sm\:text-base { font-size: 16px; }
  .sm\:text-xs { font-size: 12px; }
  .sm\:text-\[9px\] { font-size: 9px; }
  .sm\:text-\[11px\] { font-size: 11px; }
  .sm\:inline-flex { display: inline-flex; }
  .sm\:leading-relaxed { line-height: 1.625; }
  .sm\:px-12 { padding-left: 48px; padding-right: 48px; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:flex { display: flex; }
  .md\:block { display: block; }
  .md\:text-4xl { font-size: 36px; }
  .md\:leading-relaxed { line-height: 1.625; }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
  .xl\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* editor-specific helpers shared by the editor page */
.editor-shell { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
.panel {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--card);
}
.canvas-dot {
  background-image:
    radial-gradient(circle, color-mix(in oklab, var(--muted-foreground) 45%, transparent) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* misc animation */
@keyframes spin { to { transform: rotate(360deg); } }
.animate-spin { animation: spin 1s linear infinite; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.fade-in { animation: fade-in 0.2s ease; }
