/*
 * Wave Creator — builder UI.
 *
 * Direction: surf.rxd.zone's sibling. Same family tokens as SURF's design
 * system - the #05070d abyss with radial glow washes, glass surfaces, the
 * aqua->cyan->blue gradient as the one flourish, Geist / Geist Mono - so the
 * two Radiant front doors read as one ecosystem. Wave Creator keeps its own
 * signatures inside that family: the tide-line status instrument under the
 * header, and zone-file `;;` eyebrows on section labels.
 */

:root {
  /* surfaces - SURF's dark-first scale */
  --abyss: #05070d;      /* page ground */
  --depth: #0c111d;      /* cards */
  --shoal: #111827;      /* inputs, raised surfaces */
  --reef: #1c2740;       /* borders */
  /* text */
  --foam: #eaf2ff;       /* primary */
  --drift: #93a4c3;      /* muted */
  /* brand accents */
  --radiant: #00d4ff;    /* wave cyan - the working accent */
  --radiant-deep: #2563eb;
  --aqua: #22d3ee;
  --crest: #34d399;      /* live / success only */
  --flare: #fbbf24;      /* warnings */
  --coral: #f87171;      /* destructive */

  --grad: linear-gradient(100deg, var(--radiant-deep), var(--radiant));
  --grad-text: linear-gradient(100deg, var(--aqua), var(--radiant) 40%, var(--radiant-deep));
  --glow-cyan: 0 0 0 1px rgba(0, 212, 255, 0.15), 0 8px 40px -12px rgba(0, 212, 255, 0.45);

  --radius: 8px;
  --radius-lg: 1.1rem;
  --shadow: 0 12px 32px rgba(2, 4, 10, 0.5);

  --font-display: 'Geist', 'Segoe UI', system-ui, sans-serif;
  --font: 'Geist', 'Segoe UI', system-ui, sans-serif;
  --mono: 'Geist Mono', 'Cascadia Code', ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { color-scheme: dark; }

body {
  font-family: var(--font);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(37, 99, 235, 0.18), transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 10%, rgba(0, 212, 255, 0.10), transparent 55%),
    var(--abyss);
  background-attachment: fixed;
  color: var(--foam);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* SURF's thin gradient scrollbar - a small tell that these sites are kin. */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--grad);
  border-radius: 999px;
  border: 2px solid var(--abyss);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.hidden { display: none !important; }

::selection { background: var(--radiant); color: #fff; }

:focus-visible {
  outline: 2px solid var(--radiant);
  outline-offset: 2px;
}

/* ---- Header + tide-line ------------------------------------------------- */

.app-header {
  background: var(--abyss);
  padding: 22px 0 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--foam);
  text-decoration: none;
}

.logo-wave { color: var(--radiant); flex: none; }

.logo-word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

.logo-tagline {
  margin-top: 2px;
  color: var(--drift);
  font-size: 0.85rem;
}

/*
 * The tide-line. A repeating sine stroke as a background image, drifting
 * slowly; .tide--busy shortens the period while the builder is working.
 */
.tide-line {
  height: 12px;
  margin-top: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='12' viewBox='0 0 88 12'%3E%3Cpath d='M0 6 Q 11 0, 22 6 T 44 6 T 66 6 T 88 6' fill='none' stroke='%2300d4ff' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 88px 12px;
  opacity: 0.75;
  animation: tide-drift 14s linear infinite;
}

.tide-line.tide--busy {
  animation-duration: 1.4s;
  opacity: 1;
}

@keyframes tide-drift {
  from { background-position-x: 0; }
  to { background-position-x: -88px; }
}

@media (prefers-reduced-motion: reduce) {
  .tide-line, .tide-line.tide--busy { animation: none; }
  * { transition: none !important; }
}

/* Signed-in identity */
.wave-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.wave-bar-address {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--drift);
  padding: 4px 10px;
  border: 1px solid var(--reef);
  border-radius: 999px;
}

/* ---- Sections ----------------------------------------------------------- */

.section { padding: 44px 0 56px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--drift);
  margin-bottom: 6px;
  user-select: none;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
}

.section-subtitle {
  color: var(--drift);
  margin-bottom: 32px;
  max-width: 56ch;
}

/* ---- Template picker ---------------------------------------------------- */

.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.template-card {
  position: relative;
  background: linear-gradient(160deg, rgba(20, 28, 46, 0.72), rgba(10, 15, 26, 0.55));
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(94, 122, 175, 0.16);
  border-radius: var(--radius-lg);
  padding: 24px;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
}

.template-card:hover {
  border-color: rgba(0, 212, 255, 0.45);
  box-shadow: var(--glow-cyan);
  transform: translateY(-2px);
}

