:root {
  color-scheme: light;
  --mx: 50%;
  --my: 36%;
  --paper: #fff8ea;
  --paper-2: #f7ecd8;
  --ink: #071c55;
  --ink-soft: #243568;
  --logo-blue: #5f88ff;
  --logo-indigo: #7b7fff;
  --logo-purple: #9b73f3;
  --logo-soft: rgba(111, 130, 255, 0.14);
  --teal: var(--logo-blue);
  --teal-dark: var(--logo-purple);
  --amber: #ffc342;
  --amber-soft: #fff1ce;
  --line: rgba(7, 28, 85, 0.12);
  --border: #071c55;
  --shadow: 5px 5px 0 rgba(7, 28, 85, 0.16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  overflow-x: hidden;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(112, 132, 255, 0.18), transparent 0 76px, transparent 142px),
    linear-gradient(90deg, rgba(7, 28, 85, 0.075) 1px, transparent 1px),
    linear-gradient(180deg, rgba(7, 28, 85, 0.055) 1px, transparent 1px),
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.82), transparent 32%),
    radial-gradient(circle at 22% 76%, rgba(155, 115, 243, 0.08), transparent 28%),
    linear-gradient(180deg, #fffefa 0%, #fbf3e3 46%, #efd8b6 100%);
  background-size: auto, 56px 56px, 56px 56px, auto, auto, auto;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

body.is-bouncing {
  cursor: none;
}

body.is-bouncing *,
body.is-bouncing *::before,
body.is-bouncing *::after {
  cursor: none !important;
}

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

.site-header,
.landing {
  width: calc(100% - 70px);
  margin: 0 auto;
}

.landing {
  padding-top: 24px;
}

.site-header {
  display: grid;
  grid-template-columns: minmax(300px, 0.7fr) minmax(480px, 1fr) minmax(280px, 0.58fr);
  gap: 24px;
  align-items: center;
  min-height: 118px;
}

.brand {
  display: inline-flex;
  gap: 18px;
  align-items: center;
  min-width: 0;
}

.brand-icon {
  position: relative;
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.48);
  box-shadow: 3px 3px 0 rgba(7, 28, 85, 0.18);
}

.brand-icon span,
.brand-icon::before {
  display: block;
  content: "";
  background: linear-gradient(135deg, var(--logo-blue), var(--logo-purple));
}

.brand-icon span {
  width: 34px;
  height: 15px;
  border-radius: 2px;
}

.brand-icon::before {
  position: absolute;
  width: 15px;
  height: 34px;
  border-radius: 2px;
}

.brand-text strong,
.brand-text small {
  display: block;
}

.brand-text strong {
  color: var(--ink);
  font-size: 29px;
  font-weight: 900;
  line-height: 1;
}

.brand-text strong span {
  color: var(--teal);
}

.brand-text small {
  margin-top: 9px;
  font-size: 16px;
  font-weight: 750;
  letter-spacing: 0.22em;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 50px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 850;
  white-space: nowrap;
}

.main-nav a {
  transition: color 0.16s ease, transform 0.16s ease;
}

.main-nav a:hover {
  color: var(--teal-dark);
  transform: translateY(-1px);
}

.auth-actions {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 0 31px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  box-shadow: var(--shadow);
  transition: transform 0.18s cubic-bezier(0.2, 1.7, 0.36, 1), box-shadow 0.16s ease;
}

.button:hover {
  transform: translate(2px, 2px) scale(1.035);
  box-shadow: 2px 2px 0 rgba(7, 28, 85, 0.18);
}

.button:active {
  transform: translate(3px, 3px) scale(0.96);
}

.button.primary {
  background: linear-gradient(180deg, #ffd96a, var(--amber));
}

.button.ghost {
  background: rgba(255, 255, 255, 0.44);
}

.button.small {
  min-width: 136px;
  min-height: 50px;
  font-size: 18px;
}

.button.large {
  min-width: 254px;
  min-height: 68px;
}

.button.large span {
  margin-left: 20px;
  font-size: 34px;
  font-weight: 650;
  line-height: 0;
}

.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 505px;
  padding: 92px 0 50px;
  text-align: center;
}

