:root {
  /* Fonds */
  --bg-app: #0d0d0d;
  --bg-panel: #1a1a1a;
  --bg-panel-2: #151515;
  --bg-rail: #141414;
  --surface-hover: #222222;
  --surface-active: #2a2a2a;

  /* Bordures */
  --border: #2a2a2a;
  --border-soft: #232323;
  --border-strong: #333333;

  /* Texte / icônes */
  --text: #aaaaaa;
  --text-dim: #6b6b6b;
  --text-bright: #e8e8e8;
  --icon: #8a8a8a;

  /* Accent monochrome */
  --accent: #e8e8e8;
  --danger: #e5484d;

  --radius: 8px;
  --radius-sm: 6px;
  --font: "Inter", "Segoe UI Variable", system-ui, sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);

  --shadow-deep: 0 18px 60px rgba(0, 0, 0, 0.55);
  --container: 1160px;
  --header-height: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg-app);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 0, rgba(255, 255, 255, 0.045), transparent 34rem),
    var(--bg-app);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

body.has-custom-cursor,
body.has-custom-cursor a,
body.has-custom-cursor button {
  cursor: none;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

::selection {
  color: var(--bg-app);
  background: var(--accent);
}

:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 200;
  transform: translateY(-140%);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.8rem;
  color: var(--text-bright);
  background: var(--bg-panel);
  transition: transform 0.12s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.08;
  mix-blend-mode: soft-light;
  background-image:
    repeating-radial-gradient(circle at 17% 31%, rgba(255, 255, 255, 0.12) 0 0.6px, transparent 0.7px 2px),
    repeating-radial-gradient(circle at 71% 63%, rgba(255, 255, 255, 0.08) 0 0.5px, transparent 0.6px 2.4px);
  background-size: 180px 180px, 220px 220px;
}

.cursor-ring,
.cursor-dot {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 160;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0);
}

.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(232, 232, 232, 0.72);
  border-radius: 50%;
  box-shadow: 0 0 28px rgba(255, 255, 255, 0.06);
  transition:
    width 0.12s var(--ease),
    height 0.12s var(--ease),
    border-color 0.12s var(--ease),
    opacity 0.18s var(--ease);
  will-change: transform;
}

.cursor-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
  transition: opacity 0.18s var(--ease);
  will-change: transform;
}

body.is-hovering .cursor-ring {
  width: 54px;
  height: 54px;
  border-color: rgba(232, 232, 232, 0.96);
}

body.cursor-ready .cursor-ring,
body.cursor-ready .cursor-dot {
  opacity: 1;
}

.section-dotgrid {
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.025) 1px, transparent 0);
  background-size: 22px 22px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 120;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-height);
  border-bottom: 1px solid rgba(42, 42, 42, 0.76);
  padding: 0 1rem;
  background: rgba(13, 13, 13, 0.72);
  backdrop-filter: blur(18px);
  transition:
    min-height 0.18s var(--ease),
    background 0.18s var(--ease),
    border-color 0.18s var(--ease);
}

.site-header.is-scrolled {
  min-height: 60px;
  border-color: rgba(51, 51, 51, 0.9);
  background: rgba(13, 13, 13, 0.86);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-bright);
  font-weight: 700;
  line-height: 1;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: rgba(26, 26, 26, 0.72);
}

