:root {
  color-scheme: dark;
  --bg: #111014;
  --panel: rgba(255, 255, 255, 0.07);
  --panel-strong: rgba(255, 255, 255, 0.12);
  --text: #f6f1ea;
  --muted: rgba(246, 241, 234, 0.68);
  --quiet: rgba(246, 241, 234, 0.42);
  --line: rgba(255, 255, 255, 0.12);
  --accent: #ff7447;
  --accent-2: #9feaff;
  --green: #78e0a2;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  --font-ui:
    Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI",
    sans-serif;
  --font-display:
    "Arial Black", Impact, "Avenir Next Condensed", "DIN Condensed",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-family:
    var(--font-ui);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--text);
  background:
    linear-gradient(160deg, rgba(91, 45, 34, 0.5), transparent 34%),
    linear-gradient(12deg, rgba(34, 31, 54, 0.96), rgba(15, 14, 18, 0.98) 54%),
    var(--bg);
}

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

.ambient-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0.42;
  pointer-events: none;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 20px 0;
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: -34px;
  left: 50%;
  z-index: 0;
  width: 100vw;
  transform: translateX(-50%);
  background: linear-gradient(
    180deg,
    rgba(17, 16, 20, 0.88) 0%,
    rgba(17, 16, 20, 0.74) 58%,
    rgba(17, 16, 20, 0) 100%
  );
  pointer-events: none;
}

.brand,
.site-nav,
.language-menu {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  padding: 7px 18px 7px 7px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035)),
    rgba(18, 16, 22, 0.58);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark {
  display: block;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
}

.brand-word {
  display: inline-block;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 950;
  font-style: oblique 10deg;
  line-height: 1;
  transform: skewX(-7deg) scaleX(0.96);
  transform-origin: left center;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.site-nav {
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)),
    rgba(18, 16, 22, 0.6);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
}

.language-menu {
  align-items: center;
}

.language-trigger {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: var(--text);
  background: rgba(18, 16, 22, 0.52);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.language-options {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  width: 220px;
  gap: 4px;
  padding: 7px;
  max-height: calc(100dvh - 100px);
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(22, 20, 29, 0.98);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.34);
}

.language-options[hidden] {
  display: none;
}

.language-options button {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  padding: 9px 10px;
  border: 0;
  border-radius: 12px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
}

.language-flag {
  display: block;
  width: 24px;
  height: 18px;
  flex: 0 0 24px;
  object-fit: contain;
  border-radius: 2px;
}

.language-options button > span { min-width: 0; overflow-wrap: anywhere; }

.language-trigger:hover,
.language-trigger[aria-expanded="true"] {
  border-color: rgba(255, 184, 42, 0.7);
  background: rgba(255, 184, 42, 0.12);
}

.language-options button:hover,
.language-options button.is-active {
  color: var(--text);
  background: rgba(255, 184, 42, 0.12);
}

.language-trigger:focus-visible,
.language-options button:focus-visible {
  outline: 2px solid rgba(255, 184, 42, 0.7);
  outline-offset: 2px;
}

.site-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav {
  scrollbar-width: none;
}

main {
  overflow: hidden;
}

.hero,
.workflow-demo,
.feature-band,
.pricing,
.download {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  padding: 64px 0 34px;
}

.hero-copy {
  max-width: 860px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent-2);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
  font-style: oblique 8deg;
}

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

h1 {
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: 112px;
  font-weight: 950;
  font-style: oblique 10deg;
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 950;
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 950;
  line-height: 1.2;
}

.product-title {
  display: inline-block;
  transform: skewX(-7deg) scaleX(0.94);
  transform-origin: left center;
  text-shadow:
    0 2px 0 rgba(255, 255, 255, 0.08),
    0 22px 52px rgba(0, 0, 0, 0.24);
}

.hero-lede {
  max-width: 600px;
  color: var(--muted);
  font-size: 23px;
  line-height: 1.55;
}

.hero-actions,
.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 34px;
}

.primary-action,
.secondary-action {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
}

.primary-action {
  color: #171017;
  background: linear-gradient(135deg, #ffb35f, var(--accent));
  box-shadow: 0 18px 48px rgba(255, 116, 71, 0.25);
}

.secondary-action {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--line);
}

.secondary-action:disabled {
  color: var(--quiet);
  cursor: not-allowed;
}

.hero-note,
.pricing-note {
  margin-top: 18px;
  color: var(--quiet);
  line-height: 1.6;
}

.feature-grid article,
.price-card {
  border: 1px solid var(--line);
  background: rgba(28, 26, 34, 0.88);
  box-shadow: var(--shadow);
}

