:root {
  --font-display: "Manrope", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --color-canvas: #ffffff;
  --color-ink: #111111;
  --color-body: #374151;
  --color-muted: #6b7280;
  --color-muted-soft: #898989;
  --color-primary: #111111;
  --color-primary-active: #242424;
  --color-on-primary: #ffffff;
  --color-surface-soft: #f8f9fa;
  --color-surface-card: #f5f5f5;
  --color-surface-strong: #e5e7eb;
  --color-hairline: #e5e7eb;
  --color-hairline-soft: #f3f4f6;
  --color-surface-dark: #101010;
  --color-surface-dark-elevated: #1a1a1a;
  --color-on-dark: #ffffff;
  --color-on-dark-soft: #a1a1aa;
  --color-focus: rgba(59, 130, 246, 0.35);
  --color-surface-strong-hover: #d1d5db;

  --space-xxs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;
  --space-section: 96px;

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 9999px;

  --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-elevated: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-overlay: 0 24px 60px rgba(0, 0, 0, 0.12);
  --carousel-glow-outer: rgba(17, 17, 17, 0.62);
  --carousel-glow-inner: rgba(17, 17, 17, 0.46);
  --carousel-glow-opacity: 0.52;

  --nav-scrolled-bg: rgba(255, 255, 255, 0.9);
  --nav-divider-color: rgba(17, 17, 17, 0.08);
}

:root[data-theme='dark'] {
  --color-canvas: #101010;
  --color-ink: #f5f5f5;
  --color-body: #e5e7eb;
  --color-muted: #c4c7cf;
  --color-muted-soft: #a1a1aa;
  --color-primary: #f3f4f6;
  --color-primary-active: #e5e7eb;
  --color-on-primary: #111111;
  --color-surface-soft: #141414;
  --color-surface-card: #1a1a1a;
  --color-surface-strong: #242424;
  --color-surface-strong-hover: #323232;
  --color-hairline: #2a2a2a;
  --color-hairline-soft: #202020;
  --color-surface-dark: #080808;
  --color-surface-dark-elevated: #121212;
  --color-on-dark: #f8fafc;
  --color-on-dark-soft: #c7c9d0;
  --color-focus: rgba(96, 165, 250, 0.45);
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-elevated: 0 6px 18px rgba(0, 0, 0, 0.35);
  --shadow-overlay: 0 28px 80px rgba(0, 0, 0, 0.5);
  --carousel-glow-outer: rgba(245, 245, 245, 0.24);
  --carousel-glow-inner: rgba(245, 245, 245, 0.16);
  --carousel-glow-opacity: 0.34;
  --nav-scrolled-bg: rgba(16, 16, 16, 0.9);
  --nav-divider-color: rgba(255, 255, 255, 0.1);
}

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

html {
  scroll-padding-top: calc(var(--nav-height, 72px) + 14px);
}

html.theme-transition *,
html.theme-transition *::before,
html.theme-transition *::after {
  transition:
    background-color 0.32s ease,
    color 0.32s ease,
    border-color 0.32s ease,
    box-shadow 0.32s ease,
    fill 0.32s ease,
    stroke 0.32s ease !important;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--color-body);
  background: var(--color-canvas);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--color-focus);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  margin: 0 auto;
  padding: 18px;
  padding-left: max(18px, calc((100% - 1200px) / 2 + 18px));
  padding-right: max(18px, calc((100% - 1200px) / 2 + 18px));
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  transition: background-color 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease, backdrop-filter 0.35s ease, opacity 0.45s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

body.home-page.intro-loading nav,
body.home-page.intro-ready:not(.intro-nav-visible) nav {
  opacity: 0;
  transform: translateY(-12px);
  visibility: hidden;
  pointer-events: none;
}

body.home-page.intro-ready.intro-nav-visible nav {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}

body.scrolled nav {
  background: var(--nav-scrolled-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--nav-divider-color);
  padding-top: 11px;
  padding-bottom: 11px;
}

