:root {
  --ink: #17212b;
  --muted: #5f6b7a;
  --line: #d7dde5;
  --teal: #007c92;
  --teal-bright: #11c7b8;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  color: white;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
}

button,
a {
  font: inherit;
}

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

button {
  cursor: pointer;
}

.portal {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #101820;
}

.background,
.shade {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
}

.background {
  z-index: 0;
}

img.background {
  object-fit: cover;
}

.product-backdrop {
  overflow: hidden;
  background: #07111c;
}

.product-backdrop::before {
  display: none;
  content: "";
}

.product-backdrop::after {
  display: none;
  content: "";
}

.device {
  position: absolute;
  z-index: 1;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 28px 36px rgba(0, 0, 0, 0.42));
}

.device-codec {
  top: 50%;
  right: 0;
  left: auto;
  z-index: 0;
  height: auto;
  width: 86vw;
  min-width: 1120px;
  max-width: 3600px;
  max-height: none;
  transform: translateY(-50%);
  object-fit: contain;
  object-position: center;
  filter: saturate(1.08) contrast(1.04) brightness(1.18);
  opacity: 0.98;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.42) 8%, #000 20%, #000 86%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.42) 8%, #000 20%, #000 86%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-composite: intersect;
}

.shade {
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(7, 15, 24, 0.78) 0%,
    rgba(7, 15, 24, 0.54) 34%,
    rgba(7, 15, 24, 0.2) 72%,
    rgba(7, 15, 24, 0.34) 100%
  ),
  linear-gradient(
    180deg,
    rgba(7, 15, 24, 0.98) 0%,
    rgba(7, 15, 24, 0.18) 16%,
    rgba(7, 15, 24, 0.12) 78%,
    rgba(7, 15, 24, 0.95) 100%
  );
}

.content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 100vh;
  width: 100%;
  max-width: none;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  padding: 40px clamp(24px, 3vw, 48px) 48px;
}

.brand {
  position: absolute;
  top: 24px;
  left: clamp(24px, 3vw, 48px);
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  height: 44px;
  width: 44px;
  place-items: center;
  border-radius: 6px;
  background: white;
  color: var(--teal);
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.brand-name,
.brand-subtitle {
  display: block;
}

.brand-name {
  font-size: 14px;
  font-weight: 700;
}

.brand-subtitle {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.copy {
  max-width: 560px;
}

.eyebrow,
.modal-label {
  margin: 0;
  color: #7ee4dc;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 20px 0 0;
  max-width: 560px;
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.05;
}

h1 span {
  display: block;
}

.lede {
  max-width: 540px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.7;
}

.call-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  margin-top: 32px;
  border: 0;
  border-radius: 6px;
  background: var(--teal-bright);
  color: #09121c;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 750;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
}

.demo-credit {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.call-button:hover {
  background: #7ee4dc;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.46);
  padding: 16px;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  width: min(100%, 392px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.28);
  padding: 20px;
}

.modal-head,
.modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.modal h2 {
  margin: 8px 0 0;
  font-size: 26px;
}

.icon-button {
  display: grid;
  height: 36px;
  width: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: #5f6b7a;
  font-size: 14px;
  font-weight: 800;
}

.icon-button:hover {
  border-color: #8a95a4;
  color: var(--ink);
}

.modal-detail {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.modal-detail[hidden] {
  display: none;
}

.call-summary {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6f8fb;
  padding: 16px;
  font-size: 14px;
}

.call-summary span {
  color: var(--muted);
}

.dial-pad {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6f8fb;
  padding: 14px;
}

.dial-feedback {
  display: block;
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 750;
  text-align: right;
}

.dial-feedback[hidden] {
  display: none;
}

.dial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.dial-key {
  display: grid;
  aspect-ratio: 1.35;
  min-height: 44px;
  place-items: center;
  border: 1px solid #c8d0da;
  border-radius: 6px;
  background: white;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
}

.dial-key:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.dial-key:active {
  background: #e8fbf9;
}

.dial-key:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 750;
}

.button-compact {
  min-height: 36px;
  padding: 8px 12px;
  font-size: 13px;
}

.button-dark {
  border: 0;
  background: #101820;
  color: white;
}

.button-dark:hover {
  background: var(--teal);
}

.button-danger {
  border: 0;
  background: #cf2e2e;
  color: white;
}

.button-danger:hover {
  background: #a82727;
}

.button-outline {
  border: 1px solid #c8d0da;
  background: white;
  color: #46515f;
}

.button-outline:hover {
  border-color: #667085;
}

.modal-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 20px;
}

@media (max-width: 640px) {
  .content {
    align-items: flex-start;
    padding: 32px 22px 42px;
  }

  .brand {
    top: 20px;
    left: 22px;
  }

  h1 {
    font-size: 44px;
  }

  .lede {
    font-size: 16px;
  }

  .copy {
    width: 100%;
    max-width: 300px;
  }

  .lede {
    max-width: 100%;
  }

  .call-button,
  .button {
    width: 100%;
  }

  .device-codec {
    top: 0;
    right: -34vw;
    left: auto;
    height: 100%;
    width: 148vw;
    max-height: none;
    transform: none;
    object-fit: cover;
    object-position: 38% center;
    opacity: 1;
  }

  .modal-backdrop {
    place-items: end center;
  }

  .modal-head {
    align-items: flex-start;
  }

  .call-summary {
    grid-template-columns: 1fr;
  }
}