.feature-band,
.pricing {
  padding: 98px 0 40px;
}

.workflow-demo {
  padding: 16px 0 36px;
  scroll-margin-top: 110px;
}

.workflow-demo .section-heading {
  max-width: none;
  margin-bottom: 25px;
}

.workflow-demo h2 { max-width: 900px; }

.demo-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: var(--line);
}

.demo-tabs button {
  min-width: 0;
  min-height: 58px;
  padding: 12px 15px;
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  background: #211e24;
  font: inherit;
  font-size: 15px;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.demo-tabs button:hover,
.demo-tabs button:focus-visible {
  color: var(--text);
  background: #2c272c;
}

.demo-tabs button:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: -3px;
}

.demo-tabs button[aria-selected="true"] {
  border-bottom-color: var(--accent);
  color: var(--text);
  background: #292229;
}

.demo-view {
  height: 760px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0 0 8px 8px;
  background: #120f15;
}

.demo-view iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.demo-note {
  margin: 12px 0 0;
  color: var(--quiet);
  font-size: 12px;
}

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

.section-heading p:not(.eyebrow) {
  color: var(--muted);
}

.feature-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-grid article,
.price-card {
  min-height: 220px;
  padding: 24px;
  border-radius: 24px;
}

.feature-grid article span {
  color: var(--accent-2);
  font-family: var(--font-display);
  font-weight: 900;
}

.feature-grid article p,
.price-card p {
  color: var(--muted);
  line-height: 1.65;
}

.price-card {
  position: relative;
  overflow: hidden;
}

.price-card.highlighted {
  border-color: rgba(255, 255, 255, 0.82);
}

.price-badge {
  width: fit-content;
  margin-bottom: 16px;
  padding: 7px 12px;
  border-radius: 8px;
  color: #111014;
  background: var(--accent-2);
  font-size: 13px;
  font-weight: 900;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin: 12px 0 14px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 54px;
  font-weight: 950;
  font-style: oblique 8deg;
  line-height: 1;
}

.price span {
  font-size: 22px;
}

.price-meta {
  margin-top: 16px;
  color: var(--quiet);
  font-size: 14px;
  font-weight: 800;
}

.download {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
  margin-top: 80px;
  margin-bottom: 68px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}

.download p {
  max-width: 640px;
  color: var(--muted);
  line-height: 1.65;
}

.download > div { min-width: 0; }
.download-actions { flex-direction: column; align-items: flex-start; flex-shrink: 0; margin-top: 0; max-width: 100%; }
.download-alternatives { color: var(--quiet); font-size: 14px; line-height: 1.7; margin: 8px 0 0; }
.download-alternatives a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.download-alternatives a:hover { color: var(--accent); }
.requirements-title { font-size: 16px; margin: 22px 0 12px; }
.download-requirements { margin: 0; font-size: 15px; line-height: 1.6; }
.download-requirements > div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; margin-top: 8px; }
.download-requirements dt { font-weight: 700; }
.download-requirements dd { margin: 0; color: var(--muted); }
[data-download-primary] { max-width: 100%; white-space: normal; text-align: center; padding: 12px 18px; }
[data-download-primary][hidden], [data-download-platform][hidden], [data-download-separator][hidden] { display: none; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 42px;
  color: var(--quiet);
  border-top: 1px solid var(--line);
}

.footer-identity { min-width: 0; }

.footer-copyright {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a:hover {
  color: var(--text);
}

.legal-page {
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
  padding: 80px 0;
  color: var(--muted);
  line-height: 1.8;
}

.legal-page h1,
.legal-page h2 {
  color: var(--text);
}

.legal-page h1 {
  font-size: 48px;
}

.legal-page a {
  color: var(--accent-2);
}

@media (max-width: 980px) {
  .hero {
    padding-top: 44px;
  }

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

  .download {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .site-header {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    overflow-x: auto;
  }

  .brand { justify-self: start; }
  .language-menu { position: static; justify-self: end; }
  .language-options {
    top: 88px;
    left: 0;
    right: 0;
    width: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: calc(100dvh - 110px);
  }

  .hero,
  .workflow-demo,
  .feature-band,
  .pricing,
  .download,
  .site-header,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  .hero {
    padding-top: 28px;
  }

  .workflow-demo { padding-top: 12px; scroll-margin-top: 185px; }
  .demo-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-tabs button { min-height: 48px; padding: 9px 10px; font-size: 13px; }
  .demo-view { height: 805px; }

  h1 { font-size: 64px; }
  h2 { font-size: 34px; }
  .hero-lede { font-size: 18px; }

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

  .site-footer {
    flex-direction: column;
  }
}
