/* ── Background orbs ──────────────────────────────────── */

.bg-orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(90px);
  animation: orb-in 1.4s ease forwards;
  opacity: 0;
}

.bg-orb--blue {
  width: 700px; height: 700px;
  top: -250px; left: -120px;
  background: radial-gradient(circle, rgba(37,99,235,0.2), transparent 65%);
  animation-delay: 0.1s;
}

.bg-orb--red {
  width: 560px; height: 560px;
  top: -180px; right: -100px;
  background: radial-gradient(circle, rgba(230,57,70,0.16), transparent 65%);
  animation-delay: 0.25s;
}

@keyframes orb-in { to { opacity: 1; } }

/* ── Header ───────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-h);
  background: rgba(13,17,23,0.78);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border-bottom: 1px solid var(--c-border-1);
}

.header-inner {
  max-width: var(--site-max);
  margin: 0 auto;
  padding: 0 var(--site-px);
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-shrink: 0;
}

.logo__mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.logo__text {
  font-size: var(--text-md);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--c-text-0);
  line-height: 1;
}

.logo__accent {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo__chip {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: var(--grad-brand);
  color: #fff;
  line-height: 1.7;
}

/* Tagline */
.header-tagline {
  flex: 1;
  font-size: var(--text-sm);
  color: var(--c-text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Nav */
.header-nav { flex-shrink: 0; }

.header-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--c-text-1);
  padding: 6px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--c-border-1);
  background: var(--c-bg-3);
  transition: color var(--t-base), border-color var(--t-base), background var(--t-base);
}

.header-link:hover {
  color: var(--c-text-0);
  border-color: var(--c-border-2);
  background: var(--c-bg-4);
}

.header-link__icon { width: 15px; height: 15px; }

/* ── Site main ────────────────────────────────────────── */

.site-main {
  position: relative;
  z-index: 1;
  max-width: var(--site-max);
  margin: 0 auto;
  padding: var(--sp-8) var(--site-px) var(--sp-20);
}

/* ── Workspace ────────────────────────────────────────── */

.workspace {
  display: grid;
  grid-template-columns: var(--controls-w) 1fr;
  grid-template-areas: "controls preview";
  gap: var(--gap);
  align-items: start;
}

/* ── Base panel ───────────────────────────────────────── */

.panel {
  position: relative;
  background: var(--c-bg-2);
  border: 1px solid var(--c-border-1);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

/* Gradient top-line accent */
.panel::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: var(--grad-brand-h);
  opacity: 0.45;
  pointer-events: none;
  z-index: 1;
}

.panel--controls {
  grid-area: controls;
  display: flex;
  flex-direction: column;
}

.panel--preview {
  grid-area: preview;
  position: sticky;
  top: calc(var(--header-h) + var(--sp-8));
                              }
