@font-face {
  font-family: "Manrope Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("assets/fonts/manrope-cyrillic-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

@font-face {
  font-family: "Manrope Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("assets/fonts/manrope-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: "Unbounded Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url("assets/fonts/unbounded-cyrillic-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

@font-face {
  font-family: "Unbounded Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url("assets/fonts/unbounded-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  --bg: #070806;
  --bg-deep: #040504;
  --bg-soft: #0d0f0c;
  --panel: #11140f;
  --panel-raised: #161a14;
  --panel-bright: #1c2118;
  --line: rgba(240, 255, 230, 0.11);
  --line-bright: rgba(240, 255, 230, 0.21);
  --text: #f6f8f2;
  --muted: #adb4a8;
  --muted-soft: #899184;
  --accent: #c7ff2e;
  --accent-bright: #d7ff68;
  --accent-soft: rgba(199, 255, 46, 0.12);
  --black: #090b06;
  --title: "Unbounded Variable", "Arial Black", sans-serif;
  --body: "Manrope Variable", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius-small: 14px;
  --radius: 26px;
  --radius-large: 38px;
  --shadow: 0 34px 110px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.shell {
  width: min(1280px, calc(100% - 64px));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 16px;
  left: 16px;
  padding: 12px 18px;
  color: var(--black);
  background: var(--accent);
  font-size: 16px;
  font-weight: 800;
  transform: translateY(-180%);
  transition: transform 0.2s;
}

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

.brand-mark {
  display: block;
  width: 44px;
  aspect-ratio: 895.176 / 598.13;
  background: var(--accent);
  -webkit-mask: url("assets/brand/melodinsky-logo.svg") center / contain no-repeat;
  mask: url("assets/brand/melodinsky-logo.svg") center / contain no-repeat;
}

.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(7, 8, 6, 0.72);
  backdrop-filter: blur(22px) saturate(140%);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 88px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  width: fit-content;
  font-family: var(--title);
  font-size: 22px;
  font-weight: 650;
}

.nav {
  display: flex;
  gap: 38px;
  color: #c1c7bc;
  font-size: 16px;
  font-weight: 600;
}

.nav a,
.site-footer a {
  transition: color 0.2s;
}

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

.header-inner > .button {
  justify-self: end;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  transition: transform 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

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

.button:focus-visible,
.text-link:focus-visible,
.nav a:focus-visible,
.brand:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.button svg {
  width: 22px;
  height: 22px;
}

.button-primary {
  color: var(--black);
  background: var(--accent);
  box-shadow: 0 14px 42px rgba(199, 255, 46, 0.18);
}

.button-primary:hover {
  background: var(--accent-bright);
  box-shadow: 0 18px 50px rgba(199, 255, 46, 0.28);
}

.button-ghost {
  color: #e2e6de;
  border-color: var(--line-bright);
  background: rgba(255, 255, 255, 0.035);
}

.button-ghost:hover {
  border-color: rgba(199, 255, 46, 0.55);
  background: rgba(199, 255, 46, 0.06);
}

.button-small {
  min-height: 48px;
  padding-inline: 22px;
  font-size: 16px;
  border-radius: 14px;
}

.button-dark {
  min-height: 62px;
  color: white;
  background: #0a0c08;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
}

.button-dark:hover {
  background: #181c14;
}

.hero {
  position: relative;
  min-height: 970px;
  overflow: hidden;
  padding: 190px 0 126px;
  background:
    radial-gradient(circle at 81% 28%, rgba(199, 255, 46, 0.12), transparent 26%),
    radial-gradient(circle at 5% 78%, rgba(94, 255, 165, 0.045), transparent 27%),
    linear-gradient(180deg, #070806 0%, #090b08 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.3;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 86px 86px;
  mask-image: linear-gradient(to right, black, transparent 82%);
}

.hero::after {
  content: "мелодинский";
  position: absolute;
  right: -46px;
  bottom: -25px;
  color: rgba(255, 255, 255, 0.018);
  font-family: var(--title);
  font-size: clamp(90px, 14vw, 210px);
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.hero-glow {
  position: absolute;
  width: 810px;
  height: 810px;
  top: 45px;
  right: -220px;
  border: 1px solid rgba(199, 255, 46, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 170px rgba(199, 255, 46, 0.07), inset 0 0 170px rgba(199, 255, 46, 0.035);
}

.hero-glow::before,
.hero-glow::after {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(199, 255, 46, 0.085);
  border-radius: 50%;
}

.hero-glow::after {
  inset: 26%;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 76px;
  align-items: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 26px;
  color: #c8cdc3;
  font-size: 16px;
  font-weight: 750;
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-transform: uppercase;
}

.eyebrow span {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(199, 255, 46, 0.9);
}

h1,
.section-heading h2,
.benefit-lead h2,
.final-cta h2 {
  font-family: var(--title);
  text-wrap: balance;
}

h1 {
  max-width: 620px;
  margin-bottom: 32px;
  font-size: clamp(58px, 5.25vw, 78px);
  font-weight: 720;
  letter-spacing: -0.05em;
  line-height: 1.03;
}

h1 em,
h2 em {
  color: var(--accent);
  font-style: normal;
}

.hero-lead {
  max-width: 610px;
  margin-bottom: 38px;
  color: #b5bcb0;
  font-size: 20px;
  line-height: 1.7;
}

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

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #e0e4dc;
  font-size: 16px;
  font-weight: 750;
}

.text-link:hover {
  color: var(--accent);
}

.text-link svg {
  width: 22px;
  height: 22px;
}

.tool-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 62px;
  color: #899184;
  font-size: 16px;
}

.tool-line strong {
  color: #b4bbb0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
}

.tool-line i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #5b6258;
}

.product-stage {
  position: relative;
  padding: 22px 0 22px 16px;
  perspective: 1200px;
}

.signal {
  position: absolute;
  border: 1px solid rgba(199, 255, 46, 0.13);
  border-radius: 50%;
}

.signal-one {
  width: 640px;
  height: 640px;
  top: -56px;
  right: -118px;
}

.signal-two {
  width: 520px;
  height: 520px;
  top: 4px;
  right: -58px;
}

.app-window {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 690px;
  overflow: hidden;
  border: 1px solid rgba(229, 255, 211, 0.2);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(20, 24, 18, 0.98), rgba(10, 12, 9, 0.98));
  box-shadow: var(--shadow), 0 0 0 8px rgba(255, 255, 255, 0.018);
  transform: rotateY(-1.5deg) rotateX(0.5deg);
  transform-origin: center left;
}

.app-window::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 60% 0%, rgba(199, 255, 46, 0.06), transparent 30%);
}

