:root {
  --black: #04100b;
  --green: #1df08b;
  --green-2: #0ac96b;
  --green-3: #94ffd0;
  --white: #f4fff9;
  --muted: rgba(244, 255, 249, 0.76);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--black);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--white);
  background: var(--black);
  font-family: "Arial Narrow", "Roboto Condensed", Impact, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

button {
  font: inherit;
}

.page {
  width: min(100%, 520px);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--black);
  box-shadow: 0 0 90px rgba(0, 0, 0, 0.62);
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  padding: 26px 24px max(30px, env(safe-area-inset-bottom));
  isolation: isolate;
}

.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
  z-index: -3;
  transform: scale(1.02);
  animation: heroDrift 10s ease-in-out infinite alternate;
}

.shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(0, 12, 7, 0.48) 0%, rgba(0, 12, 7, 0.16) 42%, rgba(0, 12, 7, 0.24) 58%, rgba(0, 12, 7, 0.9) 100%),
    radial-gradient(circle at 22% 18%, rgba(29, 240, 139, 0.16), transparent 34%);
}

.hero::after,
.pitch::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -48px;
  height: 118px;
  background: var(--black);
  transform: rotate(-4deg);
  transform-origin: left top;
  z-index: -1;
}

.hero-copy {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hero-copy p {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.16;
  font-weight: 650;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.58);
}

.hero-copy .hello {
  position: absolute;
  top: max(30px, env(safe-area-inset-top));
  left: 24px;
  max-width: 16ch;
  color: rgba(255, 255, 255, 0.9);
  font-size: 19px;
}

.hero-copy .lead {
  position: absolute;
  left: 24px;
  bottom: 92px;
  max-width: 25ch;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.76);
}

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

h1 {
  position: absolute;
  top: 16%;
  left: 24px;
  max-width: 230px;
  margin: 0;
  font-size: clamp(30px, 7.8vw, 42px);
  line-height: 0.94;
  text-transform: uppercase;
  font-weight: 950;
  text-shadow: 0 9px 24px rgba(0, 0, 0, 0.5);
}

h1 span,
h1 strong {
  display: block;
}

h1 strong {
  color: var(--green-3);
  font-size: 0.96em;
}

h1 span {
  font-size: 0.9em;
}

.hero-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: max(28px, env(safe-area-inset-bottom));
  z-index: 2;
  display: grid;
  justify-items: center;
}

.story-progress {
  width: min(220px, 62vw);
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.story-progress span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), #d9fff0);
  transform-origin: left;
  animation: progressFill 4.8s ease forwards;
}

.pitch {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 18px max(70px, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 92% 8%, rgba(238, 255, 244, 0.56), transparent 27%),
    radial-gradient(circle at 16% 82%, rgba(2, 38, 26, 0.66), transparent 38%),
    linear-gradient(145deg, #28dd8c 0%, #109d5c 44%, #087342 72%, #03251a 100%);
  overflow: hidden;
}

.pitch::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.22) 0 1px, transparent 2px),
    radial-gradient(circle at 74% 28%, rgba(174, 255, 215, 0.2) 0 1px, transparent 2px),
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 74px 74px, 96px 96px, 52px 52px, 52px 52px;
  opacity: 0.2;
  pointer-events: none;
}

.glass-tube {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  border-radius: 999px;
  border: 10px solid rgba(230, 255, 242, 0.3);
  box-shadow:
    inset 0 0 18px rgba(255, 255, 255, 0.5),
    inset 0 0 34px rgba(29, 240, 139, 0.18),
    0 0 24px rgba(255, 255, 255, 0.14);
  filter: blur(0.2px);
  opacity: 0.62;
}

.glass-tube::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: inherit;
  border: 2px solid rgba(255, 255, 255, 0.34);
  opacity: 0.72;
}

.glass-tube-a {
  width: 310px;
  height: 112px;
  top: 42px;
  right: -120px;
  transform: rotate(-34deg);
}

.glass-tube-b {
  width: 360px;
  height: 116px;
  left: -150px;
  bottom: 44px;
  transform: rotate(-18deg);
  opacity: 0.42;
}

