:root {
  color-scheme: dark;
  --bg: #090b0f;
  --surface: #11151c;
  --surface-raised: #171c25;
  --line: #29313d;
  --line-strong: #3c4858;
  --text: #f4f7fa;
  --muted: #9da8b6;
  --accent: #9cf646;
  --accent-dark: #17240d;
  --warning: #ffce67;
  --danger: #ff7a90;
  --radius: 22px;
  --shadow: 0 24px 80px rgb(0 0 0 / 36%);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 78% 10%, rgb(81 139 39 / 18%), transparent 30rem),
    radial-gradient(circle at 5% 45%, rgb(75 102 138 / 13%), transparent 34rem),
    var(--bg);
  color: var(--text);
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.shell {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(56px, 11vw, 108px);
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 14px;
  background: var(--accent);
  color: #0b0f08;
  font-size: 1.35rem;
  font-weight: 900;
}

.brand h1,
.brand p,
.hero h2,
.hero p,
.card h2,
.card p,
.facts h2,
.facts p,
.otp-notice h2,
.otp-notice p {
  margin: 0;
}

.brand h1 {
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.eyebrow {
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 760;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero {
  margin-bottom: 34px;
}

.hero h2 {
  max-width: 650px;
  margin-top: 10px;
  font-size: clamp(2.6rem, 9vw, 5.4rem);
  font-weight: 760;
  letter-spacing: -0.065em;
  line-height: 0.94;
}

.lede {
  max-width: 610px;
  margin-top: 24px !important;
  color: var(--muted);
  font-size: clamp(1.02rem, 2.8vw, 1.18rem);
  line-height: 1.65;
}

.card {
  padding: clamp(22px, 5vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgb(255 255 255 / 2%), transparent 44%),
    var(--surface);
  box-shadow: var(--shadow);
}

.card-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
}

.card-heading h2 {
  margin-top: 4px;
  font-size: clamp(1.4rem, 4vw, 1.85rem);
  letter-spacing: -0.035em;
}

.step {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
}

form > label,
fieldset legend {
  display: block;
  margin-bottom: 10px;
  color: #dbe2e9;
  font-size: 0.88rem;
  font-weight: 700;
}

textarea,
input[type="text"] {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  outline: none;
  background: #0b0e13;
  color: var(--text);
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}

textarea {
  min-height: 160px;
  padding: 16px;
  resize: vertical;
  line-height: 1.5;
}

input[type="text"] {
  min-width: 0;
  padding: 13px 14px;
}

textarea:focus,
input[type="text"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgb(156 246 70 / 14%);
}

.field-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.76rem;
}

.limit {
  color: var(--danger);
}

fieldset {
  margin: 26px 0 28px;
  padding: 0;
  border: 0;
}

.expiry-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.choice {
  position: relative;
}

.choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.choice span {
  display: grid;
  min-height: 52px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-raised);
  color: var(--muted);
  font-weight: 720;
  transition:
    color 150ms ease,
    border-color 150ms ease,
    background 150ms ease;
}

.choice input:checked + span {
  border-color: var(--accent);
  background: var(--accent-dark);
  color: var(--accent);
}

.choice input:focus-visible + span {
  box-shadow: 0 0 0 3px rgb(156 246 70 / 18%);
}

.primary,
.secondary {
  min-height: 50px;
  border-radius: 13px;
  font-weight: 800;
}

.primary {
  width: 100%;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #0a1006;
}

.primary:hover:not(:disabled) {
  background: #b1ff65;
}

.secondary {
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  background: var(--surface-raised);
  color: var(--text);
}

.secondary:hover {
  border-color: var(--accent);
}

.secondary.full {
  width: 100%;
  margin-top: 12px;
}

.status {
  min-height: 1.4em;
  margin-top: 12px !important;
  color: var(--warning);
  font-size: 0.86rem;
  line-height: 1.5;
}

.result {
  padding: 20px;
  border: 1px solid rgb(156 246 70 / 32%);
  border-radius: 16px;
  background: rgb(156 246 70 / 6%);
}

.result-label {
  margin-bottom: 11px !important;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.copy-row {
  display: flex;
  gap: 8px;
}

.result-note,
.warning {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.result-note {
  margin-top: 12px !important;
}

.text-button {
  margin-top: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-weight: 740;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.warning {
  margin-bottom: 22px !important;
  padding: 15px 16px;
  border-left: 3px solid var(--warning);
  background: rgb(255 206 103 / 6%);
}

#revealed-secret {
  background: #080b0f;
}

.otp-notice {
  display: flex;
  gap: 16px;
  margin-top: 20px;
  padding: 21px 23px;
  border: 1px solid rgb(255 206 103 / 28%);
  border-radius: 17px;
  background: rgb(255 206 103 / 5%);
}

.notice-icon {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--warning);
  color: #161107;
  font-weight: 900;
}

.otp-notice h2 {
  margin-bottom: 5px;
  font-size: 0.96rem;
}

.otp-notice p {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 54px;
}

.facts article {
  padding: 20px;
  border-top: 1px solid var(--line);
}

.facts article > span {
  display: block;
  margin-bottom: 26px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 850;
}

.facts h2 {
  margin-bottom: 7px;
  font-size: 0.92rem;
}

.facts p {
  color: var(--muted);
  font-size: 0.79rem;
  line-height: 1.5;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 62px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
}

[hidden] {
  display: none !important;
}

@media (max-width: 620px) {
  .shell {
    width: min(100% - 20px, 760px);
    padding-top: 18px;
  }

  .brand {
    margin-bottom: 54px;
  }

  .copy-row {
    display: grid;
  }

  .facts {
    grid-template-columns: 1fr;
    margin-top: 42px;
  }

  .facts article {
    display: grid;
    grid-template-columns: 35px 1fr;
    column-gap: 5px;
  }

  .facts article > span {
    grid-row: 1 / 3;
    margin: 1px 0 0;
  }

  footer {
    flex-direction: column;
  }
}

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