:root {
  --ink: #141416;
  --muted: #6f7178;
  --line: #e6e7eb;
  --surface: #ffffff;
  --surface-soft: #f7f8fb;
  --blue: #286cf4;
  --blue-dark: #1457d8;
  --blue-soft: #edf3ff;
  --page: #fbfbfc;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow-soft: 0 18px 55px rgba(23, 35, 58, 0.06);
}

* {
  box-sizing: border-box;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  color: var(--ink);
  background: var(--page);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  padding: 0 max(28px, calc((100vw - 1240px) / 2));
  background: rgba(251, 251, 252, 0.9);
  border-bottom: 1px solid rgba(230, 231, 235, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  color: var(--ink);
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  position: relative;
  color: #4f5158;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: -23px;
  left: 0;
  height: 2px;
  background: var(--blue);
  content: "";
  opacity: 0;
  transform: scaleX(0.45);
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.active {
  color: var(--ink);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.page-shell {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

.home-hero {
  padding: 84px 0 0;
  text-align: center;
}

.home-hero h1 {
  font-size: clamp(42px, 5.4vw, 78px);
  font-weight: 760;
  line-height: 1.08;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.home-hero p {
  max-width: 720px;
  margin: 22px auto 46px;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 20px);
}

.hero-image {
  width: 100%;
  height: min(620px, 50vw);
  min-height: 420px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  object-fit: cover;
  object-position: center;
}

.bridge {
  padding: 84px 0 44px;
  text-align: center;
}

.bridge h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 3.5vw, 48px);
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.bridge p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 17px;
}

.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
  padding-bottom: 92px;
}

.product-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 34px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.product-index {
  margin-bottom: 22px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.product-panel h2 {
  margin-bottom: 8px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.product-lead {
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 700;
}

.product-copy {
  min-height: 82px;
  color: var(--muted);
  font-size: 14px;
}

.plugin-preview {
  margin: 28px 0 4px;
}

.screenshot-frame {
  padding: 7px;
  background: #0c1724;
  border: 1px solid #25394b;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(16, 31, 51, 0.16);
}

.screenshot-frame img {
  display: block;
  width: 100%;
  border-radius: 8px;
}

.plugin-preview figcaption,
.interface-overview figcaption {
  margin-top: 10px;
  color: #7a7d86;
  font-size: 11px;
  line-height: 1.55;
}

.guide-gallery {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 10px;
  height: 280px;
  margin: 28px 0 24px;
}

.guide-gallery img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.guide-gallery img:last-child {
  object-position: 51% center;
}

.dimension-title,
.workflow-title,
.detail-title {
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 720;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 6px 10px;
  color: #555861;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 620;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 22px 0 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.stat {
  padding: 15px 10px;
  text-align: center;
  background: var(--surface-soft);
}

.stat + .stat {
  border-left: 1px solid var(--line);
}

.stat strong {
  display: block;
  margin-bottom: 2px;
  font-size: 15px;
}

.stat span {
  color: var(--muted);
  font-size: 11px;
}

.workflow {
  display: grid;
  gap: 0;
  margin: 28px 0 24px;
}

.workflow-step {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  min-height: 92px;
  padding-bottom: 18px;
}

.workflow-step:not(:last-child)::after {
  position: absolute;
  top: 31px;
  bottom: -1px;
  left: 15px;
  width: 1px;
  background: #a9c2ff;
  content: "";
}

.step-number {
  position: relative;
  z-index: 1;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #fff;
  background: var(--blue);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 750;
}

.workflow-step h3 {
  margin: 2px 0 4px;
  font-size: 15px;
}

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

.format-line {
  margin-top: 5px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 26px;
}

.detail-item {
  min-height: 86px;
  padding: 13px;
  background: var(--blue-soft);
  border-radius: 10px;
}

.detail-item strong {
  display: block;
  margin-bottom: 5px;
  color: var(--blue-dark);
  font-size: 13px;
}

.detail-item span {
  color: #596173;
  font-size: 11px;
  line-height: 1.45;
}

.panel-action {
  margin-top: auto;
  padding-top: 4px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  color: #fff;
  background: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  transform: translateY(-1px);
}

.button:focus-visible,
.text-link:focus-visible,
.brand:focus-visible,
.nav-links a:focus-visible {
  outline: 3px solid rgba(40, 108, 244, 0.28);
  outline-offset: 3px;
}

.button.secondary {
  color: var(--blue);
  background: transparent;
}

.button.secondary:hover {
  color: #fff;
  background: var(--blue);
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-footer {
  padding: 34px 24px 42px;
  color: #8a8c93;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 12px;
}

/* Plugin marketing page */
.plugin-shell {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
}

.plugin-hero {
  padding: 92px 0 74px;
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.plugin-hero h1 {
  max-width: 800px;
  font-size: clamp(42px, 5.6vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.plugin-hero .sub {
  max-width: 680px;
  margin: 22px 0 30px;
  color: var(--muted);
  font-size: 19px;
}

.plugin-section {
  padding: 70px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin-bottom: 10px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.section-heading p {
  color: var(--muted);
  font-size: 16px;
}

.section-kicker {
  margin-bottom: 12px;
  color: var(--blue) !important;
  font-size: 12px !important;
  font-weight: 760;
  letter-spacing: 0.12em;
}

.interface-section {
  padding-top: 24px;
}

.interface-overview {
  margin-bottom: 24px;
}

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

.interface-feature {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.interface-feature-wide {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.75fr);
  grid-column: 1 / -1;
  align-items: stretch;
}

.screenshot-crop {
  position: relative;
  overflow: hidden;
  background: #0c1724;
}

.screenshot-crop img {
  position: absolute;
  display: block;
  max-width: none;
}

.crop-tags {
  aspect-ratio: 1255 / 760;
}

.crop-tags img {
  top: -31.32%;
  left: -52.03%;
  width: 203.98%;
}

.crop-scenes {
  aspect-ratio: 600 / 760;
}

.crop-scenes img {
  top: -31.32%;
  left: -4.67%;
  width: 426.67%;
}

.crop-overlay {
  aspect-ratio: 604 / 760;
}

.crop-overlay img {
  top: -85.53%;
  left: -319.21%;
  width: 423.84%;
}

.interface-copy {
  padding: 25px 26px 28px;
}

.interface-feature-wide .interface-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--line);
}

.feature-number {
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.1em;
}

.interface-copy h3 {
  margin-bottom: 9px;
  font-size: 19px;
}

.interface-copy p:last-child {
  color: var(--muted);
  font-size: 13px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.feature-item {
  min-height: 156px;
  padding: 26px;
}

.feature-item:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.feature-item:nth-child(n + 3) {
  border-top: 1px solid var(--line);
}

.feature-item h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

.feature-item p {
  color: var(--muted);
  font-size: 13px;
}

.requirements {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.requirements-list,
.download-card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.requirements-list p {
  padding: 12px 0;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.requirements-list p:first-child {
  padding-top: 0;
}

.requirements-list p:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.requirements-list strong {
  color: var(--ink);
}

.download-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.download-card h3 {
  margin-bottom: 8px;
  font-size: 26px;
  letter-spacing: -0.03em;
}

.download-card p {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 13px;
}

.download-note {
  margin-top: 14px;
  color: #8a8c93;
  font-size: 11px;
}

.download-note a {
  color: var(--blue);
  font-weight: 650;
}

@media (max-width: 900px) {
  .product-grid,
  .requirements {
    grid-template-columns: 1fr;
  }

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

  .interface-feature-wide {
    grid-template-columns: 1fr;
  }

  .interface-feature-wide .interface-copy {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .hero-image {
    height: 58vw;
  }
}

@media (max-width: 640px) {
  .site-nav {
    height: 60px;
    padding: 0 18px;
  }

  .brand {
    font-size: 18px;
  }

  .nav-links {
    gap: 16px;
  }

  .nav-links a {
    font-size: 12px;
  }

  .nav-links a::after {
    bottom: -19px;
  }

  .page-shell,
  .plugin-shell {
    width: min(100% - 28px, 1240px);
  }

  .home-hero {
    padding-top: 54px;
  }

  .home-hero h1 {
    font-size: 39px;
  }

  .home-hero p {
    margin: 16px auto 30px;
    font-size: 15px;
  }

  .hero-image {
    height: 72vw;
    min-height: 280px;
    border-radius: 16px 16px 0 0;
  }

  .bridge {
    padding: 58px 8px 34px;
  }

  .bridge h2 {
    font-size: 30px;
  }

  .bridge p {
    font-size: 14px;
  }

  .product-grid {
    gap: 14px;
    padding-bottom: 58px;
  }

  .product-panel {
    padding: 24px 20px;
  }

  .product-panel h2 {
    font-size: 30px;
  }

  .guide-gallery {
    grid-template-columns: 1fr;
    height: auto;
  }

  .guide-gallery img {
    height: 220px;
  }

  .stat-row,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .stat + .stat {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .detail-item {
    min-height: 0;
  }

  .button {
    width: 100%;
  }

  .plugin-hero {
    padding: 62px 0 50px;
  }

  .plugin-hero h1 {
    font-size: 42px;
  }

  .plugin-hero .sub {
    font-size: 16px;
  }

  .plugin-section {
    padding: 52px 0;
  }

  .interface-section {
    padding-top: 12px;
  }

  .interface-features {
    grid-template-columns: 1fr;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .feature-item:nth-child(odd) {
    border-right: 0;
  }

  .feature-item + .feature-item {
    border-top: 1px solid var(--line);
  }
}
