:root {
  --yellow: #ffe500;
  --yellow-deep: #ffc400;
  --pink: #ff2e78;
  --blue: #2f7bff;
  --green: #35d07f;

  --bg: #0c0c0e;
  --bg-soft: #131318;
  --surface: #17171d;
  --surface-2: #1e1e26;
  --line: #2a2a34;
  --text: #f4f4f6;
  --muted: #9b9baa;
  --on-accent: #101014;
  --shadow: 0 18px 50px rgba(0,0,0,.45);
  --dot: rgba(255,229,0,.16);

  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1160px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
}

html[data-theme="light"] {
  --bg: #fbfaf6;
  --bg-soft: #f4f2ea;
  --surface: #ffffff;
  --surface-2: #f6f5f0;
  --line: #e3e0d6;
  --text: #16161a;
  --muted: #6a6a76;
  --shadow: 0 14px 40px rgba(20,18,0,.10);
  --dot: rgba(0,0,0,.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

img, video, canvas { max-width: 100%; display: block; }

[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--yellow);
  color: var(--on-accent); padding: 10px 16px; z-index: 100; border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; }

.site-head {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.head-row { display: flex; align-items: center; gap: 22px; height: 64px; }

.logo { display: inline-flex; align-items: center; gap: 2px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 23px; letter-spacing: -.02em; }
.logo b {
  background: var(--yellow); color: var(--on-accent);
  padding: 2px 8px; border-radius: 7px; transform: rotate(-3deg);
  display: inline-block; font-weight: 700;
}
.logo span { padding-left: 6px; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  text-decoration: none; color: var(--muted); font-size: 14.5px; font-weight: 500;
  padding: 8px 12px; border-radius: 10px;
}
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a.is-active { color: var(--text); background: var(--surface-2); }

.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  border-radius: 11px; cursor: pointer; font-size: 15px; line-height: 1;
}
.icon-btn:hover { border-color: var(--yellow); }

.nav-toggle { display: none; }

.hero { position: relative; overflow: hidden; padding: 64px 0 40px; }
.hero::before {
  content: ""; position: absolute; inset: -40% 0 auto -10%;
  height: 420px; width: 720px;
  background-image: radial-gradient(var(--dot) 2px, transparent 2.4px);
  background-size: 16px 16px;
  transform: rotate(-8deg);
  -webkit-mask-image: linear-gradient(120deg, #000 10%, transparent 72%);
  mask-image: linear-gradient(120deg, #000 10%, transparent 72%);
  pointer-events: none;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line); background: var(--surface);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 20px;
}
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); font-style: normal; }

h1 {
  font-family: var(--display); font-weight: 700; letter-spacing: -.035em;
  font-size: clamp(38px, 5.4vw, 62px); line-height: 1.03; margin: 0 0 18px;
}
.mark { background: var(--yellow); color: var(--on-accent); padding: 0 10px; border-radius: 10px; box-decoration-break: clone; }

.lede { font-size: 18.5px; color: var(--muted); margin: 0 0 26px; max-width: 46ch; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font); font-size: 15.5px; font-weight: 600;
  padding: 13px 22px; border-radius: 13px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .12s ease, background .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--yellow); color: var(--on-accent); }
.btn-primary:hover { background: var(--yellow-deep); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--yellow); }
.btn-lg { font-size: 17px; padding: 16px 28px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

.trust { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 26px; font-size: 13.5px; color: var(--muted); }
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.trust b { color: var(--text); font-weight: 600; }

.drop {
  position: relative; border: 2px dashed var(--line); border-radius: 22px;
  background: var(--surface); padding: 40px 28px; text-align: center;
  transition: border-color .15s ease, background .15s ease;
}
.drop.is-over { border-color: var(--yellow); background: color-mix(in srgb, var(--yellow) 8%, var(--surface)); }
.drop-emoji { font-size: 34px; line-height: 1; margin-bottom: 14px; }
.drop h2 { font-family: var(--display); font-size: 21px; margin: 0 0 8px; letter-spacing: -.02em; }
.drop p { color: var(--muted); font-size: 14.5px; margin: 0 0 20px; }
.drop small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 16px; }
.drop input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }

.section { padding: 62px 0; }
.section-head { max-width: 62ch; margin-bottom: 30px; }
.section-head h2 { font-family: var(--display); font-size: clamp(27px, 3.4vw, 36px); letter-spacing: -.03em; margin: 0 0 10px; }
.section-head p { color: var(--muted); margin: 0; font-size: 16.5px; }

