@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;700;800&family=Syne:wght@600;700&display=swap");

:root {
  color-scheme: light;
  --ink: #112036;
  --ink-soft: #455267;
  --card: #ffffff;
  --card-line: #dce6f8;
  --primary: #0055ff;
  --primary-strong: #0041c4;
  --accent: #00b2ff;
  --status: #f7faff;
  --surface: #eaf2ff;
  --shadow: 0 24px 52px -28px rgba(10, 29, 68, 0.45);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 460px at -8% -6%, #cde3ff 0%, transparent 58%),
    radial-gradient(820px 420px at 106% 0%, #d4f4ff 0%, transparent 56%),
    linear-gradient(165deg, #f6f9ff 0%, #eef5ff 46%, #fffaf1 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(0, 85, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 85, 255, 0.03) 1px, transparent 1px);
  background-size: 46px 46px;
}

body::after {
  content: "";
  position: fixed;
  width: 620px;
  height: 620px;
  top: -210px;
  right: -200px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(0, 85, 255, 0.16) 0%, rgba(0, 178, 255, 0.05) 46%, transparent 72%);
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.2rem 0 3.5rem;
}

.stage {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 1.4rem;
  align-items: start;
}

.intro {
  padding: 1rem 0.35rem 0;
  animation: fade-up 420ms ease both;
}

.brand {
  display: inline-flex;
  margin: 0;
  padding: 0.35rem 0.72rem;
  border-radius: 999px;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid #cbdcf6;
  color: #24446f;
}

h1 {
  margin: 0.78rem 0 0.75rem;
  font-family: "Syne", "Avenir Next", sans-serif;
  font-size: clamp(2.15rem, 4.8vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.subtitle {
  margin: 0;
  max-width: 56ch;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.55;
  color: var(--ink-soft);
}

.promise-list {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.48rem;
}

.promise-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: #2f455f;
}

.promise-list li::before {
  content: "";
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--accent), var(--primary));
  box-shadow: 0 0 0 3px rgba(0, 85, 255, 0.12);
}

.panel {
  border-radius: 24px;
  background: var(--card);
  border: 1px solid var(--card-line);
  box-shadow: var(--shadow);
}

.transfer-card {
  padding: 1.3rem;
  display: grid;
  gap: 0.92rem;
  animation: fade-up 520ms 40ms ease both;
}

.card-kicker {
  margin: 0;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: #5a6e8f;
}

h2 {
  margin: 0;
  font-family: "Syne", "Avenir Next", sans-serif;
  font-size: 1.38rem;
  letter-spacing: -0.02em;
}

.form-grid {
  display: grid;
  gap: 0.82rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 0.38rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: #24344d;
}

.field-wide {
  grid-column: 1 / -1;
}

input,
select,
button {
  font: inherit;
}

input,
select {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #c9d8f5;
  background: #f8fbff;
  color: #12223a;
  padding: 0.72rem 0.8rem;
  transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

input:hover,
select:hover {
  background: #ffffff;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 85, 255, 0.15);
  background: #ffffff;
}

.turnstile-block {
  display: grid;
  gap: 0.5rem;
  border: 1px dashed #b7caf2;
  border-radius: 14px;
  padding: 0.78rem;
  background: linear-gradient(180deg, #f7faff 0%, #f4f8ff 100%);
}

.turnstile-block > span {
  font-size: 0.86rem;
  font-weight: 800;
  color: #2f466a;
}

#turnstileWidget {
  min-height: 66px;
}

button,
.file-list button {
  border: 0;
  border-radius: 12px;
  padding: 0.8rem 1.08rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 140ms ease, filter 140ms ease, box-shadow 140ms ease;
}

.primary,
.file-list button {
  color: #ffffff;
  background: linear-gradient(138deg, var(--primary), var(--primary-strong));
  box-shadow: 0 14px 24px -16px rgba(0, 65, 196, 0.95);
}

.primary:hover,
.file-list button:hover {
  transform: translateY(-1px);
  filter: saturate(1.08);
}

button:disabled,
.file-list button:disabled {
  opacity: 0.62;
  transform: none;
  cursor: not-allowed;
}

.feedback {
  display: grid;
  gap: 0.64rem;
}

.status,
.output {
  margin: 0;
  border-radius: 11px;
  border: 1px solid #dbe5fb;
  background: var(--status);
  padding: 0.7rem 0.85rem;
  font-size: 0.92rem;
  color: #29405c;
}

.status:empty,
.output:empty {
  display: none;
}

.output a {
  color: #0a46c2;
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  word-break: break-all;
}

.output a:hover {
  color: #0038a8;
}

.download-card {
  padding: 1rem;
  display: grid;
  gap: 0.72rem;
}

.share-line {
  margin: 1rem 0 0;
  color: var(--ink-soft);
  font-size: 0.93rem;
}

code {
  border-radius: 8px;
  border: 1px solid #c8daf8;
  background: #f6f9ff;
  padding: 0.22em 0.45em;
  font-size: 0.9em;
  font-family: "Manrope", monospace;
  color: #223b5f;
}

.file-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.file-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.72rem;
  flex-wrap: wrap;
  padding: 0.72rem;
  border-radius: 13px;
  border: 1px solid #d6e4ff;
  background: linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
}

.file-list li > span {
  font-size: 0.9rem;
  color: #536585;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 920px) {
  .shell {
    width: min(1120px, calc(100% - 1.4rem));
    padding-top: 1.4rem;
  }

  .stage {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .intro {
    padding: 0.2rem 0.15rem;
  }

  .transfer-card {
    border-radius: 20px;
    padding: 1.06rem;
  }
}

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

  .field,
  .field-wide {
    grid-column: 1 / -1;
  }

  .primary,
  .file-list button {
    width: 100%;
    text-align: center;
  }
}
