:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f8fafc;
  background: #0b1120;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(ellipse at 50% -20%, rgb(13 148 136 / 20%), transparent 58%),
    #0b1120;
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  width: min(100% - 40px, 760px);
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  border-bottom: 1px solid #1e293b;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.brand,
.connection {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand {
  color: #f8fafc;
}

.brand-light {
  color: #5eead4;
  font-weight: 500;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 9px;
  background: #0f766e;
  color: white;
  font-size: 16px;
}

.connection {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.connection-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px rgb(52 211 153 / 55%);
}

.hero {
  padding: 78px 0 40px;
}

.eyebrow {
  color: #2dd4bf;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

h1 {
  margin: 15px 0 18px;
  font-size: clamp(40px, 7vw, 64px);
  letter-spacing: -0.055em;
  line-height: 1.04;
}

h1 span {
  color: #5eead4;
}

.intro {
  max-width: 570px;
  margin: 0;
  color: #94a3b8;
  font-size: 16px;
  line-height: 1.7;
}

.card {
  padding: 30px;
  border: 1px solid #243247;
  border-radius: 18px;
  background: linear-gradient(145deg, rgb(20 31 50 / 96%), rgb(15 23 42 / 98%));
  box-shadow: 0 24px 70px rgb(0 0 0 / 24%);
}

.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

h2 {
  margin: 8px 0 0;
  font-size: 21px;
  letter-spacing: -0.02em;
}

.event-badge {
  padding: 7px 10px;
  border: 1px solid rgb(45 212 191 / 25%);
  border-radius: 999px;
  background: rgb(13 148 136 / 12%);
  color: #5eead4;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

label {
  display: block;
  margin: 22px 0 9px;
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 650;
}

input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #334155;
  border-radius: 9px;
  outline: none;
  background: #0b1220;
  color: #f8fafc;
  font: inherit;
}

input:focus {
  border-color: #2dd4bf;
  box-shadow: 0 0 0 3px rgb(45 212 191 / 12%);
}

.amount-field {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #334155;
  border-radius: 9px;
  background: #0b1220;
  color: #94a3b8;
}

.amount-field:focus-within {
  border-color: #2dd4bf;
  box-shadow: 0 0 0 3px rgb(45 212 191 / 12%);
}

.amount-field input {
  min-height: 46px;
  padding: 0 10px;
  border: 0;
  outline: none;
  background: transparent;
  box-shadow: none;
  color: #f8fafc;
}

.currency {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.field-help {
  margin-top: 8px;
  color: #64748b;
  font-size: 12px;
}

button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
  padding: 15px 17px;
  border: 0;
  border-radius: 9px;
  background: #0d9488;
  color: white;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  transition: background 150ms ease, transform 150ms ease;
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
  background: #0f766e;
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.result {
  margin-top: 18px;
  padding: 13px 15px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.result.success {
  border-color: rgb(52 211 153 / 24%);
  background: rgb(16 185 129 / 9%);
  color: #a7f3d0;
}

.result.error {
  border-color: rgb(248 113 113 / 25%);
  background: rgb(239 68 68 / 9%);
  color: #fecaca;
}

.notice {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.6;
}

.notice p {
  margin: 0;
}

.notice-icon {
  display: grid;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #475569;
  border-radius: 50%;
  color: #cbd5e1;
  font-size: 12px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 60px 0 28px;
  color: #64748b;
  font-size: 12px;
}

footer a {
  color: #94a3b8;
}

footer a:hover {
  color: #5eead4;
}

@media (max-width: 540px) {
  .shell {
    width: min(100% - 28px, 760px);
  }

  .topbar {
    min-height: 70px;
  }

  .connection {
    font-size: 10px;
  }

  .hero {
    padding-top: 54px;
  }

  .card {
    padding: 22px 18px;
  }

  footer {
    flex-direction: column;
    margin-top: 42px;
  }
}