.logo-container {
  position: relative;
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--color-ink);
  height: 32px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.02em;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-icon {
  width: 32px;
  height: auto;
  position: absolute;
  opacity: 0;
  transform: scale(0.55) translateX(-18px);
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

body.scrolled .nav-icon {
  opacity: 1;
  transform: scale(1) translateX(0);
}

body.scrolled .logo {
  transform: translateX(40px);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.github-link {
  color: var(--color-ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 9px;
  border-radius: 10px;
  transition: background-color 0.2s ease;
}

.github-link:hover {
  background: var(--color-surface-card);
}

.theme-toggle {
  appearance: none;
  border: 1px solid var(--color-hairline);
  background: var(--color-surface-soft);
  color: var(--color-ink);
  width: 54px;
  height: 30px;
  border-radius: var(--radius-pill);
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  justify-items: center;
  position: relative;
  padding: 0 7px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.theme-toggle:hover {
  background: var(--color-surface-card);
  transform: translateY(-1px);
}

.theme-toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-pill);
  background: var(--color-canvas);
  border: 1px solid var(--color-hairline);
  box-shadow: var(--shadow-soft);
  transition: transform 0.26s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.24s ease, border-color 0.24s ease;
}

:root[data-theme='dark'] .theme-toggle::after {
  transform: translateX(24px);
}

.theme-toggle-label {
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
  opacity: 0.75;
  transition: opacity 0.24s ease;
}

:root:not([data-theme='dark']) .theme-toggle-label-light {
  opacity: 1;
}

:root[data-theme='dark'] .theme-toggle-label-dark {
  opacity: 1;
}

.page {
  max-width: 980px;
  margin: 0 auto;
  padding: calc(var(--nav-height, 72px) + 40px) 20px 0;
}

/* PPC guide: flat, minimal layout closer to landing page rhythm. */
.ppc-guide-page .page {
  max-width: 840px;
  padding-top: calc(var(--nav-height, 72px) + 30px);
}

.ppc-guide-page .page-header {
  padding: 12px 0 6px;
}

.ppc-guide-page .page-title {
  margin-bottom: 8px;
  font-size: clamp(34px, 3.8vw, 46px);
  letter-spacing: -0.02em;
}

.ppc-guide-page .page-lead {
  max-width: 64ch;
  font-size: clamp(16px, 1.9vw, 19px);
}

.ppc-guide-page .page-section {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--color-hairline-soft);
}

.ppc-guide-page .page-section:first-of-type {
  margin-top: 22px;
  padding-top: 0;
  border-top: 0;
}

.ppc-guide-page #example.page-section {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.ppc-guide-page .page-section h2 {
  margin-bottom: 8px;
  font-size: clamp(24px, 2.5vw, 34px);
  letter-spacing: -0.01em;
}

.ppc-guide-page #example .minor {
  margin-top: 12px;
}

.ppc-guide-page .page-card {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.ppc-guide-page .page-list {
  margin-top: 6px;
}

.ppc-guide-page .page-list li {
  margin: 5px 0;
}

.ppc-guide-page .kbd {
  padding: 1px 7px;
  font-size: 12.5px;
  background: var(--color-surface-soft);
  border-color: var(--color-hairline-soft);
}

.ppc-guide-page .code-block {
  margin-top: 10px;
  padding: 9px 11px;
  border-radius: 12px;
  background: var(--color-surface-soft);
  border-color: var(--color-hairline-soft);
  box-shadow: none;
}

.ppc-guide-page .code-block code {
  font-size: 12.5px;
}

.ppc-guide-page .ppc-example-note {
  margin-top: 8px;
}

.page-header {
  padding: 24px 0 10px;
}

.page-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  color: var(--color-ink);
  font-size: clamp(36px, 4.4vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.page-lead {
  margin: 0;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.5;
  color: var(--color-muted);
}

.page-section {
  margin-top: 40px;
}

.page-section h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  color: var(--color-ink);
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.page-section h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  color: var(--color-ink);
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 600;
}

.page-section p {
  margin: 0;
  color: var(--color-body);
}

.page-section p + p {
  margin-top: 12px;
}

.page-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-hairline);
  background: var(--color-surface-card);
  padding: 20px;
  box-shadow: var(--shadow-soft);
}

.page-card.page-card-wide {
  grid-column: 1 / -1;
}

.page-card p {
  font-size: 15px;
  line-height: 1.55;
}

.page-list {
  margin: 10px 0 0;
  padding-left: 18px;
}

.page-list li {
  margin: 7px 0;
}

.kbd {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-hairline);
  background: var(--color-canvas);
  font-size: 13px;
  line-height: 1.58;
  vertical-align: baseline;
  white-space: nowrap;
  color: var(--color-ink);
}

.minor,
.muted {
  color: var(--color-muted);
}