.hero-copy {
  width: min(100%, 1040px);
  max-width: 1040px;
  margin: 0 auto;
}

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

.hero h1 {
  margin: 0 0 23px;
  color: var(--ink);
  font-size: clamp(68px, 6.8vw, 104px);
  font-weight: 950;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero h1 span {
  display: inline-block;
  margin-left: 18px;
  background: linear-gradient(135deg, var(--logo-blue) 0%, var(--logo-indigo) 52%, var(--logo-purple) 100%);
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-logo-title {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
}

.hero-logo-title img {
  display: block;
  width: min(720px, 100%);
  max-height: 138px;
  object-fit: contain;
}

.hero-subtitle {
  margin-bottom: 42px;
  color: var(--ink);
  font-size: clamp(24px, 2vw, 30px);
  font-weight: 950;
  line-height: 1.25;
}

.hero-subtitle span {
  display: inline;
}

.hero-subtitle .subtitle-accent {
  color: var(--teal);
  white-space: nowrap;
}

.hero-text {
  max-width: 710px;
  margin-bottom: 36px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 650;
  line-height: 1.85;
}

.nowrap {
  white-space: nowrap;
}

.text-break {
  display: inline;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 26px;
}

.landing.project-mode .workflow-strip,
.landing.project-mode .value-cards {
  display: none;
}

.landing.is-marketing-leaving .workflow-strip {
  animation: workflow-strip-out 300ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.landing.is-marketing-leaving .value-cards {
  animation: value-cards-out 320ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.landing.is-flow-leaving .hero-copy {
  animation: flow-hero-out 260ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.landing.is-flow-leaving .workflow-strip {
  animation: flow-strip-out 240ms cubic-bezier(0.16, 1, 0.3, 1) 20ms both;
}

.landing.is-flow-leaving .value-cards {
  animation: flow-cards-out 260ms cubic-bezier(0.16, 1, 0.3, 1) 36ms both;
}

.project-launcher {
  padding: 0 0 96px;
  margin-top: -24px;
  animation: project-rise 560ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.project-launcher-head {
  display: block;
  width: min(1320px, 100%);
  margin: 0 auto 34px;
  text-align: center;
}

.project-launcher-head .eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-launcher-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(42px, 4vw, 64px);
  font-weight: 950;
  line-height: 1.05;
}

.project-launcher-head h2.is-typing::after {
  display: inline-block;
  width: 0.08em;
  height: 0.78em;
  margin-left: 0.08em;
  border-radius: 999px;
  background: var(--teal);
  content: "";
  transform: translateY(0.08em);
  animation: typing-caret 0.72s steps(2, jump-none) infinite;
}

.project-grid {
  --visible-project-cards: 2;
  --project-gap: 28px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--project-card-width, calc((100% - var(--project-gap)) / 2));
  gap: var(--project-gap);
  align-items: stretch;
  justify-content: center;
  width: min(1320px, 100%);
  margin: 0 auto;
  overflow-x: auto;
  overflow-y: visible;
  padding: 14px 14px 30px;
  scroll-padding-inline: 14px;
  scroll-behavior: auto;
  scroll-snap-type: none;
  overscroll-behavior: contain;
  touch-action: pan-x;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  will-change: scroll-position;
}

.project-grid::-webkit-scrollbar {
  display: none;
}

.project-grid.is-dragging {
  scroll-snap-type: none;
  user-select: none;
}

.project-grid.is-scrollable {
  cursor: ew-resize;
  justify-content: start;
}

.project-grid.is-scrollable .project-card {
  cursor: inherit;
}

.project-grid.is-wheel-scrolling,
.project-grid.is-wheel-scrolling .project-card {
  scroll-snap-type: none;
}

.project-grid.is-preparing-reveal .project-card {
  opacity: 0;
  transform: translateY(18px) scale(0.992);
}

.project-grid.is-revealing .project-card {
  opacity: 0;
  animation: project-card-enter 640ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--card-index, 0) * 86ms);
  backface-visibility: hidden;
  will-change: transform, opacity;
}

.project-card {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 260px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.64), rgba(255, 248, 234, 0.42)),
    rgba(255, 255, 255, 0.34);
  color: var(--ink);
  padding: 28px;
  overflow: hidden;
  text-align: left;
  box-shadow: 7px 7px 0 rgba(7, 28, 85, 0.12);
  scroll-snap-align: start;
  transition: transform 0.24s cubic-bezier(0.2, 1.8, 0.34, 1), box-shadow 0.18s ease, background 0.18s ease;
}

