:root {
  --ink: #07131a;
  --ink-soft: #123042;
  --foam: #e8f4ef;
  --foam-dim: #b7d0c6;
  --signal: #2ee6a8;
  --signal-deep: #12b87f;
  --warn: #ffb454;
  --danger: #ff6b6b;
  --glass: rgba(8, 28, 38, 0.55);
  --line: rgba(232, 244, 239, 0.16);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--foam);
  background: var(--ink);
  line-height: 1.5;
  overflow-x: hidden;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(1200px 700px at 12% 8%, rgba(46, 230, 168, 0.18), transparent 55%),
    radial-gradient(900px 600px at 88% 18%, rgba(18, 100, 140, 0.35), transparent 50%),
    radial-gradient(800px 500px at 70% 90%, rgba(255, 180, 84, 0.12), transparent 45%),
    linear-gradient(160deg, #041016 0%, #0b2430 48%, #07131a 100%);
  animation: drift 18s ease-in-out infinite alternate;
}

.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -12deg,
    transparent 0 14px,
    rgba(232, 244, 239, 0.015) 14px 15px
  );
  opacity: 0.7;
  pointer-events: none;
}

@keyframes drift {
  from {
    filter: hue-rotate(0deg) saturate(1);
    transform: scale(1);
  }
  to {
    filter: hue-rotate(12deg) saturate(1.08);
    transform: scale(1.03);
  }
}

.shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  align-items: end;
  padding: clamp(1.25rem, 4vw, 3rem);
}

.hero {
  width: min(40rem, 100%);
  padding-bottom: clamp(1rem, 6vh, 3.5rem);
}

.brand {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 4.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: var(--foam);
  text-wrap: balance;
  animation: rise 0.7s ease-out both;
}

.headline {
  margin: 0 0 0.75rem;
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 2.6vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--foam);
  animation: rise 0.7s ease-out 0.08s both;
}

.lede {
  margin: 0 0 0.85rem;
  max-width: 34rem;
  color: var(--foam-dim);
  font-size: 1.02rem;
  animation: rise 0.7s ease-out 0.16s both;
}

.capacity {
  margin: 0 0 1.5rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--signal);
  letter-spacing: 0.01em;
  animation: rise 0.7s ease-out 0.2s both;
}

.field em {
  font-style: normal;
  font-weight: 500;
  color: rgba(183, 208, 198, 0.75);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.signup,
.thanks {
  display: grid;
  gap: 0.85rem;
  padding: 1.15rem;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  animation: rise 0.75s ease-out 0.24s both;
}

.field {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--foam-dim);
}

.field input {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(4, 16, 22, 0.65);
  color: var(--foam);
  font: inherit;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.85rem 0.95rem;
  border-radius: 0;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.field input:focus {
  border-color: var(--signal);
  box-shadow: 0 0 0 3px rgba(46, 230, 168, 0.2);
}

.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
  font-size: 0.88rem;
  color: var(--foam-dim);
  cursor: pointer;
}

.consent input {
  margin-top: 0.2rem;
  accent-color: var(--signal-deep);
  width: 1.05rem;
  height: 1.05rem;
}

.cta {
  appearance: none;
  border: 0;
  background: var(--signal);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  padding: 0.95rem 1.1rem;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    opacity 0.15s ease;
}

.cta:hover:not(:disabled) {
  background: #5ff0bf;
  transform: translateY(-1px);
}

.cta:disabled {
  opacity: 0.55;
  cursor: wait;
}

.form-status {
  margin: 0;
  font-size: 0.9rem;
  color: var(--warn);
}

.form-status[data-kind="error"] {
  color: var(--danger);
}

.thanks-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: -0.02em;
}

.thanks-body {
  margin: 0;
  color: var(--foam-dim);
}

.telegram {
  display: inline-block;
  width: fit-content;
  color: var(--ink);
  background: var(--foam);
  text-decoration: none;
  font-weight: 700;
  padding: 0.85rem 1rem;
  transition: background 0.15s ease;
}

.telegram:hover {
  background: #fff;
}

.how {
  width: min(40rem, 100%);
  margin-top: clamp(2rem, 6vh, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  animation: rise 0.75s ease-out 0.32s both;
}

.how-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.how-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.how-list li {
  color: var(--foam-dim);
  font-size: 0.98rem;
}

.how-list strong {
  color: var(--foam);
  font-weight: 700;
}

.how-note {
  margin: 1.1rem 0 0;
  font-size: 0.88rem;
  color: rgba(183, 208, 198, 0.85);
}

@media (min-width: 900px) {
  .shell {
    align-items: center;
    padding-left: clamp(2rem, 8vw, 7rem);
  }

  .hero {
    padding-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .atmosphere,
  .brand,
  .headline,
  .lede,
  .capacity,
  .signup,
  .thanks,
  .how {
    animation: none;
  }
}