.app-topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 98px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
}

.window-dots {
  display: flex;
  gap: 8px;
}

.window-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #52594e;
}

.agent-title {
  display: flex;
  align-items: center;
  gap: 13px;
}

.agent-avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(199, 255, 46, 0.32);
  border-radius: 14px;
  background: rgba(199, 255, 46, 0.09);
}

.agent-avatar .brand-mark {
  width: 28px;
}

.agent-title div {
  display: flex;
  flex-direction: column;
}

.agent-title strong {
  font-size: 16px;
  line-height: 1.35;
}

.agent-title small {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #969e91;
  font-size: 16px;
  line-height: 1.35;
}

.agent-title small i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #72df61;
}

.icon-button {
  justify-self: end;
  border: 0;
  color: #a2a99e;
  background: transparent;
  font-size: 18px;
  letter-spacing: 3px;
  cursor: pointer;
}

.conversation {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-height: 420px;
  padding: 34px 32px 24px;
}

.message {
  font-size: 16px;
  line-height: 1.6;
}

.message-user {
  align-self: flex-end;
  max-width: 82%;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px 18px 5px 18px;
  color: #d5dbd1;
  background: #1c211a;
}

.message-agent {
  width: 100%;
}

.agent-response-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: #e8ece5;
}

.agent-response-head strong {
  font-size: 16px;
}

.mini-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent);
}

.mini-mark .brand-mark {
  width: 21px;
  background: var(--black);
}

.midi-card {
  overflow: hidden;
  border: 1px solid rgba(199, 255, 46, 0.25);
  border-radius: 19px;
  background: linear-gradient(155deg, #12180d, #0c100a);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
  transition: border-color 0.25s, transform 0.25s;
}

.midi-main {
  display: flex;
  align-items: center;
  min-height: 78px;
  padding: 16px 18px;
}

.play-button {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-right: 14px;
  border: 0;
  border-radius: 50%;
  color: var(--black);
  background: var(--accent);
  cursor: pointer;
}

.play-button svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
  stroke: none;
}

