:root {
  color-scheme: light;
  --page: #f4f7fb;
  --surface: #ffffff;
  --surface-muted: #eaf0f7;
  --ink: #172033;
  --ink-soft: #536176;
  --line: #d7e0eb;
  --line-strong: #bdcad9;
  --accent: #2474c8;
  --accent-dark: #1c5da3;
  --accent-soft: #dceaf8;
  --dark: #162033;
  --dark-soft: #263349;
  --radius-small: 12px;
  --radius-medium: 22px;
  --radius-large: 34px;
  --shadow-window: 0 28px 80px -42px rgba(32, 60, 96, 0.48);
  --shadow-button: 0 14px 32px -18px rgba(36, 116, 200, 0.65);
  --container: 1240px;
  /* 集中约束标题尺度和正文行长，防止宽屏下字号随视口失控。 */
  --type-hero: clamp(3rem, 3.9vw, 4.4rem);
  --type-section: clamp(2rem, 3.2vw, 3.45rem);
  --type-subsection: clamp(1.5rem, 2vw, 2.1rem);
  --type-legal-hero: clamp(2.8rem, 5vw, 4.5rem);
  --measure-copy: 58ch;
  --font-sans: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
  --font-mono: "SFMono-Regular", "SF Mono", ui-monospace, Menlo, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(73, 101, 137, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(73, 101, 137, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  pointer-events: none;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 46%);
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea,
select {
  font: inherit;
}

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

h1,
h2,
h3 {
  letter-spacing: -0.03em;
  line-height: 1.12;
}

h2 {
  margin-bottom: 22px;
  font-size: var(--type-section);
  font-weight: 700;
}

h3 {
  margin-bottom: 16px;
  font-size: var(--type-subsection);
  font-weight: 680;
}

p {
  color: var(--ink-soft);
}

kbd,
code {
  font-family: var(--font-mono);
}

kbd {
  display: inline-flex;
  min-height: 1.8em;
  align-items: center;
  padding: 0.1em 0.45em;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: inset 0 -1px 0 rgba(61, 82, 108, 0.12);
  color: var(--ink);
  font-size: 0.8em;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
}

code {
  padding: 0.15em 0.4em;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.88em;
}

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.section {
  padding-block: clamp(92px, 10vw, 144px);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 9px;
  background: var(--ink);
  color: var(--surface);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid rgba(36, 116, 200, 0.42);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(189, 202, 217, 0.68);
  background: rgba(244, 247, 251, 0.88);
  backdrop-filter: blur(20px) saturate(130%);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
}

.nav-shell {
  display: grid;
  min-height: 70px;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 42px;
}

.brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 720;
  letter-spacing: -0.025em;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 8px 24px -14px rgba(23, 32, 51, 0.6);
}

.primary-navigation {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
}

.primary-navigation > a:not(.button) {
  position: relative;
  color: var(--ink-soft);
  font-size: 0.875rem;
  font-weight: 580;
  transition: color 220ms ease;
}

.primary-navigation > a:not(.button)::after {
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 1px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.primary-navigation > a:not(.button):hover {
  color: var(--ink);
}

.primary-navigation > a:not(.button):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle {
  display: none;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: var(--ink);
  color: var(--surface);
  font-weight: 680;
  line-height: 1;
  transition:
    background-color 260ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 260ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.button:hover {
  background: var(--dark-soft);
  box-shadow: 0 16px 30px -22px rgba(23, 32, 51, 0.68);
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(1px) scale(0.985);
}

.button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.button-primary {
  background: var(--accent);
  box-shadow: var(--shadow-button);
}

.button-primary:hover {
  background: var(--accent-dark);
}

.button-small {
  min-height: 38px;
  padding-inline: 15px;
  border-radius: 10px;
  font-size: 0.85rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-weight: 680;
}

.text-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.text-link:hover svg {
  transform: translateX(4px);
}

.eyebrow,
.section-index {
  margin-bottom: 16px;
  color: var(--accent-dark);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  padding-top: clamp(64px, 7vw, 104px);
  padding-bottom: 36px;
}

.hero-grid {
  display: grid;
  min-height: min(720px, calc(100dvh - 170px));
  grid-template-columns: minmax(430px, 0.92fr) minmax(540px, 1.08fr);
  align-items: center;
  gap: clamp(46px, 6vw, 88px);
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-bottom: 12px;
}

.hero h1 {
  max-width: 620px;
  margin-bottom: 24px;
  font-size: var(--type-hero);
  font-weight: 740;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.hero h1 span {
  display: block;
  margin-top: 0.22em;
  color: var(--accent-dark);
  font-size: 0.72em;
  font-weight: 680;
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.hero-summary {
  max-width: var(--measure-copy);
  margin-bottom: 30px;
  font-size: 1.04rem;
  line-height: 1.78;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.release-meta {
  display: flex;
  margin-top: 28px;
  flex-wrap: wrap;
  gap: 9px;
}

.release-meta span {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 650;
}

.hero-visual {
  position: relative;
  min-height: 620px;
  perspective: 1400px;
}

.hero-orbit {
  position: absolute;
  top: 6%;
  right: -8%;
  width: 540px;
  height: 540px;
  border: 1px solid rgba(36, 116, 200, 0.16);
  border-radius: 50%;
}

.hero-orbit::before,
.hero-orbit::after {
  position: absolute;
  border: 1px solid rgba(36, 116, 200, 0.12);
  border-radius: 50%;
  content: "";
}

.hero-orbit::before {
  inset: 72px;
}

.hero-orbit::after {
  inset: 144px;
}

.app-icon-float {
  position: absolute;
  top: 30px;
  right: 42px;
  z-index: 3;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 28px 58px -30px rgba(23, 32, 51, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transform: rotate(5deg);
}

.app-icon-float img {
  width: 96px;
  height: 96px;
  border-radius: 19px;
}

.window-frame {
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(189, 202, 217, 0.86);
  background: var(--surface);
  box-shadow: var(--shadow-window);
}

.main-window-frame {
  position: absolute;
  top: 112px;
  right: -72px;
  width: min(740px, 112%);
  border-radius: 20px;
  transform: rotateY(-5deg) rotateZ(1.4deg);
  transform-origin: center right;
}

.search-window-frame {
  position: absolute;
  right: 46px;
  bottom: 52px;
  z-index: 4;
  width: min(620px, 96%);
  border-radius: 18px;
  animation: quiet-float 7s ease-in-out infinite;
}

.assurance-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.assurance-row p {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 620;
}

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

.status-dot {
  width: 8px;
  height: 8px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(36, 116, 200, 0.1);
}

.intro-section {
  padding-top: clamp(116px, 13vw, 180px);
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.48fr 1.52fr;
  gap: 72px;
}

.intro-grid h2 {
  max-width: 780px;
}

.intro-grid > div > p {
  max-width: var(--measure-copy);
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 1.78;
}

.feature-section {
  padding-top: 64px;
}

.section-heading {
  display: grid;
  margin-bottom: clamp(76px, 8vw, 112px);
  grid-template-columns: 0.48fr 1.52fr;
  gap: 72px;
}

.section-heading h2 {
  max-width: 760px;
  margin: 0;
}

.showcase {
  display: grid;
  align-items: center;
  gap: clamp(54px, 7vw, 96px);
}

.showcase + .showcase {
  margin-top: clamp(124px, 15vw, 196px);
}

.showcase-search,
.showcase-rename {
  grid-template-columns: minmax(310px, 0.7fr) minmax(0, 1.3fr);
}

.showcase-library {
  grid-template-columns: minmax(0, 1.28fr) minmax(310px, 0.72fr);
}

.showcase-copy > p:not(.section-index):not(.inline-note) {
  max-width: var(--measure-copy);
  font-size: 1rem;
  line-height: 1.75;
}

.detail-list {
  display: grid;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.detail-list li {
  display: flex;
  min-height: 50px;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.875rem;
}

.detail-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.detail-list li span {
  margin-left: auto;
}

.product-shot {
  position: relative;
  margin: 0;
}

.product-shot::before {
  position: absolute;
  inset: -7% -5%;
  z-index: -1;
  border: 1px solid rgba(36, 116, 200, 0.13);
  border-radius: var(--radius-large);
  background: rgba(220, 234, 248, 0.48);
  content: "";
}

.product-shot img {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: var(--shadow-window);
}

.product-shot-search img {
  border-radius: 21px;
  transform: rotate(1deg);
}

.product-shot-library img {
  border-radius: 21px;
  transform: rotate(-0.8deg);
}

.product-shot-rename img {
  border-radius: 18px;
}

.content-types {
  display: flex;
  margin-top: 34px;
  flex-wrap: wrap;
  gap: 8px;
}

.content-types span {
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 650;
}

.inline-note {
  margin-top: 26px;
  padding: 16px 0 16px 18px;
  border-left: 2px solid var(--accent);
  color: var(--ink);
  font-size: 0.875rem;
}

.template-section {
  position: relative;
}

.template-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: clamp(64px, 9vw, 130px);
}

.template-copy p:last-child {
  max-width: var(--measure-copy);
  font-size: 1rem;
  line-height: 1.75;
}

.template-demo {
  padding: clamp(26px, 4vw, 48px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-large);
  background: var(--surface);
  box-shadow: var(--shadow-window);
}

.template-demo-header {
  display: flex;
  margin-bottom: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font-weight: 720;
}

.template-demo-header span:last-child {
  color: var(--accent-dark);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.template-demo > p {
  margin-bottom: 12px;
  color: var(--ink-soft);
  font-size: 1rem;
}

.variable-token {
  display: inline-flex;
  margin-inline: 4px;
  padding: 1px 7px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 680;
}

.template-fields {
  display: grid;
  margin-top: 38px;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.template-fields label {
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 640;
}

.field-preview {
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--page);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 520;
}

.workflow-section {
  border-top: 1px solid var(--line);
}

.workflow-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
  list-style: none;
}

.workflow-list li {
  display: grid;
  min-height: 152px;
  grid-template-columns: 0.48fr 1.52fr;
  align-items: center;
  gap: 64px;
  border-bottom: 1px solid var(--line-strong);
}

.step-number {
  color: var(--accent-dark);
  font-family: var(--font-mono);
  font-size: clamp(2.1rem, 3vw, 3.35rem);
  font-weight: 560;
  letter-spacing: -0.07em;
}

.workflow-list h3 {
  margin-bottom: 9px;
  font-size: clamp(1.35rem, 1.8vw, 1.85rem);
}

.workflow-list p {
  max-width: 650px;
  margin: 0;
}

.privacy-section {
  background: var(--dark);
  color: var(--surface);
}

.privacy-grid {
  display: grid;
  grid-template-columns: 0.84fr 1.16fr;
  gap: clamp(60px, 10vw, 150px);
}

.privacy-grid h2 {
  max-width: 500px;
  margin-bottom: 0;
}

.eyebrow-light {
  color: #a6caed;
}

.privacy-copy p {
  max-width: var(--measure-copy);
  color: #bdc9d9;
  font-size: 1rem;
  line-height: 1.75;
}

.privacy-copy kbd {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  color: var(--surface);
}

.text-link-light {
  margin-top: 14px;
  color: var(--surface);
}

.download-section {
  padding-block: clamp(82px, 8vw, 112px);
}

.download-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(34px, 6vw, 74px);
}

.download-icon {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 24px 58px -34px rgba(23, 32, 51, 0.65);
}

.download-icon img {
  border-radius: 23px;
}

.download-grid h2 {
  max-width: 680px;
  margin-bottom: 14px;
  font-size: clamp(1.9rem, 2.7vw, 3rem);
}

.download-grid p:last-child {
  margin-bottom: 0;
}

.download-actions {
  display: grid;
  justify-items: center;
  gap: 17px;
}

.site-footer {
  padding-block: 54px;
  border-top: 1px solid var(--line);
  background: rgba(234, 240, 247, 0.54);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: end;
  gap: 54px;
}

.footer-brand {
  margin-bottom: 14px;
}

.footer-grid p {
  margin-bottom: 0;
  font-size: 0.88rem;
}

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

.footer-links a {
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 590;
}

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

.copyright {
  white-space: nowrap;
}

.legal-nav {
  grid-template-columns: 1fr auto;
}

.legal-main {
  padding-block: clamp(76px, 8vw, 112px);
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(190px, 0.34fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(60px, 10vw, 144px);
}

.legal-aside {
  position: sticky;
  top: 118px;
}

.legal-aside nav {
  display: grid;
  border-top: 1px solid var(--line);
}

.legal-aside nav a {
  padding-block: 11px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 590;
  transition:
    color 200ms ease,
    padding-left 200ms ease;
}

.legal-aside nav a:hover {
  padding-left: 5px;
  color: var(--ink);
}

.legal-article {
  max-width: 780px;
}

.legal-title {
  padding-bottom: clamp(64px, 7vw, 92px);
}

.legal-title h1 {
  margin-bottom: 24px;
  font-size: var(--type-legal-hero);
  font-weight: 720;
  letter-spacing: -0.045em;
}

.legal-title > p:last-child {
  max-width: var(--measure-copy);
  margin-bottom: 0;
  font-size: 1.02rem;
  line-height: 1.75;
}

.legal-article > section {
  padding-block: 52px;
  border-top: 1px solid var(--line-strong);
  scroll-margin-top: 92px;
}

.legal-article > section h2 {
  margin-bottom: 24px;
  font-size: clamp(1.65rem, 2.4vw, 2.25rem);
}

.legal-article > section > p,
.legal-article li {
  font-size: 0.98rem;
  line-height: 1.75;
}

.legal-article ul {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.legal-article li {
  position: relative;
  padding: 13px 0 13px 26px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}

.legal-article li:last-child {
  border-bottom: 1px solid var(--line);
}

.legal-article li::before {
  position: absolute;
  top: 23px;
  left: 2px;
  width: 7px;
  height: 7px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  content: "";
}

.path-block {
  display: grid;
  margin-block: 30px;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.path-block span {
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 680;
}

.path-block code {
  overflow-wrap: anywhere;
  background: transparent;
  color: var(--ink);
}

.permission-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.permission-list > div {
  display: grid;
  grid-template-columns: 0.42fr 1fr;
  gap: 36px;
  padding-block: 28px;
  border-bottom: 1px solid var(--line);
}

.permission-list h3 {
  margin: 0;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.permission-list p {
  margin: 0;
}

.legal-footer .footer-grid {
  align-items: center;
}

.not-found-page {
  min-height: 100dvh;
}

.not-found-main {
  display: grid;
  min-height: 100dvh;
  place-items: center;
  padding: 32px;
}

.not-found-content {
  max-width: 680px;
  text-align: left;
}

.not-found-content img {
  margin-bottom: 42px;
  border-radius: 24px;
  box-shadow: var(--shadow-window);
}

.not-found-content h1 {
  margin-bottom: 22px;
  font-size: var(--type-legal-hero);
  font-weight: 760;
  letter-spacing: -0.065em;
}

.not-found-content > p:not(.section-index) {
  margin-bottom: 34px;
  font-size: 1.08rem;
}

.mobile-download-bar {
  display: none;
}

.hero-enter {
  opacity: 0;
  animation: enter-up 760ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* 延迟由样式表统一管理，避免内联 style 被线上严格 CSP 拦截。 */
.hero-delay-1 { animation-delay: 40ms; }
.hero-delay-2 { animation-delay: 110ms; }
.hero-delay-3 { animation-delay: 180ms; }
.hero-delay-4 { animation-delay: 250ms; }
.hero-delay-5 { animation-delay: 320ms; }
.hero-delay-6 { animation-delay: 390ms; }

.reveal.is-pending {
  opacity: 0;
  transform: translateY(26px);
}

.reveal {
  transition:
    opacity 720ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 720ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes enter-up {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes quiet-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-1deg);
  }
  50% {
    transform: translate3d(0, -10px, 0) rotate(-0.4deg);
  }
}

@media (max-width: 1080px) {
  .primary-navigation {
    gap: 21px;
  }

  .hero-grid {
    min-height: auto;
    grid-template-columns: minmax(0, 0.9fr) minmax(430px, 1.1fr);
    gap: 36px;
  }

  .hero-visual {
    min-height: 540px;
  }

  .main-window-frame {
    right: -120px;
  }

  .search-window-frame {
    right: 14px;
  }

  .showcase {
    gap: 54px;
  }

  .download-grid {
    grid-template-columns: auto 1fr;
  }

  .download-actions {
    grid-column: 2;
    grid-template-columns: auto auto;
    justify-content: start;
    justify-items: start;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: grid;
    width: 42px;
    height: 42px;
    margin-left: auto;
    place-content: center;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.66);
    color: var(--ink);
  }

  .nav-toggle span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: currentColor;
    transition: transform 220ms ease;
  }

  .nav-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3.75px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3.75px) rotate(-45deg);
  }

  .primary-navigation {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: grid;
    padding: 22px 24px 26px;
    border-bottom: 1px solid var(--line);
    background: rgba(244, 247, 251, 0.98);
    box-shadow: 0 24px 42px -32px rgba(23, 32, 51, 0.55);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
      opacity 200ms ease,
      transform 200ms ease;
  }

  .primary-navigation.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .primary-navigation > a:not(.button) {
    padding-block: 8px;
  }

  .primary-navigation .button {
    margin-top: 4px;
  }

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

  .hero-copy {
    max-width: 720px;
    padding-bottom: 0;
  }

  .hero-visual {
    min-height: 610px;
  }

  .main-window-frame {
    right: -34px;
    width: 96%;
  }

  .search-window-frame {
    right: 7%;
    width: 82%;
  }

  .intro-grid,
  .section-heading,
  .template-grid,
  .privacy-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .showcase-search,
  .showcase-library,
  .showcase-rename {
    grid-template-columns: 1fr;
  }

  .showcase-library .product-shot {
    order: 2;
  }

  .showcase-library .showcase-copy {
    order: 1;
  }

  .showcase-copy {
    max-width: 680px;
  }
}

@media (max-width: 767px) {
  body {
    padding-bottom: 78px;
  }

  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .section {
    padding-block: 76px;
  }

  .nav-shell {
    min-height: 64px;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .hero {
    padding-top: 48px;
  }

  .hero h1 {
    margin-bottom: 20px;
    font-size: clamp(2.75rem, 11.5vw, 3.2rem);
  }

  .hero-summary {
    margin-bottom: 26px;
    font-size: 0.98rem;
    line-height: 1.72;
  }

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

  .hero-actions .button {
    width: 100%;
  }

  .hero-actions .text-link {
    justify-content: center;
  }

  .hero-visual {
    min-height: 380px;
    margin-top: 22px;
  }

  .hero-orbit {
    top: 0;
    right: -28%;
    width: 390px;
    height: 390px;
  }

  .app-icon-float {
    top: -12px;
    right: 10px;
    padding: 6px;
    border-radius: 21px;
  }

  .app-icon-float img {
    width: 68px;
    height: 68px;
    border-radius: 15px;
  }

  .main-window-frame {
    top: 76px;
    right: -46px;
    width: 112%;
    border-radius: 13px;
    transform: rotate(1.2deg);
  }

  .search-window-frame {
    right: -4px;
    bottom: 26px;
    width: 98%;
    border-radius: 12px;
  }

  .assurance-row {
    grid-template-columns: 1fr;
    margin-top: 24px;
  }

  .assurance-row p {
    min-height: 54px;
    justify-content: flex-start;
    padding-inline: 14px;
  }

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

  .intro-section {
    padding-top: 96px;
  }

  .section-heading {
    margin-bottom: 64px;
  }

  .showcase + .showcase {
    margin-top: 112px;
  }

  .product-shot::before {
    inset: -5%;
    border-radius: 24px;
  }

  .template-demo {
    padding: 24px 20px;
    border-radius: 24px;
  }

  .template-demo-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

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

  .workflow-list li {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 18px;
    padding-block: 36px;
  }

  .step-number {
    font-size: 2.3rem;
  }

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

  .download-icon {
    width: fit-content;
  }

  .download-icon img {
    width: 92px;
    height: 92px;
  }

  .download-actions {
    grid-column: 1;
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .download-actions .text-link {
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .legal-aside {
    position: static;
  }

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

  .legal-aside nav a:nth-child(odd) {
    padding-right: 14px;
  }

  .legal-aside nav a:nth-child(even) {
    padding-left: 14px;
    border-left: 1px solid var(--line);
  }

  .permission-list > div {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .footer-links {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  .mobile-download-bar {
    position: fixed;
    right: 10px;
    bottom: 10px;
    left: 10px;
    z-index: 30;
    display: flex;
    min-height: 64px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 9px 10px 9px 16px;
    border: 1px solid rgba(255, 255, 255, 0.52);
    border-radius: 17px;
    background: rgba(22, 32, 51, 0.94);
    box-shadow: 0 18px 45px -18px rgba(23, 32, 51, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    color: var(--surface);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .mobile-download-bar > div {
    display: grid;
    gap: 2px;
  }

  .mobile-download-bar strong {
    font-size: 0.86rem;
  }

  .mobile-download-bar span {
    color: #bdc9d9;
    font-size: 0.7rem;
  }

  .mobile-download-bar .button {
    background: var(--accent);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal.is-pending {
    opacity: 1;
    transform: none;
  }
}
