:root {
  --bg: #07061a;
  --bg-2: #100d28;
  --panel: #12102a;
  --line: rgba(148, 130, 255, 0.28);
  --text: #f4f2ff;
  --muted: #a39bbd;
  --violet: #7a5cff;
  --violet-2: #5b4dff;
  --glow: rgba(92, 63, 255, 0.55);
  --sans: "Manrope", "Segoe UI", sans-serif;
  --script: "Great Vibes", cursive;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--sans);
  background:
    radial-gradient(ellipse 70% 42% at 50% -8%, rgba(110, 70, 255, 0.55), transparent 60%),
    linear-gradient(180deg, #120a33 0%, var(--bg) 28%, #050414 100%);
}

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

img { max-width: 100%; display: block; }

h1, h2, h3, .serif { font-family: var(--sans); font-weight: 700; letter-spacing: -0.03em; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  background: white;
  color: black;
  padding: 8px 12px;
  z-index: 20;
}

.skip-link:focus { top: 12px; }

.site-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(7, 6, 26, 0.55);
  backdrop-filter: blur(16px);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 20px;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  letter-spacing: -0.03em;
  font-size: 1.15rem;
  z-index: 1;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  background: radial-gradient(circle at 35% 30%, #b7a6ff, #6a4dff 55%, #3d2bb5);
  box-shadow: 0 0 18px rgba(122, 92, 255, 0.65);
}

.brand-mark svg { width: 16px; height: 16px; display: block; }

.nav-links {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 28px;
  white-space: nowrap;
}

.nav-links a { color: #d9d4ea; font-size: 0.95rem; font-weight: 500; }

.nav-links a[aria-current="page"],
.nav-links a:hover { color: white; }

.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; z-index: 1; }

button.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(130, 112, 255, 0.7);
  background: rgba(18, 14, 48, 0.7);
  color: white;
  font-size: 1.35rem;
  line-height: 1;
  align-items: center;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  padding: 0.62rem 1.05rem;
  border: 1px solid rgba(130, 112, 255, 0.7);
  background: rgba(18, 14, 48, 0.7);
  color: white;
  font-weight: 650;
  cursor: pointer;
}

.btn:hover { background: rgba(90, 70, 200, 0.35); color: white; }

.btn-lg { padding: 0.75rem 1.2rem; min-width: 132px; }

.btn-ink, .btn-ember, .btn-ghost { color: white; }

.login-btn { border-radius: 8px; padding: 0.45rem 0.95rem; }

.nav-actions form { margin: 0; }

.nav-user {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #d9d4ea;
  font-size: 0.92rem;
}

.auth-shell {
  display: grid;
  place-items: center;
  padding: 48px 16px 72px;
}