.brand-mark.compact {
  width: 22px;
  height: 22px;
  border: 0;
  background: transparent;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.feature-icon path,
.tool-button path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.main-nav {
  display: none;
}

.main-nav a,
.site-footer nav a {
  color: var(--text-dim);
  font-size: 0.88rem;
  transition: color 0.12s var(--ease);
}

.main-nav a:hover,
.site-footer nav a:hover {
  color: var(--text-bright);
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.8rem 1.05rem;
  font-size: 0.94rem;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  transition:
    transform 0.12s var(--ease),
    border-color 0.12s var(--ease),
    background 0.12s var(--ease),
    color 0.12s var(--ease);
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button-light {
  color: #101010;
  border-color: var(--accent);
  background: var(--accent);
}

.button-light:hover {
  background: #ffffff;
}

.button-ghost {
  color: var(--text-bright);
  background: rgba(26, 26, 26, 0.55);
}

.button-ghost:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

.button-small {
  min-height: 38px;
  padding: 0.62rem 0.82rem;
  font-size: 0.86rem;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 100svh;
  padding: calc(var(--header-height) + 4rem) 1rem 3rem;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 34%;
  background: linear-gradient(to bottom, transparent, var(--bg-app));
}

.brush-canvas {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  opacity: 0.78;
}

.color-stroke {
  position: absolute;
  left: 50%;
  top: 53%;
  z-index: -1;
  width: min(680px, 76vw);
  height: 92px;
  transform: translate(-50%, calc(-50% + var(--stroke-y, 0px))) rotate(-8deg);
  border-radius: 999px 44% 999px 42%;
  opacity: 0.46;
  filter: blur(11px) saturate(1.08);
  background:
    linear-gradient(90deg, rgba(229, 72, 77, 0), rgba(229, 72, 77, 0.78) 16%, rgba(255, 159, 28, 0.7) 39%, rgba(22, 199, 199, 0.62) 67%, rgba(22, 132, 238, 0)),
    radial-gradient(circle at 28% 50%, rgba(255, 255, 255, 0.38), transparent 44%);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 86%, transparent);
}

.hero-inner {
  align-self: center;
  width: min(100%, var(--container));
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 1.1rem;
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-title,
.section-title,
.final-title {
  margin: 0;
  color: var(--text-bright);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 0.95;
}

.hero-title {
  max-width: 780px;
  font-size: 3.9rem;
}

.hero-copy,
.section-copy {
  max-width: 620px;
  margin: 1.4rem 0 0;
  color: var(--text);
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-status {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: none;
  align-items: center;
  gap: 0.52rem;
  border: 1px solid rgba(42, 42, 42, 0.7);
  border-radius: 999px;
  padding: 0.52rem 0.75rem;
  color: var(--text-dim);
  background: rgba(13, 13, 13, 0.62);
  backdrop-filter: blur(12px);
  font-size: 0.78rem;
}

.hero-status span:first-child {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(232, 232, 232, 0.5);
}

.section {
  position: relative;
  padding: 5.5rem 1rem;
}

.section-head,
.app-window,
.bento-grid,
.workflow-list,
.final-inner,
.site-footer {
  width: min(100%, var(--container));
  margin-inline: auto;
}

.section-head {
  margin-bottom: 2rem;
}

.compact-head {
  margin-bottom: 1.2rem;
}

.section-title {
  max-width: 780px;
  font-size: 2.35rem;
}

.demo-section {
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.018), transparent 18rem),
    var(--bg-app);
}

.app-window {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--bg-panel-2);
  box-shadow: var(--shadow-deep);
  transform:
    perspective(1200px)
    rotateX(var(--rx, 0deg))
    rotateY(var(--ry, 0deg))
    translate3d(0, var(--mockup-y, 0px), 0);
  transition: transform 0.16s var(--ease);
  will-change: transform;
}

.app-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  border-bottom: 1px solid var(--border);
  padding: 0 0.75rem;
  background: #111111;
}

.title-brand {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 0.62rem;
  font-size: 0.8rem;
}

.title-brand strong {
  color: var(--text-bright);
}

.layer-tabs {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  min-width: 0;
  border-left: 1px solid var(--border-soft);
}

.layer-tab {
  display: inline-flex;
  align-items: center;
  border-right: 1px solid var(--border-soft);
  padding: 0 1.2rem;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 650;
  white-space: nowrap;
}

.layer-tab.is-active {
  color: var(--text-bright);
  background: var(--bg-panel);
}