.project-card::after {
  position: absolute;
  right: -48px;
  bottom: -62px;
  width: 210px;
  height: 210px;
  border: 2px dashed rgba(112, 132, 255, 0.34);
  border-radius: 999px;
  content: "";
}

.project-card:hover {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(255, 244, 218, 0.58)),
    rgba(255, 255, 255, 0.44);
  box-shadow: 8px 10px 0 rgba(7, 28, 85, 0.13);
  transform: translateY(-5px) scale(1.012);
}

.project-card-existing.is-menu-open,
.project-card-existing.is-menu-open:hover {
  background:
    linear-gradient(120deg, rgba(96, 136, 255, 0.15), transparent 44%, rgba(155, 115, 243, 0.18)),
    rgba(255, 255, 255, 0.48);
  box-shadow: 7px 8px 0 rgba(7, 28, 85, 0.12);
  transform: translateY(0) scale(1);
}

.project-card > button[data-create-project],
.project-card > button[data-open-project] {
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 0;
  background: transparent;
  color: transparent;
  pointer-events: none;
}

.project-retry {
  position: relative;
  z-index: 4;
  justify-self: start;
  align-self: end;
  min-height: 42px;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffd96a, var(--amber));
  color: var(--ink);
  padding: 0 18px;
  font: inherit;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 3px 3px 0 rgba(7, 28, 85, 0.14);
  transition: transform 0.2s cubic-bezier(0.2, 1.7, 0.36, 1), box-shadow 0.18s ease;
}

.project-retry:hover {
  box-shadow: 2px 2px 0 rgba(7, 28, 85, 0.16);
  transform: translate(2px, 2px) scale(1.03);
}

.project-card-create {
  grid-template-rows: auto 1fr auto;
}

.project-icon {
  position: absolute;
  top: 30px;
  right: 30px;
  z-index: 1;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 2px solid var(--border);
  border-radius: 9px;
  background: linear-gradient(180deg, #ffd96a, var(--amber));
  color: var(--ink);
  font-size: 28px;
  font-weight: 850;
  line-height: 1;
  box-shadow: 3px 3px 0 rgba(7, 28, 85, 0.13);
}

.project-card strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 24px;
  color: var(--ink);
  font-size: 30px;
  font-weight: 950;
  line-height: 1.12;
}

.project-card-create strong {
  margin-top: 4px;
  padding-right: 82px;
}

.project-card p {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
  font-weight: 720;
  line-height: 1.72;
}

.project-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-self: end;
  margin-top: 22px;
}

