@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600;700&family=Orbitron:wght@400;700;900&family=Space+Grotesk:wght@300;400;500;600;700&display=swap");

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

/* ══════════════════════════════════════════════════
   SHELL CSS VARIABLES
   Set by applyTokensToUI() in app.js from YAML tokens.
   All shell chrome (sidebar, header, buttons, editor)
   reads from these — zero hardcoded colours below.
   ══════════════════════════════════════════════════ */
:root {
  --sidebar-w: 360px;

  /* Populated by JS from YAML */
  --shell-bg:           #f0f4ff;
  --shell-surface:      #ffffff;
  --shell-surface-2:    #e8eeff;
  --shell-surface-3:    #f8faff;
  --shell-border:       #c8d4f0;
  --shell-border-hi:    #a0b4e0;
  --shell-text:         #1e2a4a;
  --shell-text-sec:     #4a5878;
  --shell-text-muted:   #7a8aaa;
  --shell-accent:       #2563eb;
  --shell-editor-bg:    #f5f8ff;
  --shell-editor-text:  #3a4a70;
  --shell-scrollbar:    #c0cce8;
  --shell-error-bg:     #fff0f0;
  --shell-error-text:   #c0392b;
  --shell-error-border: #f5c6c6;
  --scanline-opacity:   0;          /* 0 = off for light; JS sets to 0.03 for dark */

  /* Effects & motion — populated by JS from the Effects & Motion panel */
  --tok-border-w:       1px;
  --tok-border-style:   solid;
  --tok-anim-speed:     1;

  /* Fluid easing used across the sidebar's own interactions (accordion,
     toggle groups, hovers) — a snappy "ease-out-expo" feel. */
  --ease-fluid:      cubic-bezier(0.16, 1, 0.3, 1);
  --ease-fluid-soft: cubic-bezier(0.25, 0.8, 0.35, 1);
}

/* scanline overlay (only visible when --scanline-opacity > 0) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 80, var(--scanline-opacity)) 2px,
    rgba(0, 0, 80, var(--scanline-opacity)) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

body {
  background: var(--shell-bg);
}

#app {
  display: flex;
  height: 100vh;
  min-height: 700px;
  font-family: var(--tok-ff, 'Space Grotesk', sans-serif);
  background: var(--shell-bg);
  color: var(--shell-text);
  overflow: hidden;
}

/* ── SIDEBAR ───────────────────────────────────── */
#sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--shell-border);
  background: var(--shell-surface);
  position: relative;
  animation: slide-in-left 0.3s ease both;
}

#sidebar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--shell-accent),
    transparent
  );
  opacity: 0.5;
}

#sh {
  padding: 13px 14px;
  border-bottom: 1px solid var(--shell-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--shell-surface-3);
}

#sh span {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--shell-text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.btn-group {
  display: flex;
  gap: 6px;
}

#ab,
#ib {
  border: none;
  border-radius: 4px;
  padding: 6px 13px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s var(--ease-fluid-soft), transform 0.25s var(--ease-fluid), box-shadow 0.25s var(--ease-fluid-soft), border-color 0.2s var(--ease-fluid-soft);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
#ab {
  background: var(--shell-accent);
  color: #fff;
  box-shadow: 0 2px 12px color-mix(in srgb, var(--shell-accent) 40%, transparent);
}
#ib {
  background: transparent;
  color: var(--shell-text-sec);
  border: 1px solid var(--shell-border-hi);
}
#ab:hover {
  opacity: 0.85;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px color-mix(in srgb, var(--shell-accent) 60%, transparent);
}
#ib:hover {
  color: var(--shell-text);
  border-color: var(--shell-accent);
  transform: translateY(-1px);
}
#ab:active,
#ib:active {
  transform: scale(0.96);
}

#ye {
  flex: 1;
  resize: none;
  background: var(--shell-editor-bg);
  color: var(--shell-editor-text);
  border: none;
  outline: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  line-height: 1.75;
  padding: 14px;
  overflow-y: auto;
  tab-size: 2;
  caret-color: var(--shell-accent);
}

#eb {
  padding: 9px 14px;
  font-size: 11px;
  color: var(--shell-error-text);
  background: var(--shell-error-bg);
  display: none;
  border-top: 1px solid var(--shell-error-border);
  font-family: 'JetBrains Mono', monospace;
}

#export-area {
  padding: 10px 12px;
  border-top: 1px solid var(--shell-border);
}

