:root {
  --bg-1: #0b1b2a;
  --bg-2: #0d332a;
  --panel: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.12);
  --accent: #1ec69a;
  --accent-2: #f7b500;
  --text: #e6f1ff;
  --muted: #9ab4c8;
  --shadow: 0 10px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Sora", system-ui, -apple-system, sans-serif;
  background: radial-gradient(140% 120% at 20% 20%, #123248 0%, #0b1b2a 45%, #0b1b2a 100%),
    radial-gradient(80% 70% at 80% 0%, #0d332a 0%, #0b1b2a 50%, #0b1b2a 100%);
  color: var(--text);
}

.grain {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.06) 1px, transparent 0);
  background-size: 80px 80px;
  opacity: 0.35;
  pointer-events: none;
  mix-blend-mode: soft-light;
}

.page {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 20px 60px;
  z-index: 1;
}

.hero {
  margin-bottom: 28px;
  max-width: 820px;
}

.hero h1 {
  margin: 12px 0 8px;
  font-size: 34px;
  letter-spacing: -0.5px;
}

.hero p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.5;
}

.hero-explain strong {
  color: var(--accent);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
  margin: 10px 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.eyebrow {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 12px;
}

.quickset {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}

.quickset button,
.ghost {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.2s ease, background 0.2s ease;
}

.quickset button:hover,
.ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 16px;
  align-items: start;
}

.grid .form-column {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

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

.card-header h2 {
  margin: 6px 0 4px;
  font-size: 20px;
}

.card-header p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.hint {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

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

.pill {
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.form label {
  font-weight: 600;
  font-size: 14px;
}

.form input,
.form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form input:focus,
.form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(30, 198, 154, 0.18);
}

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

.actions button {
  padding: 12px 18px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(120deg, var(--accent), #1c9c7c);
  color: #041012;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(30, 198, 154, 0.25);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.actions button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(30, 198, 154, 0.35);
}

.actions .ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  box-shadow: none;
  border: 1px solid var(--border);
}

#seed-result {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(30, 198, 154, 0.08);
  border: 1px dashed rgba(30, 198, 154, 0.4);
  margin-top: 8px;
  min-height: 22px;
}

.seed-scroll {
  max-height: 240px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.seed-entry {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  line-height: 1.45;
}

.seed-summary {
  font-weight: 700;
}

.seed-triples {
  margin-top: 4px;
  color: var(--muted);
  font-family: "Sora", monospace;
  word-break: break-word;
}

.seed-static {
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
}

.flash {
  animation: flashFade 0.9s ease;
}

@keyframes flashFade {
  0% {
    background: rgba(30, 198, 154, 0.35);
    box-shadow: 0 0 0 0 rgba(30, 198, 154, 0.4);
  }
  100% {
    background: rgba(30, 198, 154, 0.08);
    box-shadow: 0 0 0 10px rgba(30, 198, 154, 0);
  }
}

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

.small {
  font-size: 13px;
  line-height: 1.5;
}

.muted.small {
  white-space: pre-line;
}

.log-panel {
  margin-top: 0;
  position: sticky;
  top: 12px;
}

.log-output {
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 12px;
  min-height: 60vh;
  font-family: "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
  white-space: pre-line;
}

.space-between {
  justify-content: space-between;
}

@media (max-width: 720px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .grid .form-column {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 28px;
  }

  .actions {
    flex-direction: column;
  }

  .actions button,
  .ghost {
    width: 100%;
  }
}
