:root {
  --blue: #0066cc;
  --blue-focus: #0071e3;
  --blue-dark: #2997ff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --muted-dark: #cccccc;
  --canvas: #ffffff;
  --parchment: #f5f5f7;
  --pearl: #fafafc;
  --tile-dark: #272729;
  --tile-dark-2: #2a2a2c;
  --black: #000000;
  --hairline: #e0e0e0;
  --divider: #f0f0f0;
  --product-shadow: 3px 5px 30px rgba(0, 0, 0, 0.22);
  --display: "SF Pro Display", system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --body: "SF Pro Text", system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--parchment);
  font-family: var(--body);
  letter-spacing: 0;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-shell {
  min-height: 100vh;
  background: var(--parchment);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  height: 44px;
  padding: 0 max(22px, calc((100vw - 1024px) / 2));
  background: var(--black);
  color: #ffffff;
}

.brand,
.nav-action,
.primary-btn,
.secondary-btn,
.ad-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.brand {
  justify-self: start;
  font-size: 12px;
  font-weight: 400;
}

.brand-mark {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--canvas);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.nav-links a {
  padding: 16px 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
}

.nav-links a:hover {
  color: #ffffff;
}

.nav-action {
  justify-self: end;
  min-height: 28px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  font-size: 14px;
  font-weight: 400;
}

.nav-action:active,
.primary-btn:active,
.secondary-btn:active,
.ad-cta:active,
.icon-choice:active,
.filter-tabs button:active {
  transform: scale(0.95);
}

.nav-action svg,
.primary-btn svg,
.secondary-btn svg,
.ad-cta svg {
  width: 16px;
  height: 16px;
}

.subnav {
  position: sticky;
  top: 44px;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 max(22px, calc((100vw - 980px) / 2));
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(245, 245, 247, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  color: var(--ink);
}

.subnav > a {
  font-size: 21px;
  font-weight: 600;
  line-height: 1.19;
}

.subnav div {
  display: flex;
  align-items: center;
  gap: 20px;
}

.subnav div a {
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
}

.subnav-buy {
  min-height: 28px;
  padding: 7px 14px;
  border-radius: 9999px;
  background: var(--blue);
  color: #ffffff !important;
}

.hero,
.mid-ad-wrap,
.workspace,
.tool-section,
.pricing,
.faq {
  width: 100%;
  padding: 80px max(22px, calc((100vw - 1440px) / 2));
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  min-height: calc(100vh - 96px);
  background: var(--canvas);
  text-align: center;
}

.hero-copy {
  max-width: 980px;
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.29;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 980px;
  margin: 0 auto 12px;
  font-family: var(--display);
  font-size: clamp(56px, 7.8vw, 112px);
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-family: var(--display);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.19;
}

.hero-lede {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
  color: var(--ink);
  font-size: clamp(21px, 2.4vw, 28px);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.primary-btn,
.secondary-btn {
  min-height: 44px;
  padding: 11px 22px;
  border-radius: 9999px;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.47;
  transition: transform 160ms ease;
}

.primary-btn {
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #ffffff;
}

.primary-btn:focus-visible,
.secondary-btn:focus-visible,
.ad-cta:focus-visible,
.subnav-buy:focus-visible {
  outline: 2px solid var(--blue-focus);
  outline-offset: 2px;
}

.secondary-btn {
  border: 1px solid var(--blue);
  background: transparent;
  color: var(--blue);
}

.product-stage {
  display: grid;
  place-items: center;
  min-height: 430px;
}

.device-frame {
  position: relative;
  width: min(100%, 920px);
  min-height: 410px;
  padding: 18px;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  background: var(--pearl);
  box-shadow: var(--product-shadow);
}

.device-toolbar {
  display: flex;
  gap: 7px;
  height: 30px;
}

.device-toolbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d2d2d7;
}

.device-toolbar span:nth-child(1) {
  background: #ff5f57;
}

.device-toolbar span:nth-child(2) {
  background: #ffbd2e;
}

.device-toolbar span:nth-child(3) {
  background: #28c840;
}

.device-grid {
  display: grid;
  grid-template-columns: 1.24fr 0.76fr;
  gap: 16px;
  min-height: 330px;
}

.device-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 150px;
  padding: 24px;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  background: var(--canvas);
  text-align: left;
}

.device-card p {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.29;
}

.device-card strong {
  display: block;
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 600;
  line-height: 1.1;
}