.pause-icon,
.is-playing .play-icon {
  display: none;
}

.is-playing .pause-icon {
  display: block;
}

.midi-info {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
}

.midi-info strong {
  overflow: hidden;
  font-size: 16px;
  line-height: 1.35;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.midi-info span {
  color: #91998c;
  font-size: 16px;
  line-height: 1.4;
}

.ready-badge {
  flex: 0 0 auto;
  padding: 6px 10px;
  border: 1px solid rgba(199, 255, 46, 0.3);
  border-radius: 8px;
  color: var(--accent);
  background: rgba(199, 255, 46, 0.07);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
}

.piano-roll {
  position: relative;
  height: 84px;
  overflow: hidden;
  border-block: 1px solid rgba(255, 255, 255, 0.065);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 100% 20px, 32px 100%;
}

.piano-roll::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: 30%;
  width: 2px;
  opacity: 0;
  background: white;
}

.is-playing + .piano-roll::before {
  opacity: 0.65;
  animation: playhead 2.2s linear infinite;
}

.piano-roll i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: 7px;
  border-radius: 3px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(199, 255, 46, 0.3);
}

.piano-roll .note-1 { --x: 2%; --w: 14%; --y: 62%; }
.piano-roll .note-2 { --x: 18%; --w: 9%; --y: 39%; }
.piano-roll .note-3 { --x: 29%; --w: 18%; --y: 50%; }
.piano-roll .note-4 { --x: 49%; --w: 11%; --y: 27%; }
.piano-roll .note-5 { --x: 62%; --w: 15%; --y: 45%; }
.piano-roll .note-6 { --x: 79%; --w: 8%; --y: 64%; }
.piano-roll .note-7 { --x: 89%; --w: 9%; --y: 36%; }

.midi-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
}

.midi-tags span {
  padding: 5px 9px;
  border-radius: 7px;
  color: #a2aa9d;
  background: rgba(255, 255, 255, 0.045);
  font-size: 16px;
  line-height: 1.35;
}

.midi-tags button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 5px 0;
  border: 0;
  color: #cdd3c9;
  background: transparent;
  font-size: 16px;
  font-weight: 650;
  cursor: pointer;
}

.midi-tags button:hover {
  color: var(--accent);
}

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

.prompt-box {
  margin: 0 24px 24px;
  padding: 16px 17px;
  border: 1px solid var(--line-bright);
  border-radius: 19px;
  background: rgba(25, 29, 23, 0.92);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.prompt-box:focus-within {
  border-color: rgba(199, 255, 46, 0.55);
  box-shadow: 0 0 0 4px rgba(199, 255, 46, 0.06);
}

.prompt-box textarea {
  display: block;
  width: 100%;
  height: 58px;
  resize: none;
  border: 0;
  outline: 0;
  color: #e2e6de;
  background: transparent;
  font-size: 16px;
  line-height: 1.5;
}

.prompt-box textarea::placeholder {
  color: #8a9185;
}

.prompt-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.prompt-selects {
  display: flex;
  align-items: center;
  gap: 9px;
}

.prompt-selects select {
  height: 42px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  color: #bdc4b8;
  background: #20251e;
  font-size: 16px;
}

.attach-button,
.send-button {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  cursor: pointer;
}

.attach-button {
  width: 44px;
  height: 42px;
  color: #adb5a9;
  background: transparent;
}

.attach-button svg {
  width: 22px;
  height: 22px;
}

.send-button {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  color: var(--black);
  background: var(--accent);
}

.send-button svg {
  width: 22px;
  height: 22px;
}

.loader {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0, 0, 0, 0.3);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.is-loading .send-icon {
  display: none;
}

.is-loading .loader {
  display: block;
}

.is-loading {
  pointer-events: none;
}

.workflow {
  position: relative;
  padding: 150px 0 160px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, #0d100c 0%, #090b08 100%);
}

.workflow::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(920px, 80vw);
  height: 420px;
  background: radial-gradient(ellipse, rgba(199, 255, 46, 0.045), transparent 65%);
  transform: translateX(-50%);
  pointer-events: none;
}

.section-heading {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 80px;
  align-items: end;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -48px;
}