.layer-add {
  display: inline-grid;
  place-items: center;
  width: 42px;
  color: var(--icon);
  font-size: 1.15rem;
  line-height: 1;
}

.window-actions {
  display: flex;
  gap: 0.8rem;
}

.window-actions span {
  width: 10px;
  height: 1px;
  background: var(--icon);
}

.window-actions span:nth-child(2) {
  height: 9px;
  border: 1px solid var(--icon);
  background: transparent;
}

.window-actions span:nth-child(3) {
  position: relative;
  width: 10px;
  background: transparent;
}

.window-actions span:nth-child(3)::before,
.window-actions span:nth-child(3)::after {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 11px;
  height: 1px;
  background: var(--icon);
}

.window-actions span:nth-child(3)::before {
  transform: rotate(45deg);
}

.window-actions span:nth-child(3)::after {
  transform: rotate(-45deg);
}

.app-body {
  display: grid;
  grid-template-columns: 46px 1fr;
  min-height: 520px;
}

.tool-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  border-right: 1px solid var(--border);
  padding: 0.62rem 0.38rem;
  background: var(--bg-rail);
}

.tool-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--icon);
  background: transparent;
  transition:
    color 0.12s var(--ease),
    border-color 0.12s var(--ease),
    background 0.12s var(--ease);
}

.tool-button svg {
  width: 18px;
  height: 18px;
}

.tool-button:hover,
.tool-button.is-active {
  color: var(--text-bright);
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

.rail-spacer {
  flex: 1;
  width: 22px;
  border-bottom: 1px solid var(--border);
}

.canvas-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 1.2rem;
  background:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.025) 1px, transparent 0),
    #101010;
  background-size: 22px 22px, auto;
}

.paper {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 760px);
  aspect-ratio: 1.28;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: #1f1f1f;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.45);
}

.paper::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.018) 1px, transparent 0),
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.75;
}

.paper-stroke {
  position: relative;
  z-index: 1;
  width: 74%;
  color: #d4d4d4;
  opacity: 0.76;
}

.paper-stroke path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 7;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.paper-stroke path:first-child {
  transition: stroke-dashoffset 1.2s var(--ease) 0.18s;
}

.paper-stroke path:last-child {
  stroke-width: 4;
  opacity: 0.46;
  transition: stroke-dashoffset 1.2s var(--ease) 0.42s;
}

.app-window.is-visible .paper-stroke path {
  stroke-dashoffset: 0;
}

.properties-panel {
  display: none;
}

.zoom-control {
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.48rem 0.75rem;
  color: var(--text);
  background: rgba(26, 26, 26, 0.86);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
  font-size: 0.76rem;
}

.zoom-control span:first-child,
.zoom-control span:last-child {
  color: var(--icon);
  font-size: 1rem;
  line-height: 1;
}

.statusbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 28px;
  border-top: 1px solid var(--border);
  padding: 0 0.9rem;
  color: var(--text-dim);
  background: #111111;
  font-size: 0.74rem;
}

.statusbar span:last-child {
  margin-left: auto;
}

.statusbar span:nth-last-child(2) {
  margin-left: auto;
}

.statusbar span:nth-last-child(2) + span {
  margin-left: 0;
}

.bento-grid {
  display: grid;
  gap: 0.85rem;
}

.feature-card {
  position: relative;
  isolation: isolate;
  min-height: 228px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.25rem;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.025), transparent 58%),
    var(--bg-panel-2);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
}

.feature-card::before,
.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.16s var(--ease);
}

.feature-card::before {
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.12), transparent 45%);
}

.feature-card::after {
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(232, 232, 232, 0.48), transparent 58%);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
}

.feature-card:hover::before,
.feature-card:hover::after {
  opacity: 1;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-bright);
  background: rgba(13, 13, 13, 0.42);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-card h3,
.workflow-step h3 {
  margin: 0;
  color: var(--text-bright);
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.2;
}