.project-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1.5px solid rgba(7, 28, 85, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  padding: 0 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.project-card-existing {
  grid-template-rows: auto 1fr auto;
  background:
    linear-gradient(120deg, rgba(96, 136, 255, 0.13), transparent 44%, rgba(155, 115, 243, 0.16)),
    rgba(255, 255, 255, 0.42);
}

.project-card-existing .project-title,
.project-card-existing .project-brief,
.project-card-existing .project-meta {
  max-width: none;
}

.project-card-existing .project-title {
  margin-top: 4px;
}

.project-card-existing .project-brief {
  display: -webkit-box;
  min-height: 56px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.project-card-existing .project-meta {
  padding-right: 54px;
}

.project-menu {
  position: absolute;
  right: 22px;
  bottom: 20px;
  z-index: 12;
}

.project-menu::before {
  position: absolute;
  right: -10px;
  bottom: 28px;
  width: 164px;
  height: 28px;
  content: "";
}

.project-menu-trigger {
  display: grid;
  width: 42px;
  height: 34px;
  place-items: center;
  border: 2px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 20px;
  font-weight: 950;
  line-height: 1;
  box-shadow: 3px 3px 0 rgba(7, 28, 85, 0.12);
  transition: transform 0.22s cubic-bezier(0.2, 1.7, 0.36, 1), background 0.18s ease, box-shadow 0.18s ease;
}

.project-menu:hover .project-menu-trigger,
.project-menu:focus-within .project-menu-trigger,
.project-menu.is-open .project-menu-trigger {
  background: linear-gradient(180deg, #fff3cb, var(--amber));
  box-shadow: 2px 2px 0 rgba(7, 28, 85, 0.14);
  transform: translateY(-2px) scale(1.06);
}

.project-menu-panel {
  position: absolute;
  right: -6px;
  bottom: 38px;
  z-index: 13;
  display: grid;
  min-width: 144px;
  gap: 6px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 252, 244, 0.96);
  padding: 8px;
  box-shadow: 5px 5px 0 rgba(7, 28, 85, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px) scale(0.985);
  transform-origin: right bottom;
  transition: opacity 0.12s ease, transform 0.16s cubic-bezier(0.2, 0.9, 0.22, 1);
  will-change: opacity, transform;
}

.project-menu:hover .project-menu-panel,
.project-menu:focus-within .project-menu-panel,
.project-menu.is-open .project-menu-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.project-menu-panel button {
  min-height: 34px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  text-align: left;
  padding: 0 10px;
  transition: background 0.16s ease, transform 0.18s cubic-bezier(0.2, 1.7, 0.36, 1);
}

.project-menu-panel button:hover,
.project-menu-panel button:focus-visible {
  background: rgba(112, 132, 255, 0.13);
  outline: 0;
  transform: translateX(2px);
}

.project-card-existing.is-editing .project-menu,
.project-card-existing.is-deleting .project-menu {
  opacity: 0;
  pointer-events: none;
}

.project-inline-panel {
  position: absolute;
  inset: 20px;
  z-index: 20;
  display: grid;
  align-content: center;
  gap: 12px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 232, 0.94)),
    #fffdf7;
  padding: 18px;
  box-shadow: 5px 5px 0 rgba(7, 28, 85, 0.14);
  animation: project-panel-in 0.22s cubic-bezier(0.2, 1.35, 0.34, 1) both;
}

.project-create-panel {
  inset: 16px;
  align-content: start;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 9px;
  padding: 16px;
}

.project-inline-panel[hidden] {
  display: none;
}

.project-inline-panel strong {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 950;
  line-height: 1.18;
}

.project-create-panel strong {
  overflow: hidden;
  font-size: 18px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-inline-panel p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 760;
  line-height: 1.55;
}

.project-create-panel p {
  font-size: 13px;
  line-height: 1.35;
}

.project-inline-panel input {
  width: 100%;
  min-height: 44px;
  border: 2px solid rgba(7, 28, 85, 0.75);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  padding: 0 12px;
  font: inherit;
  font-size: 16px;
  font-weight: 820;
  outline: 0;
  box-shadow: inset 2px 2px 0 rgba(7, 28, 85, 0.08);
}

.project-create-panel input {
  min-height: 40px;
  font-size: 15px;
}

.project-inline-panel input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(112, 132, 255, 0.15), inset 2px 2px 0 rgba(7, 28, 85, 0.08);
}

.project-inline-panel small {
  min-height: 18px;
  color: #b64235;
  font-size: 12px;
  font-weight: 850;
}

.project-create-panel small {
  min-height: 12px;
}

.project-panel-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.project-create-panel .project-panel-actions {
  align-self: end;
}

.panel-button {
  min-height: 38px;
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 3px 3px 0 rgba(7, 28, 85, 0.12);
  transition: transform 0.2s cubic-bezier(0.2, 1.7, 0.36, 1), box-shadow 0.18s ease, background 0.18s ease;
}

.project-create-panel .panel-button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