.glass-orb {
  position: absolute;
  right: 30px;
  bottom: 150px;
  z-index: 0;
  width: 74px;
  height: 74px;
  border-radius: 999px;
  border: 2px solid rgba(240, 255, 248, 0.5);
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.82), transparent 10%),
    radial-gradient(circle at 50% 55%, rgba(174, 255, 215, 0.22), rgba(255, 255, 255, 0.06) 58%, transparent 72%);
  box-shadow:
    inset 0 0 24px rgba(255, 255, 255, 0.28),
    0 16px 34px rgba(0, 40, 24, 0.28);
  opacity: 0.46;
  pointer-events: none;
}

.pitch-panel::before {
  content: "";
  position: absolute;
  top: -36px;
  right: -50px;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(207, 255, 230, 0.28);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.28), transparent 28%, rgba(255, 255, 255, 0.12) 58%, transparent 72%);
  filter: blur(0.2px);
  opacity: 0.34;
  transform: rotate(-26deg);
  pointer-events: none;
}

.pitch-panel::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 92px;
  width: 112px;
  height: 64px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(157, 255, 211, 0.2), rgba(2, 45, 29, 0.05)),
    repeating-linear-gradient(90deg, transparent 0 12px, rgba(180, 255, 220, 0.36) 12px 14px);
  opacity: 0.28;
  transform: skewX(-12deg);
  pointer-events: none;
}

.pitch-panel {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 18px 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(1, 52, 33, 0.28));
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 56px rgba(0, 44, 27, 0.22);
}

.kicker {
  margin: 0;
  text-transform: uppercase;
  color: white;
  font-size: clamp(32px, 9.8vw, 54px);
  line-height: 0.92;
  font-weight: 950;
}

.subline {
  max-width: 30ch;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 700;
}

.pitch-list {
  display: grid;
  gap: 13px;
  margin-top: 16px;
}

.pitch-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: start;
  padding: 18px 20px;
  border-radius: 19px;
  background:
    linear-gradient(90deg, rgba(240, 255, 248, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(3, 105, 64, 0.76), rgba(2, 60, 39, 0.76));
  border: 1px solid rgba(227, 255, 241, 0.22);
  box-shadow: 0 18px 34px rgba(0, 45, 28, 0.16);
  cursor: pointer;
  transition: opacity 1.05s ease, transform 1.05s cubic-bezier(0.16, 0.82, 0.22, 1), filter 0.18s ease;
}

.pitch-item h3 {
  margin: 0 0 8px;
  text-transform: uppercase;
  font-size: 23px;
  line-height: 0.96;
  font-weight: 950;
}

.pitch-item p,
.result-line p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.28;
  font-weight: 700;
}

.result-line {
  margin-top: 14px;
  padding: 16px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 86% 42%, rgba(29, 240, 139, 0.2), transparent 30%),
    linear-gradient(180deg, rgba(1, 22, 15, 0.88), rgba(1, 12, 9, 0.84));
  border: 1px solid rgba(255, 255, 255, 0.16);
  cursor: pointer;
  transition: opacity 1.05s ease, transform 1.05s cubic-bezier(0.16, 0.82, 0.22, 1), filter 0.18s ease;
}

