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

:root {
  --bg: #111113;
  --bg-raised: #19191c;
  --bg-surface: #1e1e21;
  --border: #27272a;
  --text: #e4e4e7;
  --text-dim: #a1a1aa;
  --text-muted: #71717a;
  --accent: #e0a422;
  --accent-soft: rgba(224, 164, 34, 0.1);
  --accent-glow: rgba(224, 164, 34, 0.25);
  --font-display: 'Manrope', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Monaco, 'Cascadia Code', Consolas, monospace;
  --ease-enter: cubic-bezier(0.2, 0, 0, 1);
  --ease-exit: cubic-bezier(0.3, 0, 0.8, 0.15);
  --col: min(680px, 90vw);
  --col-wide: min(1080px, 92vw);
}

html {
  scroll-behavior: smooth
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 180ms
}

a:hover {
  opacity: 0.8
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.2
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

h3 {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
  color: var(--text);
}

code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 0.2em 0.5em;
  border-radius: 4px;
}

#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 4vw, 3rem);
  height: 56px;
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  background: rgba(17, 17, 19, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  color: var(--text);
}

.nav-logo:hover {
  opacity: 1;
  color: var(--accent)
}

.nav-icon {
  border-radius: 6px
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.875rem
}

.nav-gh {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  transition: color 180ms
}

.nav-gh:hover {
  color: var(--text);
  opacity: 1
}

.nav-cta {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--bg);
  background: var(--accent);
  padding: 0.4rem 1.125rem;
  border-radius: 8px;
  transition: transform 200ms var(--ease-enter), box-shadow 200ms var(--ease-enter);
}

.nav-cta:hover {
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--accent-glow);
}

#hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 5.5rem 1.5rem 4rem;
  overflow: hidden;
}

.hero-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  pointer-events: none;
  opacity: 0.025;
  width: min(800px, 100vw);
}

.hero-watermark img {
  width: 100%;
  height: auto
}

.hero-logo {
  width: 128px;
  height: 128px;
  border-radius: 30px;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 80px -20px var(--accent-glow);
  animation: float 800ms var(--ease-enter) both;
}

#hero h1 {
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 0.75rem;
  background: linear-gradient(180deg, var(--text) 40%, var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: float 800ms 80ms var(--ease-enter) both;
}

.h1-accent {
  -webkit-text-fill-color: var(--accent);
}

.tagline {
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: var(--text-dim);
  max-width: 44ch;
  animation: float 800ms 160ms var(--ease-enter) both;
}

.hero-oss {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.625rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  animation: float 800ms 200ms var(--ease-enter) both;
}

.hero-oss svg {
  color: #e85d75
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: float 800ms 320ms var(--ease-enter) both;
}

.cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-dim);
  background: transparent;
  padding: 0.75rem 1.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  transition: border-color 200ms, color 200ms, background 200ms;
}

.cta-ghost:hover {
  opacity: 1;
  color: var(--text);
  border-color: var(--text-muted);
  background: var(--bg-raised);
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 1.75rem 0;
  animation: float 800ms 240ms var(--ease-enter) both;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-dim);
  background: var(--bg-raised);
  transition: border-color 200ms, color 200ms;
}

.pill:hover {
  border-color: var(--accent-soft);
  color: var(--text)
}

.pill svg {
  opacity: 0.5
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--bg);
  background: var(--accent);
  padding: 0.75rem 2rem;
  border-radius: 10px;
  transition: transform 250ms var(--ease-enter), box-shadow 250ms var(--ease-enter);
  animation: float 800ms 320ms var(--ease-enter) both;
}

.cta:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.cta-lg {
  font-size: 1rem;
  padding: 0.875rem 2.5rem;
  margin-bottom: 2rem;
  animation: none;
}

.hero-meta {
  margin-top: 0.875rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  font-weight: 500;
  animation: float 800ms 400ms var(--ease-enter) both;
}

.hero-bundle {
  margin-top: 0.375rem;
  font-size: 0.8125rem;
  color: var(--accent);
  font-weight: 500;
  animation: float 800ms 480ms var(--ease-enter) both;
}

@keyframes float {
  from {
    opacity: 0;
    transform: translateY(20px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

#showcase {
  padding: 0 clamp(1rem, 5vw, 5rem) 5rem;
}

.showcase-frame {
  max-width: 840px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.03) inset,
    0 24px 80px -16px rgba(0, 0, 0, 0.65),
    0 0 100px -30px var(--accent-soft);
}

.showcase-frame img {
  display: block;
  width: 100%;
  height: auto
}

.section {
  max-width: var(--col);
  margin: 0 auto;
  padding: 4.5rem 1.5rem;
}

.section-wide {
  max-width: var(--col-wide)
}

.prose {
  max-width: 58ch
}

.prose p {
  margin-bottom: 0.875rem;
  color: var(--text-dim)
}

.prose p:last-child {
  margin-bottom: 0
}

.prose a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms
}

.prose a:hover {
  opacity: 1;
  border-color: var(--accent)
}

.lead {
  color: var(--text-dim);
  margin-bottom: 2rem;
  max-width: 55ch
}

.card-grid {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.col-2 {
  grid-template-columns: repeat(2, 1fr)
}

.col-3 {
  grid-template-columns: repeat(3, 1fr)
}

.card {
  background: var(--bg);
  padding: 1.5rem 1.75rem;
  transition: background 250ms var(--ease-enter);
}

.card:hover {
  background: var(--bg-raised)
}

.card-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--accent-soft);
  margin-bottom: 0.875rem;
}

.card-icon svg {
  color: var(--accent)
}

