:root {
  --font-sans: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --page: #050505;
  --surface: #0d0d0e;
  --surface-2: #141416;
  --surface-3: #1c1c1f;
  --surface-soft: #242429;
  --text: #f6f6f4;
  --text-muted: #aaaab2;
  --text-dim: #73737c;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --accent: #0b8cff;
  --accent-2: #42d7ff;
  --green: #53e6a8;
  --pink: #ff6fad;
  --warm: #f2aa65;
  --content: 1200px;
  --wide: 1360px;
  --gutter: clamp(18px, 4vw, 56px);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-theater: 0 40px 120px rgba(0, 0, 0, 0.65);
  --shadow-blue: 0 20px 70px rgba(11, 140, 255, 0.32);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fast: 180ms ease;
  --slow: 760ms var(--ease);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--page);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

body.modal-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% -12%, rgba(255, 255, 255, 0.08), transparent 34rem),
    radial-gradient(circle at 78% 16%, rgba(11, 140, 255, 0.12), transparent 32rem),
    #050505;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.22;
  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: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 54rem);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
}

:focus-visible {
  outline: 3px solid rgba(11, 140, 255, 0.45);
  outline-offset: 4px;
}

.section-shell {
  width: min(var(--content), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  width: min(var(--wide), calc(100% - var(--gutter) * 2));
  min-height: 64px;
  margin-inline: auto;
  padding: 10px 0;
  background: rgba(5, 5, 5, 0.84);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 0.96rem;
  font-weight: 800;
}

.brand-mark {
  position: relative;
  width: 28px;
  height: 28px;
  transform: rotate(45deg);
  background: #fff;
  clip-path: polygon(18% 0, 100% 0, 100% 82%, 82% 100%, 82% 18%, 0 18%);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 8px;
  background: #050505;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a {
  transition: color var(--fast);
}

.site-nav a:hover {
  color: #fff;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 12px;
  background: #fff;
  color: #080809;
  box-shadow: 0 12px 32px rgba(255, 255, 255, 0.1);
  transition: transform var(--fast), background var(--fast), box-shadow var(--fast);
}

.header-cta:hover {
  background: #e9f4ff;
  box-shadow: 0 14px 40px rgba(11, 140, 255, 0.22);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--surface-2);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: #fff;
  transition: transform var(--fast);
}

.menu-toggle.is-open span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.menu-toggle.is-open span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.hero-shell {
  position: relative;
  width: min(var(--wide), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  padding: 78px 0 0;
}

.hero-copy {
  max-width: 780px;
}

.hero-copy h1 {
  margin: 0;
  color: #fff;
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.055em;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 26px;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--fast), background var(--fast), border-color var(--fast), color var(--fast), box-shadow var(--fast);
}

.btn:active,
.header-cta:active {
  transform: translateY(1px) scale(0.99);
}

.btn-primary {
  background: #fff;
  color: #080809;
  box-shadow: 0 16px 44px rgba(255, 255, 255, 0.12);
}

.btn-primary:hover {
  background: #e9f4ff;
  box-shadow: var(--shadow-blue);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid var(--line);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: var(--line-strong);
}

.release-link {
  position: absolute;
  top: 276px;
  right: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.release-link::after {
  content: " ->";
  color: #fff;
}

.app-theater {
  position: relative;
  margin-top: 44px;
  padding-bottom: 70px;
}

.app-theater::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -90px;
  width: 78%;
  height: 180px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(11, 140, 255, 0.16);
  filter: blur(70px);
  pointer-events: none;
}

.app-window {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: #101011;
  box-shadow: var(--shadow-theater);
  min-height: 630px;
  transition: border-color var(--fast), box-shadow var(--fast), transform var(--fast);
}

.app-window.is-previewing,
.app-window.is-publishing {
  border-color: rgba(66, 215, 255, 0.48);
  box-shadow: var(--shadow-theater), 0 0 0 1px rgba(66, 215, 255, 0.18), 0 0 54px rgba(11, 140, 255, 0.18);
}

.editor-topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 58px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: #121214;
}

.topbar-left,
.topbar-right,
.topbar-center,
.avatar-stack {
  display: flex;
  align-items: center;
}

.topbar-left,
.topbar-right {
  gap: 8px;
}