.panel-button.primary {
  background: linear-gradient(180deg, #ffd96a, var(--amber));
}

.panel-button.ghost {
  background: rgba(255, 255, 255, 0.74);
}

.panel-button.danger {
  background: linear-gradient(180deg, #fff0d0, #ffd0bd);
}

.panel-button:hover,
.panel-button:focus-visible {
  outline: 0;
  box-shadow: 2px 2px 0 rgba(7, 28, 85, 0.14);
  transform: translate(2px, 2px) scale(1.02);
}

.project-inline-panel.is-busy {
  opacity: 0.76;
  pointer-events: none;
}

.project-card-loading {
  scroll-snap-align: start;
}

@keyframes project-rise {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.992);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes workflow-strip-out {
  0% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(-8px) scale(1);
  }
  100% {
    opacity: 0;
    filter: blur(2px);
    transform: translateY(-30px) scale(0.985);
  }
}

@keyframes value-cards-out {
  0% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(-12px) scale(1);
  }
  100% {
    opacity: 0;
    filter: blur(2px);
    transform: translateY(-36px) scale(0.982);
  }
}

@keyframes flow-hero-out {
  0% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    filter: blur(2px);
    transform: translateY(-28px) scale(0.986);
  }
}

@keyframes flow-strip-out {
  0% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(-8px) scale(1);
  }
  100% {
    opacity: 0;
    filter: blur(2px);
    transform: translateY(-24px) scale(0.988);
  }
}

@keyframes flow-cards-out {
  0% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(-12px) scale(1);
  }
  100% {
    opacity: 0;
    filter: blur(2px);
    transform: translateY(-26px) scale(0.986);
  }
}

@keyframes project-card-enter {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.992);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes typing-caret {
  0%,
  48% {
    opacity: 1;
  }
  49%,
  100% {
    opacity: 0;
  }
}

@keyframes project-panel-in {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.workflow-strip {
  padding: 36px 0 66px;
}

.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;
}

.workflow-strip ol {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow-strip li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 18px;
  min-width: 0;
}

.workflow-strip li:not(:last-child)::after {
  position: absolute;
  top: 28px;
  left: calc(50% + 32px);
  width: calc(100% - 38px);
  border-top: 2px dashed var(--teal);
  content: "";
}

.workflow-strip li:not(:last-child)::before {
  position: absolute;
  top: 22px;
  right: -17px;
  width: 13px;
  height: 13px;
  border-top: 3px solid var(--teal);
  border-right: 3px solid var(--teal);
  content: "";
  transform: rotate(45deg);
}

.workflow-strip span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(135deg, var(--logo-blue) 0%, var(--logo-indigo) 48%, var(--logo-purple) 100%);
  color: #ffffff;
  font-size: 30px;
  font-weight: 950;
  box-shadow: 0 9px 20px rgba(96, 136, 255, 0.24);
  transition: transform 0.22s cubic-bezier(0.2, 1.8, 0.34, 1), box-shadow 0.18s ease;
}

.workflow-strip strong {
  display: grid;
  min-width: 162px;
  min-height: 58px;
  place-items: center;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.42);
  color: var(--ink);
  font-size: 25px;
  font-weight: 950;
  line-height: 1;
  transition: transform 0.2s cubic-bezier(0.2, 1.8, 0.34, 1), background 0.18s ease, box-shadow 0.18s ease;
}

.workflow-strip li:hover span {
  transform: translateY(-7px) scale(1.16);
  box-shadow: 0 14px 28px rgba(122, 127, 255, 0.34);
  animation: jelly-pop 0.48s ease both;
}

.workflow-strip li:hover strong {
  background: rgba(255, 255, 255, 0.66);
  transform: translateY(5px) scale(1.035);
  box-shadow: 4px 4px 0 rgba(7, 28, 85, 0.12);
}

.value-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  padding: 22px 0 92px;
}

.value-cards article {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  min-height: 194px;
  border: 2px solid rgba(7, 28, 85, 0.68);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.64) 0%, rgba(96, 136, 255, 0.11) 52%, rgba(155, 115, 243, 0.13) 100%);
  padding: 32px 28px;
  transition: transform 0.22s cubic-bezier(0.2, 1.8, 0.34, 1), background 0.18s ease, box-shadow 0.18s ease;
}

