:root {
  --public-bg: #110d0b;
  --public-panel: #1d1713;
  --public-ink: #fff7ef;
  --public-muted: #c7b7a9;
  --public-orange: #ff7a29;
  --public-gold: #f9c46b;
  --public-line: rgba(255, 255, 255, 0.14);
}

* {
  box-sizing: border-box;
}

body.studio-public-shell {
  margin: 0;
  min-height: 100vh;
  color: var(--public-ink);
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 122, 41, 0.2), transparent 28rem),
    linear-gradient(135deg, #110d0b 0%, #1f1611 52%, #28170f 100%);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.studio-public-page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 72px;
}

.public-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 56px;
}

.public-brand img {
  display: block;
  width: min(260px, 48vw);
  height: auto;
}

.public-nav nav {
  display: flex;
  gap: 18px;
  color: var(--public-muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.public-nav a {
  text-decoration: none;
}

.studio-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 420px);
  gap: 44px;
  align-items: center;
  min-height: 620px;
  padding: 42px 0 30px;
}

.public-kicker,
.product-sections p {
  margin: 0 0 14px;
  color: var(--public-orange);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  max-width: 760px;
  font-family: Montserrat, Inter, sans-serif;
  font-size: clamp(3.5rem, 8vw, 7.4rem);
  line-height: 0.88;
  letter-spacing: 0;
}

.hero-support {
  max-width: 680px;
  margin: 28px 0 18px;
  color: var(--public-muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.58;
}

.hero-copy strong {
  color: var(--public-gold);
  font-size: 1.05rem;
}

.auth-card {
  border: 1px solid var(--public-line);
  border-radius: 8px;
  background: rgba(29, 23, 19, 0.86);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
  padding: 18px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
}

.auth-tab,
.public-button {
  min-height: 44px;
  border: 1px solid var(--public-line);
  border-radius: 6px;
  color: var(--public-ink);
  background: rgba(255, 255, 255, 0.06);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.auth-tab.is-active,
.public-button {
  border-color: rgba(255, 122, 41, 0.64);
  background: linear-gradient(135deg, #ff7a29, #f9ad3d);
  color: #1b0f08;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form h2 {
  margin: 0 0 2px;
  font-size: 1.4rem;
}

.auth-form label {
  display: grid;
  gap: 7px;
  color: var(--public-muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.auth-form input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--public-line);
  border-radius: 6px;
  color: var(--public-ink);
  background: #130f0d;
  padding: 0 12px;
  font: inherit;
}

.auth-message {
  min-height: 22px;
  margin: 14px 0 0;
  color: var(--public-muted);
  font-size: 0.9rem;
}

.auth-message[data-state="error"] {
  color: #ffb199;
}

.studio-showcase {
  padding: 14px 0 54px;
}

.showcase-frame {
  overflow: hidden;
  border: 1px solid var(--public-line);
  border-radius: 8px;
  background: #171210;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
}

.showcase-topbar {
  display: flex;
  gap: 7px;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  border-bottom: 1px solid var(--public-line);
}

.showcase-topbar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff7a29;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 230px 1fr;
  min-height: 420px;
}

.showcase-grid aside {
  display: grid;
  align-content: start;
  gap: 16px;
  border-right: 1px solid var(--public-line);
  padding: 22px;
  background: #211712;
}

.showcase-grid aside img {
  width: 170px;
}

.showcase-grid aside b,
.showcase-grid aside small {
  border: 1px solid var(--public-line);
  border-radius: 6px;
  padding: 12px;
}

.showcase-main {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.mode-pills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mode-pills span,
.drop-preview,
.stage-preview span {
  border: 1px solid var(--public-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.mode-pills span {
  padding: 18px;
  font-weight: 900;
}

.drop-preview {
  display: grid;
  place-items: center;
  min-height: 220px;
  color: var(--public-gold);
  font-size: 2rem;
  font-weight: 900;
}

.stage-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.stage-preview span {
  min-height: 68px;
}

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

.product-sections article {
  min-height: 250px;
  border: 1px solid var(--public-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  padding: 22px;
}

.product-sections h2 {
  margin: 0 0 14px;
  font-size: 1.55rem;
  line-height: 1.1;
}

.product-sections span {
  color: var(--public-muted);
  line-height: 1.55;
}

.studio-app-shell {
  position: fixed;
  inset: 0;
  background: #110d0b;
}

.studio-app-shell iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.studio-logout {
  position: fixed;
  z-index: 5;
  top: 14px;
  right: 14px;
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  color: #fff7ef;
  background: rgba(17, 13, 11, 0.78);
  padding: 0 12px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

@media (max-width: 860px) {
  .public-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .public-nav nav {
    flex-wrap: wrap;
  }

  .studio-hero,
  .showcase-grid,
  .product-sections {
    grid-template-columns: 1fr;
  }

  .studio-hero {
    min-height: auto;
    padding-top: 34px;
  }

  .hero-copy h1 {
    font-size: clamp(3.1rem, 15vw, 5.4rem);
  }

  .showcase-grid aside {
    border-right: 0;
    border-bottom: 1px solid var(--public-line);
  }
}