.topbar-right {
  justify-content: flex-end;
}

.topbar-center {
  gap: 8px;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 800;
}

.topbar-pill,
.branch-pill,
.icon-button,
.invite-button,
.publish-button,
.floating-tool,
.canvas-toolbar,
.agent-input,
.agent-prompt,
.search-field,
.page-row {
  border: 1px solid var(--line);
  background: var(--surface-3);
  color: var(--text);
}

.topbar-pill,
.branch-pill {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 800;
}

.icon-button {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: var(--text-muted);
  cursor: pointer;
}

.invite-button,
.publish-button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.publish-button {
  background: var(--accent);
  border-color: rgba(11, 140, 255, 0.75);
  color: #fff;
}

.avatar-stack i {
  width: 26px;
  height: 26px;
  margin-left: -7px;
  border: 2px solid #121214;
  border-radius: 999px;
  background:
    radial-gradient(circle at 42% 32%, #fff 0 9%, transparent 10%),
    linear-gradient(135deg, #f2aa65, #ff6fad);
}

.avatar-stack i:first-child {
  margin-left: 0;
}

.avatar-stack i:nth-child(2) {
  background: linear-gradient(135deg, #42d7ff, #0b8cff);
}

.avatar-stack i:nth-child(3) {
  background: linear-gradient(135deg, #53e6a8, #d7ff63);
}

.editor-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 280px;
  min-height: 572px;
}

.left-panel,
.agent-panel {
  padding: 18px;
  background: #151516;
}

.left-panel {
  border-right: 1px solid var(--line);
}

.agent-panel {
  border-left: 1px solid var(--line);
}

.panel-tabs,
.agent-tabs {
  display: flex;
  gap: 16px;
  color: var(--text-dim);
  font-size: 0.86rem;
  font-weight: 800;
}

.panel-tabs .is-active,
.agent-tabs .is-active {
  color: #fff;
}

.search-field {
  display: flex;
  align-items: center;
  min-height: 40px;
  margin: 22px 0 22px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--text-dim);
  font-size: 0.86rem;
}

.page-list {
  display: grid;
  gap: 8px;
}

.page-row {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.page-row.is-active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.canvas-stage {
  position: relative;
  overflow: hidden;
  padding: 58px 58px 42px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    #080809;
  background-size: 52px 52px;
}

.canvas-toolbar {
  position: absolute;
  top: 58px;
  left: 58px;
  right: 58px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 38px;
  padding: 0 10px 0 14px;
  border-radius: 10px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.canvas-toolbar button {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--surface-soft);
  color: #fff;
}

.site-preview {
  position: relative;
  z-index: 2;
  overflow: hidden;
  min-height: 420px;
  margin-top: 58px;
  border: 1px solid rgba(16, 179, 255, 0.5);
  background: #03335c;
  box-shadow: 0 0 0 1px rgba(11, 140, 255, 0.16), 0 26px 70px rgba(0, 0, 0, 0.44);
  transition: border-color var(--fast), box-shadow var(--fast), transform var(--fast);
}

.site-preview.is-framed {
  border-color: rgba(83, 230, 168, 0.7);
  box-shadow: inset 0 0 0 2px rgba(83, 230, 168, 0.14), 0 18px 60px rgba(83, 230, 168, 0.1);
}

.preview-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 54px;
  padding: 0 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
}

.preview-nav nav {
  display: flex;
  gap: 22px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.74rem;
}

.preview-hero {
  display: grid;
  grid-template-columns: 1fr 180px;
  align-items: center;
  gap: 26px;
  padding: 66px 32px 54px;
  transition: transform var(--fast), filter var(--fast);
}

.preview-hero.is-editing {
  transform: translateY(-4px);
  filter: brightness(1.12);
}

.preview-hero p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.66);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.preview-hero h2 {
  max-width: 520px;
  margin: 0;
  color: #dceeff;
  font-size: 2.25rem;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.preview-card {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.preview-card span,
.preview-card small {
  display: block;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.78rem;
}

.preview-card strong {
  display: block;
  margin: 8px 0;
  color: #fff;
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.preview-circles {
  position: absolute;
  left: 30px;
  right: -100px;
  bottom: -92px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.preview-circles span {
  aspect-ratio: 1;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.72), transparent 18%),
    linear-gradient(135deg, #53e6a8, #0b8cff 55%, #031d38);
}

.preview-circles span:nth-child(2) {
  background: linear-gradient(135deg, #ff6fad, #42d7ff);
}

.preview-circles span:nth-child(3) {
  background: linear-gradient(135deg, #f2aa65, #53e6a8, #0b8cff);
}

.floating-tool {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 4;
  display: grid;
  place-items: center;
  min-width: 90px;
  min-height: 48px;
  transform: translateX(-50%);
  border-radius: 16px;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.preview-added-block {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 28px;
  z-index: 3;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(83, 230, 168, 0.8), rgba(66, 215, 255, 0.54), transparent);
  opacity: 0;
  transform: translateY(10px);
  animation: addedBlock 1600ms var(--ease) forwards;
}

.agent-panel {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 16px;
}

.agent-prompt {
  padding: 16px;
  border-radius: 16px;
}

.agent-prompt strong {
  display: block;
  margin-bottom: 10px;
  color: #fff;
}

.agent-prompt p,
.agent-log p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.agent-media {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.agent-media span {
  aspect-ratio: 1;
  border-radius: 10px;
  background: linear-gradient(135deg, #0b8cff, #42d7ff);
}

.agent-media span:nth-child(2) {
  background: linear-gradient(135deg, #ff6fad, #f2aa65);
}

.agent-media span:nth-child(3) {
  background: linear-gradient(135deg, #53e6a8, #d7ff63);
}

.agent-log {
  display: grid;
  align-content: start;
  gap: 10px;
  color: var(--text-dim);
}

.agent-input {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 42px;
  padding: 0 8px 0 12px;
  border-radius: 12px;
  color: var(--text-dim);
  font-size: 0.82rem;
}

.agent-input button {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
}

.section-line {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 30px;
}

.section-line h2,
.section-heading h2,
.platform-header h2,
.publish-panel h2 {
  margin: 0;
  color: #fff;
  font-size: 2.6rem;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.section-line a {
  flex: 0 0 auto;
  color: var(--text-muted);
  font-weight: 800;
}

.section-line a:hover {
  color: #fff;
}

.shipped {
  padding-top: 88px;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.72fr 0.82fr;
  grid-auto-rows: 250px;
  gap: 16px;
}

.showcase-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  box-shadow: var(--shadow-theater);
}

.showcase-card-wide {
  grid-row: span 2;
}

.showcase-card.tall {
  grid-column: span 2;
}

.site-shot {
  position: relative;
  height: 100%;
  overflow: hidden;
  padding: 26px;
}

.shot-image {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.76;
  mix-blend-mode: screen;
  filter: saturate(1.08) contrast(1.08);
  mask-image: radial-gradient(circle at 50% 48%, #000 0 52%, rgba(0, 0, 0, 0.75) 68%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle at 50% 48%, #000 0 52%, rgba(0, 0, 0, 0.75) 68%, transparent 100%);
  transform: scale(1.02);
}

.site-shot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.18;
}

.site-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.24), rgba(5, 5, 5, 0.72)),
    radial-gradient(circle at 50% 18%, transparent 0 34%, rgba(0, 0, 0, 0.44) 80%);
}

.shot-nav {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.78rem;
  font-weight: 800;
}

.shot-body {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 30px;
  z-index: 4;
  display: grid;
  gap: 14px;
}

.shot-body span,
.shot-badge,
.dark-shot span {
  position: relative;
  z-index: 4;
  color: rgba(255, 255, 255, 0.68);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.shot-body strong,
.site-shot strong {
  position: relative;
  z-index: 4;
  display: block;
  color: #fff;
  font-size: 2.25rem;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.shot-widget {
  position: absolute;
  top: 48%;
  right: 34px;
  z-index: 5;
  padding: 14px 18px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  color: #101011;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.26);
  transition: transform var(--fast), background var(--fast), box-shadow var(--fast);
}

.shot-widget:hover {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.36);
}

.warm-shot {
  background:
    radial-gradient(circle at 72% 18%, rgba(255, 255, 255, 0.35), transparent 20%),
    linear-gradient(135deg, #6e421f, #0f0d0b 62%);
}

.portrait-shot {
  display: grid;
  align-content: end;
  background:
    radial-gradient(circle at 50% 20%, #fff 0 8%, transparent 9%),
    linear-gradient(135deg, #ebe8df, #ff6fad 55%, #0f0d18);
}

.mint-shot {
  display: grid;
  align-content: end;
  background:
    radial-gradient(circle at 65% 30%, rgba(255, 255, 255, 0.68), transparent 16%),
    linear-gradient(135deg, #5dd8bd, #0c4a5f);
}

.dark-shot {
  background:
    radial-gradient(circle at 85% 12%, rgba(66, 215, 255, 0.28), transparent 20%),
    #111114;
}

.terminal-lines {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 26px;
  z-index: 4;
  display: grid;
  gap: 10px;
}

.terminal-lines i {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.terminal-lines i:nth-child(2) {
  width: 82%;
}

.terminal-lines i:nth-child(3) {
  width: 64%;
}

.terminal-lines i:nth-child(4) {
  width: 74%;
}

.agents,
.platform,
.publish {
  padding-top: 112px;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-heading p {
  max-width: 630px;
  margin: 16px 0 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.agent-story {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.agent-step {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  cursor: pointer;
  transition: transform var(--fast), border-color var(--fast), background var(--fast);
}

.agent-step:hover,
.agent-step.is-active {
  transform: translateY(-4px);
  border-color: rgba(11, 140, 255, 0.5);
  background: #111827;
}

.agent-step span {
  display: block;
  margin-bottom: 36px;
  color: var(--accent-2);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.agent-step h3 {
  margin: 0;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.agent-step p {
  margin: 12px 0 0;
  color: var(--text-muted);
}

.agent-canvas {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #101011;
  box-shadow: var(--shadow-theater);
}

.mini-editor {
  display: grid;
  grid-template-columns: 180px 1fr 280px;
  min-height: 360px;
}

.mini-sidebar,
.mini-agent {
  padding: 20px;
  background: #151516;
}

.mini-sidebar {
  display: grid;
  align-content: start;
  gap: 10px;
  border-right: 1px solid var(--line);
}

.mini-sidebar span {
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text-muted);
}

.mini-sidebar .is-active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.mini-stage {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    #080809;
  background-size: 48px 48px;
}

.build-layer {
  position: absolute;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid var(--line);
  transition: transform var(--slow), opacity var(--slow), background var(--slow);
}

.layer-a {
  left: 9%;
  top: 18%;
  width: 54%;
  height: 28%;
  background: #043f70;
}

.layer-b {
  left: 18%;
  top: 54%;
  width: 34%;
  height: 22%;
}

.layer-c {
  right: 10%;
  top: 25%;
  width: 24%;
  height: 46%;
  background: rgba(11, 140, 255, 0.16);
}

.layer-d {
  left: 42%;
  bottom: 14%;
  width: 36%;
  height: 13%;
  background: rgba(83, 230, 168, 0.2);
}

.mini-agent {
  display: grid;
  align-content: center;
  gap: 14px;
  border-left: 1px solid var(--line);
}

.mini-agent strong {
  color: #fff;
  font-size: 1.25rem;
}

.mini-agent p {
  margin: 0;
  color: var(--text-muted);
}

.mini-agent button {
  width: fit-content;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.platform-header {
  max-width: 780px;
  margin-bottom: 28px;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--surface);
}

.platform-grid article {
  min-height: 260px;
  padding: 26px;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(circle at 70% 18%, rgba(11, 140, 255, 0.18), transparent 30%),
    var(--surface);
}

.platform-grid article:last-child {
  border-right: 0;
}

.platform-grid span {
  display: block;
  margin-bottom: 80px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.platform-grid strong {
  display: block;
  color: #fff;
  font-size: 1.28rem;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.publish {
  padding-bottom: 84px;
}

.publish-panel {
  display: grid;
  grid-template-columns: 1fr 430px;
  gap: 48px;
  align-items: end;
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 82% 18%, rgba(11, 140, 255, 0.26), transparent 28rem),
    linear-gradient(135deg, #121214, #070707);
  box-shadow: var(--shadow-theater);
}

.publish-panel p {
  max-width: 560px;
  margin: 18px 0 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.publish-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.signup-form {
  display: grid;
  gap: 12px;
  align-self: stretch;
  align-content: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.signup-form label {
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.form-row input {
  min-width: 0;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  outline: none;
}

.form-row input::placeholder {
  color: var(--text-dim);
}

.form-row button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: background var(--fast), transform var(--fast), border-color var(--fast);
}

.form-row button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.16);
}

.form-row button:disabled {
  cursor: default;
  opacity: 0.72;
  transform: none;
}

.form-message {
  min-height: 1.25em;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.action-modal[hidden] {
  display: none;
}

.action-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(18px);
  cursor: pointer;
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 28px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 82% 0%, rgba(11, 140, 255, 0.26), transparent 18rem),
    linear-gradient(145deg, rgba(22, 22, 24, 0.98), rgba(6, 6, 7, 0.98));
  box-shadow: var(--shadow-theater);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}

.modal-kicker {
  display: block;
  margin-bottom: 16px;
  color: var(--accent-2);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.modal-panel h2 {
  max-width: 520px;
  margin: 0;
  color: #fff;
  font-size: 2.15rem;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.modal-panel p {
  max-width: 540px;
  margin: 14px 0 0;
  color: var(--text-muted);
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.template-option {
  display: grid;
  gap: 8px;
  min-height: 96px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color var(--fast), background var(--fast), transform var(--fast);
}

.template-option:hover,
.template-option.is-active {
  transform: translateY(-1px);
  border-color: rgba(66, 215, 255, 0.46);
  background: rgba(11, 140, 255, 0.14);
}

.template-option span {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.template-option strong {
  font-size: 1.02rem;
}

.launch-progress {
  height: 8px;
  margin-top: 24px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}

.launch-progress span {
  display: block;
  width: 18%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--green));
  transition: width 420ms var(--ease);
}

.modal-steps {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.modal-steps li {
  position: relative;
  padding: 12px 14px 12px 38px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.045);
}

.modal-steps li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 10px;
  height: 10px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: var(--text-dim);
}

.modal-steps li.is-active,
.modal-steps li.is-done {
  color: #fff;
  border-color: rgba(66, 215, 255, 0.34);
}

.modal-steps li.is-done::before {
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(83, 230, 168, 0.12);
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.toast-stack {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 40px));
  pointer-events: none;
}

.toast {
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(18, 18, 20, 0.94);
  color: #fff;
  box-shadow: var(--shadow-theater);
  transform: translateY(10px);
  opacity: 0;
  animation: toastIn 260ms var(--ease) forwards;
}

.toast.is-leaving {
  animation: toastOut 220ms ease forwards;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 0 46px;
  border-top: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 0.9rem;
}

.site-footer span:first-child {
  color: #fff;
  font-weight: 800;
}

.site-footer a {
  color: var(--text-muted);
  font-weight: 800;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(var(--reveal-y, 42px));
  transition:
    opacity 560ms ease,
    transform var(--slow),
    filter var(--slow);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal-image] {
  --reveal-y: 28px;
  filter: blur(5px);
  transform: translateY(28px) scale(0.975);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

@media (prefers-reduced-motion: no-preference) {
  .site-preview {
    animation: canvasFloat 8s ease-in-out infinite;
  }

  .agent-media span,
  .preview-circles span {
    animation: softPulse 7s ease-in-out infinite;
  }

  .agent-media span:nth-child(2),
  .preview-circles span:nth-child(2) {
    animation-delay: 700ms;
  }

  .agent-media span:nth-child(3),
  .preview-circles span:nth-child(3) {
    animation-delay: 1300ms;
  }
}

@keyframes canvasFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes softPulse {
  0%,
  100% {
    transform: scale(1);
    filter: saturate(1);
  }
  50% {
    transform: scale(1.035);
    filter: saturate(1.18);
  }
}

@keyframes addedBlock {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  24%,
  72% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-8px);
  }
}

@keyframes toastIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateY(8px);
  }
}

@media (max-width: 1120px) {
  .release-link {
    position: static;
    display: inline-block;
    margin-top: 24px;
  }

  .editor-grid {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .agent-panel {
    display: none;
  }

  .showcase-grid {
    grid-template-columns: 1fr 1fr;
  }

  .showcase-card-wide,
  .showcase-card.tall {
    grid-column: auto;
    grid-row: auto;
  }

  .agent-story,
  .platform-grid,
  .publish-panel {
    grid-template-columns: 1fr 1fr;
  }

  .mini-editor {
    grid-template-columns: 150px 1fr;
  }

  .mini-agent {
    grid-column: span 2;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .platform-grid article:nth-child(2) {
    border-right: 0;
  }
}

@media (max-width: 760px) {
  :root {
    --gutter: 18px;
  }

  .site-header {
    grid-template-columns: auto auto;
    min-height: 58px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(10, 10, 11, 0.96);
    box-shadow: var(--shadow-theater);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px;
  }

  .header-actions {
    display: none;
  }

  .hero-shell {
    padding-top: 56px;
  }

  .hero-copy h1 {
    font-size: 3.05rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .app-theater {
    margin-top: 36px;
    padding-bottom: 46px;
  }

  .app-window {
    min-height: 0;
    border-radius: 20px;
  }

  .editor-topbar {
    grid-template-columns: 1fr auto;
  }

  .topbar-center {
    display: none;
  }

  .topbar-left .icon-button:nth-child(n+3),
  .topbar-right .avatar-stack,
  .topbar-right .icon-button,
  .invite-button {
    display: none;
  }

  .editor-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .left-panel {
    display: none;
  }

  .canvas-stage {
    padding: 48px 14px 36px;
  }

  .canvas-toolbar {
    top: 14px;
    left: 14px;
    right: 14px;
  }

  .site-preview {
    min-height: 360px;
    margin-top: 20px;
  }

  .preview-nav {
    padding: 0 16px;
  }

  .preview-nav nav {
    display: none;
  }

  .preview-hero {
    grid-template-columns: 1fr;
    padding: 48px 18px;
  }

  .preview-hero h2 {
    font-size: 1.8rem;
  }

  .preview-card {
    max-width: 190px;
  }

  .floating-tool {
    bottom: 12px;
  }

  .section-line {
    align-items: start;
    flex-direction: column;
  }

  .section-line h2,
  .section-heading h2,
  .platform-header h2,
  .publish-panel h2 {
    font-size: 2.1rem;
  }

  .shipped,
  .agents,
  .platform,
  .publish {
    padding-top: 72px;
  }

  .showcase-grid,
  .agent-story,
  .platform-grid,
  .publish-panel,
  .form-row {
    grid-template-columns: 1fr;
  }

  .showcase-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .showcase-card {
    height: 240px;
  }

  .showcase-card-wide {
    height: 430px;
    min-height: 0;
  }

  .showcase-card-wide .shot-body {
    bottom: 34px;
  }

  .shot-body strong,
  .site-shot strong {
    font-size: 1.9rem;
    line-height: 1.02;
  }

  .shot-widget {
    top: 42%;
    right: 18px;
    padding: 12px 16px;
    font-size: 0.95rem;
  }

  .mini-editor {
    grid-template-columns: 1fr;
  }

  .mini-sidebar {
    display: none;
  }

  .mini-stage {
    min-height: 280px;
  }

  .mini-agent {
    grid-column: auto;
  }

  .platform-grid article {
    min-height: 210px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .platform-grid article:last-child {
    border-bottom: 0;
  }

  .publish-panel {
    padding: 26px;
  }

  .action-modal {
    align-items: end;
    padding: 12px;
  }

  .modal-panel {
    max-height: calc(100vh - 24px);
    padding: 22px;
    border-radius: 22px;
  }

  .modal-panel h2 {
    font-size: 1.75rem;
  }

  .template-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .template-option {
    min-height: 82px;
    padding: 12px;
  }

  .template-option strong {
    font-size: 0.92rem;
  }

  .modal-steps {
    gap: 8px;
  }

  .modal-steps li {
    padding: 10px 12px 10px 34px;
    font-size: 0.9rem;
  }

  .modal-actions .btn {
    width: 100%;
  }

  .toast-stack {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 430px) {
  .hero-copy h1 {
    font-size: 2.55rem;
  }

  .brand {
    font-size: 0.9rem;
  }

  .topbar-pill {
    padding-inline: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