.template-card-icon {
  margin-bottom: 14px;
  color: var(--radiant);
  line-height: 0;
}

.template-card-icon svg { width: 26px; height: 26px; stroke-width: 1.75; }

.template-card-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.template-card-desc {
  color: var(--drift);
  font-size: 0.88rem;
  padding-right: 20px;
}

.template-card-arrow {
  position: absolute;
  right: 20px;
  bottom: 18px;
  color: var(--drift);
  transition: color 0.15s, transform 0.15s;
}

.template-card:hover .template-card-arrow {
  color: var(--radiant);
  transform: translateX(3px);
}

.badge {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 500;
}

.badge-dynamic {
  background: rgba(75, 139, 245, 0.12);
  color: var(--radiant);
  border: 1px solid rgba(75, 139, 245, 0.35);
}

/* ---- Names + saved sites ------------------------------------------------ */

.names-panel {
  margin-bottom: 36px;
  padding: 24px;
  background: linear-gradient(160deg, rgba(20, 28, 46, 0.72), rgba(10, 15, 26, 0.55));
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(94, 122, 175, 0.16);
  border-radius: var(--radius-lg);
}

.names-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.names-desc {
  color: var(--drift);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.names-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}

.names-empty { color: var(--drift); font-size: 0.85rem; }

.name-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px;
  text-align: left;
  font-family: var(--font);
  background: var(--shoal);
  border: 1px solid var(--reef);
  border-radius: var(--radius);
  color: var(--foam);
  cursor: pointer;
  transition: border-color 0.15s;
}

.name-card:hover { border-color: var(--radiant); }

.name-card.selected {
  border-color: var(--crest);
  box-shadow: inset 0 0 0 1px var(--crest);
}

.name-card-name { font-weight: 600; font-size: 0.95rem; }

.name-card-zone {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--drift);
  overflow-wrap: anywhere;
}

.name-card-meta { font-size: 0.72rem; color: var(--drift); margin-top: 4px; }

.project-card { position: relative; }

.project-actions { display: flex; gap: 14px; margin-top: 10px; }

.btn-link {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font);
  font-size: 0.76rem;
  color: var(--radiant);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.btn-link:hover { color: var(--foam); }
.btn-link-danger { color: var(--coral); }
.btn-link-danger:hover { color: var(--foam); }

/* ---- Builder ------------------------------------------------------------ */

.builder-layout {
  display: grid;
  grid-template-columns: minmax(340px, 480px) 1fr;
  gap: 28px;
  margin-top: 18px;
  align-items: start;
}

.builder-form-panel {
  background: linear-gradient(160deg, rgba(20, 28, 46, 0.72), rgba(10, 15, 26, 0.55));
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(94, 122, 175, 0.16);
  border-radius: var(--radius-lg);
  padding: 26px;
}

.builder-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.builder-title svg { width: 24px; height: 24px; flex: none; color: var(--radiant); }

.builder-desc { color: var(--drift); margin-bottom: 24px; font-size: 0.92rem; }

.builder-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--reef);
}

/* Preview panel: framed like an instrument, not a fake browser. */
.builder-preview-panel {
  position: sticky;
  top: 16px;
  background: linear-gradient(160deg, rgba(20, 28, 46, 0.72), rgba(10, 15, 26, 0.55));
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(94, 122, 175, 0.16);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.preview-toolbar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--reef);
}

.preview-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--reef); }
.preview-dot.green { background: var(--crest); }

.preview-label {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--drift);
  letter-spacing: 0.05em;
}

#preview-frame {
  width: 100%;
  height: calc(100vh - 130px);
  min-height: 480px;
  border: none;
  background: #fff;
  display: block;
}

/* ---- Forms -------------------------------------------------------------- */

.form-group { margin-bottom: 18px; }

.theme-group {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--reef);
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--foam);
  margin-bottom: 6px;
}

.form-input,
.form-textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--foam);
  background: rgba(17, 24, 39, 0.7);
  border: 1px solid var(--reef);
  border-radius: var(--radius);
  padding: 9px 12px;
  transition: border-color 0.15s;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--radiant);
}

.form-input::placeholder,
.form-textarea::placeholder { color: #5c6f6c; }

.form-textarea { min-height: 88px; resize: vertical; }

.form-input[type='color'] {
  height: 40px;
  padding: 4px;
  cursor: pointer;
}

.form-input:disabled { opacity: 0.55; cursor: not-allowed; }

select.form-input { cursor: pointer; }

.form-hint {
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--drift);
}

.form-hint code {
  font-family: var(--mono);
  background: var(--shoal);
  padding: 1px 4px;
  border-radius: 3px;
}

