* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --page-background: #f5f7fa;
  --sheet-background: #f8fafb;
  --text: #17212b;
  --muted: #5f6f84;
  --muted-strong: #526174;
  --border: rgba(23, 33, 43, 0.14);
  --inner-border: rgba(23, 33, 43, 0.07);
  --rule: rgba(23, 33, 43, 0.15);
  --link-hover: #187d77;
  --frame-shadow: 0 20px 70px rgba(23, 33, 43, 0.08);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page-background: #111315;
  --sheet-background: #191d1e;
  --text: #f1f4f3;
  --muted: #a8b0b1;
  --muted-strong: #c1c8c7;
  --border: rgba(241, 244, 243, 0.2);
  --inner-border: rgba(241, 244, 243, 0.09);
  --rule: rgba(241, 244, 243, 0.18);
  --link-hover: #82e6df;
  --frame-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

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

body {
  margin: 0;
  background: var(--page-background);
  color: var(--text);
  font-family: Arial, sans-serif;
  overflow: hidden;
  transition:
    background-color 300ms ease,
    color 300ms ease;
}

.page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 28px;
  position: relative;
  z-index: 1;
}

.sheet {
  width: min(100%, 660px);
  height: min(90vh, 900px);
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--sheet-background);
  text-align: left;
  position: relative;
  overflow: hidden;
  timeline-scope: --sheet-scroll;
  box-shadow: var(--frame-shadow);
  transition: background-color 300ms ease;
}

.sheet::before {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: 3;
  border: 1px solid var(--inner-border);
  pointer-events: none;
}

.sheet-content {
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 40px 56px 120px;
  position: relative;
  z-index: 1;
  overscroll-behavior: contain;
  scrollbar-color: var(--border) transparent;
  scrollbar-width: thin;
  scroll-timeline: --sheet-scroll block;
}

.sheet-content::-webkit-scrollbar {
  width: 6px;
}

.sheet-content::-webkit-scrollbar-track {
  background: transparent;
}

.sheet-content::-webkit-scrollbar-thumb {
  border-radius: 0;
  background: var(--border);
}

.logo {
  width: 44px;
  height: auto;
  display: block;
  margin-bottom: 16px;
  transition: filter 300ms ease;
}

:root[data-theme="dark"] .logo {
  filter: invert(1);
}

h1 {
  margin: 0;
  font-size: 40px;
  line-height: 1;
  font-weight: 650;
}

p {
  margin: 0;
  color: var(--muted);
}

.product-intro {
  margin-top: 24px;
  border-top: 1px solid var(--rule);
  padding-top: 24px;
}

.product-summary {
  border-left: 2px solid #62cec7;
  padding-left: 14px;
  color: var(--muted-strong);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
}

.preview-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-decoration: underline;
  text-decoration-color: #62cec7;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.preview-parenthetical {
  white-space: nowrap;
}

.preview-link:hover,
.preview-link:focus-visible {
  color: var(--link-hover);
  outline: none;
}