/* ── Single "generate design system" CTA ────────── */
.generate-btn {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: linear-gradient(135deg, var(--shell-accent), color-mix(in srgb, var(--shell-accent) 70%, #7c3aed));
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 10px;
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  box-shadow: 0 4px 18px color-mix(in srgb, var(--shell-accent) 40%, transparent);
  transition: transform 0.25s var(--ease-fluid), box-shadow 0.25s var(--ease-fluid-soft), opacity 0.2s ease;
  position: relative;
  overflow: hidden;
}
.generate-btn-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.generate-btn-sub {
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.75);
}
.generate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px color-mix(in srgb, var(--shell-accent) 55%, transparent);
}
.generate-btn:active { transform: translateY(0) scale(0.97); }
.generate-btn.flash { animation: border-glow 0.5s ease; }
.generate-btn.generating {
  cursor: wait;
  opacity: 0.85;
}
.generate-btn.generating .generate-btn-label::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-left: 8px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  vertical-align: -1px;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── MAIN CANVAS ────────────────────────────────── */
#main {
  flex: 1;
  overflow-y: auto;
  padding: 24px 22px;
  background: var(--shell-bg);
  scroll-behavior: smooth;
}

/* ── SECTION / CATEGORY ─────────────────────────── */
.cat {
  margin-bottom: 36px;
  animation: fadeUp 0.4s ease both;
}

.cat-title {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--shell-text-muted);
  margin-bottom: 14px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--shell-border);
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: 'JetBrains Mono', monospace;
}
.cat-title::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 11px;
  border-radius: 1px;
  background: var(--p-color, var(--shell-accent));
  box-shadow: 0 0 6px var(--p-color, var(--shell-accent));
}

/* ── GRID ───────────────────────────────────────── */
.grid {
  display: grid;
  gap: 10px;
}
.g2 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.g5 { grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); }

/* ── TILE BASE ──────────────────────────────────── */
.tile {
  background: var(--shell-surface);
  border-radius: 8px;
  padding: 14px;
  border: var(--tok-border-w, 1px) var(--tok-border-style, solid) var(--shell-border);
  overflow: hidden;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.tile:hover {
  transform: translateY(-2px);
  border-color: var(--shell-border-hi);
  box-shadow: 0 8px 32px color-mix(in srgb, var(--shell-accent) 12%, transparent);
}

.tile-label {
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--shell-text-muted);
  margin-bottom: 10px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}

/* ── TYPOGRAPHY SPECIMEN ────────────────────────── */
.type-row {
  padding: 10px 14px;
  background: var(--shell-surface);
  border-radius: 6px;
  border: var(--tok-border-w, 1px) var(--tok-border-style, solid) var(--shell-border);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 5px;
  transition: background 0.18s, border-color 0.18s;
}
.type-row:hover {
  background: var(--shell-surface-3);
  border-color: var(--shell-border-hi);
}

/* ── GRADIENT TILE ──────────────────────────────── */
.grad-tile {
  border-radius: 8px;
  border: var(--tok-border-w, 1px) var(--tok-border-style, solid) var(--shell-border);
  overflow: hidden;
  aspect-ratio: 16/9;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.grad-tile:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 32px color-mix(in srgb, var(--shell-accent) 25%, transparent);
}
.grad-tile.animated-grad {
  background-size: 200% 200% !important;
  animation: gradient-shift calc(4s / var(--tok-anim-speed, 1)) ease infinite;
}

/* ── SHADOW SWATCH ──────────────────────────────── */
.shadow-swatch {
  background: var(--shell-surface);
  border-radius: 8px;
  padding: 14px;
  border: var(--tok-border-w, 1px) var(--tok-border-style, solid) var(--shell-border);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.2s;
}
.shadow-swatch:hover {
  transform: translateY(-2px);
}

/* ── MINI SCREEN ────────────────────────────────── */
.mini-screen {
  border-radius: 8px;
  border: var(--tok-border-w, 1px) var(--tok-border-style, solid) var(--shell-border);
  overflow: hidden;
  background: var(--shell-surface);
}
.mini-screen-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  background: var(--shell-surface-3);
  border-bottom: 1px solid var(--shell-border);
}
.mini-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.mini-screen-body {
  padding: 12px;
}

/* ── BADGE ──────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  animation: float calc(3.5s / var(--tok-anim-speed, 1)) ease-in-out infinite;
}

/* ── INPUT SPECIMEN ─────────────────────────────── */
.input-spec {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: inherit;
  pointer-events: none;
}

