:root {
  --paper: #ffffff;
  --ink: #0a0a0a;
  --muted: #f4f4f5;
  --muted-2: #e4e4e7;
  --accent: #ffcc00;
  --hairline: #4f8eff;
  --hairline-2: rgba(10, 10, 10, 0.06);
  --ink-60: rgba(10, 10, 10, 0.6);
  --ink-40: rgba(10, 10, 10, 0.4);
  --radius: 1rem;
  --radius-lg: 1.25rem;
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Type ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.05;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.75rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h3 { font-size: 1.125rem; letter-spacing: -0.01em; }
p { margin: 0; }

.mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-60);
}


/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--ink);
  display: grid; place-items: center;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
}
.nav-links { display: none; gap: 0.25rem; align-items: center; }
.nav-links a {
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--ink-60);
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover { color: var(--ink); background: var(--muted); }
.nav-links a.active { color: var(--ink); background: var(--muted); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.9rem;
  transition: transform 0.15s;
}
.nav-cta:hover { transform: translateY(-1px); }
.nav-toggle {
  background: transparent;
  border: 1px solid var(--hairline);
  width: 40px; height: 40px;
  border-radius: 10px;
  display: grid; place-items: center;
}
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 1.25rem 1rem;
  border-top: 1px solid var(--hairline);
}
.nav-mobile a {
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  color: var(--ink-60);
}
.nav-mobile a.active, .nav-mobile a:hover { color: var(--ink); background: var(--muted); }
.nav-mobile.open { display: flex; }

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none !important; }
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4rem);
  border-bottom: 1px solid var(--hairline);
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 999px; background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 204, 0, 0.18);
}
.hero h1 .accent {
  background: linear-gradient(180deg, transparent 62%, var(--accent) 62%);
  padding: 0 0.15em;
}
.hero-lead {
  max-width: 640px;
  margin-top: 1.5rem;
  color: var(--ink-60);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  margin-top: 2rem;
}
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.15s, background 0.15s, color 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-ghost   { border-color: var(--hairline); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--muted); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 3rem;
  max-width: 720px;
}
.stat {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}
.stat .num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.stat .label { color: var(--ink-60); font-size: 0.85rem; margin-top: 0.25rem; }
@media (min-width: 720px) { .hero-stats { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Section ---------- */
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
  margin-bottom: 2rem;
}
.section-head p { color: var(--ink-60); max-width: 480px; margin-top: 0.75rem; }

/* ---------- Bento grid ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1rem;
}
@media (min-width: 640px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .bento { grid-template-columns: repeat(3, 1fr); } }
.bento .wide { grid-column: span 1; }
@media (min-width: 640px) { .bento .wide { grid-column: span 2; } }

/* ---------- Tool card ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--paper);
  min-height: 200px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
  box-shadow: 0 1px 0 var(--ink);
}
.card-top {
  display: flex; align-items: start; justify-content: space-between; gap: 1rem;
}
.card-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--muted);
  display: grid; place-items: center;
  color: var(--ink);
  transition: background 0.18s, color 0.18s;
}
.card:hover .card-icon { background: var(--accent); color: var(--ink); }
.card-cat {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-60);
}
.card h3 { margin-top: 0.85rem; }
.card-desc { color: var(--ink-60); font-size: 0.92rem; margin-top: 0.4rem; }
.card-cta {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.88rem; font-weight: 500;
  color: var(--ink);
  margin-top: 1rem;
}
.card-cta .arrow { transition: transform 0.18s; }
.card:hover .card-cta .arrow { transform: translate(3px, -3px); }
.card-link { position: absolute; inset: 0; border-radius: inherit; }

/* ---------- Toolbar ---------- */
.toolbar {
  position: sticky;
  top: 64px;
  z-index: 40;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
  padding: 1rem 0;
}
.toolbar-row {
  display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center;
}
.search {
  flex: 1 1 260px;
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--paper);
}
.search input {
  flex: 1;
  border: 0; outline: 0; background: transparent;
  font: inherit; color: var(--ink);
}
.search input::placeholder { color: var(--ink-40); }
.chips { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.chip {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: transparent;
  font-size: 0.85rem;
  color: var(--ink-60);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.chip:hover { color: var(--ink); }
.chip.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.result-meta {
  padding: 1.25rem 0 0.5rem;
  color: var(--ink-60);
  font-size: 0.88rem;
}
.empty {
  padding: 4rem 1rem;
  text-align: center;
  color: var(--ink-60);
  border: 1px dashed var(--hairline);
  border-radius: var(--radius-lg);
}

/* ---------- Privacy ---------- */
.privacy {
  border-top: 1px solid var(--hairline);
  background: var(--muted);
}
.privacy-grid {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .privacy-grid { grid-template-columns: repeat(3, 1fr); } }
.privacy-card {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.privacy-card .num {
  font-family: var(--font-mono);
  font-size: 0.7rem; letter-spacing: 0.1em;
  color: var(--ink-40);
}
.privacy-card h3 { margin-top: 0.75rem; }
.privacy-card p { color: var(--ink-60); margin-top: 0.5rem; font-size: 0.95rem; }

/* ---------- Footer ---------- */
.border-line {
  border-top: 1px solid var(--hairline);
  padding: 3rem 0 2rem;
  margin-top: 2rem;
}
.footer {
  border-top: 1px solid var(--hairline);
  padding: 3rem 0 2rem;
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-40);
  margin-bottom: 0.85rem;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.footer a { color: var(--ink-60); font-size: 0.92rem; }
.footer a:hover { color: var(--ink); }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--hairline);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  color: var(--ink-40); font-size: 0.82rem;
}

/* ---------- Editorial pages (about/contact) ---------- */
.prose {
  max-width: 680px;
  color: var(--ink-60);
  font-size: 1.05rem;
  line-height: 1.7;
}
.prose h2 { color: var(--ink); margin-top: 2.5rem; margin-bottom: 0.75rem; }
.prose p + p { margin-top: 1rem; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }

  /* ---- CONTACT ---- */
  .contact-section {
    padding: 100px max(24px,5vw);
    max-width: 640px;
    margin: 0 auto;
  }

  .contact-section h2 {
    font-size: clamp(24px,4vw,36px);
    font-weight: 700;
    letter-spacing: -0.8px;
    margin-bottom: 8px;
  }

  .contact-section > p {
    color: var(--text2);
    font-size: 15px;
    margin-bottom: 36px;
  }

  .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
  }

  .form-group label {
    font-size: 13px;
    color: var(--text2);
    font-weight: 500;
    letter-spacing: 0.3px;
  }

  .form-group input,
  .form-group textarea {
    background: var(--surface);
    border: 1px solid var(--ink-40);
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 15px;
    font-family: var(--sans);
    color: var(--text);
    width: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    resize: vertical;
  }

  .form-group input::placeholder,
  .form-group textarea::placeholder { color: var(--text3); }

  .form-group input:focus,
  .form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(79,142,255,0.15);
  }

  .form-submit {
    width: 100%;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 15px 24px;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--sans);
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: -0.2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .form-submit:hover {
    background: #6fa3ff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(79,142,255,0.3);
  }

  /* ---- BUG REPORT BUTTON ---- */