.card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-hairline);
  background: var(--color-canvas);
  color: var(--color-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  padding: 12px 20px;
  min-height: 40px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.card-button:hover {
  transform: translateY(-1px);
  background: var(--color-surface-soft);
}

.card-button.has-icon {
  gap: 8px;
}

.card-button.has-icon svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.brew-toggle {
  appearance: none;
  cursor: pointer;
  font-family: var(--font-body);
  line-height: 1;
}

.brew-command-panel {
  display: inline-flex;
  align-items: stretch;
  width: fit-content;
  max-width: min(100%, 560px);
  margin-top: 8px;
  padding: 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-hairline);
  background: var(--color-surface-soft);
  color: var(--color-ink);
  opacity: 0;
  transform: translateY(-8px);
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.24s ease, transform 0.24s ease, max-height 0.24s ease, padding 0.24s ease, margin-top 0.24s ease;
}

.brew-command-text {
  display: inline-flex;
  align-items: center;
  padding: 11px 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 14px;
  white-space: nowrap;
  line-height: 1.25;
}

.brew-copy-button {
  appearance: none;
  border: 0;
  border-left: 1px solid var(--color-hairline);
  background: var(--color-canvas);
  color: var(--color-ink);
  min-width: 44px;
  padding: 0 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background-color 0.18s ease;
}

.brew-copy-button:hover {
  background: var(--color-surface-soft);
}

.brew-copy-button svg {
  width: 16px;
  height: 16px;
}

