:root {
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #e5e5e7;
  --bg: #f5f5f7;
  --surface: #fff;
  --accent: #6e56cf;
  --red: #c9515b;
  --green: #27836a;
  font-family:
    Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  color: var(--ink);
  font-size: 16px;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
}

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

button {
  border: 0;
  padding: 0;
  color: inherit;
  background: none;
  font: inherit;
  cursor: pointer;
}

img,
svg {
  display: block;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.site-shell {
  width: min(1020px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  justify-self: start;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.brand strong {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 7px;
  justify-self: end;
  padding: 8px;
  color: var(--muted);
  font-size: 12px;
  transition: color 160ms ease;
}

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

.contact-link svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-link .chat-dots {
  stroke-width: 2.6;
}

main {
  flex: 1;
}

.showcase {
  padding: 54px 0 64px;
}

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

.eyebrow {
  color: #8a8a8f;
  font-size: 11px;
  font-weight: 550;
  letter-spacing: 0.03em;
}

.intro h1 {
  margin: 11px 0 0;
  font-size: clamp(44px, 5.4vw, 64px);
  line-height: 1.08;
  font-weight: 650;
  letter-spacing: -0.055em;
}

.intro h1 span {
  color: #76767c;
}

.intro p {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.product-tabs {
  display: flex;
  align-items: center;
  align-self: stretch;
  gap: 27px;
}

.product-tab {
  position: relative;
  padding: 0;
  color: #8a8a8f;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 160ms ease;
}

.product-tab:hover {
  color: #4b4b50;
}

.product-tab.active {
  color: var(--ink);
}

.product-tab.active::after {
  content: "";
  position: absolute;
  inset: auto 0 -26px;
  height: 2px;
  background: var(--ink);
}

.carousel {
  position: relative;
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid #e3e3e6;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 28px #1d1d1f08;
  touch-action: pan-y;
}

.carousel-track {
  display: flex;
  align-items: stretch;
  transition: transform 560ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.slide {
  flex: 0 0 100%;
  min-width: 0;
  min-height: 500px;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.82fr);
  align-items: center;
  gap: 42px;
  padding: 28px;
  overflow: hidden;
  background: var(--surface);
}

.product-visual {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dedee2;
  border-radius: 7px;
  background: #eeeff3;
  box-shadow: 0 16px 34px #1d1d1f12;
}

.product-visual > img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: center;
  background: #f7f7f9;
}

.slide-copy {
  padding-right: 12px;
}

.slide-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.slide-brand img {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  object-fit: cover;
  box-shadow: 0 4px 12px #1d1d1f16;
}

.slide-brand.card-brand img {
  padding: 2px;
  border: 1px solid #e4e4e8;
  background: #fff;
  object-fit: contain;
}

.slide-brand span {
  color: #97979c;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.slide-copy h2 {
  margin: 10px 0 11px;
  font-size: 31px;
  line-height: 1.22;
  font-weight: 620;
  letter-spacing: -0.04em;
}

.slide-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.slide-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 24px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 550;
}

.slide-link svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 160ms ease;
}

.slide-link:hover svg {
  transform: translateX(3px);
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid #e2e2e5;
  border-radius: 50%;
  color: #626267;
  background: #fffffff2;
  box-shadow: 0 4px 14px #1d1d1f14;
  transform: translateY(-50%);
  transition:
    color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.carousel-arrow:hover {
  color: var(--ink);
  background: #fff;
}

.carousel-arrow.prev {
  left: 14px;
}

.carousel-arrow.next {
  right: 14px;
}

.carousel-arrow svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding-top: 18px;
}

.carousel-dots button {
  width: 6px;
  height: 6px;
  border-radius: 6px;
  background: #c7c7cc;
  transition:
    width 180ms ease,
    background 180ms ease;
}

.carousel-dots button.active {
  width: 20px;
  background: var(--ink);
}

.extension-visual {
  height: 420px;
  min-height: 420px;
  display: grid;
  place-items: center;
  padding: 22px;
  overflow: hidden;
  background: #eef0f4;
}

.browser-window {
  width: min(94%, 560px);
  overflow: hidden;
  border: 1px solid #d6d7dc;
  border-radius: 10px;
  background: #fff;
  box-shadow:
    0 1px 2px #1d1d1f0a,
    0 24px 52px #1d1d1f1c;
}

.browser-chrome {
  height: 38px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 58px;
  align-items: center;
  padding: 0 14px;
  border-bottom: 1px solid #e4e4e7;
  background: #f7f7f8;
}

.browser-dots {
  display: flex;
  gap: 5px;
}

.browser-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d2d2d6;
}

.browser-dots i:first-child {
  background: #ec6a5e;
}

.browser-dots i:nth-child(2) {
  background: #f4bf4f;
}

.browser-dots i:nth-child(3) {
  background: #61c454;
}

.browser-address {
  justify-self: center;
  width: min(230px, 100%);
  height: 23px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid #e0e0e4;
  border-radius: 5px;
  color: #929298;
  background: #fff;
  font-size: 9.5px;
}

.browser-address svg {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.1;
  stroke-linecap: round;
}

.browser-viewport {
  position: relative;
  height: 326px;
  overflow: hidden;
  background: #eceff2;
}

.work-page {
  position: absolute;
  inset: 13px;
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #e1e2e5;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 8px 22px #1d1d1f0c;
}

.work-sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 19px 13px;
  border-right: 1px solid #e8e8eb;
  background: #f8f8fa;
}

.work-sidebar i {
  width: 100%;
  height: 6px;
  border-radius: 5px;
  background: #e1e2e6;
}

.work-sidebar i:nth-child(1) {
  width: 58%;
  margin-bottom: 12px;
  background: #cfd1d7;
}

