:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --brand-soft: #eff6ff;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 35%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 28%, #ffffff 100%);
  min-height: 100vh;
}

.container {
  width: min(960px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4rem;
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
}

.logo span {
  color: var(--brand);
}

.header-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.hero {
  padding: 4rem 0 3rem;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero-copy {
  margin: 1rem 0 1.5rem;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.sample-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.sample-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 0.75rem;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 0.75rem;
}

.sample-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.sample-label {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
}

.sample-value {
  display: block;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  background: #f1f5f9;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  word-break: break-all;
  color: var(--text);
}

.generator-section {
  padding: 1rem 0 4rem;
}

.section-heading {
  text-align: center;
  margin-bottom: 1.5rem;
}

.section-heading h2 {
  margin: 0;
  font-size: 1.85rem;
  letter-spacing: -0.02em;
}

.section-heading p {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

.generator-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.control-block {
  margin-bottom: 1.5rem;
}

.control-block h3,
.custom-header h3 {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.custom-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.custom-header h3 {
  margin: 0;
}

.selected-bits {
  color: var(--brand);
  font-size: 0.9rem;
  font-weight: 700;
}

.quick-grid {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 720px) {
  .quick-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.quick-option,
.bit-option,
.btn {
  font: inherit;
  cursor: pointer;
}

.quick-option {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: #fff;
  text-align: left;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.quick-option strong {
  font-size: 1.05rem;
}

.quick-option span:last-child {
  color: var(--muted);
  font-size: 0.85rem;
}

.quick-option:hover,
.bit-option:hover {
  border-color: #93c5fd;
}

.quick-option.is-active,
.bit-option.is-active {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: 0 0 0 1px var(--brand);
}

.badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.35rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
}

.badge-muted {
  background: #0f172a;
}

.bit-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
}

.bit-option {
  padding: 0.85rem 0.5rem;
  border-radius: 0.85rem;
  border: 1px solid var(--border);
  background: #fff;
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: 0.75rem;
  padding: 0.85rem 1.25rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-full {
  width: 100%;
  min-height: 3rem;
}

.btn-ghost {
  background: transparent;
  color: var(--brand);
  padding: 0.5rem 0.75rem;
}

.btn-ghost:hover {
  background: var(--brand-soft);
}

.secret-panel {
  margin-top: 1.25rem;
}

.secret-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  background: #f8fafc;
}

.secret-value {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  word-break: break-all;
  color: var(--text);
}

.secret-meta {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.reveal-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1rem;
}

.switch-label {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.switch {
  width: 2.75rem;
  height: 1.5rem;
  border: none;
  border-radius: 999px;
  background: #cbd5e1;
  position: relative;
  padding: 0;
  transition: background 0.15s ease;
}

.switch::after {
  content: "";
  position: absolute;
  top: 0.15rem;
  left: 0.15rem;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s ease;
}

.switch[aria-checked="true"] {
  background: var(--brand);
}

.switch[aria-checked="true"]::after {
  transform: translateX(1.25rem);
}

.hidden-hint {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.hidden-hint.is-hidden {
  display: none;
}

.info-section {
  padding: 0 0 4rem;
}

.info-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .info-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.info-grid article {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.8);
}

.info-grid h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.info-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: #0f172a;
  color: #fff;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: var(--shadow);
  pointer-events: none;
  z-index: 50;
}

.toast[hidden] {
  display: none;
}

@media (max-width: 640px) {
  .secret-row {
    flex-direction: column;
    align-items: stretch;
  }

  .bit-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .header-note {
    display: none;
  }
}