.bug-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text2);
  text-decoration: none;
  transition: all .2s;
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
}
.bug-btn:hover {
  background: var(--surface2);
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.bug-tip {
  position: absolute;
  right: 52px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  color: var(--text2);
  font-size: 12px;
  font-family: var(--mono);
  padding: 5px 10px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.bug-btn:hover .bug-tip { opacity: 1; }

/* ---- BUG REPORT SECTION ---- */
.bug-section {
  max-width: 780px;
  margin: 0 auto 60px;
  padding: 0 20px;
}
.bug-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.bug-section-title {
  font-family: 'Sora', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #0a0a0a;
  letter-spacing: -0.02em;
}
.bug-count {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(10,10,10,0.4);
  text-transform: uppercase;
}
.bug-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bug-card {
  background: #ffffff;
  border: 1px solid rgba(10,10,10,0.08);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.bug-card-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding-top: 2px;
}
.bug-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.bug-dot.open     { background: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,0.12); }
.bug-dot.fixed    { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,0.12); }
.bug-dot.looking  { background: #f5a623; box-shadow: 0 0 0 3px rgba(245,166,35,0.12); }
.bug-card-body {
  flex: 1;
  min-width: 0;
}
.bug-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 5px;
}
.bug-status {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 500;
}
.bug-status.open     { background: rgba(239,68,68,0.08);  color: #ef4444; }
.bug-status.fixed    { background: rgba(34,197,94,0.08);  color: #16a34a; }
.bug-status.looking  { background: rgba(245,166,35,0.08); color: #c47d00; }
.bug-date {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: rgba(10,10,10,0.35);
}
.bug-msg {
  font-size: 13.5px;
  color: rgba(10,10,10,0.7);
  line-height: 1.55;
}
.bug-empty {
  text-align: center;
  padding: 32px 20px;
  border: 1px dashed rgba(10,10,10,0.12);
  border-radius: 14px;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: rgba(10,10,10,0.3);
  letter-spacing: 0.04em;
}