* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --dark: #0f2330;
  --ink: #151922;
  --muted: #5d596b;
  --line: #e4e9f1;
  --panel: #ffffff;
  --page: #fbf6ff;
  --pink: #d944ba;
  --purple: #9c4ee8;
  --teal: #20b7c9;
}

body {
  min-height: 100vh;
  font-family: "Inter", Arial, sans-serif;
  color: var(--ink);
  background: var(--page);
}

a {
  color: inherit;
  text-decoration: none;
}

.demo-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.demo-form-side {
  min-height: 100vh;
  padding: 32px clamp(18px, 3.2vw, 56px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fbf7ff;
}

.demo-card {
  width: min(100%, 620px);
  padding: clamp(24px, 2.4vw, 36px);
  border: 1px solid rgba(15, 35, 48, 0.07);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(34, 27, 50, 0.11);
}

.trial-link {
  width: 100%;
  min-height: 44px;
  margin-bottom: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #2e3036;
  font-size: clamp(14px, 0.95vw, 17px);
  font-weight: 800;
}

.demo-card-heading h1 {
  color: #151922;
  font-size: clamp(28px, 2.35vw, 38px);
  line-height: 1.05;
  font-weight: 900;
}

.demo-card-heading p {
  max-width: 560px;
  margin-top: 10px;
  color: var(--muted);
  font-size: clamp(14px, 1.05vw, 18px);
  line-height: 1.4;
  font-weight: 500;
}

.form-alert {
  margin-top: 16px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}

.form-alert.success {
  color: #0f6848;
  background: #eafaf3;
  border: 1px solid #bcebd6;
}

.form-alert.error {
  color: #9b1c1c;
  background: #fff1f1;
  border: 1px solid #ffd0d0;
}

.demo-form {
  margin-top: 26px;
}

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

.demo-form label {
  display: grid;
  gap: 6px;
}

.demo-form label span {
  color: #565265;
  font-size: 13px;
  font-weight: 800;
}

.demo-form input,
.demo-form select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: #747c8c;
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.demo-form select {
  appearance: auto;
}

.demo-form input:focus,
.demo-form select:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(156, 78, 232, 0.12);
}

.text-danger {
  color: #bd2424;
  min-height: 14px;
  font-size: 11px;
  font-weight: 700;
}

.submit-btn {
  width: 100%;
  min-height: 48px;
  margin-top: 22px;
  border: 0;
  border-radius: 11px;
  background: var(--dark);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 16px 28px rgba(15, 35, 48, 0.2);
  transition: transform 0.2s ease, background 0.2s ease;
}

.submit-btn:hover {
  background: #183245;
  transform: translateY(-1px);
}

.submit-btn:disabled {
  cursor: not-allowed;
  opacity: 0.76;
  transform: none;
}

.demo-note {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #625d70;
  font-size: 12px;
  font-weight: 700;
}

.demo-note span {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #5b5367;
  color: #fff;
  font-size: 10px;
}

.demo-story-side {
  min-height: 100vh;
  padding: 32px clamp(22px, 4.2vw, 70px);
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 77% 12%, rgba(217, 68, 186, 0.22), transparent 28%),
    radial-gradient(circle at 3% 100%, rgba(109, 61, 201, 0.27), transparent 38%),
    #060817;
  color: #fff;
}

.story-content {
  width: min(100%, 560px);
}

.story-content h2 {
  font-size: clamp(30px, 2.8vw, 44px);
  line-height: 1.22;
  font-weight: 900;
}

