:root {
  --ink: #14211d;
  --muted: #68746f;
  --paper: #f5f3ed;
  --card: #fffefa;
  --line: #d9ddd6;
  --green: #0d714e;
  --green-dark: #07583d;
  --lime: #d8f266;
  --shadow: 0 24px 70px rgba(29, 48, 40, .1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 86% 4%, rgba(216, 242, 102, .35), transparent 25rem),
    linear-gradient(180deg, #f8f7f2 0, var(--paper) 100%);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  min-height: 100vh;
}

button, input { font: inherit; }
.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.topbar { height: 86px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(20, 33, 29, .1); }
.brand { color: var(--ink); text-decoration: none; display: flex; gap: 12px; align-items: center; font-weight: 750; letter-spacing: -.02em; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: white; background: var(--green); box-shadow: inset 0 -2px 0 rgba(0,0,0,.15); }
.privacy { display: flex; align-items: center; gap: 8px; color: #44534d; font-size: 13px; }
.privacy i { display: block; width: 8px; height: 8px; background: #33a675; border-radius: 99px; box-shadow: 0 0 0 5px rgba(51,166,117,.12); }

.hero { padding: 92px 0 58px; max-width: 850px; }
.eyebrow, .step-label { color: var(--green); font: 700 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .15em; text-transform: uppercase; }
h1 { margin: 19px 0 24px; font-size: clamp(48px, 7vw, 86px); line-height: .98; letter-spacing: -.065em; font-weight: 760; }
h1 em { color: var(--green); font-style: normal; }
.hero > p { max-width: 720px; color: var(--muted); font-size: 18px; line-height: 1.8; margin: 0; }
.mapped-items { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 30px; }
.mapped-items span { padding: 8px 12px; border: 1px solid #d6ddd7; border-radius: 99px; background: rgba(255,255,255,.55); color: #47554f; font-size: 12px; }

.workspace { padding: 40px; border: 1px solid rgba(20,33,29,.12); border-radius: 28px; background: rgba(255,254,250,.9); box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.workspace-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
h2 { margin: 10px 0 0; font-size: clamp(26px, 4vw, 38px); letter-spacing: -.045em; }
.format-pill { padding: 9px 12px; background: #eff2ec; color: #617068; border-radius: 8px; font-size: 12px; white-space: nowrap; }
.drop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.drop-card { min-height: 275px; position: relative; padding: 30px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1.5px dashed #bcc8c0; border-radius: 20px; cursor: pointer; background: #fbfcf8; text-align: center; transition: .22s ease; }
.drop-card:hover, .drop-card.is-dragging { transform: translateY(-2px); border-color: var(--green); background: #f7fbf5; }
.drop-card.has-file { border-style: solid; border-color: #58a685; background: #f5fbf7; }
.drop-card input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-number { position: absolute; left: 22px; top: 20px; color: #9ca8a2; font: 700 11px/1 ui-monospace, monospace; }
.file-icon { width: 64px; height: 64px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 16px; font: 800 15px/1 ui-monospace, monospace; letter-spacing: .08em; }
.sql-icon { color: #6a5900; background: #f5df71; transform: rotate(-3deg); }
.db-icon { color: #095638; background: #b9e0ce; transform: rotate(3deg); }
.drop-card strong { font-size: 18px; letter-spacing: -.02em; }
.drop-card small { color: var(--muted); margin-top: 7px; }
.file-choice { max-width: 90%; margin-top: 22px; padding: 9px 13px; color: var(--green); background: #e8f2eb; border-radius: 8px; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.action-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 24px; }
.safety-note { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.safety-note strong { color: #33443d; }
.shield { width: 34px; height: 34px; display: grid; place-items: center; color: var(--green); border-radius: 50%; background: #e6f1ea; font-weight: 800; }
button { min-width: 245px; display: flex; justify-content: space-between; gap: 22px; align-items: center; padding: 17px 18px 17px 22px; border: 0; border-radius: 13px; color: white; background: var(--green); cursor: pointer; font-weight: 750; box-shadow: 0 10px 24px rgba(13,113,78,.22); transition: .2s ease; }
button:hover { background: var(--green-dark); transform: translateY(-1px); }
button:disabled { cursor: wait; opacity: .72; transform: none; }
.arrow { width: 28px; height: 28px; display: grid; place-items: center; color: var(--green-dark); background: var(--lime); border-radius: 7px; font-size: 17px; }
.is-loading .arrow { animation: pulse 1s infinite alternate; }
@keyframes pulse { to { opacity: .35; } }
.status { margin-top: 24px; padding: 17px 20px; display: flex; gap: 8px; flex-direction: column; border-radius: 12px; font-size: 14px; }
.status.success { color: #07583d; background: #e7f5ed; border: 1px solid #b8dfc9; }
.status.error { color: #8a2f26; background: #fff0ec; border: 1px solid #f1c2b8; }

.notes { display: grid; grid-template-columns: .75fr 1.25fr; gap: 80px; padding: 90px 0 70px; }
.notes ol { list-style: none; padding: 0; margin: 0; border-top: 1px solid #ccd2cc; }
.notes li { display: grid; grid-template-columns: 34px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid #ccd2cc; }
.notes li > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: white; font-size: 12px; }
.notes p { margin: 0; color: var(--muted); line-height: 1.65; font-size: 14px; }
.notes p strong { display: block; color: var(--ink); margin-bottom: 2px; font-size: 15px; }
code { padding: 2px 5px; color: #365148; background: #e8ebe5; border-radius: 4px; }
footer { padding: 24px 0 34px; border-top: 1px solid rgba(20,33,29,.1); color: #84908a; font-size: 12px; text-align: center; }

@media (max-width: 760px) {
  .shell { width: min(100% - 24px, 620px); }
  .topbar { height: 70px; }
  .privacy { font-size: 0; }
  .hero { padding: 64px 4px 40px; }
  h1 { font-size: clamp(43px, 14vw, 66px); }
  .hero > p { font-size: 16px; }
  .workspace { padding: 24px 16px; border-radius: 21px; }
  .workspace-head, .action-row { align-items: stretch; flex-direction: column; }
  .format-pill { align-self: flex-start; }
  .drop-grid { grid-template-columns: 1fr; }
  .drop-card { min-height: 235px; }
  button { width: 100%; }
  .notes { grid-template-columns: 1fr; gap: 30px; padding: 68px 4px 48px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
