:root {
  --ink: #111111;
  --paper: #f4efe4;
  --paper-strong: #fffaf0;
  --muted: #6c675e;
  --line: rgba(17, 17, 17, 0.16);
  --red: #b4151a;
  --steel: #4f6570;
  --green: #2d6a4f;
  --shadow: rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
}

button,
input {
  font: inherit;
}

main {
  overflow: hidden;
}

.hero {
  align-items: center;
  background: #0c0c0c;
  color: white;
  display: grid;
  min-height: 92vh;
  overflow: hidden;
  padding: clamp(24px, 5vw, 72px);
  position: relative;
}

.hero__image {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.hero__shade {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.34) 48%, rgba(0, 0, 0, 0.86)),
    radial-gradient(circle at 78% 35%, rgba(180, 21, 26, 0.46), transparent 34%);
  inset: 0;
  position: absolute;
}

.hero__content {
  max-width: 760px;
  padding-top: 8vh;
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-label,
.result-kicker {
  color: #d33a38;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.1rem, 8vw, 8.5rem);
  line-height: 0.86;
  margin-bottom: 24px;
  max-width: 780px;
  text-transform: uppercase;
}

.hero__subtitle {
  color: #fff5e6;
  font-size: clamp(1.2rem, 2.4vw, 2rem);
  font-weight: 800;
  line-height: 1.16;
  max-width: 610px;
}

.hero__description,
.hero__author {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
  line-height: 1.55;
  margin-bottom: 10px;
}

.hero__author {
  margin-bottom: 32px;
}

.buy-button,
.verify-button,
.result-modal button {
  align-items: center;
  background: var(--red);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: white;
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.buy-button:hover,
.verify-button:hover,
.result-modal button:hover {
  background: #d02027;
  box-shadow: 0 0 24px rgba(211, 58, 56, 0.52);
  transform: translateY(-1px);
}

.case-band,
.steps,
.submit-section {
  padding: clamp(48px, 8vw, 96px) clamp(18px, 5vw, 72px);
}

.case-band {
  background:
    linear-gradient(rgba(244, 239, 228, 0.94), rgba(244, 239, 228, 0.94)),
    repeating-linear-gradient(0deg, transparent, transparent 32px, rgba(17, 17, 17, 0.06) 33px);
}

.content-grid {
  display: grid;
  gap: clamp(28px, 6vw, 86px);
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  margin: 0 auto;
  max-width: 1180px;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4.25rem);
  line-height: 1;
  margin-bottom: 22px;
  text-transform: uppercase;
}

.prose p {
  color: #322f2b;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.75;
}

.case-line {
  border-left: 5px solid var(--red);
  color: var(--ink) !important;
  font-weight: 900;
  padding-left: 18px;
  text-transform: uppercase;
}

.steps {
  background: #181715;
  color: white;
}

.section-heading {
  margin: 0 auto 34px;
  max-width: 1180px;
}

.step-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1180px;
}

.step-card {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  min-height: 236px;
  padding: 26px;
}

.step-card span {
  color: #d8bfa1;
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.6rem;
  margin-bottom: 28px;
}

.step-card h3 {
  font-size: 1rem;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.step-card p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
}

.submit-section {
  background:
    linear-gradient(135deg, rgba(79, 101, 112, 0.13), transparent 28%),
    var(--paper-strong);
}

.submit-shell {
  display: grid;
  gap: clamp(28px, 5vw, 70px);
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.74fr);
  margin: 0 auto;
  max-width: 1180px;
}

.submit-copy p {
  color: #3e3931;
  line-height: 1.7;
}

.attempts {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 18px;
  margin-top: 30px;
  padding-top: 22px;
}

.attempts span {
  align-items: center;
  background: var(--ink);
  color: white;
  display: inline-flex;
  font-size: 1.8rem;
  font-weight: 900;
  height: 58px;
  justify-content: center;
  width: 58px;
}

.attempts p {
  font-weight: 800;
  margin: 0;
  text-transform: uppercase;
}

.case-form {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(49, 38, 24, 0.16);
  display: grid;
  gap: 24px;
  padding: clamp(22px, 4vw, 34px);
}

label,
fieldset {
  border: 0;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
}

label span,
legend {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  padding: 0;
  text-transform: uppercase;
}

label input {
  border: 1px solid rgba(17, 17, 17, 0.22);
  border-radius: 6px;
  min-height: 50px;
  outline: none;
  padding: 0 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  width: 100%;
}

label input:focus,
.ssn-grid input:focus {
  border-color: var(--steel);
  box-shadow: 0 0 0 4px rgba(79, 101, 112, 0.18);
}

.ssn-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(9, minmax(28px, 1fr));
}

.ssn-grid input {
  aspect-ratio: 1;
  border: 1px solid rgba(17, 17, 17, 0.22);
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 900;
  outline: none;
  text-align: center;
}

.verify-button {
  border-radius: 6px;
  width: 100%;
}

.modal-backdrop {
  align-items: center;
  background: rgba(0, 0, 0, 0.66);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 18px;
  position: fixed;
  z-index: 10;
}

.hidden {
  display: none !important;
}

.result-modal {
  background: var(--paper-strong);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 8px;
  box-shadow: 0 22px 80px var(--shadow);
  color: var(--ink);
  max-width: 560px;
  overflow: hidden;
  padding: clamp(26px, 5vw, 42px);
  position: relative;
  width: min(100%, 560px);
}

.result-modal::before {
  background: var(--red);
  content: "";
  height: 6px;
  inset: 0 0 auto;
  position: absolute;
}

.result-modal--closed::before {
  background: var(--green);
}

.result-modal h2 {
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  margin-bottom: 16px;
}

.result-modal p {
  line-height: 1.65;
}

.result-modal button {
  border-radius: 6px;
  margin-top: 12px;
  min-width: 120px;
}

.case-stamp {
  float: right;
  height: 126px;
  margin: -8px -8px 12px 18px;
  opacity: 0.92;
  transform: rotate(-7deg);
  width: 126px;
}

@media (max-width: 860px) {
  .hero {
    min-height: 86vh;
  }

  .hero__shade {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.88));
  }

  .hero__content {
    padding-top: 18vh;
  }

  .content-grid,
  .submit-shell {
    grid-template-columns: 1fr;
  }

  .step-grid {
    grid-template-columns: 1fr;
  }

  .step-card {
    min-height: auto;
  }
}

@media (max-width: 520px) {
  .hero {
    min-height: 82vh;
    padding: 24px 18px;
  }

  h1 {
    font-size: clamp(2.6rem, 17vw, 4.5rem);
  }

  .ssn-grid {
    gap: 5px;
  }

  .ssn-grid input {
    font-size: 0.95rem;
  }

  .case-stamp {
    float: none;
    margin: 0 0 14px;
  }
}
