:root {
  color-scheme: dark;
  --bg: #020612;
  --bg-2: #050b19;
  --panel: rgba(14, 24, 48, 0.72);
  --panel-strong: rgba(16, 28, 58, 0.92);
  --line: rgba(117, 151, 255, 0.18);
  --line-strong: rgba(128, 168, 255, 0.34);
  --text: #f8fbff;
  --muted: #a6b4cc;
  --muted-2: #6f7e98;
  --cyan: #18dfff;
  --blue: #238bff;
  --violet: #7b4cff;
  --purple: #a15cff;
  --green: #11f2c0;
  --shadow-blue: 0 0 34px rgba(24, 137, 255, 0.34);
  --shadow-violet: 0 0 38px rgba(123, 76, 255, 0.32);
  --radius: 12px;
  --max: 1160px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 24% 0%, rgba(16, 116, 255, 0.24), transparent 30%),
    radial-gradient(circle at 82% 11%, rgba(123, 76, 255, 0.18), transparent 32%),
    linear-gradient(180deg, #03050c 0%, var(--bg) 42%, #020814 100%);
  color: var(--text);
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background-image:
    radial-gradient(circle, rgba(75, 165, 255, 0.7) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(174, 81, 255, 0.45) 0 1px, transparent 1.4px);
  background-position:
    5% 8%,
    55% 18%;
  background-size:
    150px 180px,
    230px 210px;
  opacity: 0.38;
  pointer-events: none;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(rgba(24, 223, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 223, 255, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 74%);
  pointer-events: none;
}

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

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

button {
  cursor: pointer;
}

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

.site-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.particle-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0.72;
  pointer-events: none;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: 18px clamp(18px, 4vw, 52px);
  background: rgba(2, 6, 18, 0.78);
  backdrop-filter: blur(18px);
}

.header::after {
  position: absolute;
  right: 52px;
  bottom: 0;
  left: 52px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(35, 139, 255, 0.36), transparent);
  opacity: 0;
  transition: opacity 180ms ease;
}

.header.is-scrolled::after {
  opacity: 1;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 850;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(35, 139, 255, 0.55);
}

.brand span {
  font-size: 18px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.5vw, 22px);
  min-width: 0;
}

.nav a {
  position: relative;
  padding: 6px 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  white-space: nowrap;
  font-weight: 750;
  white-space: nowrap;
}