.feature-card p,
.workflow-step p {
  margin: 0.72rem 0 0;
  color: var(--text);
  font-size: 0.95rem;
}

.workflow-section {
  overflow: hidden;
}

.workflow-list {
  position: relative;
  display: grid;
  gap: 0.8rem;
}

.workflow-list::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 24px;
  bottom: 24px;
  width: 1px;
  transform: scaleY(var(--line-progress, 0));
  transform-origin: top;
  background: linear-gradient(to bottom, transparent, var(--border-strong), transparent);
  transition: transform 0.8s var(--ease);
}

.workflow-list.is-visible::before {
  --line-progress: 1;
}

.workflow-step {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1rem;
  border-bottom: 1px solid var(--border-soft);
  padding: 1.15rem 0;
}

.step-number {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-bright);
  background: var(--bg-app);
  font-size: 0.78rem;
  font-weight: 700;
}

.final-cta {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 82svh;
  padding: 6rem 1rem;
  text-align: center;
  overflow: hidden;
}

.final-cta::before {
  content: "";
  position: absolute;
  inset: 12% 16%;
  border: 1px solid rgba(42, 42, 42, 0.42);
  border-radius: var(--radius);
  transform: rotate(-2deg);
  opacity: 0.5;
}

.final-inner {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
}

.final-title {
  max-width: 850px;
  font-size: 2.75rem;
}

.final-inner .button {
  margin-top: 2rem;
}

.site-footer {
  display: grid;
  gap: 1.25rem;
  border-top: 1px solid var(--border-soft);
  padding: 2rem 1rem;
  color: var(--text-dim);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer p {
  margin: 0;
  font-size: 0.84rem;
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity 0.55s var(--ease),
    transform 0.55s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.split-reveal .char {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 0.8em, 0);
  clip-path: inset(0 0 100% 0);
  transition:
    opacity 0.55s var(--ease),
    transform 0.55s var(--ease),
    clip-path 0.55s var(--ease);
  transition-delay: calc(var(--char-index) * 15ms);
  will-change: opacity, transform, clip-path;
}

.split-reveal.is-visible .char {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  clip-path: inset(0);
}

.split-reveal .word {
  display: inline-block;
  white-space: nowrap;
}

@media (min-width: 680px) {
  .site-header {
    grid-template-columns: 1fr auto 1fr;
    padding: 0 1.25rem;
  }

  .main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
  }

  .site-header .button {
    justify-self: end;
  }

  .hero {
    padding-inline: 1.5rem;
  }

  .hero-title {
    font-size: 5.2rem;
  }

  .hero-copy,
  .section-copy {
    font-size: 1.05rem;
  }

  .hero-status {
    display: inline-flex;
  }

  .section {
    padding: 7rem 1.5rem;
  }

  .section-title {
    font-size: 3.35rem;
  }

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

  .feature-wide {
    grid-column: span 2;
  }

  .workflow-step {
    grid-template-columns: 80px 1fr;
    gap: 1.5rem;
    padding: 1.65rem 0;
  }

  .step-number {
    width: 56px;
    height: 56px;
  }

  .workflow-list::before {
    left: 28px;
  }

  .final-title {
    font-size: 4rem;
  }

  .site-footer {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding-inline: 1.5rem;
  }

  .site-footer p {
    justify-self: end;
  }
}