.device-card.wide {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: end;
  min-height: 136px;
  background: var(--parchment);
}

.device-card.wide svg {
  width: 42px;
  height: 42px;
  color: var(--blue);
}

.device-card.dark {
  border-color: transparent;
  background: var(--tile-dark);
  color: #ffffff;
}

.device-card.dark p {
  color: var(--muted-dark);
}

.device-card.chart {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  gap: 9px;
  background: var(--canvas);
}

.device-card.chart span {
  display: block;
  border-radius: 8px 8px 0 0;
  background: var(--ink);
}

.device-card.chart span:nth-child(1) {
  height: 38%;
}

.device-card.chart span:nth-child(2) {
  height: 62%;
}

.device-card.chart span:nth-child(3) {
  height: 46%;
}

.device-card.chart span:nth-child(4) {
  height: 88%;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: 100%;
  background: var(--hairline);
}

.metrics div {
  padding: 48px 24px;
  background: var(--parchment);
  text-align: center;
}

.metrics strong {
  display: block;
  font-size: 40px;
  font-weight: 600;
  line-height: 1.1;
}

.metrics span {
  color: var(--muted);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.47;
}

.section-heading {
  max-width: 980px;
  margin: 0 auto 48px;
  text-align: center;
}

.mid-ad-wrap {
  background: var(--tile-dark);
  color: #ffffff;
}

.mid-ad-wrap .eyebrow,
.mid-ad-wrap a,
.pricing .eyebrow {
  color: var(--blue-dark);
}

.ad-card {
  position: relative;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  max-width: 1180px;
  min-height: 260px;
  margin: 0 auto;
  padding: 48px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: var(--tile-dark-2);
  color: #ffffff;
}

.ad-label {
  position: absolute;
  top: 17px;
  left: 24px;
  color: var(--muted-dark);
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
}

.ad-visual {
  position: relative;
  width: 190px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--product-shadow);
}

.ad-visual span {
  position: absolute;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 9999px;
}

.ad-visual span:nth-child(1) {
  inset: 18%;
}

.ad-visual span:nth-child(2) {
  inset: 33%;
}

.ad-visual span:nth-child(3) {
  inset: 47%;
  background: var(--blue);
}

.ad-copy {
  max-width: 700px;
}

.ad-copy p,
.ad-copy span {
  color: var(--muted-dark);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.47;
}

.ad-copy h3 {
  margin-bottom: 12px;
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 600;
  line-height: 1.07;
}

.ad-cta {
  min-height: 44px;
  padding: 11px 22px;
  border-radius: 9999px;
  background: var(--blue);
  color: #ffffff;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.47;
  transition: transform 160ms ease;
  white-space: nowrap;
}

.workspace {
  background: var(--canvas);
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(280px, 1.18fr);
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.prompt-panel,
.answer-panel,
.tool-card,
.pricing-strip article,
details {
  border: 1px solid var(--hairline);
  border-radius: 18px;
}

.prompt-panel,
.answer-panel {
  padding: 24px;
  background: var(--canvas);
}

.prompt-panel label {
  display: block;
  margin-bottom: 12px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.24;
}

textarea,
input {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 9999px;
  outline: none;
  background: var(--canvas);
  color: var(--ink);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.47;
}

textarea {
  min-height: 154px;
  padding: 16px 20px;
  border-radius: 18px;
  resize: vertical;
}

textarea:focus,
input:focus {
  border-color: var(--blue-focus);
  outline: 2px solid var(--blue-focus);
  outline-offset: 2px;
}

.prompt-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 12px 0 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.43;
}

.control-row,
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.icon-choice,
.filter-tabs button {
  min-height: 44px;
  border: 1px solid var(--hairline);
  border-radius: 9999px;
  background: var(--canvas);
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.29;
  transition: transform 160ms ease;
}

.icon-choice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
}

.icon-choice svg {
  width: 15px;
  height: 15px;
}

.icon-choice.is-active,
.filter-tabs button.is-active {
  border-color: var(--blue-focus);
  outline: 1px solid var(--blue-focus);
}

.primary-btn.full {
  width: 100%;
  margin-top: 24px;
}

.answer-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 360px;
  border-color: transparent;
  background: var(--tile-dark);
  color: #ffffff;
}

.answer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted-dark);
  font-size: 14px;
  font-weight: 400;
}

.answer-panel p {
  max-width: 820px;
  margin: 40px 0;
  font-size: clamp(28px, 4.3vw, 46px);
  font-weight: 600;
  line-height: 1.1;
}

