:root {
  color-scheme: dark;
  --background: #000302;
  --surface: #0a1712;
  --border: #202c27;
  --tint: #00c977;
  --text: #f4f8f6;
  --muted: #9baaa4;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--background);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--background);
}

.background {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 4%, rgb(0 201 119 / 18%), transparent 28rem),
    radial-gradient(circle at 88% 100%, rgb(22 30 228 / 12%), transparent 35rem),
    linear-gradient(rgb(255 255 255 / 3%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 3%) 1px, transparent 1px);
  background-size: auto, auto, 44px 44px, 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.topbar {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 12px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgb(255 255 255 / 8%);
  background: rgb(0 3 2 / 72%);
  backdrop-filter: blur(22px);
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.brand-mark,
.app-icon {
  display: grid;
  place-items: center;
  background: var(--tint);
  color: #00180e;
  font-weight: 850;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 13px;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
}

.sign-out {
  padding: 10px 15px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  transition:
    border-color 160ms ease,
    color 160ms ease;
}

.sign-out:hover {
  border-color: var(--tint);
  color: var(--tint);
}

main {
  position: relative;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(44px, 7vw, 92px) 0 80px;
}

.intro {
  max-width: 700px;
  margin-bottom: 34px;
}

.eyebrow,
.preview-label {
  margin: 0 0 10px;
  color: var(--tint);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.intro > p:last-child {
  max-width: 620px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 20px;
  align-items: start;
}

.panel,
.preview-panel {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgb(10 23 18 / 88%);
  box-shadow: 0 24px 80px rgb(0 0 0 / 32%);
  backdrop-filter: blur(20px);
}

.panel {
  padding: clamp(20px, 4vw, 36px);
}

.preview-panel {
  padding: 22px;
}

.field + .field {
  margin-top: 24px;
}

.field-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

label {
  display: block;
  margin-bottom: 9px;
  font-weight: 700;
}

output,
.hint {
  color: var(--muted);
  font-size: 13px;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 13px;
  outline: none;
  background: rgb(0 3 2 / 62%);
  color: var(--text);
  font: inherit;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

input {
  min-height: 54px;
  padding: 0 15px;
}

textarea {
  resize: vertical;
  min-height: 130px;
  padding: 15px;
  line-height: 1.45;
}

input:focus,
textarea:focus {
  border-color: var(--tint);
  box-shadow: 0 0 0 4px rgb(0 201 119 / 11%);
}

.coin-input {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  min-height: 54px;
  padding: 0 15px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgb(0 3 2 / 62%);
  color: var(--muted);
}

.coin-input > span:first-child {
  color: #feca26;
  text-shadow: 0 0 12px rgb(254 202 38 / 35%);
}

.coin-input input {
  min-height: 50px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.hint {
  margin: 9px 0 0;
  line-height: 1.45;
}

.status {
  display: none;
  margin-top: 22px;
  padding: 13px 15px;
  border-radius: 12px;
  line-height: 1.45;
}

.status.visible {
  display: block;
}

.status.success {
  border: 1px solid rgb(0 201 119 / 45%);
  background: rgb(0 201 119 / 10%);
}

.status.error {
  border: 1px solid rgb(255 90 90 / 42%);
  background: rgb(255 90 90 / 10%);
  color: #ffbcbc;
}

.blast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 58px;
  margin-top: 22px;
  padding: 0 19px;
  border: 0;
  border-radius: 14px;
  background: var(--tint);
  color: #00180e;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  transition:
    transform 150ms ease,
    filter 150ms ease;
}

.blast:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.blast:disabled {
  cursor: wait;
  filter: saturate(0.3);
  opacity: 0.64;
  transform: none;
}

.phone-preview {
  display: grid;
  min-height: 290px;
  place-items: center;
  padding: 22px;
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 18px;
  background:
    linear-gradient(140deg, rgb(22 30 228 / 25%), transparent),
    #121614;
}

.notification {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  width: min(100%, 380px);
  padding: 14px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 18px;
  background: rgb(246 248 247 / 88%);
  color: #111613;
  box-shadow: 0 18px 42px rgb(0 0 0 / 28%);
  backdrop-filter: blur(18px);
}

.app-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 12px;
}

.notification-app {
  margin-bottom: 3px;
  color: #66706b;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.06em;
}

.notification strong {
  overflow-wrap: anywhere;
}

.notification p {
  margin: 3px 0 0;
  color: #3f4844;
  font-size: 13px;
  line-height: 1.38;
  overflow-wrap: anywhere;
}

.guardrails {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--muted);
}

.guardrails strong {
  color: var(--text);
}

.guardrails ul {
  margin: 12px 0 0;
  padding-left: 19px;
  line-height: 1.7;
}

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

  .preview-panel {
    order: -1;
  }
}

@media (max-width: 520px) {
  .topbar {
    min-height: 68px;
    padding-inline: 16px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  main {
    width: min(100% - 28px, 1120px);
    padding-top: 38px;
  }

  .preview-panel {
    display: none;
  }

  .panel {
    border-radius: 18px;
  }
}