/* ── PROGRESS BAR ───────────────────────────────── */
.progress-track {
  height: 5px;
  border-radius: 2px;
  background: var(--shell-border);
  overflow: hidden;
  margin-top: 6px;
}
.progress-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.4s ease;
  animation: count-bar 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.progress-fill:nth-child(1) { animation-delay: 0.3s; }
.progress-fill:nth-child(2) { animation-delay: 0.45s; }
.progress-fill:nth-child(3) { animation-delay: 0.6s; }

/* ── AVATAR STACK ───────────────────────────────── */
.avatar-stack {
  display: flex;
}
.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--shell-bg);
  margin-left: -6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  flex-shrink: 0;
  transition: margin-left 0.25s, transform 0.2s;
}
.avatar:first-child { margin-left: 0; }
.avatar-stack:hover .avatar { margin-left: 0; }
.avatar-stack .avatar:hover {
  transform: translateY(-3px) scale(1.1);
  z-index: 2;
}

/* ── CHART TILE ─────────────────────────────────── */
.chart-tile {
  position: relative;
}

/* ── TOOLTIP DEMO ───────────────────────────────── */
.tooltip-wrap {
  position: relative;
  display: inline-block;
}
.tooltip-box {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
  pointer-events: none;
}

/* ── BANNER COMPONENT ───────────────────────────── */
.banner-comp {
  border-radius: 8px;
  overflow: hidden;
  border: var(--tok-border-w, 1px) var(--tok-border-style, solid) var(--shell-border);
  position: relative;
}

/* ── THUMBNAIL GRID ─────────────────────────────── */
.thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
}
.thumb-item {
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 16/9;
  position: relative;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.thumb-item:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--shell-accent) 30%, transparent);
}

/* ── WINDOW COMPONENT ───────────────────────────── */
.window-comp {
  border-radius: 8px;
  overflow: hidden;
  border: var(--tok-border-w, 1px) var(--tok-border-style, solid) var(--shell-border);
  background: var(--shell-surface);
}
.window-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  background: var(--shell-surface-3);
  border-bottom: 1px solid var(--shell-border);
}
.window-btn {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.window-body {
  padding: 14px;
}

/* ── TABLE COMPONENT ────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}
.data-table th {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 7px 10px;
  text-align: left;
  border-bottom: 1px solid var(--shell-border-hi);
  color: var(--shell-text-muted);
}
.data-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--shell-border);
  font-family: 'JetBrains Mono', monospace;
}
.data-table tr:last-child td {
  border-bottom: none;
}
.data-table tr:hover td {
  background: color-mix(in srgb, var(--shell-accent) 4%, transparent);
}

/* ── TAG / CHIP ─────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.05em;
}

/* ── BREADCRUMB ─────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
}

/* ── STAT CARD ──────────────────────────────────── */
.stat-card {
  background: var(--shell-surface);
  border: var(--tok-border-w, 1px) var(--tok-border-style, solid) var(--shell-border);
  border-radius: 8px;
  padding: 14px;
  position: relative;
  overflow: hidden;
}
.stat-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--p-color, var(--shell-accent));
  opacity: 0.6;
}

/* ── TIMELINE ───────────────────────────────────── */
.timeline-item {
  display: flex;
  gap: 12px;
  padding-bottom: 16px;
  position: relative;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 16px;
  bottom: 0;
  width: 1px;
  background: var(--shell-border);
}
.timeline-item:last-child::before {
  display: none;
}
.timeline-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
  border: 2px solid currentColor;
}