.value-cards article:hover {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.74) 0%, rgba(96, 136, 255, 0.16) 50%, rgba(155, 115, 243, 0.18) 100%);
  box-shadow: 6px 6px 0 rgba(96, 136, 255, 0.17);
  transform: translateY(-8px) scale(1.018);
}

.value-cards article:hover .value-icon {
  animation: jelly-pop 0.52s ease both;
}

.value-icon {
  position: relative;
  display: grid;
  width: 104px;
  height: 104px;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.52), transparent 30%),
    linear-gradient(135deg, rgba(96, 136, 255, 0.18), rgba(155, 115, 243, 0.18));
  transition: transform 0.18s cubic-bezier(0.2, 1.8, 0.34, 1);
}

.value-icon::before,
.value-icon::after {
  display: block;
  content: "";
}

.value-icon.lightning::before {
  width: 50px;
  height: 72px;
  background: linear-gradient(135deg, var(--logo-blue), var(--logo-purple));
  clip-path: polygon(54% 0, 18% 48%, 47% 48%, 32% 100%, 84% 38%, 55% 38%);
}

.value-icon.structure::before {
  position: absolute;
  top: 26px;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: var(--logo-purple);
}

.value-icon.structure::after {
  width: 72px;
  height: 50px;
  border: 6px solid var(--logo-blue);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  clip-path: polygon(0 28%, 44% 28%, 44% 0, 56% 0, 56% 28%, 100% 28%, 100% 100%, 0 100%);
}

.value-icon.shield::before {
  width: 68px;
  height: 78px;
  background: linear-gradient(135deg, var(--logo-blue), var(--logo-indigo) 48%, var(--logo-purple));
  clip-path: polygon(50% 0, 88% 16%, 82% 70%, 50% 100%, 18% 70%, 12% 16%);
}

.value-icon.shield::after {
  position: absolute;
  width: 34px;
  height: 20px;
  border-bottom: 7px solid #ffffff;
  border-left: 7px solid #ffffff;
  transform: rotate(-45deg) translate(3px, -2px);
}

.value-cards h3 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 31px;
  font-weight: 950;
  line-height: 1.1;
}

.value-cards h3::after {
  display: block;
  width: min(260px, 100%);
  margin-top: 18px;
  border-top: 2px dashed var(--teal);
  content: "";
}

.value-cards p {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.85;
}

.cursor-squish {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 50;
  width: 26px;
  height: 26px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(circle at 35% 30%, #ffffff 0 18%, transparent 19%),
    linear-gradient(135deg, rgba(96, 136, 255, 0.96), rgba(155, 115, 243, 0.9));
  box-shadow: 3px 3px 0 rgba(7, 28, 85, 0.14), 0 12px 26px rgba(112, 132, 255, 0.22);
  transform: translate3d(-100px, -100px, 0);
  transition: width 0.18s cubic-bezier(0.2, 1.7, 0.36, 1), height 0.18s cubic-bezier(0.2, 1.7, 0.36, 1);
}

.cursor-squish::before,
.cursor-squish::after {
  position: absolute;
  top: 4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink);
  content: "";
  opacity: 0;
  transition: opacity 0.12s ease, transform 0.18s cubic-bezier(0.2, 1.7, 0.36, 1);
}

.cursor-squish::before {
  left: 7px;
}

.cursor-squish::after {
  right: 7px;
}

.cursor-squish.is-hovering {
  width: 36px;
  height: 36px;
  animation: cursor-wiggle 0.58s ease infinite;
}

.cursor-squish.is-hovering::before,
.cursor-squish.is-hovering::after {
  opacity: 0.92;
  transform: translateY(4px);
}

.cursor-squish.is-pressing {
  width: 34px;
  height: 19px;
}

.cursor-pop {
  position: fixed;
  z-index: 49;
  width: var(--s, 10px);
  height: var(--s, 10px);
  border: 2px solid rgba(7, 28, 85, 0.86);
  border-radius: 999px;
  pointer-events: none;
  background: var(--c, var(--teal));
  box-shadow: 2px 2px 0 rgba(7, 28, 85, 0.1);
  animation: bubble-pop 0.72s ease-out forwards;
}