.workflow {
  margin-top: 24px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.workflow-step {
  padding: 18px 16px 20px;
}

.workflow-step + .workflow-step {
  border-left: 1px solid var(--rule);
}

.workflow-step h3 {
  margin: 0 0 14px;
  color: var(--link-hover);
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0;
}

.workflow-step p {
  color: var(--muted-strong);
  font-size: 13px;
  line-height: 1.55;
}

.detail-section {
  margin-top: 54px;
  border-top: 1px solid var(--rule);
  padding-top: 40px;
}

.detail-section h2 {
  margin: 0;
  color: var(--text);
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0;
}

.audience-list {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.audience-list li {
  padding: 17px 0;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
}

.audience-list strong {
  color: var(--text);
  font-size: 14px;
}

.audience-list span {
  color: var(--muted-strong);
  font-size: 14px;
  line-height: 1.5;
}

.approach-lead {
  margin-top: 24px;
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}

.approach p:last-child {
  margin-top: 14px;
  color: var(--muted-strong);
  font-size: 14px;
  line-height: 1.6;
}

.contact {
  width: min(100%, 560px);
  margin-top: 30px;
  display: grid;
  gap: 9px;
}

.contact p {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.contact .contact-intro {
  font-size: 16px;
}

.demo-link {
  width: max-content;
  max-width: 100%;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration-color: #62cec7;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.demo-link:hover,
.demo-link:focus-visible {
  color: var(--link-hover);
  outline: none;
}

.contact .credentials {
  margin-top: 8px;
  color: var(--muted-strong);
  font-weight: 500;
}

.email-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: max-content;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: linear-gradient(135deg, #69d7d0 0%, #89e4de 52%, #62cec7 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 12px 30px rgba(32, 166, 158, 0.12);
  color: #071011;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 11px 18px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
}

.email-banner::after {
  content: "";
  position: absolute;
  inset: -45% -60%;
  z-index: -1;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.68) 0%, rgba(255, 255, 255, 0.24) 28%, transparent 58%);
  opacity: 0.82;
  transform: translateX(-36%);
  animation: premium-light 7s ease-in-out infinite;
}

.email-banner:hover,
.email-banner:focus-visible {
  outline: 1px solid var(--text);
  outline-offset: 4px;
}

.scroll-gear {
  width: 160px;
  aspect-ratio: 1;
  position: absolute;
  right: -80px;
  bottom: -80px;
  z-index: 2;
  border: 0;
  padding: 0;
  background: transparent;
  opacity: 0.8;
  cursor: pointer;
  filter:
    drop-shadow(-10px -8px 12px rgba(255, 255, 255, 0.3))
    drop-shadow(-14px 14px 18px rgba(23, 33, 43, 0.24));
}

:root[data-theme="dark"] .scroll-gear {
  opacity: 0.72;
  filter:
    drop-shadow(-10px -8px 16px rgba(137, 228, 222, 0.2))
    drop-shadow(-14px 14px 20px rgba(0, 0, 0, 0.58));
}

.scroll-gear img {
  width: 100%;
  height: auto;
  display: block;
}

.scroll-gear:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: -4px;
}

.gear-cue {
  width: max-content;
  margin: 54px 34px 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.gear-cue span:last-child {
  color: #62cec7;
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
}

.product-dialog {
  width: min(92vw, 1180px);
  max-height: 90vh;
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0;
  background: var(--sheet-background);
  color: var(--text);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

.product-dialog::backdrop {
  background: rgba(7, 11, 13, 0.72);
  backdrop-filter: blur(5px);
}

.product-dialog-header {
  border-bottom: 1px solid var(--rule);
  padding: 12px 14px 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.product-dialog-header strong {
  font-size: 14px;
}

.dialog-close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 25px;
  line-height: 1;
}

.dialog-close:hover,
.dialog-close:focus-visible {
  outline: 1px solid var(--text);
  outline-offset: 3px;
}

.product-dialog > img {
  width: 100%;
  max-height: calc(90vh - 60px);
  display: block;
  object-fit: contain;
}

@keyframes premium-light {
  0%,
  100% {
    transform: translateX(-36%);
  }

  50% {
    transform: translateX(36%);
  }
}

@keyframes scroll-gear-turn {
  to {
    transform: rotate(1turn);
  }
}

@supports (animation-timeline: scroll()) {
  .scroll-gear img {
    animation: scroll-gear-turn linear both;
    animation-timeline: --sheet-scroll;
  }
}

@media (max-width: 640px) {
  .page {
    display: block;
    padding: 0;
  }

  .sheet {
    width: 100%;
    height: 100dvh;
    max-height: none;
    border: 0;
    border-radius: 0;
  }

  .sheet::before {
    inset: 6px;
  }

  .sheet-content {
    padding: 30px 28px 100px;
  }

  h1 {
    font-size: 32px;
  }

  .product-intro {
    margin-top: 24px;
    padding-top: 24px;
  }

  .product-summary {
    font-size: 15px;
  }

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

  .workflow-step {
    padding: 14px 0 16px;
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 12px;
    align-items: start;
  }

  .workflow-step + .workflow-step {
    border-top: 1px solid var(--rule);
    border-left: 0;
  }

  .workflow-step h3 {
    margin: 2px 0 0;
  }

  .workflow-step p {
    font-size: 13px;
  }

  .audience-list li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .email-banner {
    width: 100%;
    justify-content: center;
    font-size: 16px;
  }

  .scroll-gear {
    width: 108px;
    right: -54px;
    bottom: -54px;
    opacity: 0.48;
  }

  .gear-cue {
    margin-right: 20px;
  }
}

@media (max-width: 360px) {
  .sheet-content {
    padding: 26px 22px 90px;
  }

  h1 {
    font-size: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .email-banner::after,
  .scroll-gear img {
    animation: none;
  }
}
