:root {
  color-scheme: dark;
  --bg: #06110e;
  --panel: #0d211b;
  --panel-2: #123027;
  --line: rgba(205, 255, 233, .15);
  --text: #f3fff9;
  --muted: #a7bdb4;
  --green: #63f0b2;
  --blue: #78c9ff;
  --danger: #ff9b8f;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: radial-gradient(circle at 80% 0, #123a2e 0, transparent 31rem), var(--bg); color: var(--text); line-height: 1.55; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button, .button { min-height: 44px; border: 1px solid var(--line); border-radius: 12px; padding: .72rem 1rem; background: var(--panel-2); color: var(--text); font-weight: 750; cursor: pointer; }
button:hover, .button:hover { border-color: var(--green); }
button.primary, .button.primary { background: var(--green); color: #04120d; border-color: var(--green); text-decoration: none; }
button.secondary, .button.secondary { background: transparent; text-decoration: none; }
button:disabled { opacity: .5; cursor: not-allowed; }
input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 12px; background: #061611; color: var(--text); padding: .8rem; }
textarea { min-height: 9rem; resize: vertical; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 20; background: var(--text); color: var(--bg); padding: .6rem; }
.shell { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.site-head { border-bottom: 1px solid var(--line); background: rgba(4, 14, 11, .88); backdrop-filter: blur(18px); }
.site-head .shell { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { font-weight: 850; text-decoration: none; letter-spacing: -.03em; }
.site-head nav { display: flex; flex-wrap: wrap; gap: .45rem 1rem; align-items: center; font-size: .88rem; }
.site-head nav a { color: var(--muted); text-decoration: none; }
.site-head nav a:hover, .site-head nav a[aria-current="page"] { color: var(--green); }
.crumbs { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1.2rem 0 0; color: var(--muted); font-size: .85rem; }
.hero { padding: clamp(3rem, 8vw, 6rem) 0 2.2rem; }
.eyebrow { color: var(--green); font-weight: 800; text-transform: uppercase; letter-spacing: .13em; font-size: .75rem; }
h1 { max-width: 900px; margin: .4rem 0 1rem; font-size: clamp(2.5rem, 7vw, 5.6rem); line-height: .95; letter-spacing: -.06em; }
h2 { letter-spacing: -.035em; }
.lead { max-width: 760px; color: var(--muted); font-size: clamp(1rem, 2vw, 1.25rem); }
.actions, .toolbar { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; margin-top: 1rem; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.4rem 0 4rem; }
.card, .tool { border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(160deg, rgba(17, 48, 39, .88), rgba(7, 21, 17, .96)); padding: clamp(1.1rem, 3vw, 2rem); box-shadow: 0 24px 80px rgba(0,0,0,.2); }
.card { display: flex; flex-direction: column; }
.card p, .muted { color: var(--muted); }
.card .actions { margin-top: auto; }
.badge { width: fit-content; display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: .25rem .6rem; color: var(--green); font-size: .75rem; font-weight: 800; }
.tool { margin-bottom: 2rem; }
.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 750; }
.output { min-height: 6rem; white-space: pre-wrap; overflow-wrap: anywhere; border: 1px dashed var(--line); border-radius: 12px; background: #061611; padding: 1rem; }
.status { min-height: 1.5em; margin-top: .7rem; color: var(--green); }
.note { border-left: 3px solid var(--blue); padding-left: 1rem; color: var(--muted); }
.mapping { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: .65rem; margin-top: 1rem; }
.map-cell { display: grid; gap: .25rem; }
.map-cell label { color: var(--muted); font-size: .75rem; }
.preview { width: min(100%, 600px); aspect-ratio: 2 / 3; overflow: hidden; margin: 1rem auto; border: 1px solid var(--line); border-radius: 18px; background: #020705; }
.strip { display: flex; width: 300%; height: 100%; transform: translateX(0); }
.strip img { flex: 0 0 33.333%; width: 33.333%; height: 100%; object-fit: cover; }
.strip.is-running { animation: whip 2s ease-in-out forwards; }
@keyframes whip { 0%, 37% { transform: translateX(0); filter: none; } 50% { filter: blur(22px) contrast(1.2) saturate(1.3); } 100% { transform: translateX(-66.666%); filter: none; } }
.footer { border-top: 1px solid var(--line); padding: 2rem 0 3rem; color: var(--muted); }
.footer .shell { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.source { color: var(--muted); font-size: .82rem; }
@media (max-width: 760px) {
  .site-head .shell { align-items: flex-start; flex-direction: column; padding-block: 1rem; }
  .grid, .tool-grid { grid-template-columns: 1fr; }
  h1 { font-size: clamp(2.5rem, 14vw, 4.3rem); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
