/* Fonts are served from this site (fonts/, SIL Open Font License: see the *-LICENSE.txt files), not from Google
   Fonts, so no visitor data goes to a third party. Inter is variable (400-800); JetBrains Mono is variable too,
   used at 500. Latin and Latin Extended subsets, as Google Fonts split them. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/Inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/Inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/JetBrainsMono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/JetBrainsMono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- Tokens ------------------------------------------------------------- */
:root {
  --bg: #fafafa;
  --bg-alt: #f2f2f5;
  --surface: #ffffff;
  --text: #0f1117;
  --muted: #5b6070;
  --border: #e4e4ea;
  --accent: #2f4f4f;
  --accent-text: #ffffff;
  --accent-soft: rgba(47, 79, 79, 0.1);
  --shadow: 0 1px 2px rgba(16, 18, 27, 0.04), 0 8px 24px rgba(16, 18, 27, 0.06);
  --radius: 16px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0d12;
    --bg-alt: #10131a;
    --surface: #141821;
    --text: #eceef3;
    --muted: #9aa0ae;
    --border: #232836;
    --accent: #7fb3b3;
    --accent-text: #0b0d12;
    --accent-soft: rgba(127, 179, 179, 0.14);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0b0d12;
  --bg-alt: #10131a;
  --surface: #141821;
  --text: #eceef3;
  --muted: #9aa0ae;
  --border: #232836;
  --accent: #7fb3b3;
  --accent-text: #0b0d12;
  --accent-soft: rgba(127, 179, 179, 0.14);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 640px) {
  .container {
    padding: 0 32px;
  }
}

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

.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: var(--surface);
  padding: 8px 12px;
  border-radius: 8px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
}
.btn-ghost {
  border-color: var(--border);
  background: var(--surface);
}
.btn-ghost:hover {
  border-color: var(--muted);
}
.btn.is-disabled {
  background: var(--bg-alt);
  color: var(--muted);
  cursor: default;
  transform: none;
}

/* ---- Header ------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
}
.brand-mark {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 9px;
}
.brand-suffix {
  font-size: 0.85em;
  font-weight: 400;
  color: var(--muted);
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 500;
}
.nav a:hover {
  color: var(--text);
  background: var(--bg-alt);
}
@media (max-width: 560px) {
  .brand-name {
    display: none;
  }
  .nav a {
    padding: 8px;
  }
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-left: 4px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.icon-moon {
  display: none;
}
:root[data-theme="dark"] .icon-sun {
  display: none;
}
:root[data-theme="dark"] .icon-moon {
  display: block;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun {
    display: none;
  }
  :root:not([data-theme="light"]) .icon-moon {
    display: block;
  }
}

/* ---- Hero --------------------------------------------------------------- */
.hero {
  padding: 88px 0 64px;
  background:
    radial-gradient(60% 50% at 15% 0%, var(--accent-soft), transparent 70%),
    radial-gradient(40% 40% at 90% 10%, var(--accent-soft), transparent 70%);
}
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 800;
  max-width: 16ch;
}
.lead {
  margin-top: 20px;
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 58ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 48px;
  margin: 56px 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.stat {
  display: flex;
  flex-direction: column-reverse;
}
.stat dd {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.stat dt {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---- Sections ----------------------------------------------------------- */
.section {
  padding: 80px 0;
}
.section h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}

/* ---- Filters ------------------------------------------------------------ */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font: 500 0.88rem var(--font);
  cursor: pointer;
}
.chip:hover {
  color: var(--text);
}
.chip[aria-pressed="true"] {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

/* ---- Project pieces ----------------------------------------------------- */
.project-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--c);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
}
/* Logo images bring their own shape and background. */
.project-icon.is-image {
  display: block;
  border-radius: 0;
  background: none;
  object-fit: contain;
}
.project-icon.is-image.is-tile {
  border-radius: 12px;
  border: 1px solid var(--border);
}
.project-icon.is-image.is-tile.lg {
  border-radius: 14px;
}
.project-icon.lg {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  font-size: 1.15rem;
}
.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--border);
}
.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.badge-live {
  color: #059669;
}
.badge-beta {
  color: #d97706;
}
.badge-soon {
  color: var(--muted);
}
.category {
  font-size: 0.8rem;
  color: var(--muted);
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.tags li {
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--bg-alt);
  color: var(--muted);
}