.section-heading h2,
.benefit-lead h2 {
  margin-bottom: 0;
  font-size: clamp(42px, 4.5vw, 64px);
  font-weight: 620;
  letter-spacing: -0.055em;
  line-height: 1.15;
}

.section-heading > p:last-child {
  max-width: 540px;
  margin: 0 0 8px;
  color: #a8b0a3;
  font-size: 18px;
  line-height: 1.75;
}

.flow {
  display: grid;
  grid-template-columns: 1fr 64px 1fr 64px 1fr;
  align-items: center;
  margin-top: 92px;
}

.flow-step {
  position: relative;
  min-height: 420px;
  padding: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(24, 29, 22, 0.88), rgba(13, 16, 12, 0.96));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04), 0 22px 60px rgba(0, 0, 0, 0.16);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.flow-step:hover {
  border-color: rgba(199, 255, 46, 0.28);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05), 0 30px 80px rgba(0, 0, 0, 0.24);
  transform: translateY(-8px);
}

.flow-step::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 52%;
  pointer-events: none;
  background: linear-gradient(transparent, rgba(199, 255, 46, 0.025));
}

.step-number {
  position: absolute;
  top: 26px;
  right: 26px;
  color: #767e72;
  font-family: var(--title);
  font-size: 16px;
  font-weight: 650;
}

.flow-step h3 {
  position: relative;
  z-index: 2;
  margin: 45px 0 10px;
  font-family: var(--title);
  font-size: 20px;
  font-weight: 570;
  letter-spacing: -0.035em;
  line-height: 1.35;
}

.flow-step p {
  position: relative;
  z-index: 2;
  max-width: 290px;
  margin-bottom: 0;
  color: #9fa79b;
  font-size: 16px;
  line-height: 1.65;
}

.source-stack {
  position: relative;
  width: 180px;
  height: 132px;
  margin: 22px auto 0;
}

.source-stack span {
  position: absolute;
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border: 1px solid var(--line-bright);
  border-radius: 21px;
  color: #e0e4dc;
  background: #1a1f18;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
  font-size: 16px;
  font-weight: 800;
}

.source-stack span:nth-child(1) {
  left: 0;
  top: 38px;
  transform: rotate(-10deg);
}

.source-stack span:nth-child(2) {
  right: 0;
  top: 36px;
  transform: rotate(10deg);
}

.source-stack span:nth-child(3) {
  z-index: 2;
  left: 49px;
  top: 0;
  color: var(--black);
  background: var(--accent);
  font-size: 28px;
  transform: rotate(1deg);
}

.agent-orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 145px;
  height: 145px;
  margin: 14px auto 0;
  border: 1px solid rgba(199, 255, 46, 0.3);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(199, 255, 46, 0.16), rgba(199, 255, 46, 0.03) 59%, transparent 60%);
  box-shadow: 0 0 62px rgba(199, 255, 46, 0.08);
}

.agent-orb .brand-mark {
  width: 70px;
}

.agent-orb i {
  position: absolute;
  inset: -14px;
  border: 1px solid rgba(199, 255, 46, 0.1);
  border-radius: 50%;
}

.agent-orb i:last-child {
  inset: -31px;
}

.result-roll {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  width: 210px;
  height: 132px;
  margin: 22px auto 0;
  padding: 22px 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 100% 21px, 30px 100%;
}

.result-roll i {
  display: block;
  flex: 1;
  height: 9px;
  margin-bottom: 15px;
  border-radius: 3px;
  background: var(--accent);
  box-shadow: 0 0 11px rgba(199, 255, 46, 0.2);
}

.result-roll i:nth-child(2) { margin-bottom: 51px; }
.result-roll i:nth-child(3) { margin-bottom: 30px; }
.result-roll i:nth-child(4) { margin-bottom: 62px; }
.result-roll i:nth-child(5) { margin-bottom: 24px; }

.flow-arrow {
  display: flex;
  align-items: center;
  padding: 0 8px;
}

.flow-arrow span {
  flex: 1;
  border-top: 1px dashed #50574d;
}

.flow-arrow svg {
  width: 22px;
  height: 22px;
  color: #7f877b;
}

.benefits {
  padding: 160px 0 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(199, 255, 46, 0.04), transparent 25%),
    var(--bg);
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 120px;
  align-items: center;
}