/* ════════════════════════════════════════════════
   ANIMATIONS
   ════════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 currentColor; opacity: 1; }
  50%       { box-shadow: 0 0 0 5px transparent; opacity: 0.6; }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
@keyframes gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes count-bar {
  from { width: 0 !important; }
}
@keyframes border-glow {
  0%, 100% { box-shadow: none; }
  50%       { box-shadow: 0 0 18px var(--p-color, var(--shell-accent)); }
}
@keyframes slide-in-left {
  from { opacity: 0; transform: translateX(-10px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-4px); }
}
@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
@keyframes neon-flicker {
  0%, 95%, 100% { opacity: 1; }
  96%  { opacity: 0.4; }
  97%  { opacity: 1; }
  98%  { opacity: 0.2; }
  99%  { opacity: 0.8; }
}
@keyframes scan-line {
  0%   { top: -5%; }
  100% { top: 105%; }
}
@keyframes pixel-reveal {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0% 0 0); }
}

/* ── Entry animation stagger ────────────────────── */
.cat:nth-child(1)  { animation-delay: 0.03s; }
.cat:nth-child(2)  { animation-delay: 0.08s; }
.cat:nth-child(3)  { animation-delay: 0.13s; }
.cat:nth-child(4)  { animation-delay: 0.18s; }
.cat:nth-child(5)  { animation-delay: 0.23s; }
.cat:nth-child(6)  { animation-delay: 0.28s; }
.cat:nth-child(7)  { animation-delay: 0.33s; }
.cat:nth-child(8)  { animation-delay: 0.38s; }
.cat:nth-child(9)  { animation-delay: 0.43s; }
.cat:nth-child(10) { animation-delay: 0.48s; }
.cat:nth-child(11) { animation-delay: 0.53s; }
.cat:nth-child(12) { animation-delay: 0.58s; }
.cat:nth-child(13) { animation-delay: 0.63s; }
.cat:nth-child(14) { animation-delay: 0.68s; }

/* ── Shimmer card ───────────────────────────────── */
.shimmer-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255,255,255,0.18) 50%,
    transparent 70%
  );
  background-size: 200% 100%;
  animation: shimmer calc(2.8s / var(--tok-anim-speed, 1)) linear infinite;
  border-radius: inherit;
  pointer-events: none;
}

/* ── Status dot ─────────────────────────────────── */
.status-dot {
  animation: pulse-dot calc(2s / var(--tok-anim-speed, 1)) ease-in-out infinite;
}

/* ── Notification slide ─────────────────────────── */
.notif-row { animation: slide-in-left 0.35s ease both; }
.notif-row:nth-child(1) { animation-delay: 0.10s; }
.notif-row:nth-child(2) { animation-delay: 0.18s; }
.notif-row:nth-child(3) { animation-delay: 0.26s; }
.notif-row:nth-child(4) { animation-delay: 0.34s; }

/* ── Swatch reveal ──────────────────────────────── */
.swatch-tile { animation: fadeUp 0.3s ease both; }
.swatch-tile:nth-child(1) { animation-delay: 0.05s; }
.swatch-tile:nth-child(2) { animation-delay: 0.10s; }
.swatch-tile:nth-child(3) { animation-delay: 0.15s; }
.swatch-tile:nth-child(4) { animation-delay: 0.20s; }
.swatch-tile:nth-child(5) { animation-delay: 0.25s; }
.swatch-tile:nth-child(6) { animation-delay: 0.30s; }
.swatch-tile:nth-child(7) { animation-delay: 0.35s; }
.swatch-tile:nth-child(8) { animation-delay: 0.40s; }
.swatch-tile:nth-child(9) { animation-delay: 0.45s; }

/* ── Apply button flash ─────────────────────────── */
#ab.flash { animation: border-glow 0.4s ease; }

/* ── Mini dot blink ─────────────────────────────── */
.mini-dot-live { animation: pulse-dot calc(1.6s / var(--tok-anim-speed, 1)) ease-in-out infinite; }

/* ── Neon glow text ─────────────────────────────── */
.neon-text { animation: neon-flicker calc(6s / var(--tok-anim-speed, 1)) ease-in-out infinite; }

/* ── Pixel reveal text ──────────────────────────── */
.pixel-reveal { animation: pixel-reveal 0.6s cubic-bezier(0.22, 1, 0.36, 1) both; }

/* ── Scrollbars ─────────────────────────────────── */
#main::-webkit-scrollbar        { width: 4px; }
#main::-webkit-scrollbar-track  { background: transparent; }
#main::-webkit-scrollbar-thumb  { background: var(--shell-scrollbar); border-radius: 2px; transition: background 0.2s; }
#main::-webkit-scrollbar-thumb:hover { background: var(--shell-accent); }
#ye::-webkit-scrollbar          { width: 3px; }
#ye::-webkit-scrollbar-track    { background: transparent; }
#ye::-webkit-scrollbar-thumb    { background: var(--shell-border); border-radius: 2px; }

/* ════════════════════════════════════════════════
   TOKEN FORM — SIDEBAR UI
   ════════════════════════════════════════════════ */

#token-form {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}
#token-form::-webkit-scrollbar       { width: 3px; }
#token-form::-webkit-scrollbar-track { background: transparent; }
#token-form::-webkit-scrollbar-thumb { background: var(--shell-border); border-radius: 2px; }

