:root {
  color-scheme: dark;
  --bg: #05080d;
  --bg-2: #0c121a;
  --panel: rgba(13, 22, 32, 0.88);
  --panel-strong: rgba(17, 29, 43, 0.96);
  --line: rgba(132, 199, 221, 0.24);
  --text: #f3f8fb;
  --muted: #a9bac4;
  --soft: #6d7f8d;
  --cyan: #45d8ff;
  --cyan-2: #7be9ff;
  --amber: #f0b84b;
  --danger: #ff6f61;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(115deg, rgba(5, 8, 13, 0.32), rgba(5, 8, 13, 0.82)),
    radial-gradient(circle at 8% 14%, rgba(69, 216, 255, 0.18), transparent 30%),
    radial-gradient(circle at 78% 20%, rgba(240, 184, 75, 0.15), transparent 28%),
    url("./assets/app-icon.png"),
    linear-gradient(135deg, #05080d 0%, #0a1018 48%, #040609 100%);
  background-position:
    center,
    center,
    center,
    18% 52%,
    center;
  background-repeat: no-repeat;
  background-size:
    cover,
    cover,
    cover,
    min(48vw, 620px),
    cover;
}

body::before {
  position: fixed;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.38;
  background-image:
    radial-gradient(circle at 18% 34%, rgba(69, 216, 255, 0.18) 0 2px, transparent 3px),
    radial-gradient(circle at 62% 42%, rgba(240, 184, 75, 0.18) 0 2px, transparent 3px),
    linear-gradient(rgba(123, 233, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123, 233, 255, 0.06) 1px, transparent 1px);
  background-size:
    180px 160px,
    220px 190px,
    44px 44px,
    44px 44px;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
}

a {
  color: inherit;
}

.page-shell {
  min-height: 100vh;
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: 100vh;
  padding: 28px clamp(18px, 4vw, 64px) 40px;
}

.ambient {
  position: absolute;
  border: 1px solid rgba(69, 216, 255, 0.18);
  pointer-events: none;
  transform: rotate(-8deg);
}

.ambient-one {
  right: -130px;
  top: 110px;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  box-shadow: inset 0 0 70px rgba(69, 216, 255, 0.09);
}

.ambient-two {
  left: -190px;
  bottom: 20px;
  width: 470px;
  height: 300px;
  border-radius: 40px;
  border-color: rgba(240, 184, 75, 0.16);
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto 36px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.topbar-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--cyan-2);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 750;
  background: rgba(9, 16, 24, 0.58);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(370px, 492px);
  align-items: center;
  gap: clamp(28px, 5vw, 74px);
  max-width: 1180px;
  margin: 0 auto;
  min-height: calc(100vh - 118px);
}

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

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

.hero-copy h1 {
  margin-bottom: 20px;
  font-size: clamp(3.5rem, 8.8vw, 7.7rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.lead {
  max-width: 620px;
  margin-bottom: 20px;
  color: var(--cyan-2);
  font-size: clamp(1.45rem, 2.6vw, 2.25rem);
  line-height: 1.08;
  font-weight: 760;
}

.support {
  max-width: 610px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.signal-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 660px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.signal-panel > div {
  padding: 18px;
  background: rgba(8, 15, 23, 0.86);
}

.signal-value,
.signal-label {
  display: block;
}

.signal-value {
  margin-bottom: 7px;
  color: var(--text);
  font-size: 1.12rem;
  font-weight: 800;
}

.signal-label {
  color: var(--soft);
  font-size: 0.84rem;
  line-height: 1.35;
}

.form-card,
.thanks-card {
  border: 1px solid rgba(123, 233, 255, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(19, 34, 49, 0.96), rgba(9, 16, 24, 0.98)),
    var(--panel);
  box-shadow: var(--shadow);
}

.form-card {
  padding: clamp(22px, 3vw, 34px);
  align-self: center;
}

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

.form-heading h2 {
  margin-bottom: 8px;
  font-size: 1.72rem;
  letter-spacing: 0;
}

.form-heading p,
.form-note {
  color: var(--muted);
  line-height: 1.55;
}

form {
  display: grid;
  gap: 16px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
}

label > span {
  color: #d6e2e8;
  font-size: 0.86rem;
  font-weight: 760;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(154, 205, 222, 0.26);
  border-radius: 8px;
  color: var(--text);
  background: rgba(4, 9, 14, 0.72);
  font: inherit;
  font-size: 0.96rem;
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

input,
select {
  min-height: 48px;
  padding: 0 13px;
}

textarea {
  resize: vertical;
  min-height: 122px;
  padding: 13px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(69, 216, 255, 0.14);
  background: rgba(5, 11, 17, 0.92);
}

textarea::placeholder {
  color: #6f8390;
}

.check-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(240, 184, 75, 0.22);
  border-radius: 8px;
  background: rgba(240, 184, 75, 0.07);
}

.check-row input {
  width: 18px;
  min-height: auto;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--amber);
}

.check-row span {
  color: #e7d9bd;
  font-size: 0.9rem;
  line-height: 1.42;
}

button,
.play-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  color: #031016;
  background: linear-gradient(135deg, var(--cyan), var(--amber));
  font: inherit;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(69, 216, 255, 0.22);
}

button:hover,
.play-button:hover {
  filter: brightness(1.05);
}

.form-note {
  margin-bottom: 0;
  font-size: 0.88rem;
}

.hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
}

.thanks-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.thanks-card {
  width: min(100%, 680px);
  padding: clamp(28px, 6vw, 54px);
}

.thanks-card .brand {
  margin-bottom: 34px;
}

.thanks-card h1 {
  margin-bottom: 16px;
  font-size: clamp(2.4rem, 8vw, 4.6rem);
  line-height: 0.95;
}

.thanks-card p {
  max-width: 590px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.play-button {
  width: fit-content;
  margin: 14px 0 18px;
  padding: 0 22px;
}

@media (max-width: 940px) {
  .hero {
    padding-top: 22px;
  }

  .topbar {
    margin-bottom: 34px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero-copy {
    max-width: none;
  }
}

@media (max-width: 620px) {
  .topbar {
    align-items: flex-start;
  }

  .topbar-link {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.82rem;
  }

  .hero-copy h1 {
    font-size: clamp(3rem, 18vw, 5.2rem);
  }

  .signal-panel,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .signal-panel > div {
    padding: 15px;
  }

  .form-card {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .form-card,
  .thanks-card,
  .signal-panel {
    animation: rise-in 560ms ease both;
  }

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