.work-sidebar i:nth-child(2) {
  background: #e7e3f0;
}

.work-sidebar i:nth-child(3) {
  width: 78%;
}

.work-sidebar i:nth-child(4) {
  width: 64%;
}

.work-document {
  padding: 20px 29px;
}

.work-document > span {
  display: block;
  height: 7px;
  border-radius: 6px;
  background: #dfe1e5;
}

.work-document > span:first-child {
  width: 42%;
  height: 10px;
  margin-bottom: 12px;
  background: #ced0d6;
}

.work-document > span:nth-child(2) {
  width: 68%;
  margin-bottom: 25px;
}

.work-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  grid-template-rows: 82px 76px;
  gap: 10px;
}

.work-grid i {
  display: block;
  border: 1px solid #eaebee;
  border-radius: 4px;
  background:
    linear-gradient(90deg, transparent 48%, #eef0f3 48% 56%, transparent 56%)
      12px 11px / calc(100% - 24px) 44px no-repeat,
    #fafafb;
}

.work-grid i:nth-child(2) {
  grid-row: span 2;
}

.extension-panel {
  position: absolute;
  top: 50%;
  right: 14px;
  z-index: 2;
  width: 46%;
  margin: 0;
  overflow: hidden;
  border: 1px solid #d2d3d8;
  border-radius: 7px;
  background: #fff;
  box-shadow:
    -12px 16px 34px #1d1d1f1c,
    0 2px 5px #1d1d1f0c;
  transform: translateY(-50%);
}

.extension-shot {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.card-fan {
  position: relative;
  height: 420px;
  min-height: 420px;
  overflow: hidden;
  background: #f0f1f5;
}

.card-screen {
  position: absolute;
  top: 50%;
  width: auto;
  height: calc(100% - 70px);
  max-height: 330px;
  aspect-ratio: 652 / 1408;
  overflow: hidden;
  border: 4px solid #1c1c1e;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 42px #1d1d1f24;
}

.card-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  background: #fff;
}

.card-screen-a {
  left: 13%;
  z-index: 1;
  transform: translateY(-50%) rotate(-7deg);
}

.card-screen-b {
  left: 50%;
  z-index: 3;
  transform: translate(-50%, -50%) rotate(1deg);
}

.card-screen-c {
  right: 13%;
  z-index: 2;
  transform: translateY(-50%) rotate(7deg);
}

footer {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: #86868b;
  font-size: 10px;
}

.qr-dialog {
  position: fixed;
  inset: 0;
  width: min(350px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  margin: auto;
  padding: 30px;
  overflow: auto;
  border: 1px solid #dedee2;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 28px 80px #1d1d1f24;
}

.qr-dialog::backdrop {
  background: #1d1d1f52;
  backdrop-filter: blur(5px);
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #86868b;
}

.dialog-close:hover {
  background: #f5f5f7;
}

.dialog-close svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
}

.qr-image {
  width: 226px;
  height: 226px;
  margin: 8px auto 22px;
  border-radius: 8px;
  object-fit: contain;
}

.contact-qr {
  width: 232px;
  height: 232px;
}

.qr-dialog h2 {
  margin: 0;
  text-align: center;
  font-size: 22px;
  font-weight: 620;
  letter-spacing: -0.025em;
}

.qr-dialog p {
  margin: 7px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

@media (max-width: 760px) {
  .site-shell {
    width: min(100% - 32px, 590px);
  }

  .topbar {
    height: auto;
    grid-template-areas:
      "brand contact"
      "tabs tabs";
    grid-template-columns: 1fr auto;
    padding-top: 14px;
    row-gap: 2px;
  }

  .brand {
    grid-area: brand;
  }

  .contact-link {
    grid-area: contact;
  }

  .product-tabs {
    grid-area: tabs;
    justify-content: space-between;
    gap: 0;
  }

  .product-tab {
    padding: 14px 0 13px;
    font-size: 12px;
  }

  .product-tab.active::after {
    inset: auto 0 0;
  }

  .showcase {
    padding: 38px 0 52px;
  }

  .intro {
    margin-bottom: 26px;
  }

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

  .intro h1 span {
    display: block;
    margin-top: 2px;
  }

  .intro p {
    font-size: 15px;
  }

  .carousel {
    margin-top: 14px;
  }

  .slide {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 16px;
  }

  .slide-copy {
    padding: 4px 4px 8px;
  }

  .slide-copy h2 {
    font-size: 27px;
  }

  .slide-copy p {
    font-size: 12px;
  }

  .slide-link {
    margin-top: 18px;
  }

  .carousel-arrow {
    display: none;
  }

  .extension-visual,
  .card-fan {
    height: 320px;
    min-height: 320px;
  }

  .extension-visual {
    padding: 16px;
  }

  .browser-window {
    width: min(96%, 350px);
  }

  .browser-chrome {
    height: 32px;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    padding: 0 9px;
  }

  .browser-viewport {
    height: 252px;
  }

  .work-page {
    inset: 8px;
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .work-sidebar {
    gap: 7px;
    padding: 13px 8px;
  }

  .work-document {
    padding: 14px 14px;
  }

  .work-grid {
    grid-template-rows: 54px 50px;
    gap: 7px;
  }

  .extension-panel {
    right: 8px;
    width: 49%;
  }

  .extension-shot {
    width: 100%;
    height: auto;
  }

  .card-screen {
    height: calc(100% - 54px);
    max-height: 246px;
    border-width: 3px;
    border-radius: 16px;
  }

  .card-screen-a {
    left: 8%;
  }

  .card-screen-b {
    left: 50%;
  }

  .card-screen-c {
    right: 8%;
  }
}

@media (max-width: 430px) {
  .product-tab {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-track,
  .carousel-dots button,
  .slide-link svg {
    transition: none;
  }
}