/* ---- Featured ----------------------------------------------------------- */
.featured {
  display: grid;
  gap: 32px;
  padding: 32px;
  margin-bottom: 24px;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--border);
  background:
    radial-gradient(80% 120% at 100% 0%, color-mix(in srgb, var(--c) 14%, transparent), transparent 60%),
    var(--surface);
  box-shadow: var(--shadow);
}
@media (min-width: 860px) {
  .featured {
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    padding: 48px;
  }
}
.featured-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}
.featured-body .eyebrow {
  margin: 0;
  color: var(--c);
}
.featured-title {
  display: flex;
  align-items: center;
  gap: 14px;
}
.featured-title h3 {
  font-size: 2rem;
  font-weight: 800;
}
.featured-tagline {
  font-size: 1.15rem;
  font-weight: 600;
}
.featured-actions {
  margin-top: 8px;
}
.featured .btn-primary {
  background: var(--c);
  color: #fff;
}

/* Product screenshot */
.featured-shot {
  margin: 0;
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--bg);
}
.featured-shot img {
  display: block;
  width: 100%;
  height: auto;
}
.featured-shot .shot-dark {
  display: none;
}
:root[data-theme="dark"] .featured-shot .shot-light {
  display: none;
}
:root[data-theme="dark"] .featured-shot .shot-dark {
  display: block;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .featured-shot .shot-light {
    display: none;
  }
  :root:not([data-theme="light"]) .featured-shot .shot-dark {
    display: block;
  }
}

/* Decorative browser mock */
.browser {
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}
.browser-bar i {
  flex: 1;
  margin-left: 8px;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--surface);
  font: 500 0.72rem var(--mono);
  font-style: normal;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.browser-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
}
.browser-body b {
  height: 18px;
  width: 55%;
  border-radius: 6px;
  background: var(--c);
  opacity: 0.85;
}
.browser-body em {
  height: 9px;
  border-radius: 5px;
  background: var(--border);
}
.browser-body em.short {
  width: 60%;
}
.blocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
}
.blocks u {
  height: 64px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--c) 14%, var(--surface));
  border: 1px solid var(--border);
}

/* ---- Grid cards --------------------------------------------------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.card h3 {
  font-size: 1.25rem;
  font-weight: 700;
}
.card-tagline {
  font-weight: 500;
  margin-top: -4px;
}
.card .muted {
  font-size: 0.94rem;
}
.card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
}
.card-link {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}
.card-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.card-link .arrow {
  display: inline-block;
  transition: transform 0.15s ease;
}
.card-link:hover .arrow {
  transform: translate(2px, -2px);
}
.card-link.is-disabled {
  color: var(--muted);
}
.card-downloads {
  font-size: 0.92rem;
  color: var(--muted);
  white-space: nowrap;
}
.card-downloads a {
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.card-downloads a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---- Pricing and legal links -------------------------------------------- */
.pricing {
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--bg-alt);
}
.price {
  margin: 0;
}
.price-amount {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
}
.price-period {
  font-size: 0.88rem;
  color: var(--muted);
}
.price-note {
  margin: 4px 0 0;
  font-size: 0.84rem;
  color: var(--muted);
}
.card .pricing {
  margin-top: auto;
}
.card .pricing + .card-foot {
  margin-top: 0;
  padding-top: 4px;
}
.legal {
  display: flex;
  gap: 16px;
  font-size: 0.82rem;
}
.card .legal {
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.legal a {
  color: var(--muted);
  text-decoration: none;
}
.legal a:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.empty {
  padding: 40px 0;
  text-align: center;
  color: var(--muted);
}

/* ---- Contact ------------------------------------------------------------ */
.contact-card {
  display: grid;
  gap: 28px;
  padding: 40px 28px;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--border);
  background:
    radial-gradient(70% 120% at 0% 100%, var(--accent-soft), transparent 70%),
    var(--surface);
}
@media (min-width: 800px) {
  .contact-card {
    grid-template-columns: 1.4fr 1fr;
    align-items: center;
    padding: 56px;
  }
}
.contact-card h2 {
  margin-bottom: 12px;
}
.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
@media (min-width: 800px) {
  .contact-actions {
    align-items: flex-end;
  }
}
.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.socials a {
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
}
.socials a:hover {
  color: var(--text);
}

/* ---- Footer ------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}
.site-footer a {
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--text);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