/* Repeaters */
.repeater-items { display: flex; flex-direction: column; gap: 12px; }

.repeater-item {
  background: var(--shoal);
  border: 1px solid var(--reef);
  border-radius: var(--radius);
  padding: 14px;
}

.repeater-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.repeater-item-title {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--drift);
  letter-spacing: 0.05em;
}

.repeater-remove {
  background: none;
  border: none;
  color: var(--coral);
  font-family: var(--font);
  font-size: 0.75rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.repeater-remove:hover { color: var(--foam); }

.repeater-field { margin-bottom: 10px; }
.repeater-field:last-child { margin-bottom: 0; }

.repeater-field .form-input,
.repeater-field .form-textarea { background: var(--depth); }

.btn-add-item {
  margin-top: 12px;
  width: 100%;
  padding: 9px;
  font-family: var(--font);
  font-size: 0.85rem;
  color: var(--radiant);
  background: none;
  border: 1px dashed var(--reef);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.btn-add-item:hover { border-color: var(--radiant); }

/* Image upload */
.image-upload-area {
  border: 1px dashed var(--reef);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  color: var(--drift);
  font-size: 0.85rem;
  transition: border-color 0.15s;
}

.image-upload-area:hover,
.image-upload-area.drag-over { border-color: var(--radiant); }

.image-upload-placeholder { display: flex; flex-direction: column; gap: 4px; align-items: center; }

.image-upload-icon { display: block; line-height: 0; margin-bottom: 4px; }
.image-upload-icon svg { width: 22px; height: 22px; }

.image-upload-hint { font-size: 0.72rem; color: #5c6f6c; }

.image-preview-thumb {
  max-width: 100%;
  max-height: 160px;
  border-radius: var(--radius);
}

.image-remove-btn {
  margin-top: 8px;
  background: none;
  border: none;
  color: var(--coral);
  font-family: var(--font);
  font-size: 0.75rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Icon picker */
.icon-field { display: flex; align-items: center; gap: 10px; }

.icon-preview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: none;
  border: 1px solid var(--reef);
  border-radius: var(--radius);
  color: var(--radiant);
  background: var(--shoal);
}

.icon-preview svg { width: 20px; height: 20px; }

.icon-field .icon-select { flex: 1; min-width: 0; }

/* ---- Buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  text-decoration: none;
}

.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.btn-primary { background: var(--grad); color: #fff; }
.btn-primary:hover:not(:disabled) { box-shadow: var(--glow-cyan); filter: brightness(1.08); }

.btn-secondary {
  background: none;
  color: var(--foam);
  border-color: var(--reef);
}
.btn-secondary:hover:not(:disabled) { border-color: var(--radiant); color: var(--radiant); }

.btn-ghost {
  background: none;
  color: var(--drift);
  padding-left: 0;
}
.btn-ghost:hover:not(:disabled) { color: var(--foam); }

.btn-sm { padding: 4px 12px; font-size: 0.78rem; }

.btn-vercel { background: #000; color: #fff; border-color: #333; }
.btn-vercel:hover:not(:disabled) { border-color: #666; }

.vercel-mark { display: inline-block; vertical-align: -1px; margin-right: 2px; }

.btn-wave { width: 100%; }

/* ---- Sign-in gate ------------------------------------------------------- */

.auth-container { display: flex; justify-content: center; padding: 72px 20px; }

.auth-card {
  width: 100%;
  max-width: 380px;
  background: linear-gradient(160deg, rgba(20, 28, 46, 0.72), rgba(10, 15, 26, 0.55));
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(94, 122, 175, 0.16);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}

.auth-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.auth-desc { color: var(--drift); font-size: 0.9rem; margin-bottom: 20px; }

.auth-card .btn { width: 100%; }

.auth-hint {
  margin-top: 10px;
  font-size: 0.76rem;
  color: var(--drift);
  text-align: center;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--drift);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.auth-divider::before,
.auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--reef); }

/* ---- Deploy modal ------------------------------------------------------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 10, 12, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 50;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(160deg, rgba(20, 28, 46, 0.72), rgba(10, 15, 26, 0.55));
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(94, 122, 175, 0.16);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--drift);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover { color: var(--foam); }

.modal-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.modal-desc { color: var(--drift); font-size: 0.88rem; margin-bottom: 16px; }

.modal-steps { margin-bottom: 16px; }

.modal-help summary {
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--radiant);
}

.modal-help ol {
  margin: 10px 0 0 18px;
  font-size: 0.82rem;
  color: var(--drift);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.modal-help a { color: var(--radiant); }

.modal-actions { display: flex; gap: 10px; margin-top: 18px; }

.host-row { display: flex; align-items: center; gap: 8px; }
.host-row .form-input { flex: 1; min-width: 0; }

.host-suffix {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--drift);
  white-space: nowrap;
}

.deploy-wave-target {
  margin-bottom: 12px;
  padding: 10px 12px;
  font-size: 0.82rem;
  color: var(--drift);
  background: var(--shoal);
  border: 1px solid var(--reef);
  border-radius: var(--radius);
}

.deploy-wave-target strong { color: var(--foam); font-family: var(--mono); font-weight: 500; }

/* ---- Status ------------------------------------------------------------- */

.deploy-status {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  border: 1px solid transparent;
}

.status-loading {
  background: rgba(75, 139, 245, 0.08);
  border-color: rgba(75, 139, 245, 0.3);
  color: var(--radiant);
}

.status-success {
  background: rgba(63, 208, 173, 0.08);
  border-color: rgba(63, 208, 173, 0.3);
  color: var(--crest);
}

.status-success a { color: var(--crest); }

.status-error {
  background: rgba(229, 100, 107, 0.08);
  border-color: rgba(229, 100, 107, 0.35);
  color: var(--coral);
}

.status-warn {
  background: rgba(240, 180, 84, 0.08);
  border-color: rgba(240, 180, 84, 0.35);
  color: var(--flare);
}

.deploy-note { color: var(--drift); font-size: 0.78rem; }
.deploy-warn { color: var(--flare); font-size: 0.82rem; }

.loading-spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--shoal);
  color: var(--foam);
  border: 1px solid var(--reef);
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  box-shadow: var(--shadow);
  z-index: 100;
}

