:root {
  color-scheme: dark;
  --bg: #0a0c10;
  --card: #11141b;
  --muted: #8b93a7;
  --text: #e8ecf5;
  --accent: #7cf6c4;
  --accent-2: #5bc0f8;
  --border: #1a1f2b;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: radial-gradient(circle at 20% 20%, rgba(124, 246, 196, 0.08), transparent 30%),
              radial-gradient(circle at 80% 10%, rgba(91, 192, 248, 0.08), transparent 30%),
              radial-gradient(circle at 60% 80%, rgba(255, 255, 255, 0.05), transparent 30%),
              var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding: 32px 24px 48px;
  overflow-x: hidden;
  max-width: 1200px;
  margin-inline: auto;
}

.bg.fx {
  position: fixed;
  filter: blur(70px);
  opacity: 0.45;
  z-index: 0;
  pointer-events: none;
}

.fx-a { width: 420px; height: 420px; background: rgba(124, 246, 196, 0.25); top: -120px; left: -60px; animation: float 18s ease-in-out infinite; }
.fx-b { width: 360px; height: 360px; background: rgba(91, 192, 248, 0.25); top: 120px; right: -120px; animation: float 22s ease-in-out infinite reverse; }
.fx-c { width: 500px; height: 500px; background: rgba(255, 255, 255, 0.05); bottom: -200px; left: 30%; animation: float 26s ease-in-out infinite; }

@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -20px, 0); }
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.logo-dot {
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, #7cf6c4, #5bc0f8);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(124, 246, 196, 0.12);
}

.logo-text { text-transform: uppercase; font-size: 13px; color: var(--muted); }

.hero {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  align-items: center;
  margin-bottom: 28px;
}

.hero-title {
  font-size: clamp(32px, 5vw, 46px);
  margin: 8px 0 12px;
  line-height: 1.05;
}

.hero-copy .lede.wide { max-width: 720px; }

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

.btn {
  border: none;
  border-radius: 14px;
  padding: 13px 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.08s ease, filter 0.15s ease, background 0.15s ease, box-shadow 0.2s ease;
  color: #0a0c10;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn.primary {
  background: linear-gradient(120deg, #7cf6c4, #5bc0f8);
  color: #04171c;
  box-shadow: 0 10px 30px rgba(91, 192, 248, 0.28);
}

.btn.ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.sparkle {
  position: relative;
  overflow: hidden;
}

.sparkle::after {
  content: '';
  position: absolute;
  inset: -120% -40%;
  background: radial-gradient(circle, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0) 50%);
  opacity: 0;
  transform: rotate(12deg);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.3s ease;
}

.sparkle:hover::after {
  opacity: 0.3;
  transform: rotate(0deg) translateY(-6%);
  animation: shimmer 1.6s linear infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-10%) translateY(-6%) rotate(0deg); }
  100% { transform: translateX(30%) translateY(-6%) rotate(0deg); }
}

.chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 12px;
  color: var(--text);
  font-size: 13px;
}

.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.panel-card {
  background: rgba(14, 18, 26, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.platform-preview {
  background: #0c1018;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  animation: pulse 6s ease-in-out infinite;
}

.platform-preview:last-child { margin-bottom: 0; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 rgba(124, 246, 196, 0); }
  50% { box-shadow: 0 0 24px rgba(91, 192, 248, 0.18); }
}

.preview-line {
  margin: 6px 0 0;
  color: #dce6ff;
  font-size: 14px;
}

.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.stat {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}

.stat-value {
  font-weight: 800;
  font-size: 22px;
}

.stat-label {
  color: var(--muted);
  font-size: 12px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 8px;
}

h1 {
  margin: 0 0 6px;
  font-size: 32px;
}

.lede {
  margin: 0;
  color: var(--muted);
  max-width: 720px;
}

.badge { display: none; }

.layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 20px;
}

.mini-nav {
  position: sticky;
  top: 10px;
  z-index: 3;
  display: inline-flex;
  gap: 8px;
  margin-bottom: 12px;
  background: rgba(10, 12, 16, 0.8);
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.mini-link {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  padding: 6px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.08s ease;
}

.mini-link:hover { transform: translateY(-1px); border-color: rgba(124, 246, 196, 0.4); }
.mini-link.disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.section-block {
  background: rgba(17, 20, 27, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}

.section-headline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 10px;
}

.badge-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ghost-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--muted);
}

