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

:root {
  --bg: #f6f7f8;
  --ink: #161719;
  --muted: #63676f;
  --soft: #eceff2;
  --line: rgba(22, 23, 25, 0.12);
  --panel: #ffffff;
  --accent: #007aff;
  --accent-strong: #0057d9;
  --green: #1f8f4c;
  --blue-soft: #e7f1ff;
  --shadow: 0 24px 80px rgba(23, 30, 45, 0.18);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  color: var(--ink);
  background: rgba(246, 247, 248, 0.78);
  border-bottom: 1px solid rgba(22, 23, 25, 0.08);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

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

.header-cta {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.hero {
  padding: 128px 0 58px;
  color: var(--ink);
  background: var(--bg);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(480px, 1.14fr);
  align-items: center;
  gap: clamp(34px, 6vw, 76px);
}

.hero-content {
  width: min(560px, 100%);
}

.hero-icon {
  width: 76px;
  height: 76px;
  margin-bottom: 28px;
  border-radius: 18px;
  box-shadow: 0 18px 46px rgba(23, 30, 45, 0.16);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(58px, 8vw, 96px);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.35;
}

.hero-actions,
.open-source-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

.button-primary {
  background: var(--accent);
  color: #ffffff;
}

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

.button-secondary {
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.button-secondary:hover {
  background: var(--soft);
}

.hero-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.hero-shot {
  position: relative;
  aspect-ratio: 1.47 / 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #1f2024;
  box-shadow: var(--shadow);
}

.hero-carousel-track {
  position: absolute;
  inset: 0;
}

.hero-carousel-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 700ms ease, transform 700ms ease;
}

.hero-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.hero-carousel-slide-1 {
  opacity: 1;
}

.hero-carousel-slide.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.hero-carousel-slide:not(.is-active) {
  transform: translateY(8px) scale(0.99);
}

.hero-carousel-indicators {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 2;
  display: inline-flex;
  gap: 6px;
  padding: 7px 9px;
  border-radius: 999px;
  background: rgba(16, 18, 22, 0.42);
  transform: translateX(-50%);
  backdrop-filter: blur(12px);
}

.hero-carousel-indicators span {
  width: 18px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  transition: background-color 220ms ease;
}

.hero-carousel-indicators span.is-active {
  background: rgba(255, 255, 255, 0.92);
}

.intro-strip {
  padding: 0 0 56px;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--line);
}

.intro-item {
  min-height: 116px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 24px clamp(22px, 4vw, 48px);
  background: var(--panel);
}

.intro-item strong {
  font-size: 18px;
}

.intro-item span {
  max-width: 360px;
  color: var(--muted);
  line-height: 1.45;
}

.section {
  padding: clamp(72px, 10vw, 120px) 0;
}

.section-inner {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1fr);
  gap: clamp(32px, 7vw, 84px);
  align-items: center;
}

.section-copy p,
.section-heading p,
.open-source-inner p {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.sorting-demo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 108px minmax(0, 1.08fr);
  align-items: center;
  gap: 14px;
}

.demo-column {
  min-width: 0;
}

.demo-heading {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.file-stack,
.folder-stack {
  display: grid;
  gap: 8px;
}

.file-stack span,
.folder-stack div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 28px rgba(23, 30, 45, 0.06);
}

.file-stack span {
  overflow: hidden;
  padding: 14px;
  color: var(--muted);
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-connector {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.demo-connector::before,
.demo-connector::after {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent);
}

.demo-connector span {
  padding: 0 10px;
}

.folder-stack div {
  display: grid;
  gap: 4px;
  padding: 13px 14px;
}

.folder-stack strong,
.folder-stack span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.folder-stack strong {
  color: var(--green);
  font-size: 13px;
}

.folder-stack span {
  color: var(--muted);
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
}

.rules-section {
  background: transparent;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 42px;
}

.screenshot-band {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #1f2024;
  box-shadow: var(--shadow);
}

.screenshot-band img {
  width: 100%;
  height: auto;
}

.privacy-section {
  background: transparent;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--blue-soft);
}

.feature {
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.feature-kicker {
  display: inline-flex;
  margin-bottom: 36px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.feature p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.open-source-section {
  background: transparent;
}

.open-source-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
}

.open-source-section .button-secondary {
  color: var(--ink);
  background: #ffffff;
  border-color: var(--line);
}

.site-footer {
  min-height: 84px;
  color: var(--muted);
  background: #ffffff;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.site-footer .container {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-footer a {
  color: var(--ink);
  font-weight: 800;
}

@media (max-width: 860px) {
  .site-header {
    height: 58px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding-top: 94px;
  }

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

  .feature-grid,
  .two-column,
  .sorting-demo {
    grid-template-columns: 1fr;
  }

  .demo-connector {
    min-height: auto;
    justify-content: flex-start;
    padding: 8px 0;
  }

  .intro-item {
    min-height: 96px;
  }

  .open-source-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .container,
  .section-inner {
    width: min(100% - 32px, 1180px);
  }

  .brand span {
    display: none;
  }

  .header-cta {
    min-height: 34px;
    padding-inline: 14px;
  }

  .hero {
    padding-bottom: 42px;
  }

  .hero-icon {
    width: 58px;
    height: 58px;
    margin-bottom: 22px;
    border-radius: 14px;
  }

  .hero-shot {
    aspect-ratio: 1.2 / 1;
  }

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

  .button {
    width: 100%;
  }

  .file-stack span,
  .folder-stack div {
    padding-inline: 12px;
  }

  .site-footer .container {
    min-height: 88px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-carousel-slide {
    transition: none;
  }

  .hero-carousel-slide:not(.is-active) {
    opacity: 0;
    transform: translateY(8px) scale(0.99);
  }
}