.quality-meter {
  height: 8px;
  overflow: hidden;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.18);
}

.quality-meter span {
  display: block;
  width: 64%;
  height: 100%;
  border-radius: inherit;
  background: var(--blue-dark);
  transition: width 220ms ease;
}

.tool-section {
  background: var(--parchment);
}

.tool-controls {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) auto;
  gap: 16px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto 24px;
}

.search-box {
  position: relative;
  display: block;
}

.search-box svg {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 16px;
  height: 16px;
  color: var(--muted);
  transform: translateY(-50%);
}

.search-box input {
  height: 44px;
  padding: 0 20px 0 44px;
}

.filter-tabs {
  justify-content: end;
}

.filter-tabs button {
  padding: 0 16px;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
}

.tool-card {
  min-height: 230px;
  padding: 24px;
  background: var(--canvas);
}

.tool-card.is-hidden {
  display: none;
}

.tool-card svg {
  width: 28px;
  height: 28px;
  margin-bottom: 28px;
  color: var(--blue);
}

.tool-card p {
  color: var(--muted);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.47;
}

.tool-card a {
  display: inline-flex;
  margin-top: 10px;
  color: var(--blue);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.47;
}

.pricing {
  display: grid;
  grid-template-columns: minmax(260px, 0.45fr) minmax(300px, 0.55fr);
  gap: 48px;
  align-items: start;
  background: var(--black);
  color: #ffffff;
}

.pricing-strip {
  display: grid;
  gap: 12px;
}

.pricing-strip article {
  padding: 24px;
  border-color: rgba(255, 255, 255, 0.18);
  background: var(--tile-dark);
}

.pricing-strip article.featured {
  border-color: var(--blue-dark);
}

.pricing-strip span {
  color: var(--muted-dark);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.29;
}

.pricing-strip strong {
  display: block;
  margin: 8px 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.19;
}

.pricing-strip p {
  margin-bottom: 0;
  color: var(--muted-dark);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.47;
}

.faq {
  background: var(--parchment);
}

.faq-list {
  display: grid;
  gap: 10px;
  max-width: 900px;
  margin: 0 auto;
}

details {
  background: var(--canvas);
}

summary {
  padding: 19px 22px;
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.24;
}

details p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.47;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 64px max(22px, calc((100vw - 980px) / 2));
  background: var(--parchment);
  color: #333333;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: auto 1fr auto;
    padding: 0 18px;
  }

  .nav-links {
    display: none;
  }

  .subnav {
    padding: 0 18px;
  }

  .subnav div a:not(.subnav-buy) {
    display: none;
  }

  .hero,
  .mid-ad-wrap,
  .workspace,
  .tool-section,
  .pricing,
  .faq {
    padding: 64px 18px;
  }

  .hero {
    min-height: auto;
  }

  .workspace-grid,
  .pricing,
  .tool-controls {
    grid-template-columns: 1fr;
  }

  .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-tabs {
    justify-content: start;
  }

  .ad-card {
    grid-template-columns: 150px minmax(0, 1fr);
  }

  .ad-cta {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 680px) {
  .brand span:last-child,
  .nav-action span {
    display: none;
  }

  .subnav > a {
    font-size: 17px;
  }

  h1 {
    font-size: 38px;
    line-height: 1.07;
  }

  h2 {
    font-size: 34px;
  }

  .hero-lede {
    font-size: 17px;
    line-height: 1.47;
  }

  .hero {
    gap: 20px;
    padding: 36px 18px 22px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-btn,
  .secondary-btn {
    width: 100%;
  }

  .product-stage {
    min-height: 118px;
  }

  .device-frame {
    height: 118px;
    min-height: 118px;
    overflow: hidden;
    padding: 12px;
  }

  .device-grid,
  .metrics,
  .ad-card,
  .tool-grid {
    grid-template-columns: 1fr;
  }

  .device-card {
    min-height: 92px;
    padding: 16px;
  }

  .device-card strong {
    font-size: 26px;
  }

  .device-card.chart {
    display: none;
  }

  .metrics div {
    padding: 32px 18px;
  }

  .ad-card {
    padding: 48px 20px 24px;
  }

  .ad-visual {
    width: min(100%, 210px);
  }

  .answer-panel p {
    margin: 28px 0;
  }

  .site-footer {
    flex-direction: column;
    padding: 48px 18px;
  }
}