.story-content h2 span {
  background: linear-gradient(90deg, var(--pink), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.story-content p {
  max-width: 620px;
  margin-top: 18px;
  color: #a6adbf;
  font-size: clamp(14px, 1.05vw, 17px);
  line-height: 1.45;
  font-weight: 600;
}

.dashboard-visual {
  position: relative;
  width: min(360px, 100%);
  aspect-ratio: 1 / 0.88;
  margin-top: 30px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 53% 61%, rgba(32, 183, 201, 0.28), transparent 34%),
    linear-gradient(135deg, rgba(22, 55, 65, 0.62), rgba(8, 14, 23, 0.92));
  overflow: visible;
  box-shadow: inset 0 -42px 100px rgba(32, 183, 201, 0.09);
}

.screen-panel {
  position: absolute;
  left: 17%;
  top: 25%;
  width: 64%;
  height: 56%;
  border: 1px solid rgba(106, 210, 232, 0.42);
  background: rgba(30, 64, 76, 0.7);
  transform: perspective(650px) rotateY(-15deg) rotateX(3deg);
  box-shadow: 0 32px 50px rgba(0, 0, 0, 0.38);
}

.screen-top {
  height: 17%;
  border-bottom: 1px solid rgba(144, 219, 235, 0.18);
}

.bar-chart {
  position: absolute;
  left: 10%;
  bottom: 17%;
  width: 52%;
  height: 46%;
  display: flex;
  align-items: flex-end;
  gap: 4%;
  border-left: 1px solid rgba(159, 220, 236, 0.2);
  border-bottom: 1px solid rgba(159, 220, 236, 0.2);
  padding-left: 4%;
}

.bar-chart i {
  flex: 1;
  min-width: 5px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, #2dd4ff, #116b88);
  box-shadow: 0 0 12px rgba(45, 212, 255, 0.45);
}

.bar-chart i:nth-child(1) { height: 55%; }
.bar-chart i:nth-child(2) { height: 34%; }
.bar-chart i:nth-child(3) { height: 46%; }
.bar-chart i:nth-child(4) { height: 61%; }
.bar-chart i:nth-child(5) { height: 51%; }
.bar-chart i:nth-child(6) { height: 72%; }
.bar-chart i:nth-child(7) { height: 39%; }
.bar-chart i:nth-child(8) { height: 48%; }
.bar-chart i:nth-child(9) { height: 84%; }

.screen-menu {
  position: absolute;
  right: 5%;
  top: 26%;
  width: 24%;
  display: grid;
  gap: 7px;
}

.screen-menu span {
  height: 19px;
  border-radius: 2px;
  background: rgba(124, 171, 185, 0.34);
}

.metric-card {
  position: absolute;
  min-height: 56px;
  border: 1px solid rgba(160, 93, 236, 0.3);
  border-radius: 12px;
  background: rgba(32, 25, 48, 0.82);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
}

.metric-card.escalated {
  right: -42%;
  top: 10%;
  width: 68%;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.metric-card.escalated b {
  color: #a855f7;
  font-size: 22px;
}

.metric-card.escalated span {
  color: #e8e3ee;
  font-size: 14px;
  font-weight: 800;
}

.metric-card.response,
.metric-card.win {
  right: -44%;
  width: 39%;
  padding: 13px 15px;
}

.metric-card.response {
  top: 26%;
}

.metric-card.win {
  top: 51%;
}

.metric-card strong {
  display: block;
  color: #a3a8b8;
  font-size: 12px;
  line-height: 1.2;
  text-align: right;
}

.metric-card.response span,
.metric-card.win span {
  display: block;
  margin-top: 6px;
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  text-align: right;
}

@media (max-width: 1180px) {
  .metric-card.escalated,
  .metric-card.response,
  .metric-card.win {
    right: -12px;
  }
}

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

  .demo-form-side,
  .demo-story-side {
    min-height: auto;
    padding: 34px 18px;
  }

  .demo-story-side {
    justify-content: center;
  }

  .story-content {
    text-align: center;
  }

  .story-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .dashboard-visual {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 640px) {
  .demo-card {
    padding: 22px 16px;
  }

  .trial-link {
    min-height: 42px;
    margin-bottom: 24px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .demo-form input,
  .demo-form select {
    min-height: 44px;
    font-size: 14px;
  }

  .submit-btn {
    min-height: 46px;
    font-size: 14px;
  }

  .demo-note {
    align-items: flex-start;
    font-size: 14px;
    line-height: 1.5;
  }

  .dashboard-visual {
    width: 100%;
    aspect-ratio: 1 / 1.15;
  }

  .metric-card.escalated,
  .metric-card.response,
  .metric-card.win {
    right: 12px;
  }

  .metric-card.escalated {
    left: 12px;
    width: auto;
    min-height: 64px;
  }

  .metric-card.response,
  .metric-card.win {
    width: 45%;
  }
}