.result-line strong {
  display: block;
  margin-top: 8px;
  color: #9dffd3;
  text-transform: uppercase;
  font-size: clamp(26px, 7vw, 38px);
  line-height: 0.9;
  font-weight: 950;
  white-space: nowrap;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 66px;
  width: min(100%, 360px);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 16px;
  color: #057244;
  background: linear-gradient(180deg, #ffffff, #eafff4);
  box-shadow: 0 20px 46px rgba(1, 20, 12, 0.34), 0 8px 24px rgba(255, 255, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  cursor: pointer;
  text-transform: uppercase;
  font-size: 34px;
  line-height: 0.9;
  font-weight: 950;
  transition: transform 0.16s ease, filter 0.2s ease;
}

.telegram-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  padding: 7px 8px 7px 6px;
  border-radius: 999px;
  fill: white;
  background: #229ed9;
  box-shadow: 0 8px 18px rgba(34, 158, 217, 0.35);
}

.pitch-cta {
  display: flex;
  position: relative;
  z-index: 1;
  width: calc(100% - 28px);
  margin: 18px auto 0;
}

.pitch-item:active,
.result-line:active,
.cta:active {
  transform: translateY(2px) scale(0.99);
  filter: brightness(1.08);
}

.reveal {
  opacity: 0;
  transform: translateY(30px) scale(0.985);
  transition: opacity 1.05s ease, transform 1.05s cubic-bezier(0.16, 0.82, 0.22, 1);
}

.pitch-item.reveal,
.result-line.reveal,
.pitch-cta.reveal {
  transform: translateY(34px) scale(0.985);
}

.pitch-item:nth-child(1) {
  transition-delay: 0.06s;
}

.pitch-item:nth-child(2) {
  transition-delay: 0.3s;
}

.pitch-item:nth-child(3) {
  transition-delay: 0.54s;
}

.result-line {
  transition-delay: 0.78s;
}

.pitch-cta {
  transition-delay: 1s;
}

.reveal.is-visible,
.pitch-item.reveal.is-visible,
.result-line.reveal.is-visible,
.pitch-cta.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@keyframes heroDrift {
  from {
    transform: scale(1.02) translateY(0);
  }
  to {
    transform: scale(1.06) translateY(-10px);
  }
}

@keyframes progressFill {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@media (max-width: 390px) {
  .hero {
    padding-left: 20px;
    padding-right: 20px;
  }

  h1 {
    top: 15%;
    left: 20px;
    max-width: 215px;
    font-size: clamp(29px, 7.6vw, 32px);
  }

  .hero-copy .hello {
    left: 20px;
    top: max(24px, env(safe-area-inset-top));
    font-size: 18px;
  }

  .hero-copy p {
    font-size: 17px;
  }

  .hero-copy .lead {
    left: 20px;
    bottom: 86px;
    max-width: 22ch;
    font-size: 15px;
    line-height: 1.22;
  }

  .pitch {
    padding-left: 14px;
    padding-right: 14px;
  }

  .pitch-panel {
    padding: 14px;
    border-radius: 22px;
  }

  .kicker {
    font-size: clamp(28px, 8vw, 32px);
    line-height: 0.92;
  }

  .subline {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.18;
  }

  .pitch-list {
    gap: 10px;
    margin-top: 11px;
  }

  .pitch-item {
    padding: 13px 16px;
  }

  .pitch-item h3 {
    margin-bottom: 6px;
    font-size: 20px;
  }

  .pitch-item p,
  .result-line p {
    font-size: 13px;
    line-height: 1.18;
  }

  .result-line {
    margin-top: 10px;
    padding: 13px 16px;
  }

  .result-line strong {
    font-size: clamp(24px, 6.8vw, 30px);
  }

  .pitch-cta {
    width: calc(100% - 28px);
    margin-top: 10px;
  }

  .cta {
    min-height: 56px;
    font-size: 28px;
  }

  .telegram-icon {
    width: 30px;
    height: 30px;
    padding: 6px 7px 6px 5px;
  }
}

@media (max-height: 780px) {
  .pitch {
    justify-content: center;
    padding: 36px 18px max(62px, env(safe-area-inset-bottom));
  }

  .pitch-panel {
    padding: 10px 14px 12px;
    border-radius: 20px;
  }

  .kicker {
    font-size: clamp(26px, 5.9vw, 32px);
    line-height: 0.9;
  }

  .subline {
    margin-top: 7px;
    font-size: 12px;
    line-height: 1.12;
  }

  .pitch-list {
    gap: 8px;
    margin-top: 9px;
  }

  .pitch-item {
    padding: 10px 17px;
    border-radius: 15px;
  }

  .pitch-item h3 {
    margin-bottom: 5px;
    font-size: 18px;
    line-height: 0.94;
  }

  .pitch-item p,
  .result-line p {
    font-size: 12px;
    line-height: 1.14;
  }

  .result-line {
    margin-top: 8px;
    padding: 11px 16px;
    border-radius: 15px;
  }

  .result-line strong {
    margin-top: 5px;
    font-size: clamp(24px, 5.4vw, 30px);
  }

  .pitch-cta {
    width: calc(100% - 34px);
    margin-top: 12px;
  }

  .cta {
    min-height: 52px;
    gap: 10px;
    border-radius: 14px;
    font-size: 26px;
  }

  .telegram-icon {
    width: 29px;
    height: 29px;
    padding: 6px 7px 6px 5px;
  }
}