/* ── Collapsible section ────────────────────── */
.section {
  border-bottom: 1px solid var(--shell-border);
  /* Height is driven by JS (see Accordion in app.js) via the Web
     Animations API for a smooth expand/collapse instead of the native
     instant show/hide. `overflow` is toggled to hidden only while that
     animation runs, so focus outlines etc. aren't clipped at rest. */
}
.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--shell-text-sec);
  font-family: 'JetBrains Mono', monospace;
  cursor: pointer;
  user-select: none;
  list-style: none;
  background: var(--shell-surface-3);
  position: relative;
  transition: background 0.2s var(--ease-fluid-soft), color 0.2s var(--ease-fluid-soft), padding-left 0.25s var(--ease-fluid);
}
.section-title:hover {
  background: var(--shell-surface-2);
  color: var(--shell-text);
  padding-left: 18px;
}
.section-title::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--shell-accent);
  transform: scaleY(0);
  transition: transform 0.25s var(--ease-fluid);
  transform-origin: center;
}
.section-title:hover::before,
details[open] > .section-title::before {
  transform: scaleY(1);
}
.section-title::marker,
.section-title::-webkit-details-marker { display: none; }
.section-title::after {
  content: "›";
  margin-left: auto;
  font-size: 13px;
  transition: transform 0.3s var(--ease-fluid);
  color: var(--shell-text-muted);
}
details[open] > .section-title::after {
  transform: rotate(90deg);
}
.section-icon {
  font-size: 11px;
  color: var(--shell-accent);
  display: inline-block;
  transition: transform 0.3s var(--ease-fluid);
}
.section-title:hover .section-icon {
  transform: scale(1.15);
}

.section-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--shell-surface);
}

/* Staggered reveal of a section's fields each time it springs open
   (retriggers because the JS accordion re-adds [open] fresh on expand). */
@keyframes fieldReveal {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
details.section[open] > .section-body > * {
  animation: fieldReveal 0.32s var(--ease-fluid) both;
}
details.section[open] > .section-body > *:nth-child(1)  { animation-delay: 0.02s; }
details.section[open] > .section-body > *:nth-child(2)  { animation-delay: 0.05s; }
details.section[open] > .section-body > *:nth-child(3)  { animation-delay: 0.08s; }
details.section[open] > .section-body > *:nth-child(4)  { animation-delay: 0.11s; }
details.section[open] > .section-body > *:nth-child(5)  { animation-delay: 0.14s; }
details.section[open] > .section-body > *:nth-child(6)  { animation-delay: 0.17s; }
details.section[open] > .section-body > *:nth-child(7)  { animation-delay: 0.20s; }
details.section[open] > .section-body > *:nth-child(8)  { animation-delay: 0.23s; }
details.section[open] > .section-body > *:nth-child(9)  { animation-delay: 0.26s; }
details.section[open] > .section-body > *:nth-child(n+10) { animation-delay: 0.29s; }

/* ── Generic field ──────────────────────────── */
.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.field label,
.color-field label,
.slider-field label {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--shell-text-muted);
  font-family: 'JetBrains Mono', monospace;
}
.field input[type="text"],
.field input[type="number"] {
  background: var(--shell-editor-bg);
  border: 1px solid var(--shell-border);
  border-radius: 4px;
  padding: 6px 8px;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--shell-text);
  outline: none;
  transition: border-color 0.2s var(--ease-fluid-soft), box-shadow 0.25s var(--ease-fluid-soft);
  width: 100%;
}
.field input[type="text"]:focus,
.field input[type="number"]:focus {
  border-color: var(--shell-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--shell-accent) 15%, transparent);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  min-width: 0;
}

/* ── Segmented toggle groups (theme, density, button shape…) ───────── */
.toggle-row {
  display: flex;
  gap: 0;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid var(--shell-border);
  position: relative;
}
/* Sliding "pill" behind the active button — sized & positioned by
   initToggleIndicators()/placeIndicator() in app.js, animated with a
   fluid spring-like easing so switching options feels tactile. */