.boop {
  animation: boop 0.38s ease both;
}

@keyframes jelly-pop {
  0% {
    transform: translateY(-7px) scale(1);
  }
  38% {
    transform: translateY(-9px) scale(1.2, 0.86);
  }
  66% {
    transform: translateY(-5px) scale(0.94, 1.12);
  }
  100% {
    transform: translateY(-7px) scale(1.16);
  }
}

@keyframes boop {
  0% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.045, 0.955);
  }
  72% {
    transform: scale(0.985, 1.025);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes bubble-pop {
  0% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(0.25);
  }
  54% {
    opacity: 0.72;
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.05);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx) * 1.45), calc(-50% + var(--dy) * 1.45)) scale(0.25);
  }
}

@keyframes cursor-wiggle {
  0%,
  100% {
    transform: translate3d(var(--cx, -100px), var(--cy, -100px), 0) scale(1);
  }
  45% {
    transform: translate3d(var(--cx, -100px), var(--cy, -100px), 0) scale(1.08, 0.92) rotate(-4deg);
  }
  72% {
    transform: translate3d(var(--cx, -100px), var(--cy, -100px), 0) scale(0.96, 1.06) rotate(3deg);
  }
}

@keyframes hero-layout-move {
  0% {
    transform: translate(var(--hero-motion-x, 0px), var(--hero-motion-y, 26px));
  }
  100% {
    transform: translate(0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.is-bouncing {
    cursor: auto;
  }

  .cursor-squish,
  .cursor-pop {
    display: none;
  }

  .button,
  .workflow-strip span,
  .workflow-strip strong,
  .value-cards article,
  .value-icon {
    transition: none;
    animation: none;
  }
}

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

  .main-nav {
    gap: 24px;
    font-size: 15px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 22px;
  }

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

  .hero-illustration svg {
    max-width: 760px;
    margin: 0 auto;
  }

  .workflow-strip ol {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 34px;
  }

  .workflow-strip li:nth-child(3)::after,
  .workflow-strip li:nth-child(3)::before {
    display: none;
  }

  .value-cards {
    grid-template-columns: 1fr;
  }
}

body.landing-page {
  height: 100svh;
  min-height: 100svh;
  overflow: hidden;
}

body.landing-page .landing {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  gap: clamp(8px, 1.35vh, 18px);
  width: min(1680px, calc(100% - clamp(34px, 4vw, 70px)));
  height: 100svh;
  padding: clamp(10px, 1.6vh, 18px) 0 clamp(34px, 5vh, 58px);
}

body.landing-page .hero {
  min-height: 0;
  padding: clamp(42px, 6.4vh, 76px) 0 clamp(14px, 2.4vh, 36px);
  transition: padding 620ms cubic-bezier(0.16, 1, 0.3, 1);
}

body.landing-page .hero-copy {
  transition: transform 620ms cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: top center;
}

body.landing-page .hero-copy.is-layout-moving {
  animation: hero-layout-move 680ms cubic-bezier(0.16, 1, 0.3, 1) both;
  will-change: transform;
}

body.landing-page .hero h1 {
  margin-bottom: clamp(12px, 2.2vh, 23px);
  font-size: clamp(60px, 6.4vw, 104px);
  transition: font-size 620ms cubic-bezier(0.16, 1, 0.3, 1), margin 620ms cubic-bezier(0.16, 1, 0.3, 1);
}

body.landing-page .hero-subtitle {
  margin-bottom: clamp(22px, 3.8vh, 42px);
  font-size: clamp(22px, 1.85vw, 30px);
  transition: font-size 620ms cubic-bezier(0.16, 1, 0.3, 1), margin 620ms cubic-bezier(0.16, 1, 0.3, 1);
}

body.landing-page .hero-actions {
  gap: clamp(16px, 2vw, 26px);
  transition: gap 620ms cubic-bezier(0.16, 1, 0.3, 1);
}

body.landing-page .button.large {
  min-width: clamp(210px, 17vw, 254px);
  min-height: clamp(54px, 7.2vh, 68px);
  font-size: clamp(17px, 1.45vw, 20px);
  transition:
    min-width 620ms cubic-bezier(0.16, 1, 0.3, 1),
    min-height 620ms cubic-bezier(0.16, 1, 0.3, 1),
    font-size 620ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.18s cubic-bezier(0.2, 1.7, 0.36, 1),
    box-shadow 0.16s ease;
}

body.landing-page .workflow-strip {
  min-height: 0;
  padding: clamp(8px, 1.4vh, 20px) 0 clamp(8px, 1.7vh, 26px);
  transform: translateY(-8px);
}

body.landing-page .workflow-strip ol {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(10px, 1.5vw, 26px);
}

body.landing-page .workflow-strip span {
  width: clamp(40px, 5.6vh, 56px);
  height: clamp(40px, 5.6vh, 56px);
  font-size: clamp(21px, 3.2vh, 30px);
}

body.landing-page .workflow-strip strong {
  min-width: clamp(112px, 10.5vw, 162px);
  min-height: clamp(38px, 5.2vh, 58px);
  font-size: clamp(16px, 1.55vw, 25px);
}

body.landing-page .value-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 26px);
  padding: clamp(8px, 1.4vh, 22px) 0 clamp(12px, 2vh, 34px);
  transform: translateY(-12px);
}