.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 14px; }
.tool {
  display: block; text-decoration: none; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
  transition: transform .14s ease, border-color .14s ease;
}
.tool:hover { transform: translateY(-3px); border-color: var(--yellow); }
.tool-ico { font-size: 22px; margin-bottom: 12px; }
.tool h3 { font-family: var(--display); font-size: 17px; margin: 0 0 6px; letter-spacing: -.015em; }
.tool p { color: var(--muted); font-size: 13.5px; margin: 0; }
.tool.is-soon { pointer-events: none; opacity: .62; }
.tag {
  display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; padding: 3px 8px; border-radius: 999px; margin-left: 8px; vertical-align: 2px;
}
.tag-live { background: color-mix(in srgb, var(--green) 20%, transparent); color: var(--green); }
.tag-soon { background: var(--surface-2); color: var(--muted); }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.feature { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature .tool-ico { font-size: 24px; }
.feature h3 { font-family: var(--display); font-size: 18px; margin: 0 0 8px; letter-spacing: -.02em; }
.feature p { color: var(--muted); font-size: 14.5px; margin: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  font-family: var(--font); font-size: 13.5px; font-weight: 500; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
  padding: 9px 15px; border-radius: 999px; transition: border-color .14s ease, background .14s ease;
}
.chip:hover { border-color: var(--yellow); }
.chip.is-on { background: var(--yellow); border-color: var(--yellow); color: var(--on-accent); font-weight: 600; }
.chip small { display: block; font-size: 11px; opacity: .7; font-weight: 500; }

.studio { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.panel h2, .panel h3 { font-family: var(--display); letter-spacing: -.02em; }
.panel > h3 { font-size: 15px; margin: 0 0 16px; text-transform: uppercase; font-size: 12.5px; letter-spacing: .08em; color: var(--muted); }

.stage { background: #000; border-radius: var(--radius-sm); overflow: hidden; position: relative; aspect-ratio: 16/9; display: grid; place-items: center; }
.stage video, .stage img { width: 100%; height: 100%; object-fit: contain; }
.stage-empty { color: var(--muted); font-size: 14px; text-align: center; padding: 20px; }

.field { margin-bottom: 20px; }
.field-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.field label { font-size: 14px; font-weight: 600; }
.field .val { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.field-hint { font-size: 12.5px; color: var(--muted); margin-top: 7px; }

input[type="range"] { width: 100%; appearance: none; background: transparent; height: 22px; margin: 0; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 5px; border-radius: 99px; background: var(--surface-2); }
input[type="range"]::-webkit-slider-thumb { appearance: none; width: 17px; height: 17px; border-radius: 50%; background: var(--yellow); border: 3px solid var(--bg); margin-top: -6px; box-shadow: 0 1px 6px rgba(0,0,0,.35); }
input[type="range"]::-moz-range-track { height: 5px; border-radius: 99px; background: var(--surface-2); }
input[type="range"]::-moz-range-thumb { width: 17px; height: 17px; border: 3px solid var(--bg); border-radius: 50%; background: var(--yellow); }

.trim { position: relative; height: 34px; }
.trim-track { position: absolute; top: 15px; left: 0; right: 0; height: 5px; border-radius: 99px; background: var(--surface-2); }
.trim-fill { position: absolute; top: 15px; height: 5px; border-radius: 99px; background: var(--yellow); }
.trim input[type="range"] { position: absolute; top: 6px; left: 0; width: 100%; pointer-events: none; background: none; }
.trim input[type="range"]::-webkit-slider-runnable-track { background: transparent; }
.trim input[type="range"]::-moz-range-track { background: transparent; }
.trim input[type="range"]::-webkit-slider-thumb { pointer-events: auto; }
.trim input[type="range"]::-moz-range-thumb { pointer-events: auto; }

.seg { display: flex; gap: 6px; background: var(--surface-2); padding: 4px; border-radius: 12px; }
.seg button {
  flex: 1; font-family: var(--font); font-size: 13.5px; font-weight: 500; cursor: pointer;
  background: transparent; border: 0; color: var(--muted); padding: 8px 6px; border-radius: 9px;
}
.seg button.is-on { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: 0 1px 4px rgba(0,0,0,.2); }

.input {
  width: 100%; font: inherit; font-size: 15px; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 11px; padding: 11px 13px;
}
.input:focus { outline: 2px solid var(--yellow); outline-offset: 1px; }
.input::-webkit-outer-spin-button, .input::-webkit-inner-spin-button { appearance: none; margin: 0; }

.pair { display: flex; align-items: center; gap: 10px; }
.pair-x { color: var(--muted); font-size: 15px; }

.progress { height: 7px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-bottom: 10px; }
.progress i { display: block; height: 100%; width: 0; background: var(--yellow); transition: width .2s ease; }
.status { font-size: 13px; color: var(--muted); min-height: 20px; }
.status.is-err { color: var(--pink); }

.result { display: none; }
.result.is-on { display: block; }
.result-meta { display: flex; flex-wrap: wrap; gap: 16px; margin: 16px 0; font-size: 13.5px; color: var(--muted); }
.result-meta b { color: var(--text); font-weight: 600; }

.prose { max-width: 74ch; }
.prose h2 { font-family: var(--display); font-size: 27px; letter-spacing: -.025em; margin: 40px 0 14px; }
.prose h3 { font-family: var(--display); font-size: 19px; letter-spacing: -.02em; margin: 26px 0 8px; }
.prose p, .prose li { color: var(--muted); font-size: 16px; }
.prose ol, .prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--text); }

.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 10px 0 0; color: var(--muted); font-size: 15px; }

.banner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; font-size: 14.5px; color: var(--muted);
}
.banner b { color: var(--text); }

.site-foot { border-top: 1px solid var(--line); margin-top: 40px; padding: 40px 0 50px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 30px; }
.foot-grid h4 { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; font-weight: 600; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 8px; }
.foot-grid a { color: var(--muted); text-decoration: none; font-size: 14.5px; }
.foot-grid a:hover { color: var(--text); }
.foot-note { color: var(--muted); font-size: 13.5px; margin: 26px 0 0; }

.crumbs { font-size: 13.5px; color: var(--muted); padding: 22px 0 0; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--text); }

@media (max-width: 900px) {
  .hero-inner, .studio, .foot-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .nav { position: fixed; inset: 64px 0 auto; flex-direction: column; align-items: stretch; gap: 2px; background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px 20px 20px; display: none; }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px; font-size: 16px; }
  .nav-toggle { display: inline-grid; margin-left: auto; }
  .head-row { gap: 10px; }
  .section { padding: 44px 0; }
}