.card p {
  color: var(--text-dim);
  font-size: 0.875rem;
  line-height: 1.6
}

#rewrite {
  position: relative
}

.rewrite-watermark {
  position: absolute;
  right: -6%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.05;
  width: 440px;
  pointer-events: none;
}

.rewrite-watermark img {
  width: 100%;
  height: auto
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 1.5rem;
}

.table-sm {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

thead th {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: left;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

tbody td {
  padding: 0.625rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
  vertical-align: middle;
}

tbody td svg {
  vertical-align: -3px;
  margin-right: 0.375rem;
  opacity: 0.5
}

tbody tr:last-child td {
  border-bottom: none
}

.compare td:first-child {
  font-weight: 600;
  color: var(--text);
  font-family: var(--font-display);
  white-space: nowrap
}

.compare td:nth-child(2) {
  color: var(--text-muted);
  text-decoration: line-through;
  text-decoration-color: rgba(255, 255, 255, 0.15)
}

.compare td:last-child {
  color: var(--accent);
  font-weight: 500
}

.compare tbody tr {
  transition: background 180ms
}

.compare tbody tr:hover {
  background: var(--bg-raised)
}

.curves {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 0.625rem
}

#download {
  text-align: center
}

#download h2 {
  margin-bottom: 0.5rem
}

.dl-detected {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1.5rem
}

.dl-version {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 1rem
}

.dl-toggle {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: 1px solid var(--border);
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  cursor: pointer;
  transition: color 200ms, border-color 200ms, background 200ms
}

.dl-toggle:hover {
  color: var(--text);
  border-color: var(--text-muted);
  background: var(--bg-raised)
}

.dl-toggle.active {
  color: var(--accent);
  border-color: var(--accent-soft)
}

.dl-all {
  max-height: 0;
  overflow: hidden;
  transition: max-height 400ms var(--ease-enter), opacity 300ms;
  opacity: 0
}

.dl-all.open {
  max-height: 600px;
  opacity: 1
}

.dl-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-top: 1.25rem;
  text-align: left
}

.dl-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg);
  padding: 1.125rem 1.5rem;
  color: var(--text);
  transition: background 200ms var(--ease-enter)
}

.dl-card:hover {
  background: var(--bg-raised);
  opacity: 1
}

.dl-card-info {
  flex: 1;
  min-width: 0
}

.dl-card-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 0.125rem
}

.dl-card-meta {
  font-size: 0.75rem;
  color: var(--text-muted)
}

.dl-card-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--accent-soft);
  flex-shrink: 0
}

.dl-card-icon svg {
  color: var(--accent)
}

@media (max-width: 480px) {
  .dl-grid {
    grid-template-columns: 1fr
  }
}

#footer {
  max-width: var(--col);
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer-built {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.footer-built img {
  opacity: 0.7;
  transition: opacity 180ms;
  flex-shrink: 0
}

.footer-built img:hover {
  opacity: 1
}

.footer-tech {
  font-weight: 500
}

.footer-sep {
  color: #3f3f46
}

.footer-tech-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 180ms;
}

.footer-tech-link:hover {
  color: var(--text);
  opacity: 1
}

.footer-tech-link img {
  opacity: 0.7;
  transition: opacity 180ms;
  flex-shrink: 0
}

.footer-tech-link:hover img {
  opacity: 1
}

.footer-ack {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 1rem
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  font-size: 0.8125rem
}

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

.footer-links a:hover {
  color: var(--accent);
  opacity: 1
}

.footer-license {
  font-size: 0.75rem;
  color: #3f3f46
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 550ms var(--ease-enter), transform 550ms var(--ease-enter);
}

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

.card-grid.visible .card {
  animation: cardIn 450ms var(--ease-enter) both
}

.card-grid.visible .card:nth-child(1) {
  animation-delay: 0ms
}

.card-grid.visible .card:nth-child(2) {
  animation-delay: 50ms
}

.card-grid.visible .card:nth-child(3) {
  animation-delay: 100ms
}

.card-grid.visible .card:nth-child(4) {
  animation-delay: 150ms
}

.card-grid.visible .card:nth-child(5) {
  animation-delay: 60ms
}

.card-grid.visible .card:nth-child(6) {
  animation-delay: 110ms
}

.card-grid.visible .card:nth-child(7) {
  animation-delay: 40ms
}

.card-grid.visible .card:nth-child(8) {
  animation-delay: 90ms
}

.card-grid.visible .card:nth-child(9) {
  animation-delay: 140ms
}

.card-grid.visible .card:nth-child(10) {
  animation-delay: 70ms
}

.card-grid.visible .card:nth-child(11) {
  animation-delay: 120ms
}

.card-grid.visible .card:nth-child(12) {
  animation-delay: 170ms
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(16px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

@media (max-width: 768px) {
  #hero {
    padding-top: 7rem
  }

  .col-3 {
    grid-template-columns: repeat(2, 1fr)
  }

  .rewrite-watermark {
    display: none
  }
}

@media (max-width: 480px) {

  .col-3,
  .col-2 {
    grid-template-columns: 1fr
  }

  #hero h1 {
    font-size: 2.25rem
  }

  .section {
    padding: 3rem 1.25rem
  }

  .hero-logo {
    width: 96px;
    height: 96px;
    border-radius: 22px
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none;
    opacity: 1;
    transform: none
  }

  .card-grid.visible .card {
    animation: none
  }

  .hero-logo,
  #hero h1,
  .tagline,
  .pills,
  .cta,
  .hero-meta,
  .hero-bundle {
    animation: none
  }

  html {
    scroll-behavior: auto
  }
}