:root {
  color-scheme: dark;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  color: #f5f1fa;
  background: #15121c;
  --surface: #211b2b;
  --ink: #f5f1fa;
  --muted: #c5bacf;
  --soft: #ab9cb9;
  --accent: #c9b6f5;
  --border: #d2bced2c;
  --page: 1200px;
  --gutter: clamp(18px, 4vw, 44px);
  --ease: cubic-bezier(.2,.65,.3,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 280px; font-size: 16px; line-height: 1.55; }
body::before {
  position: fixed;
  z-index: -1;
  inset: -14% -8%;
  content: "";
  pointer-events: none;
  background: radial-gradient(ellipse at 76% 20%, #65489026 0%, transparent 48%),
    radial-gradient(ellipse at 16% 75%, #513a7728 0%, transparent 53%);
  animation: drift 21s var(--ease) infinite alternate;
}
h1, h2, h3, p, figure, ol, dl, dd { margin: 0; }
h2, h3 { line-height: 1.12; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { color: inherit; font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #e1d2ff; outline-offset: 4px; }
[id] { scroll-margin-top: 110px; }

.wrap { width: min(var(--page), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.skip-link {
  position: absolute; z-index: 5; top: 8px; left: var(--gutter);
  padding: 9px 14px; background: var(--accent); color: #1c1429; border-radius: 9px;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }
.header {
  position: sticky; z-index: 4; top: 0; border-bottom: 1px solid var(--border);
  background: #15121cea; backdrop-filter: blur(10px);
}
.header-inner { min-height: 72px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; }
.brand {
  display: inline-flex; align-items: center; gap: 9px; justify-self: start;
  width: max-content; font-size: 1.25rem; font-weight: 780; letter-spacing: -.05em; text-decoration: none;
}
.brand img { flex: none; border-radius: 25%; }
.header nav { display: flex; align-items: center; gap: clamp(17px, 3vw, 36px); }
.header nav a {
  display: inline-flex; align-items: center; min-height: 44px; color: var(--muted);
  font-size: .9rem; font-weight: 650; text-decoration: none;
}
.header nav a:hover { color: var(--ink); }
.status {
  display: inline-flex; align-items: center; gap: 7px; justify-self: end; white-space: nowrap;
  padding: 6px 10px; border: 1px solid var(--border); border-radius: 999px;
  background: #bfa4e311; color: #ddd1ed; font-size: .73rem; font-weight: 650;
}
.status span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 9px #cbb0ff70; }

.hero {
  position: relative; isolation: isolate; display: grid; grid-template-columns: .91fr 1.09fr;
  align-items: center; gap: clamp(21px, 4.4vw, 66px); padding-block: clamp(58px, 8vw, 108px) clamp(56px, 7.3vw, 90px);
}
.hero-glow {
  position: absolute; z-index: -1; pointer-events: none; inset: 4% 10% 13% 27%;
  background: radial-gradient(ellipse, #8a659b30, transparent 70%);
  animation: drift 15s var(--ease) infinite alternate-reverse;
}
@keyframes drift {
  from { transform: translate3d(-3%, -4%, 0) scale(1); }
  to { transform: translate3d(4%, 5%, 0) scale(1.08); }
}
.eyebrow {
  color: var(--accent); font-size: .77rem; font-weight: 720; line-height: 1.3;
  letter-spacing: .13em; text-transform: uppercase;
}
.hero h1 {
  margin-top: 16px; font-size: clamp(50px, 7.5vw, 112px); line-height: .93;
  font-weight: 780; letter-spacing: -.085em;
}
.hero h1 em { color: var(--accent); font-style: normal; }
.lead { color: var(--muted); font-size: clamp(1rem, 1.65vw, 1.16rem); max-width: 37ch; margin-top: 25px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 27px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px;
  padding: 10px 15px; border: 1px solid var(--border); border-radius: 11px;
  font-size: .88rem; font-weight: 750; text-decoration: none;
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.button-primary { color: #211532; background: #d2c0fa; border-color: transparent; }
.button-primary:hover { background: #e5d7ff; transform: translateY(-2px); }
.button-quiet { background: #291f35a1; color: var(--ink); }
.button-quiet:hover { background: #362946; transform: translateY(-2px); }
.button span { font-size: 1rem; line-height: 1; }

.hero-media {
  overflow: hidden; position: relative; min-width: 0; border-radius: clamp(17px, 2.9vw, 34px);
  border: 1px solid #dcc7f437; background: #2e2635;
  box-shadow: 0 25px 70px #06040873, 0 0 42px #9672bb19;
}
.hero-image { aspect-ratio: 1.21; overflow: hidden; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: 53% 50%; }
.hero-media::after {
  content: ""; position: absolute; inset: auto 0 0; height: 26%; pointer-events: none;
  background: linear-gradient(transparent, #15101be0);
}
.hero-media figcaption {
  position: absolute; z-index: 1; left: 17px; bottom: 16px; display: flex; align-items: center; gap: 9px;
  padding: 7px 10px; border-radius: 9px; border: 1px solid #e6d7fa33;
  background: #21192acf; color: #efe4f8; font-size: .71rem; font-weight: 650;
}
.viewfinder { position: relative; width: 13px; height: 9px; border: 1px solid var(--accent); border-radius: 2px; }
.viewfinder::after { content: ""; position: absolute; inset: 2px 4px; border-radius: 50%; background: var(--accent); }

.section { padding-block: clamp(34px, 5.4vw, 70px); }
.section-heading { margin-bottom: 24px; }
.section-heading h2, .mobile h2 {
  margin-top: 9px; font-size: clamp(30px, 4.6vw, 55px); font-weight: 745; letter-spacing: -.06em;
}
.glass { border: 1px solid var(--border); border-radius: 19px; background: linear-gradient(145deg, #33263f9c, #201929bf); }
.workflow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; list-style: none; padding: 0; }
.workflow li { min-width: 0; padding: clamp(17px, 2.5vw, 26px); }
.workflow h3 { font-size: 1.09rem; letter-spacing: -.025em; margin-top: 14px; }
.workflow p { color: var(--muted); margin-top: 7px; font-size: .92rem; max-width: 34ch; }
.step-icon {
  position: relative; display: grid; place-items: center; width: 37px; height: 37px;
  color: var(--accent); border: 1px solid #bfa4e341; background: #a786db19; border-radius: 10px;
}
.image-icon::before { content: ""; width: 16px; height: 14px; border: 1.5px solid currentColor; border-radius: 3px; }
.image-icon::after { content: ""; position: absolute; top: 15px; left: 14px; width: 7px; height: 7px; border: solid currentColor; border-width: 1.4px 1.4px 0 0; transform: rotate(-45deg); }
.motion-icon::before { content: ""; width: 3px; height: 15px; border-radius: 4px; background: currentColor; box-shadow: -6px 2px 0 -0.3px currentColor, 6px -2px 0 -0.3px currentColor; }
.export-icon::before { content: "↓"; font-size: 1.5rem; line-height: 1; transform: translateY(-2px); }
.export-icon::after { content: ""; position: absolute; bottom: 8px; width: 15px; height: 4px; border: solid currentColor; border-width: 0 1px 1px; border-radius: 0 0 2px 2px; }

.mode-grid { display: grid; grid-template-columns: 1.03fr .97fr; gap: 14px; align-items: stretch; }
.mode-console, .character-card { min-width: 0; padding: clamp(17px, 3vw, 28px); }
.mode-tabs { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 5px; padding: 5px; border: 1px solid var(--border); border-radius: 13px; background: #17111fa6; }
.mode-tabs button, .character-picker button {
  min-width: 0; min-height: 44px; cursor: pointer; border: 1px solid transparent; border-radius: 9px;
  background: transparent; color: var(--muted); font-size: .84rem; font-weight: 700; padding: 6px 8px;
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.mode-tabs button[aria-selected="true"], .character-picker button[aria-pressed="true"] {
  background: #4a375f; border-color: #c9b1ed4f; color: #f9f2ff;
}
.mode-tabs button:hover, .character-picker button:hover { color: white; }
.mode-content { padding-top: 22px; }
.mode-content h3 { font-size: clamp(23px, 3.2vw, 38px); letter-spacing: -.05em; }
.mode-content p { margin-top: 9px; max-width: 43ch; color: var(--muted); }
.inputs { margin-top: 19px; display: grid; gap: 6px; }
.inputs div { display: grid; gap: 3px; padding: 10px 12px; border-radius: 9px; background: #14101b65; border: 1px solid #cebaeb1c; }
.inputs dt { color: #e9ddf6; font-size: .8rem; font-weight: 720; }
.inputs dd { color: var(--muted); font-size: .89rem; }
.character-head { display: flex; align-items: baseline; justify-content: space-between; gap: 7px; margin-bottom: 12px; }
.character-head h3 { font-size: 1.03rem; }
.character-head span { color: var(--soft); font-size: .71rem; white-space: nowrap; }
.character-shot {
  position: relative; display: grid; place-items: center; overflow: hidden; min-height: 220px;
  height: clamp(220px, 31vw, 320px); border-radius: 12px; background: #b5b5b5;
}
.character-shot img { width: 100%; height: 100%; min-height: 0; object-fit: contain; object-position: center; }
.character-shot figcaption {
  position: absolute; left: 9px; bottom: 9px; background: #21172de8;
  border: 1px solid #d2bced49; padding: 5px 8px; border-radius: 7px; font-size: .76rem; font-weight: 680;
}
.character-picker { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 5px; margin-top: 8px; }
.character-picker button { font-size: .75rem; }

.mobile { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 24px; align-items: center; padding: clamp(20px, 4.3vw, 46px); }
.mobile h2 { font-size: clamp(26px, 3.5vw, 42px); max-width: 17ch; }
.stores { display: flex; gap: 9px; flex-wrap: wrap; }
.store {
  display: flex; align-items: center; gap: 9px; min-width: 143px; min-height: 56px;
  padding: 9px 11px; color: var(--ink); background: #17111f91; border: 1px solid var(--border); border-radius: 11px;
}
.store svg { width: 22px; height: 22px; flex: none; color: var(--accent); }
.store small { display: block; color: var(--muted); font-size: .65rem; line-height: 1.2; }
.store strong { display: block; font-size: .97rem; font-weight: 735; line-height: 1.25; white-space: nowrap; }
.footer { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; padding-block: 20px 36px; border-top: 1px solid var(--border); }
.footer p { color: var(--muted); font-size: .84rem; }

@media (max-width: 950px) {
  .hero { grid-template-columns: .88fr 1.12fr; }
  .hero h1 { font-size: clamp(48px, 8.4vw, 84px); }
  .hero-image { aspect-ratio: 1.04; }
}
@media (max-width: 768px) {
  .header-inner { min-height: 62px; }
  .header nav { gap: 12px; }
  .hero { grid-template-columns: 1fr; padding-block: 44px 34px; gap: 25px; }
  .hero h1 { font-size: clamp(51px, 12vw, 81px); }
  .hero-image { aspect-ratio: 1.3; }
  .workflow { grid-template-columns: 1fr; gap: 8px; }
  .workflow li { display: grid; grid-template-columns: 37px minmax(0,1fr); column-gap: 12px; }
  .workflow li .step-icon { grid-row: span 2; align-self: center; }
  .workflow h3 { margin-top: 0; }
  .workflow p { margin-top: 4px; }
  .mode-grid, .mobile { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .mobile h2 { max-width: none; }
}
@media (max-width: 570px) {
  .header-inner { display: flex; justify-content: space-between; gap: 8px; }
  .header nav { display: none; }
}
@media (max-width: 480px) {
  .header { backdrop-filter: none; }
  .hero .lead { margin-top: 17px; }
  .hero .actions { margin-top: 19px; }
  .hero-media figcaption { left: 10px; bottom: 10px; }
  .section-heading { margin-bottom: 16px; }
  .footer p { font-size: .76rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
