:root {
  --accent: #295dff;
  --accent-2: #14a37f;
  --accent-3: #7c8cff;
  --accent-4: #f59e0b;
  --accent-5: #ec4899;
  --accent-6: #8b5cf6;
  --bg: #f4f7fc;
  --panel: rgba(255,255,255,.88);
  --panel-2: #eef3ff;
  --text: #0b0f14;
  --muted: #51607d;
  --error: #c0392b;
  --border: rgba(178, 191, 226, .65);
  --highlight: #e9f0ff;
  --code: #f7f9ff;
  --shadow: 0 10px 30px rgba(18, 38, 77, .08), 0 2px 8px rgba(18, 38, 77, .04);
  --shadow-strong: 0 20px 48px rgba(26, 53, 109, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Arial, sans-serif;
  background: #f5f7fb;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

header {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(178, 191, 226, .35);
  background: rgba(255,255,255,.74);
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset;
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand h1 {
  margin: 0;
  font-size: 21px;
  letter-spacing: -.03em;
}

.brand p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.brand .logo {
  height: 40px;
  width: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(41,93,255,.20);
}

.header-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 999px;
  border: 1px solid rgba(160, 174, 214, .55);
  background: rgba(255,255,255,.92);
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  box-shadow: var(--shadow);
}

.hero {
  margin: 24px 0 18px;
  display: block;
}

.hero-card,
.content-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-card {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,.96);
  box-shadow: var(--shadow-strong);
}

.hero-card::before,
.hero-card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-card::before {
  inset: -40% auto auto -8%;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(41,93,255,.18) 0%, rgba(41,93,255,0) 72%);
}

.hero-card::after {
  right: -40px;
  bottom: -50px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(41,93,255,.08) 0%, rgba(41,93,255,0) 72%);
}

.hero-card h2,
.content-card h2,
.faq h3 {
  margin: 0 0 10px 0;
}

.hero-card h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  line-height: .98;
  letter-spacing: -.05em;
  max-width: 10.5ch;
  position: relative;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hero-card p {
  margin: 0 auto 16px;
  line-height: 1.7;
  max-width: 58ch;
  position: relative;
  font-size: 16px;
  text-align: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 14px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(124, 140, 255, .24);
  background: rgba(41, 93, 255, .08);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .01em;
  position: relative;
}

.hero-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin: 20px 0 18px;
  position: relative;
}

.hero-actions .btn { padding: 12px 18px; }

.hero-subpoints {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 18px;
  justify-content: center;
}

.hero-subpoint,
.mini-badge,
.format-pill,
.footer-pill {
  border-radius: 999px;
  font-size: 12px;
}

.hero-subpoint {
  padding: 8px 12px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(178, 191, 226, .55);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.hero-points {
  display: grid;
  gap: 8px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  max-width: 780px;
}

.hero-points li {
  color: var(--text);
  position: relative;
  padding-left: 18px;
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(41,93,255,.08);
}

.mini-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  justify-content: center;
}

.mini-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid rgba(178, 191, 226, .55);
  background: rgba(255,255,255,.75);
  font-size: 13px;
}

.btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .05s ease, filter .15s ease, box-shadow .15s ease;
  box-shadow: 0 12px 20px rgba(41,93,255,.18);
}

.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn:active { transform: translateY(1px); }
.btn:hover { filter: brightness(1.03); text-decoration: none; box-shadow: 0 14px 24px rgba(41,93,255,.22); }
.btn.secondary,
.btn.ghost {
  background: rgba(255,255,255,.8);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px auto 0;
  max-width: 860px;
  position: relative;
}

.stat {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(178, 191, 226, .55);
  background: rgba(255,255,255,.82);
}

.stat strong {
  display: block;
  margin-bottom: 4px;
  font-size: 18px;
  letter-spacing: -.02em;
}

.stat span,
.k,
.status,
.section-heading p,
.content-card p,
.content-card li,
.faq p,
.uploader-intro,
.brand p {
  color: var(--muted);
}

.uploader {
  margin: 22px 0;
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: 18px;
  align-items: center;
  background: rgba(255,255,255,.97);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow-strong);
}

.uploader-intro {
  margin: 0 0 10px;
  font-size: 14px;
}

