:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --ink: #172033;
  --muted: #667085;
  --primary: #1d4ed8;
  --primary-dark: #123a9c;
  --accent: #f59e0b;
  --border: #e5e7eb;
  --code-bg: #0f172a;
  --code-text: #e5e7eb;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #dbeafe 0, transparent 28%), var(--bg);
  color: var(--ink);
}

code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
.hero {
  padding: 28px clamp(18px, 4vw, 64px) 54px;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 48%, #2563eb 100%);
  color: white;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 52px;
}
.brand { display: flex; align-items: center; gap: 16px; }
.brand-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.2);
  font-weight: 800;
}
.brand h1 { margin: 0; font-size: clamp(22px, 3vw, 32px); }
.brand p { margin: 4px 0 0; color: #dbeafe; }
.pill {
  color: white;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 999px;
  padding: 11px 18px;
  background: rgba(255,255,255,.12);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, .7fr);
  gap: 34px;
  align-items: stretch;
}
.eyebrow { color: #fde68a; font-weight: 700; letter-spacing: .03em; }
.hero h2 { font-size: clamp(34px, 5vw, 58px); line-height: 1.02; margin: 14px 0 18px; max-width: 980px; }
.hero-text { color: #dbeafe; font-size: 18px; max-width: 880px; line-height: 1.7; }
.hero-card {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.hero-card p, .hero-card li { color: #e0ecff; line-height: 1.65; }
.container { width: min(1220px, calc(100% - 32px)); margin: -34px auto 0; }
.tools-panel, .setup-card, .component-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.tools-panel { padding: 22px; margin-bottom: 20px; }
.search-box label { display: block; font-weight: 800; margin-bottom: 10px; }
.search-box input {
  width: 100%;
  padding: 16px 18px;
  font-size: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  outline: none;
}
.search-box input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px #dbeafe; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chip {
  border: 1px solid var(--border);
  background: #f8fafc;
  border-radius: 999px;
  padding: 9px 14px;
  cursor: pointer;
  color: var(--ink);
  font-weight: 700;
}
.chip.active { background: var(--primary); color: white; border-color: var(--primary); }
.setup-card { padding: 26px; margin: 22px 0; }
.setup-card h2 { margin-top: 0; }
.setup-card p { color: var(--muted); line-height: 1.7; }
.results-info { color: var(--muted); font-weight: 700; }
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  padding-bottom: 54px;
}
.component-card { overflow: hidden; }
.card-head {
  padding: 22px 22px 16px;
  border-bottom: 1px solid var(--border);
}
.card-head small {
  display: inline-flex;
  background: #eff6ff;
  color: var(--primary-dark);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 800;
  margin-bottom: 10px;
}
.card-head h3 { margin: 0 0 8px; font-size: 23px; }
.card-head p { margin: 0; color: var(--muted); line-height: 1.6; }
.preview {
  min-height: 92px;
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8fafc, #eef2ff);
}
.fake-button { background: var(--primary); color: white; border-radius: 14px; padding: 13px 22px; font-weight: 800; }
.fake-field { width: 82%; border: 1px solid #cbd5e1; border-radius: 14px; padding: 13px 16px; color: var(--muted); background: white; }
.fake-card { width: 82%; background: white; border-radius: 18px; padding: 18px; box-shadow: 0 10px 28px rgba(15, 23, 42, .12); }
.fake-line { height: 11px; background: #cbd5e1; border-radius: 99px; margin: 9px 0; }
.fake-line.short { width: 55%; }
.fake-avatar { width: 60px; height: 60px; border-radius: 50%; background: #bfdbfe; }
.fake-toolbar { width: 90%; height: 52px; background: var(--primary); border-radius: 14px; }
.fake-list { width: 82%; display: grid; gap: 9px; }
.fake-list div { height: 18px; background: white; border-radius: 99px; box-shadow: 0 3px 10px rgba(15,23,42,.08); }
.fake-layout { width: 82%; height: 86px; border: 2px dashed #93c5fd; border-radius: 16px; display: grid; place-items: center; color: var(--primary-dark); font-weight: 800; background: rgba(255,255,255,.7); }
.code-block {
  position: relative;
  background: var(--code-bg);
  color: var(--code-text);
  border-radius: 18px;
  margin: 0 22px 22px;
  overflow: hidden;
}
.setup-card .code-block { margin: 18px 0 0; }
pre { margin: 0; padding: 22px; overflow-x: auto; line-height: 1.55; font-size: 13px; }
.copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 0;
  border-radius: 10px;
  padding: 8px 12px;
  background: var(--accent);
  color: #111827;
  font-weight: 900;
  cursor: pointer;
}
.copy-btn.copied { background: #22c55e; color: white; }
.footer { text-align: center; padding: 34px 18px; color: var(--muted); }
.hidden { display: none; }

@media (max-width: 880px) {
  .hero-grid, .grid { grid-template-columns: 1fr; }
  .topbar { align-items: flex-start; flex-direction: column; }
}

.signature {
  margin-top: 8px;
  font-weight: 900;
  color: var(--primary-dark);
}

.compat-badge {
  display: inline-flex;
  margin-top: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #166534;
  font-weight: 900;
  font-size: 12px;
  border: 1px solid #bbf7d0;
}

.fake-spinner,
.fake-switch-row,
.fake-checkbox,
.fake-radio-group,
.fake-chip-row {
  width: 86%;
  min-height: 58px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 14px 18px;
  background: white;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 14px;
}

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

.fake-arrow {
  font-size: 24px;
  line-height: 1;
  color: #111827;
}

.fake-checkbox .fake-box {
  width: 24px;
  height: 24px;
  border: 2px solid #475569;
  border-radius: 4px;
  display: inline-block;
}

.fake-switch-row {
  justify-content: space-between;
}

.fake-switch {
  width: 62px;
  height: 34px;
  border-radius: 999px;
  background: #d1d5db;
  display: inline-flex;
  align-items: center;
  padding: 3px;
}

.fake-switch span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .2);
}

.fake-radio-group {
  align-items: flex-start;
  flex-direction: column;
  gap: 10px;
}

.fake-radio-group label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fake-radio {
  width: 22px;
  height: 22px;
  border: 2px solid #475569;
  border-radius: 50%;
  display: inline-block;
  position: relative;
}

.fake-radio.checked {
  border-color: var(--primary);
}

.fake-radio.checked::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
  inset: 4px;
}

.fake-chip-row {
  border: 0;
  background: transparent;
  flex-wrap: wrap;
  justify-content: center;
}

.fake-chip {
  border: 1px solid #93c5fd;
  color: var(--primary-dark);
  background: #eff6ff;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 800;
}

.fake-chip.checked {
  background: #dbeafe;
  border-color: var(--primary);
}

.fake-button.outlined {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.fake-fab {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: grid;
  place-items: center;
  font-size: 36px;
  box-shadow: 0 16px 30px rgba(29, 78, 216, .28);
}

.fake-bottom-nav {
  width: 88%;
  height: 60px;
  border-radius: 18px;
  background: white;
  border: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  color: var(--primary-dark);
  font-weight: 800;
}

.fake-toolbar {
  width: 90%;
  height: 52px;
  background: var(--primary);
  border-radius: 14px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  font-weight: 900;
}

.fake-progress {
  width: 86%;
  height: 14px;
  border-radius: 999px;
  background: #dbeafe;
  overflow: hidden;
}

.fake-progress span {
  display: block;
  width: 65%;
  height: 100%;
  background: var(--primary);
  border-radius: inherit;
}

.fake-dialog {
  width: 78%;
  background: white;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 20px 45px rgba(15,23,42,.16);
}

.fake-dialog p {
  margin: 8px 0 16px;
  color: var(--muted);
}

.fake-dialog button {
  border: 0;
  background: var(--primary);
  color: white;
  border-radius: 10px;
  padding: 9px 14px;
  font-weight: 800;
}

.fake-snackbar,
.fake-toast {
  background: #111827;
  color: white;
  border-radius: 12px;
  padding: 14px 18px;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(15,23,42,.22);
}

.fake-toast {
  border-radius: 999px;
}