.toggle-indicator {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0;
  background: var(--shell-accent);
  box-shadow: 0 2px 10px color-mix(in srgb, var(--shell-accent) 45%, transparent);
  opacity: 0;
  transition: transform 0.4s var(--ease-fluid), width 0.4s var(--ease-fluid), opacity 0.2s ease;
  pointer-events: none;
  z-index: 0;
}
.toggle-btn {
  position: relative;
  z-index: 1;
  flex: 1;
  padding: 6px 8px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-family: 'JetBrains Mono', monospace;
  background: transparent;
  color: var(--shell-text-muted);
  border: none;
  cursor: pointer;
  transition: color 0.3s var(--ease-fluid), transform 0.15s var(--ease-fluid);
}
.toggle-btn.active {
  color: #fff;
}
.toggle-btn:not(.active):hover {
  color: var(--shell-text);
}
.toggle-btn:active {
  transform: scale(0.94);
}

/* ── Color field ────────────────────────────── */
.color-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  min-width: 0;
}
.color-field {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.color-field.mini {
  flex: 1;
  min-width: 0;
}
.color-preview-wrap {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
}
.color-field.mini .color-preview-wrap {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}
.color-preview-wrap input[type="color"] {
  position: absolute;
  inset: 0;
  width: 130%;
  height: 130%;
  top: -15%;
  left: -15%;
  opacity: 0;
  cursor: pointer;
  border: none;
  padding: 0;
}
.color-preview {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(0,0,0,0.08);
  pointer-events: none;
  transition: transform 0.3s var(--ease-fluid), box-shadow 0.3s var(--ease-fluid-soft);
}
.color-preview-wrap:hover .color-preview {
  transform: scale(0.9) rotate(-4deg);
  box-shadow: 0 3px 10px rgba(0,0,0,0.18);
}
.color-preview-wrap:active .color-preview {
  transform: scale(0.82) rotate(0deg);
  transition-duration: 0.1s;
}
.color-field label {
  font-size: 7.5px;
}
.color-hex {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--shell-border);
  padding: 2px 0;
  font-size: 9px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--shell-text-sec);
  text-align: center;
  outline: none;
  transition: border-color 0.15s;
}
.color-hex:focus { border-color: var(--shell-accent); }

/* ── Subsection label ───────────────────────── */
.subsection-label {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--shell-text-muted);
  font-family: 'JetBrains Mono', monospace;
  padding-top: 4px;
  border-top: 1px dashed var(--shell-border);
  margin-top: 2px;
}

/* ── Gradient field ─────────────────────────── */
.grad-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  background: var(--shell-editor-bg);
  border-radius: 6px;
  border: 1px solid var(--shell-border);
}
.grad-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.grad-label-row label {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--shell-text-muted);
  font-family: 'JetBrains Mono', monospace;
}
.grad-preview {
  width: 80px;
  height: 12px;
  border-radius: 3px;
  border: 1px solid var(--shell-border);
  flex-shrink: 0;
}
.angle-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  min-width: 44px;
}
.angle-field input[type="number"] {
  width: 44px;
  text-align: center;
  padding: 4px 4px;
}

/* ── Slider field ───────────────────────────── */
.slider-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
  min-width: 0; /* grid items below don't get free rein to blow out this container */
}
.slider-field {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0; /* a grid item's default min-width is its content's, not 0 — override it */
}
.slider-field label {
  width: 38px;
  flex-shrink: 0;
  font-size: 8px;
}
.slider-field input[type="range"] {
  flex: 1;
  min-width: 0; /* <input type=range> has a ~130px intrinsic min-width by default */
  height: 3px;
  appearance: none;
  -webkit-appearance: none;
  background: var(--shell-border);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  transition: background 0.2s var(--ease-fluid-soft);
}
.slider-field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--shell-accent);
  cursor: pointer;
  transition: transform 0.25s var(--ease-fluid), box-shadow 0.25s var(--ease-fluid);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--shell-accent) 20%, transparent);
}
.slider-field input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.3);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--shell-accent) 25%, transparent);
}
.slider-field input[type="range"]:active::-webkit-slider-thumb {
  transform: scale(1.5);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--shell-accent) 30%, transparent);
}
.slider-field input[type="range"]::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--shell-accent);
  cursor: pointer;
  border: none;
  transition: transform 0.25s var(--ease-fluid), box-shadow 0.25s var(--ease-fluid);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--shell-accent) 20%, transparent);
}
.slider-field input[type="range"]:hover::-moz-range-thumb {
  transform: scale(1.3);
}
.slider-val {
  font-size: 9px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--shell-text-sec);
  width: 22px;
  text-align: right;
  flex-shrink: 0;
  display: inline-block;
  transition: transform 0.2s var(--ease-fluid);
}
.slider-val.pulse {
  transform: scale(1.35);
  color: var(--shell-accent);
}

