:root {
  --bg-overlay: transparent;
  --panel: rgba(38, 41, 49, 0.86);
  --panel-border: rgba(255, 255, 255, 0.16);
  --text-main: #eceef2;
  --text-soft: #b7bfca;
  --input-bg: #dce1ec;
  --input-text: #11141a;
  --button-bg: #5b616a;
  --button-bg-hover: #696f78;
  --focus: #ff5422;
  --success: #87dd9d;
  --error: #ff9a9a;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text-main);
}

body {
  background: #080b10;
}

#ascii-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

#ascii-bg > * {
  width: 100%;
  height: 100%;
}

#ascii-bg.html-snippet-bg {
  background: #000;
}

#ascii-bg .html-bg-frame {
  position: absolute;
  inset: 0;
}

#ascii-bg .html-bg-frame pre {
  margin: 0 !important;
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #000 !important;
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: transparent;
}

.subscribe-shell {
  width: min(560px, 100%);
  display: grid;
  justify-items: center;
  row-gap: 70px;
  padding-top: 20px;
  text-align: center;
  transform: translateY(-50px);
}

.melt-logo {
  width: clamp(86px, 13vw, 95px);
  aspect-ratio: 180 / 150;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
  margin-inline: auto;
}

.subscribe-card {
  width: 100%;
  justify-self: stretch;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 28px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--text-soft);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

h1 {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
  line-height: 1.2;
  color: var(--focus);
}

.subtitle {
  margin: 12px 0 22px;
  color: var(--text-soft);
  line-height: 1.5;
}

form {
  display: grid;
  gap: 12px;
}

.label {
  font-size: 0.94rem;
  color: var(--text-soft);
}

input[type="email"] {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--input-bg);
  color: var(--input-text);
  font-size: 1rem;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="email"]::placeholder {
  color: #61697a;
}

input[type="email"]:focus,
input[type="checkbox"]:focus-visible,
button:focus-visible {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(255, 84, 34, 0.22);
}

.check-row {
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.check-row a {
  color: #d8dfea;
  text-underline-offset: 2px;
}

.check-row a:hover {
  color: #ffffff;
}

input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--focus);
}

button {
  margin-top: 6px;
  border: 0;
  border-radius: 8px;
  background: var(--button-bg);
  color: var(--text-main);
  font-weight: 600;
  font-size: 1rem;
  padding: 11px 16px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

button:hover {
  background: var(--focus);
  color: #11141a;
}

button:active {
  background: #e84a1d;
  color: #0e1117;
  transform: translateY(1px);
}

.message {
  min-height: 1.25em;
  margin: 4px 0 0;
  font-size: 0.92rem;
  color: var(--text-soft);
}

.message.success {
  color: var(--success);
}

.message.error {
  color: var(--error);
}

@media (max-width: 640px) {
  .subscribe-card {
    padding: 22px;
  }
}