body.landing-page .value-cards article {
  grid-template-columns: clamp(56px, 7vw, 120px) minmax(0, 1fr);
  gap: clamp(12px, 1.7vw, 24px);
  min-height: clamp(118px, 17vh, 194px);
  padding: clamp(14px, 2vh, 32px) clamp(16px, 2vw, 28px);
}

body.landing-page .value-icon {
  width: clamp(54px, 8.5vh, 104px);
  height: clamp(54px, 8.5vh, 104px);
}

body.landing-page .value-cards h3 {
  margin-bottom: clamp(6px, 1.3vh, 14px);
  font-size: clamp(20px, 2vw, 31px);
}

body.landing-page .value-cards h3::after {
  margin-top: clamp(8px, 1.4vh, 18px);
}

body.landing-page .value-cards p {
  font-size: clamp(12px, 1vw, 16px);
  line-height: 1.55;
}

body.landing-page .landing.project-mode {
  grid-template-rows: auto minmax(0, 1fr);
}

body.landing-page .landing.project-mode .hero {
  min-height: auto;
  padding: clamp(46px, 6.5vh, 82px) 0 clamp(10px, 2vh, 22px);
}

body.landing-page .landing.project-mode .hero h1 {
  font-size: clamp(54px, 6vw, 96px);
}

body.landing-page .landing.project-mode .project-launcher {
  min-height: 0;
  margin-top: 0;
  padding: 0 0 clamp(10px, 1.8vh, 26px);
}

body.landing-page .landing.project-mode .project-launcher-head {
  margin-bottom: clamp(14px, 2.4vh, 34px);
}

body.landing-page .landing.project-mode .project-launcher-head h2 {
  font-size: clamp(34px, 3.5vw, 58px);
}

body.landing-page .landing.project-mode .project-grid {
  max-height: 100%;
  padding-top: 8px;
  padding-bottom: 16px;
}

body.landing-page .landing.project-mode .project-card {
  min-height: clamp(190px, 28vh, 260px);
  padding: clamp(18px, 2.6vh, 28px);
}

@media (max-height: 760px) {
  body.landing-page .hero {
    padding-top: 36px;
    padding-bottom: 10px;
  }

  body.landing-page .hero h1 {
    font-size: clamp(54px, 6vw, 88px);
  }

  body.landing-page .hero-subtitle {
    margin-bottom: 18px;
    font-size: clamp(20px, 1.7vw, 26px);
  }

  body.landing-page .value-cards p {
    display: none;
  }

  body.landing-page .value-cards article {
    min-height: 108px;
  }
}

@media (max-width: 1200px) {
  body.landing-page .workflow-strip ol {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    row-gap: 0;
  }

  body.landing-page .workflow-strip li:nth-child(3)::after,
  body.landing-page .workflow-strip li:nth-child(3)::before {
    display: block;
  }

  body.landing-page .value-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