.nav a::after {
  position: absolute;
  right: 18%;
  bottom: -8px;
  left: 18%;
  height: 2px;
  content: "";
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  box-shadow: 0 0 14px rgba(24, 223, 255, 0.75);
  opacity: 0;
  transform: scaleX(0.4);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.nav a:hover,
.nav a.is-active {
  color: #fff;
}

.nav a:hover::after,
.nav a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: #fff;
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:focus-visible,
.menu-toggle:focus-visible,
.canvas-ui button:focus-visible {
  outline: 3px solid rgba(24, 223, 255, 0.32);
  outline-offset: 3px;
}

.btn-primary {
  background: linear-gradient(135deg, #22c7ff 0%, #315eff 48%, #8a44ff 100%);
  box-shadow:
    0 0 24px rgba(35, 139, 255, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.btn-primary:hover {
  box-shadow:
    0 0 34px rgba(35, 139, 255, 0.62),
    0 0 36px rgba(123, 76, 255, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.btn-login,
.btn-ghost {
  border-color: rgba(177, 198, 255, 0.22);
  background: rgba(5, 12, 28, 0.58);
}

.btn-ghost:hover,
.btn-login:hover {
  border-color: rgba(24, 223, 255, 0.52);
  box-shadow: 0 0 22px rgba(24, 223, 255, 0.14);
}

.btn-small {
  min-height: 40px;
  padding: 0 18px;
}

.btn-large {
  min-height: 56px;
  padding: 0 30px;
  font-size: 16px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px auto;
  border-radius: 999px;
  background: #fff;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
  align-items: center;
  width: min(var(--max), calc(100% - 40px));
  min-height: 575px;
  margin: 0 auto;
  padding: 34px 0 46px;
}

.hero::after {
  position: absolute;
  right: -8vw;
  bottom: 0;
  left: -8vw;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(35, 139, 255, 0.4), transparent);
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(36px);
  pointer-events: none;
}

.hero-glow-a {
  top: 120px;
  left: -70px;
  width: 280px;
  height: 160px;
  background: rgba(35, 139, 255, 0.22);
}

.hero-glow-b {
  right: 30px;
  bottom: 104px;
  width: 320px;
  height: 190px;
  background: rgba(123, 76, 255, 0.2);
}

.hero-copy {
  position: relative;
  z-index: 3;
  padding-top: 12px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin: 0 0 24px;
  padding: 0 13px;
  border: 1px solid rgba(35, 139, 255, 0.22);
  border-radius: 999px;
  background: rgba(35, 139, 255, 0.16);
  color: #4ccfff;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  box-shadow: 0 0 18px rgba(35, 139, 255, 0.16);
}

.hero h1 {
  max-width: 540px;
  margin: 0;
  color: #fff;
  font-size: clamp(44px, 5.7vw, 68px);
  line-height: 1.16;
  letter-spacing: 0;
}

.hero h1 span,
.hero h1 strong {
  display: block;
}

.hero h1 strong {
  background: linear-gradient(100deg, #b35cff 0%, #7d65ff 44%, #39c7ff 100%);
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 34px rgba(123, 76, 255, 0.2);
}

.hero-tags {
  display: grid;
  grid-template-columns: repeat(4, max-content);
  gap: 12px 28px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.hero-tags li {
  position: relative;
  padding-left: 22px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  white-space: nowrap;
}

.hero-tags li::before {
  position: absolute;
  top: 2px;
  left: 0;
  display: grid;
  width: 15px;
  height: 15px;
  place-items: center;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  color: #8dffcb;
  content: "✓";
  font-size: 10px;
  box-shadow: 0 0 10px rgba(24, 223, 255, 0.32);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}

.notice {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 26px 0 0;
  color: var(--muted-2);
  font-size: 13px;
}

.notice span {
  display: inline-grid;
  width: 14px;
  height: 14px;
  place-items: center;
  border: 1px solid var(--green);
  border-radius: 50%;
}

.notice span::before {
  content: "i";
  color: var(--green);
  font-size: 10px;
  font-weight: 850;
}

.hero-art {
  position: relative;
  z-index: 2;
  min-width: 0;
  transform: translateX(10px);
}

.hero-art::before {
  position: absolute;
  inset: 8% 8% 5% 4%;
  z-index: -1;
  content: "";
  border-radius: 50%;
  background: radial-gradient(circle, rgba(35, 139, 255, 0.32), transparent 62%);
  filter: blur(18px);
}

.hero-art img,
.hero-art video {
  display: block;
  width: min(100%, 640px);
  margin-left: auto;
  border-radius: 20px;
  mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 94%, transparent 100%);
}

.hero-art video {
  aspect-ratio: 16 / 9;
  background: #020612;
  object-fit: cover;
}

.steps-section,
.workspace-section,
.features-section,
.cases-section,
.cta-section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.steps-section {
  padding: 28px 0 34px;
}

.section-title {
  margin-bottom: 22px;
}

.section-title.center {
  text-align: center;
}

.section-title h2,
.workspace-copy h2,
.cta-section h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.22;
  letter-spacing: 0;
}

.section-title h2 span,
.workspace-copy h2 span {
  color: #8568ff;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 38px;
}

.step-card {
  position: relative;
  display: grid;
  grid-template-columns: 72px 44px 1fr;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 112px;
  padding: 18px 18px 18px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(38, 57, 115, 0.72), rgba(10, 18, 42, 0.62)),
    rgba(255, 255, 255, 0.03);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 40px rgba(0, 0, 0, 0.22);
}

.step-card:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -27px;
  width: 16px;
  height: 16px;
  content: "";
  border-top: 3px solid #6c74ff;
  border-right: 3px solid #6c74ff;
  filter: drop-shadow(0 0 9px rgba(108, 116, 255, 0.9));
  transform: translateY(-50%) rotate(45deg);
}

.step-num {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(126, 159, 255, 0.35);
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, rgba(122, 154, 255, 0.42), rgba(34, 47, 94, 0.8));
  color: #c9d6ff;
  font-size: 25px;
  font-weight: 900;
  box-shadow: inset 0 0 18px rgba(100, 130, 255, 0.22);
}

.step-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 35% 30%, rgba(0, 255, 220, 0.9), transparent 22%),
    linear-gradient(135deg, #08d2ff, #723aff);
  box-shadow: 0 0 18px rgba(35, 139, 255, 0.48);
}

.icon-generate {
  background:
    radial-gradient(circle at 68% 70%, rgba(0, 255, 220, 0.9), transparent 21%),
    linear-gradient(135deg, #09b7ff, #7444ff);
}

.icon-edit {
  background:
    linear-gradient(135deg, transparent 42%, rgba(0, 0, 0, 0.38) 43% 52%, transparent 53%),
    linear-gradient(135deg, #16ddff, #865cff);
}

.icon-export {
  background:
    radial-gradient(circle at 48% 48%, rgba(255, 255, 255, 0.58), transparent 24%),
    linear-gradient(135deg, #1ad0ff, #7043ff);
}

.step-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.step-card p {
  margin: 0;
  color: #b3c0d6;
  font-size: 12px;
  line-height: 1.7;
}

.workspace-section {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 36px;
  align-items: center;
  padding: 58px 0 36px;
  border-top: 1px solid rgba(35, 139, 255, 0.14);
}

.workspace-copy h2 {
  font-size: clamp(26px, 3.2vw, 36px);
}

.workspace-copy .section-kicker {
  margin-bottom: 18px;
}

.check-list {
  display: grid;
  gap: 18px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 26px;
  color: #b5c2d8;
  font-size: 15px;
}

.check-list li::before {
  position: absolute;
  top: 1px;
  left: 0;
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  color: var(--cyan);
  content: "✓";
  font-size: 10px;
}

.canvas-ui {
  display: grid;
  grid-template-columns: 158px 1fr;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(7, 13, 27, 0.88);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02),
    0 24px 70px rgba(0, 0, 0, 0.36),
    0 0 46px rgba(35, 139, 255, 0.1);
}

.canvas-sidebar {
  padding: 16px 12px;
  border-right: 1px solid rgba(117, 151, 255, 0.16);
  background: rgba(10, 17, 34, 0.78);
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.panel-title strong {
  font-size: 14px;
}

.canvas-ui button {
  border: 1px solid rgba(126, 159, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #dbe7ff;
}

.panel-title button {
  width: 26px;
  height: 26px;
}

.menu-group {
  display: grid;
  gap: 7px;
  margin-top: 14px;
}

.menu-group small {
  color: #667792;
  font-size: 11px;
  font-weight: 800;
}

.menu-group a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 30px;
  padding: 0 8px;
  border-radius: 8px;
  color: #acbad2;
  font-size: 12px;
}

.menu-group a.is-selected,
.menu-group a:hover {
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
}

.menu-group i {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 10px rgba(35, 139, 255, 0.78);
}

.menu-group:nth-of-type(3) i {
  background: #f044cc;
  box-shadow: 0 0 10px rgba(240, 68, 204, 0.72);
}

.menu-group:nth-of-type(4) i {
  background: #79ff38;
  box-shadow: 0 0 10px rgba(121, 255, 56, 0.72);
}

.canvas-board {
  position: relative;
  min-width: 0;
  background: #070c17;
}

.canvas-toolbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(117, 151, 255, 0.12);
}

.tool-left,
.tool-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.canvas-toolbar button {
  width: 28px;
  height: 28px;
  color: #7dcfff;
}

.round-add {
  color: var(--green) !important;
}

.pill-action {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  background: var(--green);
  color: #001814;
  font-size: 12px;
  font-weight: 900;
}

.board-grid {
  position: relative;
  min-height: 382px;
  background:
    radial-gradient(circle at 50% 50%, rgba(36, 105, 255, 0.08), transparent 42%),
    radial-gradient(circle, rgba(83, 104, 150, 0.5) 0 1px, transparent 1px);
  background-size:
    auto,
    20px 20px;
}

.floating-card {
  position: absolute;
  border: 1px solid rgba(126, 159, 255, 0.22);
  border-radius: 10px;
  background: rgba(5, 10, 22, 0.74);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.mini-map {
  right: 18px;
  bottom: 18px;
  width: 112px;
  height: 96px;
  padding: 15px 10px;
}

.mini-map::before {
  display: block;
  height: 44px;
  margin-bottom: 8px;
  content: "";
  border-radius: 3px;
  background: linear-gradient(180deg, #fff, #e9e9e9);
}

.mini-map span {
  color: #fff;
  font-size: 10px;
}

.prompt-bar {
  bottom: 18px;
  left: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(420px, calc(100% - 190px));
  min-height: 44px;
  padding: 0 12px;
}

.prompt-bar strong {
  font-size: 12px;
}

.prompt-bar span {
  color: #6e7d98;
  font-size: 11px;
}

.prompt-bar button {
  width: 30px;
  height: 24px;
  margin-left: auto;
  border: 0;
  border-radius: 999px;
  background: #1fdec6;
  color: #001814;
}

.zoom-controls {
  position: absolute;
  right: 144px;
  bottom: 21px;
  display: flex;
  gap: 6px;
}

.zoom-controls button {
  width: 28px;
  height: 28px;
}

.features-section {
  padding: 52px 0 18px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-grid-three {
  gap: 22px;
}

.feature-grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.feature-grid article,
.feature-grid .feature-video-card {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(117, 151, 255, 0.18);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(35, 139, 255, 0.12), transparent 48%),
    rgba(9, 18, 39, 0.72);
}

.feature-grid article::after,
.feature-grid .feature-video-card::after {
  position: absolute;
  right: -36px;
  bottom: -44px;
  width: 120px;
  height: 120px;
  content: "";
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123, 76, 255, 0.28), transparent 66%);
}

.feature-grid span {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
}

.feature-grid h3 {
  margin: 18px 0 10px;
  font-size: 20px;
}

.feature-grid p {
  margin: 0;
  color: #acbad1;
  font-size: 14px;
  line-height: 1.78;
}

.feature-grid-three article,
.feature-grid-four article,
.feature-grid-three .feature-video-card,
.feature-grid-four .feature-video-card {
  min-height: 190px;
}

.feature-grid-three h3,
.feature-grid-four h3 {
  font-size: 24px;
}

.feature-grid-three p,
.feature-grid-four p {
  color: #d4def2;
  font-size: 18px;
  font-weight: 800;
}

.feature-grid-four article,
.feature-grid-four .feature-video-card {
  padding: 20px;
}

.feature-grid-four h3 {
  margin-top: 16px;
  font-size: 21px;
  line-height: 1.28;
}

.feature-grid-four p {
  font-size: 16px;
  line-height: 1.5;
}

.feature-video-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  outline: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.engine-link-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  margin: 12px 0 14px;
  color: #8fe9ff;
  font-size: 12px;
  font-weight: 800;
  opacity: 0.72;
  transition:
    color 180ms ease,
    gap 180ms ease,
    opacity 180ms ease;
}

.feature-video-card:hover .engine-link-label,
.feature-video-card:focus-visible .engine-link-label {
  gap: 12px;
  color: #fff;
  opacity: 1;
}

.feature-video-card.is-disabled {
  cursor: default;
}

.feature-video-card.is-disabled .engine-link-label {
  color: #8c9ab2;
}

.feature-video-card:hover,
.feature-video-card.is-active {
  border-color: rgba(24, 223, 255, 0.58);
  background:
    linear-gradient(135deg, rgba(33, 129, 255, 0.18), rgba(101, 69, 255, 0.16)),
    rgba(9, 18, 39, 0.84);
  box-shadow:
    0 0 30px rgba(35, 139, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

.feature-video-card:focus-visible {
  outline: 3px solid rgba(24, 223, 255, 0.32);
  outline-offset: 3px;
}

.feature-video-card video {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  margin-top: auto;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(117, 151, 255, 0.18);
  border-radius: 10px;
  background: rgba(2, 8, 18, 0.72);
  object-fit: contain;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.cases-section {
  padding: 38px 0 26px;
}

.case-viewport {
  overflow: hidden;
  border: 1px solid rgba(117, 151, 255, 0.18);
  border-radius: 16px;
  background: rgba(4, 10, 22, 0.82);
  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.3),
    0 0 42px rgba(35, 139, 255, 0.1);
}

.case-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 18px;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.case-row::-webkit-scrollbar {
  display: none;
}

.case-card {
  display: grid;
  flex: 0 0 min(88%, 1080px);
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: min(88%, 1080px);
  overflow: hidden;
  border: 1px solid rgba(117, 151, 255, 0.16);
  border-radius: 14px;
  background: rgba(10, 19, 37, 0.86);
  scroll-snap-align: start;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.case-card:hover {
  box-shadow: 0 0 30px rgba(35, 139, 255, 0.18);
}

.case-card.is-active {
  transform: none;
}

.case-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: rgba(2, 8, 18, 0.92);
  object-fit: contain;
}

.case-card h3 {
  margin: 0;
  padding: 16px 18px;
  border-top: 1px solid rgba(117, 151, 255, 0.14);
  color: #fff;
  font-size: 18px;
  text-align: center;
}

.case-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 20px;
}

.case-dots span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(151, 168, 205, 0.45);
}

.case-dots .is-active {
  width: 20px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  box-shadow: 0 0 12px rgba(24, 223, 255, 0.58);
}

.cta-section {
  display: grid;
  grid-template-columns: 165px 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 96px;
  margin-top: 28px;
  overflow: hidden;
  padding: 0 92px 0 74px;
  border: 1px solid rgba(117, 151, 255, 0.2);
  border-radius: 14px;
  background:
    radial-gradient(circle at 52% 50%, rgba(123, 76, 255, 0.32), transparent 48%),
    linear-gradient(90deg, rgba(8, 18, 40, 0.98), rgba(13, 25, 60, 0.95));
  box-shadow: 0 0 42px rgba(35, 139, 255, 0.14);
}

.cta-section img {
  align-self: end;
  width: 108px;
  margin-bottom: -2px;
}

.cta-section h2 {
  font-size: 24px;
}

.cta-section p {
  margin: 10px 0 0;
  color: #c2cee2;
}

@media (max-width: 1080px) {
  .header {
    grid-template-columns: auto auto 1fr;
  }

  .menu-toggle {
    display: block;
    order: 3;
    justify-self: end;
  }

  .nav {
    position: absolute;
    top: 72px;
    right: 18px;
    left: 18px;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: start;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(4, 9, 23, 0.96);
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.42);
  }

  .nav.is-open {
    display: grid;
  }

  .nav a {
    padding: 13px 12px;
  }

  .nav a::after {
    display: none;
  }

  .header-actions {
    justify-self: end;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 28px;
  }

  .hero-art {
    margin-top: -20px;
    transform: none;
  }

  .hero-art img,
  .hero-art video {
    margin: 0 auto;
  }

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

  .step-card:nth-child(2)::after {
    display: none;
  }

  .workspace-section {
    grid-template-columns: 1fr;
  }

  .workspace-copy {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: 20px;
  }

  .check-list {
    margin-top: 0;
  }

  .case-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cta-section {
    grid-template-columns: 110px 1fr auto;
    padding: 0 28px;
  }

}

@media (max-width: 760px) {
  .header {
    gap: 12px;
    padding: 14px 16px;
  }

  .brand span {
    font-size: 16px;
  }

  .header-actions {
    display: none;
  }

  .menu-toggle {
    grid-column: 3;
  }

  .nav {
    top: 64px;
    grid-template-columns: 1fr;
  }

  .hero,
  .steps-section,
  .workspace-section,
  .features-section,
  .cases-section,
  .cta-section {
    width: min(100% - 28px, var(--max));
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-tags {
    grid-template-columns: repeat(2, minmax(0, max-content));
    gap: 12px 18px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn-large {
    width: 100%;
  }

  .hero-art {
    margin-top: 22px;
  }

  .hero-art img,
  .hero-art video {
    width: 112%;
    max-width: none;
    margin-left: -6%;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .step-card {
    grid-template-columns: 64px 42px 1fr;
  }

  .step-card::after {
    display: none;
  }

  .workspace-copy {
    grid-template-columns: 1fr;
  }

  .canvas-ui {
    grid-template-columns: 1fr;
  }

  .canvas-sidebar {
    display: none;
  }

  .canvas-toolbar {
    gap: 12px;
    overflow-x: auto;
  }

  .board-grid {
    min-height: 330px;
  }

  .prompt-bar {
    right: 14px;
    left: 14px;
    width: auto;
  }

  .mini-map,
  .zoom-controls {
    display: none;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .case-row {
    gap: 12px;
    padding: 12px;
  }

  .case-card {
    flex-basis: 100%;
    min-width: 100%;
  }

  .cta-section {
    grid-template-columns: 82px 1fr;
    gap: 14px;
    padding: 16px;
  }

  .cta-section .btn {
    grid-column: 1 / -1;
  }

  .cta-section img {
    width: 82px;
  }

}

@media (max-width: 430px) {
  .hero h1 {
    font-size: 36px;
  }

  .hero-tags {
    grid-template-columns: 1fr;
  }

  .step-card {
    grid-template-columns: 58px 38px 1fr;
    padding: 14px;
  }

  .step-num {
    width: 52px;
    height: 52px;
    font-size: 22px;
  }

  .section-title h2,
  .workspace-copy h2,
  .cta-section h2 {
    font-size: 25px;
  }
}

.hero-glow {
  display: none;
}

.brand img {
  object-fit: cover;
  background: #fff;
}

.hero {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  min-height: 610px;
  overflow: hidden;
  padding-top: 26px;
}

.hero-copy {
  padding-bottom: 34px;
}

.hero h1 {
  max-width: 620px;
  font-size: clamp(48px, 5.8vw, 74px);
  font-weight: 950;
}

.hero-tags {
  grid-template-columns: repeat(3, max-content);
}

.hero-art {
  overflow: hidden;
  border-radius: 18px;
  transform: translateX(18px);
}

.hero-art::before {
  inset: 15% 11% 7%;
  border-radius: 35%;
  background: radial-gradient(circle, rgba(38, 139, 255, 0.24), transparent 70%);
}

.hero-art img,
.hero-art video {
  width: min(100%, 720px);
  max-width: 100%;
  border-radius: 18px;
  object-fit: cover;
  transform: none;
}

.workflow-section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 62px 0 0;
}

.workflow-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  min-height: 150px;
  margin-bottom: -8px;
  overflow: hidden;
  padding: 24px clamp(22px, 3vw, 36px);
  border: 1px solid rgba(91, 124, 255, 0.34);
  border-radius: 24px;
  background:
    linear-gradient(90deg, rgba(11, 22, 56, 0.92), rgba(5, 12, 31, 0.94)),
    rgba(5, 13, 32, 0.96);
  box-shadow:
    inset 0 0 0 1px rgba(118, 156, 255, 0.1),
    0 22px 64px rgba(0, 0, 0, 0.32),
    0 0 44px rgba(34, 119, 255, 0.12);
}

.workflow-panel::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 28% 50%, rgba(88, 90, 255, 0.18), transparent 24%),
    linear-gradient(90deg, transparent, rgba(29, 222, 255, 0.08), transparent);
  opacity: 0.85;
  pointer-events: none;
}

.workflow-steps {
  position: relative;
  z-index: 1;
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px;
}

.workflow-card {
  position: relative;
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 14px;
  min-width: 0;
  min-height: 96px;
  padding: 14px 18px;
  border: 1px solid rgba(51, 141, 255, 0.42);
  border-radius: 18px;
  background: rgba(8, 18, 43, 0.72);
  color: #fff;
  text-align: left;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 24px rgba(27, 122, 255, 0.1);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease,
    background 180ms ease;
}

.workflow-card:nth-child(2) {
  border-color: rgba(165, 72, 255, 0.48);
}

.workflow-card:nth-child(3) {
  border-color: rgba(24, 207, 255, 0.45);
}

.workflow-card:nth-child(4) {
  border-color: rgba(32, 241, 176, 0.35);
}

.workflow-card:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -26px;
  width: 15px;
  height: 15px;
  content: "";
  border-top: 4px solid #7fc8ff;
  border-right: 4px solid #7fc8ff;
  filter: drop-shadow(0 0 10px rgba(96, 213, 255, 0.9));
  transform: translateY(-50%) rotate(45deg);
}