.brew-copy-button .icon-copy,
.brew-copy-button .icon-check {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.brew-copy-button .icon-copy {
  opacity: 1;
  transform: scale(1);
}

.brew-copy-button .icon-check {
  position: absolute;
  opacity: 0;
  transform: scale(0.84);
}

.brew-copy-button.is-copied .icon-copy {
  opacity: 0;
  transform: scale(0.84);
}

.brew-copy-button.is-copied .icon-check {
  opacity: 1;
  transform: scale(1);
}

.brew-command-panel.is-open {
  opacity: 1;
  transform: translateY(0);
  max-height: 120px;
  margin-top: 10px;
}

.brew-command-panel[hidden] {
  display: inline-flex;
  opacity: 0;
  transform: translateY(-8px);
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
  border-width: 0;
}

.section-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero {
  min-height: calc(var(--vh, 1vh) * 100);
  padding-top: calc(var(--nav-height, 72px) + 30px);
  padding-bottom: 48px;
  position: relative;
  overflow: clip;
  display: flex;
  align-items: center;
}

.hero-home {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 30px;
  align-items: center;
  height: 100%;
}

.hero-content {
  max-width: 560px;
}

.hero-intro .hero-inner {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-intro .hero-content {
  max-width: 760px;
  margin: 0 auto;
}

.hero-intro .hero-icon {
  margin-left: auto;
  margin-right: auto;
}

.hero-intro .subtitle {
  margin-left: auto;
  margin-right: auto;
  max-width: 36ch;
}

.hero-intro .cta-container {
  align-items: center;
}

.hero-intro .cta-row {
  justify-content: center;
}

body.intro-loading .hero-intro .hero-icon,
body.intro-loading .hero-intro h1,
body.intro-loading .hero-intro .subtitle,
body.intro-loading .hero-intro .intro-actions {
  opacity: 0;
  transform: translateY(28px);
  visibility: hidden;
}

body.intro-ready .hero-intro .hero-icon,
body.intro-ready .hero-intro h1,
body.intro-ready .hero-intro .subtitle {
  opacity: 0;
  transform: translateY(28px);
  visibility: visible;
  animation: intro-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

body.intro-ready .hero-intro h1 {
  animation-delay: 0.08s;
}

body.intro-ready .hero-intro .subtitle {
  animation-delay: 0.16s;
}

body.intro-ready .hero-intro .intro-actions {
  opacity: 0;
  transform: translateY(24px);
  visibility: visible;
  animation: intro-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

.hero-intro .version-info {
  opacity: 0.9;
}

.hero-icon {
  width: clamp(86px, 9vw, 110px);
  display: block;
  margin-bottom: 18px;
  margin-left: 0;
  margin-right: 0;
  border-radius: 20px;
  box-shadow: var(--shadow-elevated);
}

@keyframes intro-rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h1 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  color: var(--color-ink);
  font-size: clamp(42px, 5.4vw, 66px);
  line-height: 1.03;
  letter-spacing: -0.04em;
  font-weight: 600;
}

.subtitle {
  margin: 0;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.5;
  color: var(--color-muted);
  max-width: 54ch;
}

.intro-line-primary,
.intro-line-secondary {
  display: block;
}

.intro-line-primary {
  white-space: nowrap;
}

.cta-container {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.cta-button {
  background: var(--color-primary);
  color: var(--color-on-primary);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.cta-button:hover {
  background: var(--color-primary-active);
  transform: translateY(-1px);
}

.cta-button svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.support-button {
  border: 1px solid var(--color-hairline);
  background: var(--color-canvas);
  color: var(--color-ink);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.support-button:hover {
  background: var(--color-surface-soft);
  transform: translateY(-1px);
}

.support-button svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.version-info {
  font-size: 13px;
  color: var(--color-muted);
  opacity: 0;
  transition: opacity 0.45s ease;
}

.requirements-info {
  font-size: 12px;
  color: var(--color-muted);
  opacity: 0.95;
}

.hero-media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-preview-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 32px;
  align-items: center;
}

.product-preview-copy {
  max-width: 540px;
}

.product-preview-title {
  margin: 0;
  font-family: var(--font-display);
  color: var(--color-ink);
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.product-preview-lead {
  margin: 14px 0 0;
  color: var(--color-muted);
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.5;
}

.product-preview-note {
  margin: 14px 0 0;
  color: var(--color-body);
  font-size: 14px;
  line-height: 1.5;
}

.home-page sup {
  font-size: 0.75em;
  line-height: 0;
  vertical-align: super;
  margin-left: 2px;
}

.home-page sup a {
  color: var(--color-ink);
  text-decoration: none;
  font-weight: 700;
}

.home-page sup a:hover {
  text-decoration: underline;
}

.product-preview-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: visible;
}

.screenshot-carousel {
  position: relative;
  overflow: visible;
  isolation: isolate;
}

.screenshot-carousel::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(123%, 630px);
  height: min(97%, 740px);
  transform: translate3d(-50%, -50%, 0);
  border-radius: 999px;
  background:
    radial-gradient(ellipse at center, var(--carousel-glow-inner) 0%, transparent 65%),
    radial-gradient(ellipse at center, var(--carousel-glow-outer) 0%, transparent 79%);
  filter: blur(38px);
  opacity: var(--carousel-glow-opacity);
  z-index: 0;
  pointer-events: none;
  backface-visibility: hidden;
  will-change: transform, opacity;
}

.screenshot-carousel > * {
  position: relative;
  z-index: 1;
}

.screenshot-stage {
  width: 100%;
  max-width: 430px;
  aspect-ratio: 55 / 79;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-hairline);
  background: var(--color-canvas);
  box-shadow: var(--shadow-elevated);
  position: relative;
  overflow: hidden;
}

.screenshot-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  transform: scale(1.02) translateY(5px);
  transition: opacity 0.65s ease, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.screenshot-stage img.is-active {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.screenshot-stage img.is-exiting {
  opacity: 0;
  transform: scale(0.995) translateY(-4px);
}

.screenshot-dots {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.screenshot-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-hairline);
  background: var(--color-surface-strong);
  padding: 0;
  cursor: pointer;
  transition: width 0.18s ease, transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.screenshot-dot:hover {
  background: var(--color-surface-strong-hover);
}

.screenshot-dot.is-active {
  width: 26px;
  background: var(--color-ink);
  border-color: var(--color-ink);
  transform: scale(1);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-hairline);
  background: var(--color-canvas);
  color: var(--color-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.scroll-cue:hover {
  background: var(--color-surface-soft);
  transform: translateX(-50%) scale(1.04);
}

body.scrolled .scroll-cue {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px);
}

.scroll-cue svg {
  width: 16px;
  height: 16px;
}

#screenshots {
  scroll-margin-top: calc(var(--nav-height, 72px) + 12px);
}

#why {
  scroll-margin-top: calc(var(--nav-height, 72px) + 12px);
}

.home-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: var(--space-section) 20px 0;
}

.home-section.home-section-full {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.home-section.home-section-full .section-head,
.home-section.home-section-full .section-actions {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.home-fine-print {
  max-width: none;
  margin-top: 80px;
  padding: 0 20px;
}

.home-fine-print-inner {
  max-width: 980px;
  margin: 0 auto;
  padding-top: 18px;
  border-top: 1px solid var(--color-hairline-soft);
}

.home-fine-print-copy {
  margin: 0 auto;
  max-width: 100%;
  color: var(--color-muted-soft);
  font-size: 12px;
  line-height: 1.6;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 6px;
  align-items: start;
}

.home-fine-print-index {
  white-space: nowrap;
}

.home-fine-print-text {
  min-width: 0;
}

.home-fine-print-copy a {
  color: inherit;
  text-underline-offset: 0.14em;
}

.section-head {
  max-width: 760px;
}

.section-kicker {
  display: inline-block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--color-muted);
  margin-bottom: 8px;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--color-ink);
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.section-head p {
  margin: 14px 0 0;
  color: var(--color-muted);
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.5;
}


.code-block {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--color-hairline);
  background: var(--color-surface-soft);
  color: var(--color-ink);
  overflow: auto;
}

.code-block code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
  line-height: 1.58;
  white-space: pre;
}