/* ══════════════════════════════════════════════════
   EXTRA PREVIEW COMPONENTS
   (colors/radii/shadows are inlined per-token by JS;
   these rules only carry structure + motion)
   ══════════════════════════════════════════════════ */

/* ── Alert ──────────────────────────────────────── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  animation: fadeUp 0.35s ease both;
}

/* ── Toast stack ────────────────────────────────── */
.toast-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slide-in-left 0.35s ease both;
}
.toast:nth-child(1) { animation-delay: 0.05s; }
.toast:nth-child(2) { animation-delay: 0.15s; }
.toast:nth-child(3) { animation-delay: 0.25s; }

/* ── Navbar ─────────────────────────────────────── */
.navbar {
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav-link {
  cursor: pointer;
  transition: color 0.15s, opacity 0.15s;
  white-space: nowrap;
}
.nav-link:hover { opacity: 0.75; }

/* ── Tabs ───────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
}
.tab {
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

/* ── Segmented control ──────────────────────────── */
.segmented {
  display: inline-flex;
  width: fit-content;
}
.seg-item {
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

/* ── Pagination ─────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.page-item {
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  user-select: none;
}
.page-item:hover:not(.active):not(.disabled) {
  border-color: var(--shell-border-hi);
}

/* ── Select box ─────────────────────────────────── */
.select-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

/* ── Radio group ────────────────────────────────── */
.radio-item {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
}
.radio-dot-outer {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.15s;
}
.radio-dot-inner {
  border-radius: 50%;
  transition: transform 0.15s;
}

/* ── Range slider preview ───────────────────────── */
.range-demo-track {
  position: relative;
  border-radius: 3px;
}
.range-demo-fill {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  border-radius: 3px;
}
.range-demo-thumb {
  position: absolute;
  top: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: transform 0.15s;
}
.range-demo-thumb:hover { transform: translate(-50%, -50%) scale(1.15); }

/* ── Search input ───────────────────────────────── */
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

/* ── File dropzone ──────────────────────────────── */
.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

/* ── Accordion ──────────────────────────────────── */
.accordion-item { overflow: hidden; }
.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}
.accordion-chevron { transition: transform 0.2s; }
.accordion-item.open .accordion-chevron { transform: rotate(180deg); }
.accordion-body { animation: fadeUp 0.25s ease both; }

/* ── List group ─────────────────────────────────── */
.list-group { display: flex; flex-direction: column; }
.list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: background 0.15s;
}

/* ── Testimonial ────────────────────────────────── */
.testimonial-quote { position: relative; }

/* ── Empty state ────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* ── Skeleton loader ─────────────────────────────── */
.skeleton {
  position: relative;
  overflow: hidden;
}
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  background-size: 200% 100%;
  animation: shimmer calc(1.4s / var(--tok-anim-speed, 1)) linear infinite;
}

/* ── Rating stars ───────────────────────────────── */
.rating-row { display: flex; gap: 3px; }
.rating-star { transition: transform 0.15s; }
.rating-row:hover .rating-star { transform: scale(1.08); }
/* ════════════════════════════════════════════════
   RESPONSIVE / MOBILE
   The two-pane layout (fixed-width sidebar + flexible
   canvas) is desktop-first; below these breakpoints the
   panes stack instead of squeezing side-by-side.
   ════════════════════════════════════════════════ */

/* Short viewports (landscape phones, small laptop windows): the desktop
   layout enforces a tall minimum height so the app never looks cramped,
   but that same floor pushes #app taller than a short screen, forcing an
   awkward outer scroll. Drop it once the viewport itself is the limit. */
@media (max-height: 700px) {
  #app {
    min-height: 0;
  }
}

/* Phones & narrow tablets: stack the sidebar above the canvas instead of
   forcing a fixed 360px rail into a viewport that's often narrower than
   that on its own. */
@media (max-width: 760px) {
  #app {
    flex-direction: column;
    height: 100dvh;
  }
  #sidebar {
    width: 100%;
    max-height: 50vh;
    border-right: none;
    border-bottom: 1px solid var(--shell-border);
    animation: fadeIn 0.3s ease both;
  }
  #main {
    flex: 1;
    min-height: 0;
    padding: 18px 16px;
  }
  #sh {
    flex-wrap: wrap;
    row-gap: 8px;
  }
}