.benefit-lead > p:not(.eyebrow) {
  max-width: 620px;
  margin: 30px 0 38px;
  color: #a5ada0;
  font-size: 18px;
  line-height: 1.75;
}

.benefit-list {
  border-top: 1px solid var(--line);
}

.benefit-list article {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 20px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.benefit-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(199, 255, 46, 0.24);
  border-radius: 16px;
  color: var(--accent);
  background: rgba(199, 255, 46, 0.055);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
}

.benefit-icon svg {
  width: 28px;
  height: 28px;
}

.benefit-list h3 {
  margin-bottom: 7px;
  font-family: var(--title);
  font-size: 18px;
  font-weight: 580;
  letter-spacing: -0.03em;
  line-height: 1.4;
}

.benefit-list p {
  margin: 0;
  color: #9aa296;
  font-size: 16px;
  line-height: 1.65;
}

.final-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 390px;
  margin-top: 150px;
  padding: 64px 76px;
  overflow: hidden;
  border-radius: 40px 40px 0 0;
  color: var(--black);
  background:
    radial-gradient(circle at 88% 0%, rgba(255, 255, 255, 0.46), transparent 31%),
    var(--accent);
}

.final-cta::before {
  content: "";
  position: absolute;
  right: -100px;
  bottom: -240px;
  width: 520px;
  height: 520px;
  border: 2px solid rgba(8, 10, 5, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 54px rgba(8, 10, 5, 0.035), 0 0 0 110px rgba(8, 10, 5, 0.025);
}

.final-cta > * {
  position: relative;
  z-index: 1;
}

.cta-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 34px;
  border: 2px solid var(--black);
  border-radius: 16px;
}

.cta-mark .brand-mark {
  width: 35px;
  background: var(--black);
}

.final-cta h2 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(40px, 4.1vw, 60px);
  font-weight: 680;
  letter-spacing: -0.06em;
  line-height: 1.14;
}

.final-cta h2 em {
  color: rgba(8, 10, 5, 0.53);
}

.cta-action {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 13px;
  min-width: 285px;
}

.cta-action span {
  color: rgba(8, 10, 5, 0.68);
  font-size: 16px;
  font-weight: 620;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #070806;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 120px;
  color: #92998e;
  font-size: 16px;
}

.footer-inner .brand {
  color: #dfe3dc;
  font-size: 16px;
}

.footer-inner .brand-mark {
  width: 36px;
}

.footer-inner p {
  margin: 0;
}

.footer-inner > div {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
}

