:root {
  --ink: #111827;
  --muted: #647184;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --violet: #6d4aff;
  --surface: #f8fafc;
  --line: #dbe1e8;
  --white: #ffffff;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  background: var(--white);
}

body {
  margin: 0;
}

a {
  color: inherit;
}

.shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(52px, 8vh, 82px) 0 44px;
}

.intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: clamp(40px, 6vh, 62px);
}

.intro h1 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(44px, 5vw, 68px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.intro p {
  max-width: 310px;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

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

.product-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(25px, 2.6vw, 36px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.07);
}

.product-header {
  display: flex;
  align-items: center;
}

.product-name {
  display: flex;
  align-items: center;
  gap: 12px;
}

.product-name h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1;
  letter-spacing: -0.045em;
}

.glimpse-mark {
  position: relative;
  display: inline-block;
  width: 28px;
  height: 22px;
  border-radius: 3px;
  background: var(--blue);
  box-shadow: 4px 4px 0 #9bb7f2;
  transform: rotate(-2deg);
}

.glimpse-mark span {
  position: absolute;
  inset: 6px;
  border-bottom: 2px solid #f59e0b;
  background: rgba(255, 255, 255, 0.16);
}

.pom-mark {
  display: grid;
  width: 31px;
  height: 27px;
  place-items: center;
  border-radius: 6px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--violet));
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
}

.product-copy {
  min-height: 52px;
  max-width: 470px;
  margin: 25px 0 30px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.015em;
}

.glimpse-demo,
.pom-demo {
  height: 280px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.demo-toolbar {
  display: flex;
  height: 50px;
  align-items: center;
  justify-content: space-between;
  padding: 0 13px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
  font-size: 10px;
}

.demo-file {
  display: flex;
  align-items: center;
  gap: 4px;
}

.demo-file > span {
  width: 16px;
  height: 13px;
  margin-right: 4px;
  border: 2px solid var(--blue);
  border-radius: 2px;
}

.demo-file code {
  color: var(--muted);
}

.demo-download {
  padding: 8px 9px;
  border-radius: 5px;
  color: var(--white);
  background: #237a63;
  font-weight: 600;
}

.demo-editor {
  display: grid;
  grid-template-columns: 68px 1fr;
  height: 230px;
}

.demo-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 9px;
  border-right: 1px solid var(--line);
  background: #f1f4f7;
}

.thumbnail {
  aspect-ratio: 16 / 9;
  border: 1px solid #cfd6df;
  border-radius: 2px;
  background:
    linear-gradient(90deg, #dce7f9 52%, transparent 52%) 8px 9px / 32px 3px
      no-repeat,
    var(--white);
}

.thumbnail.active {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}

.demo-stage {
  display: grid;
  place-items: center;
  padding: 28px;
  background: #e5e7eb;
}

.demo-slide {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: clamp(18px, 2.5vw, 34px);
  background: var(--white);
  box-shadow: 0 9px 20px rgba(15, 23, 42, 0.1);
}

.demo-slide small {
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 8px;
  font-weight: 700;
}

.demo-slide > strong {
  display: block;
  margin-top: 12px;
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.bars {
  position: absolute;
  right: 10%;
  bottom: 18%;
  display: flex;
  align-items: end;
  gap: 5px;
}

.bars i {
  display: block;
  width: 11px;
  height: 28px;
  border-radius: 2px 2px 0 0;
  background: var(--blue);
  opacity: 0.4;
}

.bars i:nth-child(2) {
  height: 46px;
  opacity: 0.7;
}

.bars i:nth-child(3) {
  height: 65px;
  opacity: 1;
}

.pom-demo {
  position: relative;
  display: grid;
  place-items: center;
  padding: 34px;
  background:
    radial-gradient(circle at 78% 24%, rgba(109, 74, 255, 0.1), transparent 32%),
    linear-gradient(145deg, #f8fbff, #f7f5ff);
}

.prompt-window {
  position: absolute;
  top: 32px;
  left: 32px;
  width: 66%;
  padding: 18px;
  border: 1px solid #cfd7e4;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 30px rgba(59, 48, 112, 0.1);
}

.prompt-label,
.build-path {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.prompt-label {
  color: var(--violet);
}

.prompt-window p {
  margin: 12px 0 4px;
  color: #485568;
  font-size: 12px;
  line-height: 1.55;
}

.cursor {
  display: inline-block;
  width: 2px;
  height: 13px;
  background: var(--violet);
}

.build-path {
  position: absolute;
  bottom: 36px;
  left: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.build-path i {
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, var(--blue), var(--violet));
}

.pptx-file {
  position: absolute;
  right: 42px;
  bottom: 34px;
  display: grid;
  width: 70px;
  height: 84px;
  place-items: end center;
  padding-bottom: 16px;
  border: 1px solid #cfd7e4;
  border-radius: 5px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(59, 48, 112, 0.13);
}

.pptx-file strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
}

.file-fold {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 22px;
  height: 22px;
  border-bottom: 1px solid #cfd7e4;
  border-left: 1px solid #cfd7e4;
  background: #f4f1ff;
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}

.actions {
  display: flex;
  align-items: center;
  gap: 23px;
  margin-top: 30px;
}

.button,
.text-link {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 17px;
  border-radius: 7px;
  color: var(--white);
  transition: background-color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.glimpse-button {
  background: var(--blue);
}

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

.pom-button {
  background: var(--ink);
}

.pom-button:hover {
  background: #293244;
}

.text-link {
  color: var(--muted);
}

.text-link:hover {
  color: var(--ink);
}

.button:focus-visible,
.text-link:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 3px;
}

@media (max-width: 860px) {
  .intro {
    display: block;
  }

  .intro p {
    margin-top: 20px;
  }

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

@media (max-width: 520px) {
  .shell {
    width: min(100% - 28px, 470px);
    padding-top: 42px;
  }

  .intro h1 {
    font-size: 44px;
  }

  .product-card {
    padding: 23px;
  }

  .product-copy {
    min-height: 0;
  }

  .glimpse-demo,
  .pom-demo {
    height: 240px;
  }

  .demo-editor {
    height: 190px;
  }

  .demo-stage {
    padding: 19px;
  }

  .demo-slide {
    padding: 20px;
  }

  .prompt-window {
    top: 24px;
    left: 24px;
    width: 72%;
  }

  .build-path {
    bottom: 28px;
    left: 24px;
    gap: 7px;
    font-size: 8px;
  }

  .build-path i {
    width: 18px;
  }

  .pptx-file {
    right: 26px;
    bottom: 26px;
    width: 58px;
    height: 70px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }
}
