:root {
  --bg: #07090c;
  --ink: #f6f8fb;
  --muted: #b8c2cf;
  --cyan: #2bd3ff;
  --orange: #ff7a2f;
  --line: rgba(255, 255, 255, .14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(43, 211, 255, .16), transparent 32%),
    radial-gradient(circle at bottom right, rgba(255, 122, 47, .11), transparent 30%),
    var(--bg);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.demo-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 20px;
}

.demo-card {
  width: min(100%, 980px);
  border: 1px solid rgba(43, 211, 255, .20);
  border-radius: 22px;
  padding: clamp(28px, 5vw, 54px);
  background:
    linear-gradient(145deg, rgba(9, 24, 38, .96), rgba(5, 12, 20, .96));
  box-shadow:
    0 28px 70px rgba(0, 0, 0, .42),
    inset 0 0 0 1px rgba(255, 255, 255, .03);
}

.demo-header {
  max-width: 760px;
  margin-bottom: 34px;
}

.demo-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.demo-brand img {
  width: clamp(112px, 11vw, 148px);
  height: clamp(112px, 11vw, 148px);
  object-fit: contain;
  border: 1px solid rgba(43, 211, 255, .22);
  border-radius: 22px;
  padding: 12px;
  background: rgba(255, 255, 255, .04);
}

.eyebrow {
  margin: 0;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
}

p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

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

.module-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -10px 0 24px;
}

.area-card {
  width: min(100%, 1180px);
}

.demo-module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.demo-module-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, .035);
}

.demo-module-card img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
}

.demo-module-card h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.demo-module-card p {
  margin: 0;
  font-size: 14px;
}

.demo-module-card .button-link {
  grid-column: 1 / -1;
  justify-content: center;
}

.area-actions {
  margin-top: 24px;
}

.form-row {
  display: grid;
  gap: 8px;
}

.form-row.full,
.privacy-box,
.form-actions,
.error-box {
  grid-column: 1 / -1;
}

label {
  color: #dce8f2;
  font-weight: 800;
  font-size: 14px;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px;
  padding: 14px 15px;
  color: var(--ink);
  background: rgba(255, 255, 255, .06);
  font: inherit;
  outline: none;
}

input:focus,
textarea:focus {
  border-color: rgba(43, 211, 255, .72);
  box-shadow: 0 0 0 4px rgba(43, 211, 255, .08);
}

input:disabled {
  color: #dce8f2;
  opacity: 1;
  background: rgba(43, 211, 255, .08);
}

.field-feedback {
  display: block;
  min-height: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.field-feedback.valid {
  color: #3ddc84;
}

.field-feedback.invalid {
  color: #ff9b96;
}

.privacy-box,
.error-box {
  margin-top: 8px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, .04);
}

.privacy-box label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--muted);
  font-weight: 600;
}

.privacy-box input {
  width: auto;
  margin-top: 4px;
}

.error-box {
  color: #ffd9c5;
  border-color: rgba(255, 122, 47, .42);
  background: rgba(255, 122, 47, .08);
  font-weight: 700;
}

.error-box.is-ok {
  color: #c8ffe3;
  border-color: rgba(61, 220, 132, .42);
  background: rgba(61, 220, 132, .08);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 12px;
}

button,
.button-link {
  border: 0;
  border-radius: 12px;
  min-height: 52px;
  padding: 0 24px;
  cursor: pointer;
  color: #071018;
  background: var(--cyan);
  font-weight: 900;
  font-size: 15px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.form-actions a:not(.button-link) {
  color: var(--muted);
  text-decoration: none;
  font-weight: 800;
}

.form-actions a:hover {
  color: var(--cyan);
}

.thanks-card {
  max-width: 760px;
}

.summary-list {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.summary-list li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
  font-size: 18px;
}

.summary-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .65em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

@media (max-width: 760px) {
  .demo-form {
    grid-template-columns: 1fr;
  }

  .demo-page {
    padding: 22px 14px;
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  button,
  .button-link {
    justify-content: center;
    width: 100%;
  }
}