.page p code,
.page li code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.95em;
  padding: 2px 6px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-hairline);
  background: var(--color-surface-soft);
}

.page sup {
  font-size: 0.75em;
  line-height: 0;
  vertical-align: super;
  margin-left: 2px;
}

.page sup a {
  color: var(--color-ink);
  text-decoration: none;
  font-weight: 700;
}

.page sup a:hover {
  text-decoration: underline;
}

footer {
  text-align: center;
  padding: 56px 20px;
  color: var(--color-on-dark-soft);
  font-size: 12px;
  border-top: none;
  margin-top: 72px;
  background: var(--color-surface-dark);
}

footer a {
  color: var(--color-on-dark-soft);
}

.footer-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-version-info {
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--color-on-dark-soft);
  opacity: 0.95;
}

.footer-copyright {
  font-size: 10px;
}

footer .support-button {
  border-color: rgba(255, 255, 255, 0.16);
  background: #1a1a1a;
  color: #ffffff;
}

footer .support-button:hover {
  background: #222222;
}

footer .cta-button {
  background: #ffffff;
  color: #111111;
}

footer .cta-button:hover {
  background: #f8f9fa;
}

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
  }

  .cta-container {
    align-items: center;
  }

  .screenshot-stage {
    max-width: min(400px, 82vw);
    aspect-ratio: 55 / 79;
  }

  .product-preview-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .product-preview-copy {
    max-width: 760px;
    margin: 0 auto;
  }

  #downloader .product-preview-copy {
    order: -1;
  }

}

@media (max-width: 768px) {
  .hero-icon {
    margin-left: auto;
    margin-right: auto;
  }

  nav {
    padding-left: 14px;
    padding-right: 14px;
  }

  .github-link {
    font-size: 13px;
    padding: 5px 7px;
  }

  .hero {
    padding-bottom: 70px;
  }

  .home-section {
    padding-top: 72px;
  }

  .page {
    padding-top: calc(var(--nav-height, 72px) + 22px);
  }

  .ppc-guide-page .page {
    max-width: 100%;
    padding-top: calc(var(--nav-height, 72px) + 16px);
  }

  .ppc-guide-page .page-section {
    margin-top: 22px;
    padding-top: 22px;
  }

  .ppc-guide-page .page-card {
    padding: 0;
  }

}

@media (max-width: 480px) {
  .nav-right {
    gap: 6px;
  }

  .github-link {
    font-size: 12px;
    padding: 5px 6px;
  }

  .hero-home,
  .home-section {
    padding-left: 14px;
    padding-right: 14px;
  }

  .home-section.home-section-full .section-head,
  .home-section.home-section-full .section-actions,
  .home-fine-print-inner {
    padding-left: 14px;
    padding-right: 14px;
  }

  h1 {
    font-size: clamp(33px, 9vw, 40px);
  }

  .subtitle {
    font-size: 17px;
  }

  .cta-row {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .cta-button,
  .support-button {
    width: 100%;
    justify-content: center;
  }

  .brew-command-panel {
    max-width: 100%;
    align-self: center;
  }

  .brew-command-text {
    padding: 10px 12px;
    font-size: 13px;
  }

  .brew-copy-button {
    min-width: 40px;
    padding: 0 10px;
  }

  .page-card {
    border-radius: var(--radius-lg);
    padding: 14px;
  }

  .page {
    padding-left: 14px;
    padding-right: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
}