/* ---- Footer ------------------------------------------------------------- */

.app-footer {
  border-top: 1px solid var(--reef);
  padding: 24px 0;
  margin-top: 40px;
}

.app-footer p { color: var(--drift); font-size: 0.8rem; }

/* ---- Responsive --------------------------------------------------------- */

@media (max-width: 900px) {
  .builder-layout { grid-template-columns: 1fr; }
  .builder-preview-panel { position: static; }
  #preview-frame { height: 60vh; }
  .section-title { font-size: 1.6rem; }
}

/* Opt-in rows (SURF listing) */
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.82rem;
  color: var(--drift);
  cursor: pointer;
}

.check-row input { margin-top: 3px; accent-color: var(--radiant); }
.check-row strong { color: var(--foam); }

.btn-danger { background: var(--coral); color: #fff; }
.btn-danger:hover:not(:disabled) { background: #d14a52; }

/* ---- Landing hero (signed-out) ------------------------------------------ */

.hero {
  padding: 28px 0 56px;
  border-bottom: 1px solid var(--reef);
  margin-bottom: 44px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 22ch;
}

.hero-accent {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin-top: 14px;
  max-width: 62ch;
  color: var(--drift);
  font-size: 1.02rem;
}

.hero-mono {
  font-family: var(--mono);
  font-size: 0.92em;
  color: var(--foam);
}

.hero-actions { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }

.hero-steps {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.hero-step {
  padding: 18px 20px;
  background: linear-gradient(160deg, rgba(20, 28, 46, 0.72), rgba(10, 15, 26, 0.55));
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(94, 122, 175, 0.16);
  border-radius: var(--radius-lg);
}

.hero-step-num {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--radiant);
  letter-spacing: 0.08em;
}

.hero-step-title {
  margin-top: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}

.hero-step-desc { margin-top: 4px; font-size: 0.85rem; color: var(--drift); }

.hero-note { margin-top: 24px; font-size: 0.85rem; color: var(--drift); max-width: 60ch; }

/* ---- Bring your own site ------------------------------------------------ */

.upload-panel {
  margin-top: 36px;
  padding: 24px;
  background: linear-gradient(160deg, rgba(20, 28, 46, 0.72), rgba(10, 15, 26, 0.55));
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(94, 122, 175, 0.16);
  border-radius: var(--radius-lg);
}

.upload-drop {
  margin-top: 16px;
  display: block;
  padding: 26px;
  text-align: center;
  border: 1px dashed var(--reef);
  border-radius: var(--radius);
  color: var(--drift);
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.upload-drop:hover,
.upload-drop.drag-over { border-color: rgba(0, 212, 255, 0.45); box-shadow: var(--glow-cyan); }

.upload-drop code {
  font-family: var(--mono);
  background: rgba(17, 24, 39, 0.7);
  padding: 1px 5px;
  border-radius: 4px;
}

.label-soft { font-weight: 400; color: var(--drift); font-size: 0.75rem; }

.css-textarea { font-family: var(--mono); font-size: 0.8rem; min-height: 96px; }