.auth-card {
  width: min(440px, 100%);
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(16, 13, 36, 0.9);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.brand-logo {
  display: block;
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 50%;
  background: #fff;
}

.auth-logo {
  display: block;
  width: 148px;
  margin: 0 auto 18px;
}

.auth-logo-img {
  width: 148px;
  height: 148px;
  object-fit: cover;
  border-radius: 50%;
  background: #fff;
}

.auth-card h1 { margin: 0 0 8px; font-size: 2rem; }

.auth-card .lede { margin-bottom: 22px; }

.field { display: grid; gap: 6px; margin-bottom: 14px; text-align: left; }

.field label { font-size: 0.9rem; color: #d9d4ea; }

.field input,
.field select {
  width: 100%;
  padding: 0.72rem 0.85rem;
  border: 1px solid rgba(148, 130, 255, 0.35);
  border-radius: 10px;
  background: #0c0a1c;
  color: white;
  font: inherit;
}

.field input:focus,
.field select:focus { outline: 2px solid rgba(122, 92, 255, 0.7); outline-offset: 1px; }

.field-error { margin: 0; color: #ffb4c0; font-size: 0.85rem; }

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 16px;
  color: #d9d4ea;
}

.auth-submit { width: 100%; }

.auth-credential {
  margin: 0;
  padding: 0.72rem 0.85rem;
  border: 1px solid rgba(148, 130, 255, 0.35);
  border-radius: 10px;
  background: #0c0a1c;
  color: white;
  font-weight: 700;
}

.auth-center {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.sponsor-full-name {
  margin: 0;
  color: #efeaff;
  font-weight: 700;
}

.sponsor-full-name:empty { display: none; }

.auth-links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  font-size: 0.92rem;
}

.auth-links a { color: #c3b6ff; }

.auth-status {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(122, 92, 255, 0.16);
  color: #efeaff;
  text-align: left;
}

.auth-status a { color: white; text-decoration: underline; }

.offcanvas button {
  background: transparent;
  border: 0;
  color: white;
  text-align: left;
  padding: 8px 0;
}

.hero { text-align: center; padding: 72px 0 28px; }

.hero h1 {
  margin: 0 auto 14px;
  max-width: 16ch;
  font-size: clamp(2.6rem, 5vw, 4.1rem);
  line-height: 1.08;
}

.lede {
  color: #c9c3dc;
  font-size: 1.05rem;
  margin: 0 auto 26px;
}

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

.stage-wrap { padding: 36px 0 10px; }

.stage {
  border: 1px solid rgba(120, 100, 220, 0.35);
  border-radius: 16px;
  background: #0d0b22;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.stage-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #b7b0cf;
  font-size: 0.82rem;
}

.stage-body { display: grid; grid-template-columns: 52px 1fr 210px; min-height: 420px; }

.stage-tools {
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 16px;
  color: #8d86a8;
}

.stage-canvas {
  position: relative;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(80, 50, 180, 0.25), transparent 55%),
    #0a0818;
}

.art {
  width: min(78%, 560px);
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  position: relative;
  background:
    radial-gradient(circle at 30% 40%, #6d4bff, transparent 42%),
    radial-gradient(circle at 70% 60%, #1a3cff, transparent 46%),
    linear-gradient(145deg, #24124f, #071433 55%, #2a1468);
  box-shadow: 0 0 0 1px rgba(120, 170, 255, 0.7);
}

.handle {
  position: absolute;
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 1px;
}

.handle.tl { top: -5px; left: -5px; }
.handle.tr { top: -5px; right: -5px; }
.handle.bl { bottom: -5px; left: -5px; }
.handle.br { bottom: -5px; right: -5px; }

.resize-pill {
  position: absolute;
  left: 16px;
  top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1a1338;
  color: white;
  border: 0;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 0.78rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.rec { width: 8px; height: 8px; border-radius: 50%; background: #ff3b30; }

.stage-side {
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  padding: 14px 12px;
  color: #c8c2dc;
  font-size: 0.78rem;
}

.stage-side h2 { font-size: 0.78rem; margin: 0 0 10px; font-weight: 650; }

.layer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px;
  border-radius: 8px;
  margin-bottom: 6px;
  background: rgba(255, 255, 255, 0.03);
}

.layer.active { outline: 1px solid rgba(130, 112, 255, 0.7); }

.logo-band { text-align: center; padding: 54px 0 20px; }

.logo-band p { color: #bdb6d2; margin-bottom: 18px; }

.logo-row {
  display: flex;
  justify-content: center;
  gap: 34px;
  flex-wrap: wrap;
  font-family: var(--script);
  font-size: 2rem;
  color: #d7d2e8;
  opacity: 0.85;
}

.section { padding: 72px 0; }

.section-head { text-align: center; margin-bottom: 28px; }

.section-head h2, .feature-title {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  max-width: 16ch;
  margin: 0 auto 10px;
}

.card-grid, .use-grid, .price-grid { display: grid; gap: 16px; }

.card-grid, .price-grid { grid-template-columns: repeat(3, 1fr); }

.use-grid { grid-template-columns: repeat(4, 1fr); }

.feature-card, .use-card, .price-card, .step, .panel {
  background: rgba(18, 14, 42, 0.8);
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--text);
}

.feature-card, .use-card { padding: 22px; }

.use-card { min-height: 140px; display: flex; flex-direction: column; justify-content: space-between; }

.use-card span, .fine, .product-cat { color: var(--muted); }

.feature-card h3, .use-card strong { font-size: 1.25rem; }

.feature-card p, .price-card li, .step p { color: #c9c3dc; }

.page-hero { padding: 64px 0 20px; text-align: center; }

.page-hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1.08; margin: 0 auto 12px; max-width: 16ch; }

.kicker { color: #b9a6ff; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.75rem; font-weight: 700; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; text-align: left; }

.step { padding: 16px 18px; display: grid; grid-template-columns: auto 1fr; gap: 14px; }

.step b {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(122, 92, 255, 0.2);
}

.console {
  background: #0d0b22;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
}

.console-top { display: flex; justify-content: space-between; color: var(--muted); font-size: 0.82rem; margin-bottom: 12px; }

.dots { display: flex; gap: 6px; }
.dots span { width: 8px; height: 8px; border-radius: 50%; background: #3a3458; }
.dots span:first-child { background: #ff5a7a; }

.bubble { border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; background: #16132e; }
.bubble strong { display: block; color: #c3b6ff; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 6px; }
.bubble p { margin: 0; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 3px 8px; font-size: 0.75rem; }

.price-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  margin-top: 8px;
}

.price-switch button {
  border: 0;
  background: transparent;
  color: white;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
}

.price-switch button[aria-pressed="true"] { background: var(--violet); }

.price-card { padding: 22px; display: flex; flex-direction: column; text-align: left; }
.price-card.featured { background: linear-gradient(180deg, #241456, #120c2e); }
.price-card .amount { font-size: 3rem; line-height: 1; margin: 8px 0; }
.price-card .amount small { font-size: 1rem; color: var(--muted); }
.price-card ul { padding-left: 18px; flex: 1; }

.faq .accordion-item { background: transparent; border: 0; border-bottom: 1px solid var(--line); }
.faq .accordion-button, .faq .accordion-button:not(.collapsed) {
  background: transparent;
  color: white;
  box-shadow: none;
}
.faq .accordion-body { color: #c9c3dc; }

.site-footer { border-top: 1px solid rgba(255, 255, 255, 0.06); padding: 48px 0 20px; margin-top: 20px; }
.site-footer a { display: block; margin: 6px 0; color: #d9d4ea; }
.site-footer a:hover { color: white; }
.site-footer h2 { font-size: 1rem; }
.site-footer p, .footer-bottom { color: var(--muted); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.06); margin-top: 28px; padding-top: 14px; font-size: 0.88rem; }

.desk { display: grid; grid-template-columns: 260px 1fr; min-height: calc(100vh - 78px); }
.threads { border-right: 1px solid rgba(255, 255, 255, 0.06); padding: 18px 14px; background: rgba(10, 8, 28, 0.6); }
.threads h2 { font-size: 1.2rem; }
.thread { width: 100%; text-align: left; border: 0; background: transparent; color: white; border-radius: 12px; padding: 10px 12px; margin-bottom: 6px; }
.thread[aria-current="true"], .thread:hover { background: rgba(122, 92, 255, 0.18); }
.thread small { display: block; color: var(--muted); }
.conversation { display: flex; flex-direction: column; min-height: calc(100vh - 78px); }
.messages { flex: 1; padding: 28px 8vw 12px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 680px; }
.msg.user { align-self: flex-end; background: #16132e; border: 1px solid var(--line); border-radius: 18px 18px 6px 18px; padding: 12px 14px; }
.msg.model .who { color: #c3b6ff; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.composer-wrap { padding: 8px 8vw 28px; }
.composer { display: flex; gap: 8px; background: #120f28; border: 1px solid var(--line); border-radius: 18px; padding: 8px; }
.composer textarea { border: 0; resize: none; flex: 1; padding: 10px 12px; font-family: inherit; color: white; outline: none; background: transparent; }
.demo-note { margin: 8px 4px 0; }

.offcanvas { background: #100d24; color: white; }
.offcanvas a { color: white; display: block; padding: 8px 0; }
.btn-close { filter: invert(1); }

.band { border: 1px solid var(--line); border-radius: 24px; padding: 32px; background: rgba(18, 14, 42, 0.75); }

@media (max-width: 980px) {
  .nav-links { display: none; }
  button.menu-btn { display: inline-flex; }
  .nav-user { display: none; }
  .stage-body, .split, .card-grid, .use-grid, .price-grid, .desk { grid-template-columns: 1fr; }
  .stage-tools, .threads { display: none; }
  .hero h1, .page-hero h1 { max-width: none; }
  .messages, .composer-wrap { padding-left: 16px; padding-right: 16px; }
}
