:root {
  color-scheme: dark;
  --bg: #050505;
  --panel: rgba(12, 13, 14, 0.96);
  --panel-strong: #101112;
  --line: rgba(255, 255, 255, 0.18);
  --text: #f6f2ee;
  --muted: #c7c1bc;
  --dim: #8d8782;
  --red: #b91117;
  --red-bright: #e3282e;
  --field: rgba(255, 255, 255, 0.08);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 28px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0));
}

.brand img {
  width: 210px;
  height: auto;
}

.button,
.submit-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--line);
  padding: 0 16px;
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.button:hover,
.submit-button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.36);
}

.primary,
.submit-button {
  border-color: rgba(227, 40, 46, 0.85);
  background: var(--red);
  box-shadow: 0 18px 36px rgba(185, 17, 23, 0.28);
}

.secondary {
  background: rgba(255, 255, 255, 0.09);
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("assets/raphion-product-grid.jpg");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.73) 42%, rgba(0, 0, 0, 0.36) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.08) 48%, rgba(0, 0, 0, 0.78) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  min-height: 100svh;
  margin: 0 auto;
  padding: 112px 0 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.76fr);
  gap: 44px;
  align-items: center;
}

.hero-copy {
  max-width: 690px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: 4.8rem;
  line-height: 0.96;
}

.hero-line {
  margin: 24px 0 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 1.32rem;
  line-height: 1.55;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.lead-capture {
  width: 100%;
}

.lead-capture[hidden] {
  display: none;
}

.lead-submit-frame {
  position: absolute;
  width: 1px;
  height: 1px;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.lead-form,
.lead-received {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(22px);
  padding: 24px;
}

.form-heading {
  margin-bottom: 18px;
}

.form-heading p {
  margin: 0 0 6px;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
}

.form-heading h2 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.15;
}

.lead-form label {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: var(--field);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  padding: 11px 12px;
  outline: none;
}

.lead-form select {
  color-scheme: dark;
}

.lead-form select option,
.lead-form select optgroup {
  background: #f7f7f7;
  color: #141516;
  font-weight: 700;
}

.lead-form select option:checked {
  background: #d7d7d7;
  color: #141516;
}

.lead-form select option:disabled {
  color: #555;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  border-color: rgba(227, 40, 46, 0.9);
  box-shadow: 0 0 0 3px rgba(227, 40, 46, 0.2);
}

.submit-button {
  width: 100%;
  min-height: 50px;
  margin-top: 18px;
  cursor: pointer;
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.78;
}

.form-note {
  margin: 14px 0 0;
  color: var(--dim);
  font-size: 0.86rem;
  line-height: 1.5;
}

.form-note a {
  color: var(--muted);
}

.lead-received {
  display: grid;
  gap: 14px;
}

.lead-received[hidden] {
  display: none;
}

.lead-received h2 {
  margin: 0;
  font-size: 1.8rem;
  line-height: 1.05;
}

.lead-received p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.lead-received .button {
  width: fit-content;
}

.honeypot {
  display: none !important;
}

body.lead-complete .hero-links .primary {
  display: none;
}

.brand-band {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1fr);
  gap: 0;
  background: #0f1011;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-band-inner {
  padding: 72px max(32px, calc((100vw - 1180px) / 2)) 72px 32px;
  align-self: center;
}

.brand-band h2 {
  max-width: 560px;
  margin: 0;
  font-size: 2.15rem;
  line-height: 1.1;
}

.brand-band ul {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-weight: 700;
}

.brand-band li {
  border-left: 3px solid var(--red-bright);
  padding-left: 14px;
}

.brand-band img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  align-items: center;
  justify-content: center;
  padding: 28px;
  color: var(--dim);
  background: #050505;
  font-size: 0.92rem;
}

.site-footer span {
  color: var(--text);
  font-weight: 800;
}

.thanks-page,
.plain-page,
.qr-page {
  min-height: 100svh;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.62)),
    url("assets/raphion-product-grid.jpg") center / cover fixed;
}

.thanks-shell,
.plain-shell,
.qr-shell {
  width: min(760px, calc(100% - 40px));
  min-height: 100svh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 54px 0;
}

.thanks-logo,
.plain-logo,
.qr-logo {
  width: 260px;
  margin-bottom: 36px;
}

.thanks-shell h1,
.plain-shell h1 {
  margin: 0;
  font-size: 3.2rem;
  line-height: 1;
}

.thanks-shell p,
.plain-shell p {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.65;
}

.back-link {
  margin-top: 28px;
  color: var(--muted);
  font-weight: 800;
}

.qr-shell {
  align-items: center;
  text-align: center;
}