.format-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.format-pill {
  padding: 8px 10px;
  background: rgba(41,93,255,.06);
  border: 1px solid rgba(124, 140, 255, .20);
  color: var(--text);
  font-weight: 700;
  letter-spacing: .02em;
}

.drop {
  border: 2px dashed rgba(124, 140, 255, .42);
  border-radius: 20px;
  padding: 34px 22px;
  text-align: center;
  color: var(--muted);
  transition: border-color .15s ease, color .15s ease, background .15s ease, transform .15s ease;
  background: rgba(255,255,255,.88);
}

.drop.highlight {
  border-color: var(--accent);
  color: var(--text);
  background: var(--highlight);
  transform: translateY(-1px);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  min-width: 230px;
}

.status {
  margin-top: 6px;
  font-size: 14px;
}

.summary {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr auto;
  background: rgba(255,255,255,.94);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px 16px;
  margin-top: 10px;
  box-shadow: var(--shadow);
}

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

.chip {
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
}

.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

.search { flex: 1; }

.search input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.82);
  color: var(--text);
}

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

.tab {
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  border: 1px solid var(--border);
  cursor: pointer;
  color: var(--muted);
}

.tab.active {
  color: var(--text);
  border-color: var(--accent);
  background: var(--highlight);
}

.view {
  margin-top: 12px;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.kv {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(178, 191, 226, .58);
}

.kv:last-child { border-bottom: none; }
.k { word-break: break-word; }
.v code {
  background: var(--code);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--text);
  word-break: break-word;
}
mark {
  background: rgba(42,102,255,.25);
  color: inherit;
  border-radius: 3px;
  padding: 0 2px;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.20);
  display: none;
  place-items: center;
  z-index: 1000;
}

.modal.open { display: grid; }

.modal-card {
  width: min(90vw, 900px);
  height: min(80vh, 640px);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.modal-header,
.modal-footer {
  padding: 10px;
  border-bottom: 1px solid var(--border);
}

.modal-footer {
  border-top: 1px solid var(--border);
  border-bottom: none;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.modal-title {
  margin: 0;
  font-size: 16px;
}

.jsonbox {
  padding: 10px;
  overflow: auto;
  background: var(--panel-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  color: var(--text);
}

.section-heading {
  margin: 34px 0 14px;
}

.section-heading h2 {
  margin: 0 0 6px;
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  letter-spacing: -.03em;
}

.section-heading p { max-width: 60ch; }

.how-grid,
.content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.how-card,
.content-card {
  position: relative;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}

.how-card {
  padding: 22px;
  border-radius: 20px;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 18px rgba(41,93,255,.18);
}

.how-card h3 { margin: 0 0 8px; letter-spacing: -.02em; }
.how-card p { margin: 0; color: var(--muted); line-height: 1.65; }

.content-card::before,
.how-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: var(--accent);
  opacity: .95;
}

.content-card:hover,
.how-card:hover,
.faq-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-strong);
}

.content-card ul {
  margin: 0;
  padding-left: 18px;
}

.faq {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.faq-item {
  background: rgba(255,255,255,.92);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
}

footer {
  margin: 28px 0 0 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
}

.footer-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 32px;
  display: block;
}

.footer-card {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255,255,255,.86);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.footer-left {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1rem;
  align-items: center;
}

.footer-left a {
  color: #0b0f14;
  text-decoration: none;
}

.footer-left a:hover,
.footer-left a:focus {
  color: #0b0f14;
  text-decoration: underline;
}

.footer-right {
  display: flex;
  gap: .75rem;
  align-items: center;
}

.footer-pill {
  padding: 9px 12px;
  border: 1px solid rgba(178, 191, 226, .55);
  background: rgba(245,248,255,.96);
  color: var(--text);
  font-weight: 600;
}

@media (max-width: 860px) {
  .how-grid,
  .content-grid,
  .uploader,
  .footer-card,
  .hero-stats,
  .summary {
    grid-template-columns: 1fr;
  }

  .kv { grid-template-columns: 1fr; }
  .header-bar { flex-direction: column; align-items: flex-start; gap: 8px; }
  .header-note { white-space: normal; }
  .stack { align-items: stretch; min-width: 0; }
}