.workflow-card:nth-child(2)::after {
  display: none;
}

.workflow-card:hover,
.workflow-card.is-active {
  border-color: rgba(53, 216, 255, 0.8);
  background:
    linear-gradient(135deg, rgba(41, 84, 191, 0.34), rgba(10, 20, 46, 0.86)),
    rgba(8, 18, 43, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 32px rgba(24, 223, 255, 0.2),
    0 0 24px rgba(123, 76, 255, 0.16);
  transform: translateY(-2px);
}

.workflow-icon {
  position: relative;
  display: block;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, #31cfff, #3d61ff 52%, #8250ff);
  box-shadow: 0 0 22px rgba(34, 160, 255, 0.45);
}

.workflow-icon::before,
.workflow-icon::after {
  position: absolute;
  content: "";
}

.icon-chat::before {
  top: 18px;
  left: 12px;
  width: 30px;
  height: 17px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
}

.icon-chat::after {
  right: 10px;
  bottom: 13px;
  width: 12px;
  height: 12px;
  border-radius: 0 0 12px;
  background: rgba(255, 255, 255, 0.9);
  transform: rotate(35deg);
}

.icon-image {
  background: linear-gradient(135deg, #9556ff, #3d5eff);
}

.icon-image::before {
  right: 10px;
  bottom: 12px;
  left: 10px;
  height: 22px;
  clip-path: polygon(0 100%, 32% 35%, 48% 70%, 68% 28%, 100% 100%);
  background: rgba(255, 255, 255, 0.86);
}

.icon-image::after {
  top: 10px;
  right: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
}

.icon-pen::before {
  top: 12px;
  left: 25px;
  width: 9px;
  height: 34px;
  border-radius: 8px 8px 3px 3px;
  background: rgba(255, 255, 255, 0.9);
  transform: rotate(42deg);
}

.icon-pen::after {
  top: 31px;
  left: 15px;
  width: 22px;
  height: 3px;
  border-radius: 999px;
  background: rgba(0, 18, 35, 0.5);
  transform: rotate(42deg);
}

.icon-file {
  background: linear-gradient(135deg, #1ad9bf, #34adff);
}

.icon-file::before {
  top: 10px;
  right: 13px;
  bottom: 10px;
  left: 14px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.92);
  clip-path: polygon(0 0, 72% 0, 100% 28%, 100% 100%, 0 100%);
}

.icon-file::after {
  top: 24px;
  left: 20px;
  width: 16px;
  height: 12px;
  border-top: 3px solid #23bda9;
  border-bottom: 3px solid #23bda9;
}

.workflow-text {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.workflow-text strong {
  font-size: 17px;
  line-height: 1.2;
}

.workflow-text em {
  margin-right: 6px;
  color: #8bdcff;
  font-style: normal;
}

.workflow-text small {
  color: #c2cee3;
  font-size: 12px;
  line-height: 1.45;
}

.workspace-section {
  grid-template-columns: 250px minmax(0, 1fr);
  padding-top: 24px;
  border-top: 0;
}

.workspace-showcase {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(120, 152, 255, 0.36);
  border-radius: 18px;
  background: rgba(4, 9, 19, 0.86);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 28px 80px rgba(0, 0, 0, 0.38),
    0 0 44px rgba(26, 130, 255, 0.14);
}

.workspace-showcase img,
.workspace-showcase video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

.workspace-showcase video {
  background: rgba(2, 8, 18, 0.86);
}

.workspace-hotspot {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(27, 238, 212, 0.95);
  border-radius: 50%;
  background: rgba(17, 242, 192, 0.28);
  box-shadow:
    0 0 0 8px rgba(17, 242, 192, 0.08),
    0 0 22px rgba(17, 242, 192, 0.68);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.workspace-hotspot:hover,
.workspace-hotspot.is-active {
  background: rgba(24, 223, 255, 0.64);
  box-shadow:
    0 0 0 10px rgba(24, 223, 255, 0.12),
    0 0 26px rgba(24, 223, 255, 0.82);
  transform: scale(1.12);
}

.hotspot-left {
  top: 18%;
  left: 8%;
}

.hotspot-top {
  top: 6.5%;
  right: 18%;
}

.hotspot-bottom {
  right: 36%;
  bottom: 7%;
}

.workspace-status {
  position: absolute;
  right: 18px;
  bottom: 18px;
  min-height: 34px;
  padding: 8px 13px;
  border: 1px solid rgba(24, 223, 255, 0.26);
  border-radius: 999px;
  background: rgba(2, 8, 18, 0.72);
  color: #d8faff;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 0 18px rgba(24, 223, 255, 0.12);
  backdrop-filter: blur(12px);
}

.case-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.case-heading-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.case-all-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 8px 0;
  color: #a9b5c9;
  font-size: 15px;
  font-weight: 700;
  transition:
    color 180ms ease,
    gap 180ms ease,
    text-shadow 180ms ease;
  white-space: nowrap;
}

.case-all-link span {
  color: #b9c8dc;
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
}

.case-all-link:hover,
.case-all-link:focus-visible {
  gap: 19px;
  color: #f4fbff;
  outline: none;
  text-shadow: 0 0 18px rgba(24, 223, 255, 0.34);
}

.case-all-link:focus-visible {
  border-radius: 4px;
  box-shadow: 0 0 0 3px rgba(24, 223, 255, 0.22);
}

.case-controls {
  display: flex;
  gap: 8px;
}

.case-controls button,
.case-dots button {
  border: 1px solid rgba(126, 159, 255, 0.22);
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
}

.case-controls button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  font-size: 22px;
  line-height: 1;
}

.case-controls button:hover {
  border-color: rgba(24, 223, 255, 0.52);
  box-shadow: 0 0 18px rgba(24, 223, 255, 0.14);
}

.case-row {
  scroll-behavior: auto;
}

.case-card:focus-visible,
.workflow-card:focus-visible,
.workspace-hotspot:focus-visible,
.case-controls button:focus-visible,
.case-dots button:focus-visible {
  outline: 3px solid rgba(24, 223, 255, 0.32);
  outline-offset: 3px;
}

.case-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(151, 168, 205, 0.45);
}

.case-dots button.is-active {
  width: 22px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  box-shadow: 0 0 12px rgba(24, 223, 255, 0.58);
}

@media (max-width: 1180px) {
  .workflow-panel {
    grid-template-columns: 1fr;
  }

  .workflow-title h2 {
    text-align: left;
  }

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

  .workflow-card:nth-child(2)::after {
    display: none;
  }
}

@media (max-width: 1080px) {
  .workflow-section {
    width: min(var(--max), calc(100% - 40px));
  }

  .workspace-section {
    grid-template-columns: 1fr;
  }

  .hero-art {
    transform: none;
  }

  .hero-art img,
  .hero-art video {
    width: min(100%, 760px);
    margin-inline: auto;
    transform: none;
  }
}

@media (max-width: 760px) {
  .workflow-section {
    width: min(100% - 28px, var(--max));
    padding-block: 22px 28px;
  }

  .workflow-panel {
    gap: 20px;
    padding: 20px 16px;
    border-radius: 18px;
  }

  .workflow-steps {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .workflow-card {
    min-height: 86px;
  }

  .workflow-card::after {
    display: none;
  }

  .hero {
    padding-bottom: 30px;
  }

  .hero-tags {
    grid-template-columns: repeat(2, minmax(0, max-content));
  }

  .workspace-showcase {
    overflow-x: auto;
  }

  .workspace-showcase img,
  .workspace-showcase video {
    width: 820px;
    max-width: none;
  }

  .workspace-hotspot,
  .workspace-status {
    display: none;
  }

  .case-heading {
    align-items: flex-end;
  }

  .case-heading-actions {
    align-items: flex-end;
    gap: 12px;
  }

  .case-all-link {
    gap: 8px;
    font-size: 13px;
  }
}

@media (max-width: 430px) {
  .hero h1 {
    font-size: 35px;
  }

  .workflow-title h2 {
    font-size: 27px;
  }

  .workflow-card {
    grid-template-columns: 50px 1fr;
    padding: 13px;
  }

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