:root {
  --black: #040404;
  --white: #f7f0e8;
  --muted: rgba(247, 240, 232, 0.72);
  --soft: rgba(247, 240, 232, 0.1);
  --red: #d71920;
  --red-soft: rgba(215, 25, 32, 0.2);
  --blue-soft: rgba(0, 120, 150, 0.22);
  --glass: rgba(5, 5, 5, 0.66);
  --line: rgba(255, 255, 255, 0.15);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: 58px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.brand,
.top-note {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 900;
}

.top-note {
  color: var(--muted);
}

.screen {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 82px 16px 42px;
  overflow: hidden;
}

.screen::before {
  content: "";
  position: absolute;
  inset: -4%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.46;
  filter: saturate(1.15) contrast(1.05);
  transform: scale(1.05);
  animation: slowDrift 28s ease-in-out infinite alternate;
}

.screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(120deg, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.78), rgba(120, 0, 0, 0.24)),
    radial-gradient(circle at 18% 70%, var(--blue-soft), transparent 32%),
    radial-gradient(circle at 78% 34%, var(--red-soft), transparent 30%);
}

.bg-hero::before {
  background-image: url("hero-bg.png");
}

.bg-body::before {
  background-image: url("bg-body.png");
}

.bg-stairs::before {
  background-image: url("bg-stairs.png");
}

.bg-face::before {
  background-image: url("bg-face.png");
  opacity: 0.52;
}

.soft::before {
  opacity: 0.34;
}

.dark::after {
  background:
    linear-gradient(120deg, rgba(0, 0, 0, 0.96), rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.58)),
    radial-gradient(circle at 20% 72%, var(--blue-soft), transparent 32%),
    radial-gradient(circle at 82% 32%, rgba(215, 25, 32, 0.16), transparent 30%);
}

.inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  animation: softEnter 0.9s ease both;
}

.hero-inner {
  max-width: 640px;
  margin-left: 0;
}

.workbook-card {
  padding: 22px;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  border-radius: 24px;
}

.kicker,
.progress {
  color: var(--red);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 900;
  margin-bottom: 16px;
}

h1,
h2 {
  font-family: "Playfair Display", serif;
  font-weight: 800;
  letter-spacing: -0.045em;
}

h1 {
  font-size: clamp(54px, 15vw, 118px);
  line-height: 0.88;
}

h2 {
  font-size: clamp(32px, 8.5vw, 68px);
  line-height: 0.96;
}

.claim {
  margin-top: 18px;
  font-size: clamp(22px, 5.8vw, 38px);
  line-height: 1.08;
  font-weight: 800;
  max-width: 560px;
}

.intro,
.lead {
  margin-top: 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.68;
  max-width: 610px;
}

.question-block {
  margin-top: 26px;
}

label {
  display: block;
  margin: 20px 0 9px;
  color: var(--white);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 800;
}

textarea,
input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.46);
  color: var(--white);
  padding: 15px;
  font-family: "Inter", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  outline: none;
  transition: border-color 0.3s ease, background 0.3s ease;
}

textarea {
  min-height: 108px;
  resize: vertical;
}

input {
  min-height: 54px;
}

textarea:focus,
input:focus {
  border-color: rgba(215, 25, 32, 0.78);
  background: rgba(0, 0, 0, 0.66);
}

textarea::placeholder,
input::placeholder {
  color: rgba(247, 240, 232, 0.42);
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  margin-top: 24px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.28s ease, background 0.28s ease, border-color 0.28s ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: #f02028;
}

.full {
  width: 100%;
}

.mirror {
  margin-top: 16px;
  padding: 16px;
  border-left: 3px solid var(--red);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 750;
}

.next {
  display: inline-block;
  margin-top: 22px;
  color: var(--muted);
  border-bottom: 1px solid var(--red);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 900;
}

.footer {
  padding: 38px 16px;
  text-align: center;
  background: #030303;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.7;
}

@keyframes slowDrift {
  from {
    transform: scale(1.05) translate(0, 0);
  }

  to {
    transform: scale(1.11) translate(-18px, 14px);
  }
}

@keyframes softEnter {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 720px) {
  .topbar {
    height: 64px;
    padding: 0 32px;
  }

  .brand,
  .top-note {
    font-size: 11px;
  }

  .screen {
    padding: 104px 34px 64px;
  }

  .workbook-card {
    padding: 38px;
    border-radius: 30px;
  }

  .hero-inner {
    margin-left: 5vw;
  }

  .intro,
  .lead {
    font-size: 18px;
  }

  label {
    font-size: 14px;
  }

  textarea {
    min-height: 126px;
  }

  .mirror {
    font-size: 16px;
  }
}

@media (min-width: 1040px) {
  .inner {
    max-width: 760px;
  }

  .hero-inner {
    max-width: 720px;
  }

  .workbook-card {
    max-width: 760px;
  }
}

@media (max-width: 380px) {
  .screen {
    padding-left: 12px;
    padding-right: 12px;
  }

  .workbook-card {
    padding: 18px;
    border-radius: 20px;
  }

  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 30px;
  }

  .claim {
    font-size: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .screen::before,
  .inner {
    animation: none;
  }

  * {
    transition: none !important;
  }
}