.toast {
  position: fixed;
  z-index: 40;
  right: 26px;
  bottom: 26px;
  max-width: 380px;
  padding: 16px 20px;
  border: 1px solid rgba(199, 255, 46, 0.35);
  border-radius: 14px;
  color: #d9ded5;
  background: #151a12;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.42);
  font-size: 16px;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes playhead {
  from { left: 0; }
  to { left: 100%; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1160px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 84px;
  }

  .hero-copy {
    max-width: 840px;
  }

  h1 {
    max-width: 780px;
  }

  .product-stage {
    width: min(820px, 100%);
    margin-inline: auto;
    padding-left: 0;
  }

  .hero {
    padding-top: 170px;
  }

  .flow {
    grid-template-columns: 1fr 44px 1fr 44px 1fr;
  }

  .flow-step {
    padding: 28px;
  }

  .benefits-grid {
    gap: 70px;
  }

  .final-cta {
    gap: 50px;
    padding-inline: 54px;
  }
}

@media (max-width: 820px) {
  .shell {
    width: min(100% - 36px, 680px);
  }

  .header-inner {
    grid-template-columns: 1fr auto;
    height: 78px;
  }

  .nav {
    display: none;
  }

  .brand {
    font-size: 16px;
  }

  .brand-mark {
    width: 38px;
  }

  .button-small {
    min-height: 46px;
    padding-inline: 18px;
  }

  .hero {
    min-height: auto;
    padding: 136px 0 92px;
  }

  .hero-glow {
    right: -580px;
  }

  .hero::after {
    display: none;
  }

  h1 {
    font-size: clamp(42px, 12vw, 62px);
    line-height: 1.08;
  }

  .hero-lead {
    font-size: 18px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
  }

  .tool-line {
    margin-top: 48px;
  }

  .product-stage {
    margin-top: 0;
  }

  .app-window {
    min-height: 720px;
    border-radius: 24px;
    transform: none;
  }

  .app-topbar {
    grid-template-columns: 24px 1fr 24px;
    min-height: 106px;
    padding-inline: 16px;
  }

  .window-dots i:not(:first-child) {
    display: none;
  }

  .agent-title {
    justify-self: center;
  }

  .conversation {
    min-height: 438px;
    padding: 26px 18px 20px;
  }

  .message-user {
    max-width: 96%;
  }

  .midi-main {
    align-items: flex-start;
  }

  .ready-badge {
    margin-left: 8px;
  }

  .midi-tags span:nth-child(2),
  .midi-tags span:nth-child(3) {
    display: none;
  }

  .prompt-box {
    margin-inline: 14px;
  }

  .prompt-selects {
    flex-wrap: wrap;
  }

  .prompt-selects select {
    max-width: 120px;
  }

  .workflow,
  .benefits {
    padding-top: 105px;
  }

  .workflow {
    padding-bottom: 110px;
  }

  .section-heading {
    display: block;
  }

  .section-heading .eyebrow {
    margin-bottom: 26px;
  }

  .section-heading h2,
  .benefit-lead h2 {
    font-size: clamp(34px, 8vw, 48px);
    line-height: 1.2;
  }

  .section-heading > p:last-child {
    margin-top: 30px;
  }

  .flow {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 58px;
  }

  .flow-step {
    min-height: 390px;
  }

  .flow-arrow {
    justify-content: center;
    height: 32px;
    transform: rotate(90deg);
  }

  .flow-arrow span {
    display: none;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 65px;
  }

  .final-cta {
    align-items: flex-start;
    flex-direction: column;
    gap: 50px;
    min-height: 500px;
    margin-top: 105px;
    padding: 48px 32px;
  }

  .final-cta h2 {
    font-size: clamp(34px, 8vw, 48px);
    line-height: 1.2;
  }

  .cta-action {
    align-items: flex-start;
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
    gap: 20px;
    padding: 34px 0;
  }

  .footer-inner p {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .footer-inner > div {
    gap: 16px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  .shell {
    width: min(100% - 28px, 440px);
  }

  .brand {
    gap: 9px;
  }

  .brand-mark {
    width: 32px;
  }

  .button-small {
    padding-inline: 14px;
  }

  .eyebrow {
    gap: 9px;
    font-size: 16px;
    letter-spacing: 0.08em;
  }

  h1 {
    font-size: clamp(38px, 11.2vw, 52px);
    letter-spacing: -0.06em;
  }

  .hero-lead {
    line-height: 1.65;
  }

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

  .tool-line {
    gap: 9px;
  }

  .app-window {
    min-height: 790px;
  }

  .agent-title small {
    display: none;
  }

  .conversation {
    min-height: 490px;
    padding-inline: 13px;
  }

  .message-user {
    max-width: 100%;
  }

  .agent-response-head {
    align-items: flex-start;
  }

  .midi-main {
    flex-wrap: wrap;
  }

  .midi-info {
    max-width: calc(100% - 66px);
  }

  .ready-badge {
    margin: 12px 0 0 60px;
  }

  .midi-tags {
    align-items: flex-start;
    flex-direction: column;
  }

  .midi-tags button {
    margin-left: 0;
  }

  .prompt-tools {
    align-items: flex-end;
  }

  .prompt-selects {
    gap: 7px;
  }

  .prompt-selects select {
    max-width: 116px;
  }

  .attach-button {
    display: none;
  }

  .section-heading h2,
  .benefit-lead h2,
  .final-cta h2 {
    font-size: clamp(30px, 8.6vw, 40px);
  }

  .flow-step {
    padding: 28px 24px;
  }

  .flow-step h3 {
    font-size: 18px;
  }

  .benefit-list article {
    grid-template-columns: 52px 1fr;
    gap: 16px;
  }

  .benefit-icon {
    width: 48px;
    height: 48px;
  }

  .final-cta {
    padding-inline: 24px;
    border-radius: 28px 28px 0 0;
  }

  .cta-action {
    width: 100%;
    min-width: 0;
  }

  .cta-action .button {
    width: 100%;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-inner > div {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .footer-inner p {
    grid-column: auto;
    grid-row: auto;
  }

  .toast {
    right: 14px;
    bottom: 14px;
    left: 14px;
    max-width: none;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
