.nebula-landing {
  --landing-muted: #b1b3c0;
  --landing-border: #383840;
  min-height: 100svh;
  overflow: clip;
  background: #0c0d10;
  color: #f7f7fa;
}
.landing-header, .landing-footer {
  width: min(1220px, calc(100% - 56px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 32px);
  padding-block: 14px;
}
.landing-header nav { display: flex; gap: clamp(12px, 3vw, 24px); margin-inline: auto; }
.landing-header { border-bottom: 1px solid #2a2a31; }
.landing-header nav a, .landing-footer a { color: var(--landing-muted); font-size: 13px; }
.landing-brand { display: inline-flex; align-items: center; gap: 7px; font-size: 19px; font-weight: 700; color: #fbf8ff; }
.landing-brand img { width: 35px; height: 35px; object-fit: contain; }
.landing-signin { margin-left: auto; }
.nebula-landing .btn {
  background: #1b1c21;
  border-color: #42434d;
  border-radius: 9px;
  color: #f8efff;
}
.nebula-landing .btn:hover { background: #272830; border-color: #a384c7; }
.nebula-landing .btn.primary { background: #f0eaff; border-color: #f0eaff; color: #211332; }
.nebula-landing .btn.primary:hover { background: #fff; }
.landing-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(24px, 5vw, 76px);
  width: min(1220px, calc(100% - 56px));
  min-height: min(640px, 78svh);
  margin-inline: auto;
  padding: clamp(40px, 8vw, 94px) 0;
}
.landing-hero {
  text-align: left;
}
.landing-hero h1 {
  margin: 0;
  font-size: clamp(54px, 9vw, 112px);
  letter-spacing: -.065em;
  line-height: 1.06;
  font-weight: 680;
  text-wrap: balance;
}
.landing-brand-art { display: grid; place-items: center; min-width: 0; pointer-events: none; }
.landing-brand-art img {
  width: min(100%, 480px);
  height: auto;
  filter: saturate(.72) drop-shadow(0 12px 42px #4e239f54);
}
.landing-hero p { max-width: 38ch; margin: 18px 0 0; color: var(--landing-muted); font-size: clamp(15px, 2vw, 17px); }
.landing-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 25px; }
.landing-hero .landing-access, .landing-hero .landing-message { font-size: 12px; margin-top: 13px; max-width: 58ch; }
.landing-hero .landing-message { color: #dfc7fb; }
/* Aceternity Spotlight adapted to Nebula's CSS-only landing page. */
.landing-spotlight {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  width: min(1100px, 145vw);
  height: clamp(160px, 28vw, 310px);
  left: 75%;
  top: 51%;
  transform: translate(-50%, -50%) rotate(24deg);
  background: radial-gradient(ellipse at center, #b989ff24, #8d55d61c 35%, #7540b20c 53%, transparent 72%);
}
.landing-preview-section, .landing-features {
  width: min(1220px, calc(100% - 56px));
  margin-inline: auto;
  scroll-margin-top: 22px;
}
.landing-preview-section { border-top: 1px solid #2d2e36; padding: 28px 0 38px; }
.landing-section-heading { margin-bottom: 20px; }
.landing-section-heading h2 { font-size: clamp(24px, 4vw, 34px); margin: 0; letter-spacing: -.03em; }
.landing-section-heading p { font-size: 14px; color: var(--landing-muted); margin: 5px 0 0; }
.landing-window {
  width: 100%;
  min-width: 0;
  margin-block: 0;
  border: 1px solid var(--landing-border);
  border-radius: 13px;
  background: #14151b;
  box-shadow: 0 25px 56px #0008;
  overflow: hidden;
}
.landing-window-bar, .landing-window-bar > span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.landing-window-bar { justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid var(--landing-border); font-size: 13px; }
.landing-window-bar img { width: 29px; height: 29px; object-fit: contain; }
.landing-example { color: var(--landing-muted); font-size: 11px; }
.landing-window-body { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0,1.15fr); }
.landing-editor, .landing-chart { min-width: 0; background: #1a1b22; padding: clamp(12px, 2vw, 24px); }
.landing-editor { border-right: 1px solid var(--landing-border); }
.landing-window h2 { margin: 0 0 17px; font-size: 14px; font-weight: 650; }
.landing-setting { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; color: var(--landing-muted); font-size: 13px; }
.landing-setting strong { color: #f1e5ff; font-size: 12px; }
.landing-scale { height: 4px; border-radius: 9px; background: #37284a; margin-block: 2px 9px; }
.landing-scale span { display: block; width: 66%; height: 100%; border-radius: inherit; background: #ba93ff; transform-origin: left; }
.landing-chart svg { display: block; width: 100%; }
.landing-chart-grid { fill: none; stroke: #463653; }
.landing-chart-area { fill: url(#landing-chart-fill); }
.landing-chart-line { fill: none; stroke: #d0aaff; stroke-width: 2.5; stroke-linecap: round; }
.landing-chart text { fill: #b7acc8; font-size: 10px; }
.landing-features { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; padding-block: 26px; border-top: 1px solid #2d2e36; }
.landing-feature { padding: 0 0 13px; }
.landing-feature .icon { color: #c8a4fb; }
.landing-feature h2 { margin: 10px 0 5px; font-size: 15px; }
.landing-feature p { margin: 0; color: var(--landing-muted); font-size: 13px; }
.landing-footer { border-top: 1px solid #2d2e36; justify-content: space-between; }

@media (prefers-reduced-motion: no-preference) {
  html:has(.nebula-landing) { scroll-behavior: smooth; }
  .nebula-landing :is(.btn, a, .landing-feature),
  .workspace :is(.btn, .workspace-tab, .editor-tab, .icon-btn, .config-row) {
    transition: background-color .2s, border-color .2s, color .2s, transform .2s;
  }
  .nebula-landing .btn:hover { transform: translateY(-2px); }
  .nebula-landing a:hover { color: #fff; }
  .nebula-landing .btn.primary:hover { color: #211332; }
  .landing-header { animation: landing-enter .5s both; }
  .landing-hero h1 { animation: landing-enter .65s .06s both; }
  .landing-hero > p, .landing-actions { animation: landing-enter .65s .13s both; }
  .landing-brand-art { animation: landing-enter .8s .2s both; }
  .landing-spotlight { animation: nebula-spotlight-in 1.4s cubic-bezier(.22,.68,.22,1) .12s both; }
  .landing-chart-line { stroke-dasharray: 1; animation: chart-draw 1.15s .45s both; }
  .landing-chart-area { animation: landing-fade 1s .55s both; }
  .landing-scale span { animation: meter-fill .9s .45s both; }
  @supports (animation-timeline: view()) {
    .landing-feature { animation: landing-enter linear both; animation-timeline: view(); animation-range: entry 0% entry 95%; }
  }
}
@keyframes landing-enter { from { opacity: 0; translate: 0 16px; } to { opacity: var(--enter-opacity, 1); translate: 0 0; } }
@keyframes landing-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes chart-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes meter-fill { from { scale: 0 1; } to { scale: 1 1; } }
@keyframes nebula-spotlight-in {
  from { opacity: 0; transform: translate(-64%, -73%) rotate(30deg) scale(.7); }
  to { opacity: 1; transform: translate(-50%, -50%) rotate(24deg) scale(1); }
}

@media (max-width: 790px) {
  .landing-stage { grid-template-columns: minmax(0,1fr); min-height: 390px; }
  .landing-spotlight { left: 64%; top: 58%; }
  .landing-brand-art { --enter-opacity: .22; position: absolute; inset: 0 -22px 0 35%; z-index: -1; opacity: .22; }
}
@media (max-width: 600px) {
  .landing-header, .landing-stage, .landing-preview-section, .landing-features, .landing-footer { width: calc(100% - 36px); }
  .landing-header { gap: 10px; }
  .landing-header nav { gap: 10px; }
  .landing-header nav a { font-size: 12px; }
  .landing-signin { padding-inline: 10px; }
  .landing-features { grid-template-columns: minmax(0,1fr); gap: 14px; }
  .landing-features { padding-block: 24px; }
}
@media (max-width: 420px) {
  .landing-window-body { grid-template-columns: minmax(0,1fr); }
  .landing-editor { border-right: 0; border-bottom: 1px solid var(--landing-border); }
}
@media (max-width: 365px) {
  .landing-header { flex-wrap: wrap; }
  .landing-header nav { order: 1; flex-basis: 100%; }
}