@media (min-width: 900px) {
  .app-body {
    grid-template-columns: 56px minmax(0, 1fr) 270px;
  }

  .properties-panel {
    display: block;
    border-left: 1px solid var(--border);
    padding: 1rem;
    background: var(--bg-panel);
  }

  .panel-row,
  .range-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--text);
    font-size: 0.78rem;
  }

  .panel-row {
    margin-bottom: 0.85rem;
    color: var(--text-dim);
    text-transform: uppercase;
  }

  .panel-row strong {
    color: var(--text-bright);
    font-size: 0.78rem;
    font-weight: 650;
    text-transform: none;
  }

  .checker-preview {
    position: relative;
    height: 58px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background-color: #f8f8f8;
    background-image:
      linear-gradient(45deg, #dedede 25%, transparent 25%),
      linear-gradient(-45deg, #dedede 25%, transparent 25%),
      linear-gradient(45deg, transparent 75%, #dedede 75%),
      linear-gradient(-45deg, transparent 75%, #dedede 75%);
    background-position: 0 0, 0 8px, 8px -8px, -8px 0;
    background-size: 16px 16px;
  }

  .checker-preview span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d4d4d4;
    transform: translate(-50%, -50%);
  }

  .range-label {
    margin-top: 1rem;
  }

  .range-label span:last-child {
    color: var(--text-dim);
  }

  input[type="range"] {
    width: 100%;
    height: 24px;
    margin: 0.4rem 0 0;
    accent-color: var(--accent);
    background: transparent;
  }

  input[type="range"]::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 999px;
    background: var(--surface-active);
  }

  input[type="range"]::-webkit-slider-thumb {
    width: 13px;
    height: 13px;
    margin-top: -4.5px;
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    background: var(--accent);
    -webkit-appearance: none;
  }

  input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
  }

  .panel-group {
    margin-top: 1.55rem;
  }

  .panel-kicker {
    display: block;
    margin-bottom: 0.72rem;
    color: var(--text-dim);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
  }

  .hex-field {
    display: grid;
    grid-template-columns: 38px 1fr;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.95rem;
  }

  .hex-field span {
    width: 38px;
    height: 38px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: #d4d4d4;
  }

  .hex-field code {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.42rem 0.55rem;
    color: var(--text-bright);
    background: #111111;
    font-family: var(--font);
    font-size: 0.78rem;
  }

  .color-plane {
    height: 130px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background:
      linear-gradient(to top, #050505, transparent),
      linear-gradient(to right, #ffffff, rgba(255, 255, 255, 0)),
      linear-gradient(135deg, #e5484d, #111111 72%);
  }

  .palette {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.45rem;
    margin-top: 0.85rem;
  }

  .palette span {
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 5px;
    background: var(--swatch);
  }
}

@media (min-width: 1060px) {
  .site-header {
    padding-inline: 1.75rem;
  }

  .hero {
    padding-inline: 1.75rem;
  }

  .hero-title {
    font-size: 6.25rem;
  }

  .section {
    padding: 8.5rem 1.75rem;
  }

  .section-title {
    font-size: 4rem;
  }

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

  .feature-wide {
    grid-column: span 2;
  }

  .feature-tall {
    grid-row: span 2;
    min-height: 100%;
  }

  .final-title {
    font-size: 5rem;
  }
}

@media (max-width: 460px) {
  .site-header {
    gap: 0.55rem;
    padding-inline: 0.75rem;
  }

  .brand {
    gap: 0.45rem;
  }

  .brand-mark {
    width: 28px;
    height: 28px;
  }

  .button-small {
    padding-inline: 0.68rem;
  }

  .hero-title {
    font-size: 3.25rem;
  }

  .section-title {
    font-size: 2.05rem;
  }

  .final-title {
    font-size: 2.35rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .app-body {
    min-height: 430px;
  }

  .canvas-stage {
    padding: 0.7rem;
  }

  .statusbar {
    gap: 0.65rem;
    overflow: hidden;
    white-space: nowrap;
  }

  .statusbar span:nth-child(4) {
    display: none;
  }
}

@media (pointer: coarse) {
  .cursor-ring,
  .cursor-dot {
    display: none;
  }

  body.has-custom-cursor,
  body.has-custom-cursor a,
  body.has-custom-cursor button {
    cursor: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .reveal,
  .split-reveal .char {
    opacity: 1;
    transform: none;
    clip-path: none;
  }

  .app-window {
    transform: none;
  }

  .brush-canvas {
    display: none;
  }
}