/* Small phones: tighten spacing and let a couple of grids drop to fewer
   columns so controls stay comfortably tappable instead of cramped. */
@media (max-width: 420px) {
  #sh {
    padding: 10px 12px;
  }
  #main {
    padding: 14px 12px;
  }
  .cat-title {
    font-size: 7.5px;
  }
  .color-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .slider-grid {
    grid-template-columns: 1fr;
  }
  .toggle-btn {
    font-size: 8px;
    padding: 6px 4px;
    letter-spacing: 0.04em;
  }
  .generate-btn-sub {
    font-size: 7.5px;
  }
  .g2, .g3, .g4, .g5 {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════════════════════
   FIRST-VISIT INTRO / SPLASH SCREEN
   Fixed brand identity — intentionally NOT wired to the
   editable design tokens (it must render before the app,
   and represent the product itself, not the current preview).
   ══════════════════════════════════════════════════ */
#intro-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(120% 120% at 50% 0%, #10142e 0%, #060714 55%, #030309 100%);
  font-family: 'Space Grotesk', sans-serif;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s;
}

#intro-screen.intro-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#intro-screen.intro-skip {
  display: none;
}

.intro-noise {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 255, 255, 0.015) 2px, rgba(255, 255, 255, 0.015) 4px);
  pointer-events: none;
}

.intro-glow {
  position: absolute;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  opacity: 0.35;
  animation: intro-drift 9s ease-in-out infinite alternate;
}
.intro-glow-a {
  background: #2563eb;
  top: -15%;
  left: -10%;
}
.intro-glow-b {
  background: #7c3aed;
  bottom: -20%;
  right: -10%;
  animation-delay: -4s;
}
@keyframes intro-drift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(4%, 6%) scale(1.12); }
}

.intro-stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px;
}

/* — Loader stage — */
#intro-stage-loader {
  transition: opacity 0.45s ease, transform 0.45s ease;
}
#intro-stage-loader.intro-fade-out {
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  position: absolute;
}

.intro-logo {
  position: relative;
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}
.intro-logo-mark {
  font-size: 34px;
  color: #6d8bff;
  text-shadow: 0 0 24px rgba(109, 139, 255, 0.7);
  animation: intro-pulse 1.8s ease-in-out infinite;
}
.intro-logo-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(109, 139, 255, 0.35);
  border-top-color: #6d8bff;
  animation: intro-spin 1.4s linear infinite;
}
@keyframes intro-spin {
  to { transform: rotate(360deg); }
}
@keyframes intro-pulse {
  0%, 100% { opacity: 0.75; transform: scale(0.96); }
  50%      { opacity: 1;    transform: scale(1.06); }
}

.intro-loader-track {
  width: 220px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.intro-loader-fill {
  height: 100%;
  width: 0%;
  border-radius: 2px;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  box-shadow: 0 0 12px rgba(109, 139, 255, 0.6);
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.intro-loader-label {
  margin-top: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7280b0;
}
.intro-dots span {
  animation: intro-dot-blink 1.2s infinite;
  opacity: 0;
}
.intro-dots span:nth-child(2) { animation-delay: 0.2s; }
.intro-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes intro-dot-blink {
  0%, 100% { opacity: 0; }
  50%      { opacity: 1; }
}

/* — Presentation stage — */
.intro-stage-presentation {
  max-width: 480px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s;
}
.intro-stage-presentation.intro-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.intro-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6d8bff;
  margin-bottom: 14px;
}

.intro-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 40px;
  letter-spacing: 0.02em;
  color: #eef1ff;
  margin-bottom: 14px;
}
.intro-title-accent {
  background: linear-gradient(90deg, #6d8bff, #b98bff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.intro-tagline {
  font-size: 14px;
  line-height: 1.6;
  color: #9aa4cc;
  margin-bottom: 28px;
}

.intro-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-bottom: 32px;
}
.intro-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12.5px;
  color: #c4cbea;
  text-align: left;
}
.intro-feature-icon {
  flex-shrink: 0;
  font-size: 13px;
  color: #6d8bff;
}

.intro-enter-btn {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  border: none;
  border-radius: 10px;
  padding: 13px 28px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}
.intro-enter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.5);
}
.intro-enter-btn:active {
  transform: translateY(0);
}

@media (max-width: 520px) {
  .intro-title { font-size: 30px; }
  .intro-tagline { font-size: 13px; }
  .intro-stage { padding: 24px; }
}