.qr-code {
  width: min(70svw, 520px);
  border: 8px solid #fff;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.qr-shell p {
  margin: 22px 0 2px;
  color: var(--text);
  font-size: 2rem;
  font-weight: 900;
}

@media (max-width: 920px) {
  .hero-inner {
    grid-template-columns: 1fr;
    align-items: center;
    gap: 28px;
    padding-top: 128px;
  }

  h1 {
    font-size: 3.6rem;
  }

  .hero-line {
    font-size: 1.14rem;
  }

  .lead-capture {
    width: min(100%, 560px);
    margin: 0 auto;
  }

  .brand-band {
    grid-template-columns: 1fr;
  }

  .brand-band-inner {
    padding: 52px 24px;
  }

  .brand-band img {
    min-height: 320px;
  }
}

@media (max-width: 560px) {
  body {
    background: #050505;
  }

  .site-header {
    left: 50%;
    right: auto;
    width: min(100% - 28px, 420px);
    transform: translateX(-50%);
    padding: 18px 0 0;
    background: none;
  }

  .brand img {
    width: 176px;
    margin: 0 auto;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    background-position: 50% 8%;
    opacity: 0.88;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.5) 26%, rgba(0, 0, 0, 0.94) 72%, #050505 100%),
      linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.46));
  }

  .hero-inner {
    width: min(100% - 28px, 430px);
    min-height: auto;
    padding: 184px 0 28px;
    gap: 24px;
    justify-items: center;
    text-align: center;
  }

  .hero-copy {
    width: 100%;
    max-width: 390px;
    margin: 0 auto;
  }

  h1 {
    font-size: 3.18rem;
    line-height: 0.94;
  }

  .hero-line {
    max-width: 330px;
    margin: 18px auto 0;
    color: #ddd7d1;
    font-size: 1.05rem;
    line-height: 1.46;
  }

  .eyebrow {
    margin-bottom: 12px;
    font-size: 0.8rem;
  }

  .hero-copy > .eyebrow {
    display: none;
  }

  .hero-links {
    width: 100%;
    max-width: 350px;
    margin: 24px auto 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .button {
    width: 100%;
    min-height: 46px;
    padding: 0 12px;
    font-size: 0.92rem;
  }

  .lead-capture {
    width: 100%;
    max-width: 410px;
  }

  .lead-form,
  .lead-received {
    padding: 20px;
    text-align: left;
    box-shadow:
      0 24px 60px rgba(0, 0, 0, 0.5),
      0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  }

  .form-heading {
    text-align: center;
    margin-bottom: 20px;
  }

  .form-heading h2 {
    font-size: 1.38rem;
  }

  .lead-form label {
    margin-top: 11px;
    font-size: 0.86rem;
  }

  .lead-form input,
  .lead-form select {
    min-height: 48px;
    font-size: 1rem;
  }

  .submit-button {
    min-height: 52px;
  }

  .form-note {
    text-align: center;
    font-size: 0.82rem;
  }

  .lead-received {
    text-align: center;
  }

  .lead-received .button {
    width: 100%;
  }

  .brand-band {
    background: #090a0a;
  }

  .brand-band-inner {
    padding: 44px 20px 36px;
    text-align: center;
  }

  .brand-band h2 {
    max-width: 370px;
    margin: 0 auto;
    font-size: 2rem;
    line-height: 1.08;
  }

  .brand-band ul {
    max-width: 360px;
    margin: 26px auto 0;
    gap: 10px;
    text-align: center;
  }

  .brand-band li {
    border-left: 0;
    border-top: 2px solid var(--red-bright);
    padding: 12px 4px 0;
  }

  .brand-band img {
    min-height: 0;
    aspect-ratio: 1 / 1;
    object-position: center;
  }

  .site-footer {
    flex-direction: column;
    gap: 10px;
    padding: 30px 18px;
    text-align: center;
  }

  .thanks-shell h1,
  .plain-shell h1 {
    font-size: 2.5rem;
  }

  .thanks-shell,
  .plain-shell {
    align-items: center;
    text-align: center;
  }

  .thanks-logo,
  .plain-logo,
  .qr-logo {
    width: 220px;
    margin-left: auto;
    margin-right: auto;
  }

  .qr-code {
    width: min(82svw, 430px);
  }
}

@media (max-width: 380px) {
  .hero-inner {
    width: min(100% - 22px, 360px);
  }

  h1 {
    font-size: 2.78rem;
  }

  .hero-links {
    grid-template-columns: 1fr;
  }

  .lead-form,
  .lead-received {
    padding: 18px;
  }
}
