:root {
  color-scheme: dark;
  --bg: #050505;
  --panel: #0d0d0d;
  --panel-strong: #141414;
  --text: #f5f5f5;
  --muted: #a5a5a5;
  --dim: #666;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.2);
  --white-soft: rgba(255, 255, 255, 0.92);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.6);
  --radius: 8px;
  --max: 1160px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 76%);
}

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

code {
  font-family: var(--mono);
  font-size: 0.9em;
}

.page-shell {
  position: relative;
  width: min(100%, 1440px);
  margin: 0 auto;
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 32px), var(--max));
  min-height: 72px;
  margin: 0 auto;
  background: rgba(5, 5, 5, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.hero-actions,
.provider-row,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand img {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.nav-links {
  gap: 26px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-links a,
.header-action,
.site-footer a {
  transition: color 160ms ease;
}

.nav-links a:hover,
.header-action:hover,
.site-footer a:hover {
  color: var(--text);
}

.header-action {
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 600;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  align-items: center;
  gap: 56px;
  width: min(calc(100% - 32px), var(--max));
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  padding: 70px 0 84px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 2px;
  font-size: clamp(4.4rem, 13vw, 10.8rem);
  line-height: 0.85;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.tagline {
  margin-bottom: 24px;
  color: var(--white-soft);
  font-size: clamp(1.18rem, 2.2vw, 1.6rem);
  font-weight: 700;
}

.hero-text,
.section-copy p,
.section-heading p {
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 20px;
  font-weight: 700;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--text);
  color: var(--bg);
}

.button.secondary {
  border: 1px solid var(--line-strong);
  color: var(--white-soft);
}

.button.secondary:hover {
  border-color: rgba(255, 255, 255, 0.38);
}

.hero-visual {
  position: relative;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 14% 10% 12%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  transform: rotate(-9deg);
}

.desktop-window {
  position: relative;
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(12, 12, 12, 0.82);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: perspective(1200px) rotateX(2deg) rotateY(-5deg);
  animation: floatWindow 7s ease-in-out infinite;
}

.window-chrome {
  display: flex;
  gap: 8px;
  height: 42px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.window-chrome span {
  width: 10px;
  height: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
}

.editor-preview {
  position: relative;
  min-height: 388px;
  padding: clamp(24px, 5vw, 54px);
}

.muted-line {
  margin-bottom: 16px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.8rem;
}

.text-line {
  max-width: 500px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  color: var(--white-soft);
  background: rgba(255, 255, 255, 0.035);
  font-size: clamp(0.95rem, 1.7vw, 1.12rem);
}

.text-line.active {
  margin-bottom: 86px;
}

.trigger {
  margin-left: 5px;
  color: #fff;
  font-family: var(--mono);
}

.transform-chip {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.86);
  color: var(--white-soft);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
  transform: translate(-50%, -50%);
  font-size: 0.8rem;
  font-weight: 700;
}

.spinner {
  width: 12px;
  height: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 820ms linear infinite;
}

.text-line.result {
  margin-left: auto;
  border-color: rgba(255, 255, 255, 0.26);
}

.metrics,
.section-grid,
.commands-section,
.feature-band,
.providers,
.download-panel,
.site-footer {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

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

.metrics div {
  padding: 28px 22px;
  border-right: 1px solid var(--line);
}

.metrics div:last-child {
  border-right: 0;
}

.metrics strong {
  display: block;
  margin-bottom: 4px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

.metrics span {
  color: var(--muted);
  font-size: 0.92rem;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: 56px;
  padding: 126px 0;
}

.steps,
.privacy-list {
  display: grid;
  gap: 12px;
}

.step,
.privacy-list div,
.command-grid article,
.prompt-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.028);
}

.step {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  min-height: 92px;
  padding: 22px;
}

.step span,
.privacy-list span {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
}

.step p,
.privacy-list p {
  margin: 0;
  color: var(--white-soft);
  font-weight: 600;
}

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

.commands-section {
  padding: 116px 0;
  border-top: 1px solid var(--line);
}

.command-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 38px;
}

.command-grid article {
  min-height: 160px;
  padding: 18px;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.command-grid article:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.048);
}

.command-grid code {
  display: block;
  margin-bottom: 28px;
  color: #fff;
  font-size: 0.9rem;
}

.command-grid span {
  color: var(--muted);
  font-size: 0.92rem;
}

.feature-band {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 44px;
  align-items: center;
  padding: 84px clamp(20px, 5vw, 62px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #080808;
}

.prompt-card {
  padding: 10px;
  background: #0f0f0f;
}

.prompt-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 14px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.prompt-row:last-child {
  border-bottom: 0;
}

.prompt-row span {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.prompt-row p {
  margin: 0;
  color: var(--white-soft);
  font-weight: 600;
}

.privacy-list div {
  padding: 24px;
}

.privacy-list span {
  display: block;
  margin-bottom: 12px;
  color: var(--text);
}

.providers {
  padding: 28px 0 116px;
}

.provider-row {
  flex-wrap: wrap;
  gap: 10px;
}

.provider-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--white-soft);
  font-weight: 600;
}

.download-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 92px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f5f5f5;
  color: #050505;
  text-align: center;
}

.download-panel img {
  width: 62px;
  height: 62px;
  margin-bottom: 26px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 14px;
}

.download-panel .eyebrow,
.download-panel p {
  color: rgba(0, 0, 0, 0.56);
}

.download-panel h2 {
  max-width: 850px;
}

.download-panel .button.primary {
  background: #050505;
  color: #fff;
}

.download-panel .button.secondary {
  border-color: rgba(0, 0, 0, 0.18);
  color: #050505;
}

.product-hunt-badge {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.product-hunt-badge img {
  display: block;
  width: 250px;
  height: 54px;
}

.site-footer {
  justify-content: space-between;
  min-height: 108px;
  color: var(--dim);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 620ms ease,
    transform 620ms ease;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes floatWindow {
  0%,
  100% {
    transform: perspective(1200px) rotateX(2deg) rotateY(-5deg) translateY(0);
  }
  50% {
    transform: perspective(1200px) rotateX(2deg) rotateY(-5deg) translateY(-10px);
  }
}

@media (max-width: 980px) {
  .hero,
  .section-grid,
  .feature-band {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .desktop-window {
    transform: none;
    animation: none;
  }

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

@media (max-width: 720px) {
  .site-header {
    min-height: 64px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding-top: 46px;
  }

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

  .button {
    width: 100%;
  }

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

  .metrics div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metrics div:last-child {
    border-bottom: 0;
  }

  .section-grid,
  .commands-section {
    padding: 82px 0;
  }

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

  .command-grid article {
    min-height: 132px;
  }

  .feature-band {
    padding: 42px 20px;
  }

  .prompt-row,
  .step {
    grid-template-columns: 1fr;
  }

  .download-panel {
    padding: 64px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