.feature {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
}

.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(124, 246, 196, 0.15);
  border: 1px solid rgba(124, 246, 196, 0.25);
  font-size: 18px;
}

.stepper {
  display: flex;
  gap: 10px;
  margin: 4px 0 20px;
}

.stepper .step {
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  font-weight: 600;
}

.stepper .step.active {
  color: var(--text);
  border-color: rgba(124, 246, 196, 0.5);
  box-shadow: 0 0 12px rgba(124, 246, 196, 0.15);
}

.card {
  position: relative;
  background: rgba(17, 20, 27, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124, 246, 196, 0.05), rgba(91, 192, 248, 0.05));
  opacity: 0.8;
  pointer-events: none;
}

.card > * { position: relative; z-index: 1; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

input, textarea, select {
  background: #0c0f15;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 12px;
  font-size: 15px;
  transition: border 0.15s ease, box-shadow 0.15s ease;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(124, 246, 196, 0.12);
}

textarea { resize: vertical; }
.full { grid-column: 1 / -1; }

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

button {
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.08s ease, filter 0.15s ease, background 0.15s ease, box-shadow 0.2s ease;
  color: #0a0c10;
}

button:hover { transform: translateY(-1px); }
button:active { transform: translateY(0); }

#generate {
  background: linear-gradient(120deg, #7cf6c4, #5bc0f8);
  color: #04171c;
  box-shadow: 0 10px 30px rgba(91, 192, 248, 0.28);
}

.ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.ghost.small {
  padding: 8px 12px;
  font-size: 14px;
}

.hidden {
  display: none;
}

.hint {
  color: var(--muted);
  margin: 6px 0 0;
}

.hint.small { font-size: 13px; }
.hint.tiny { font-size: 12px; }

.slider {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
}

.slider input[type="range"] {
  accent-color: var(--accent);
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}

.slider-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.stack.wide { gap: 14px; }

.output-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.platform {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: linear-gradient(145deg, rgba(12, 16, 24, 0.95), rgba(9, 12, 18, 0.95));
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transform: translateY(0);
  transition: transform 0.12s ease, border-color 0.12s ease;
}

.platform:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 246, 196, 0.35);
}

.platform header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pill {
  padding: 4px 10px;
  background: rgba(124, 246, 196, 0.14);
  border-radius: 99px;
  color: var(--text);
  border: 1px solid var(--border);
  font-size: 12px;
}

.pill.glow {
  border-color: rgba(91, 192, 248, 0.5);
  box-shadow: 0 0 12px rgba(91, 192, 248, 0.25);
}

.pill.small-pill {
  padding: 6px 10px;
  font-size: 12px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--muted);
}

.pill.trimmed {
  background: rgba(255, 113, 113, 0.15);
  border-color: rgba(255, 113, 113, 0.45);
  color: #ffcfcf;
}

.posts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.post {
  background: #0b0f15;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  position: relative;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.post:hover {
  border-color: rgba(91, 192, 248, 0.5);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.post button.copy {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 12px;
}

.empty {
  color: var(--muted);
  padding: 12px;
}

.footer {
  margin-top: 24px;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

.stack { display: flex; gap: 10px; flex-direction: column; }
.stack.row { flex-direction: row; align-items: center; }

.gradient-text {
  background: linear-gradient(120deg, #7cf6c4, #5bc0f8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glass {
  backdrop-filter: blur(18px);
}

.faint {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 12px;
}

.toast {
  background: rgba(17, 20, 27, 0.96);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 12px;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  animation: toast-in 0.2s ease;
}

#toast-container {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.meter-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.meter-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.meter {
  position: relative;
  height: 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.meter-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 40%;
  border-radius: 99px;
  background: linear-gradient(120deg, #7cf6c4, #5bc0f8);
  box-shadow: 0 0 12px rgba(91, 192, 248, 0.35);
  transition: width 0.2s ease, filter 0.2s ease;
}

.char-guard {
  color: var(--muted);
}

@media (max-width: 720px) {
  body { padding: 16px 14px 32px; }
  .topbar { flex-direction: column; align-items: flex-start; }
  .layout { grid-template-columns: 1fr; }
}

