/* GentleBits — translated from GentleBits.dc.html (Claude Design project af5dca3c) */

html { scroll-behavior: smooth; }

:root {
  --bg: #F7F9FB; --surface: #FFFFFF; --card: #F8FAFC; --ink: #0F172A; --heading: #0F172A;
  --muted: #475569; --faint: #94A3B8; --border: #E2E8F0; --input-border: #CBD5E1; --input-bg: #FFFFFF;
  --accent: #0F766E; --accent-text: #0F766E; --teal: #2DD4BF;
  --nav-bg: rgba(247,249,251,0.85); --chip-bg: #2DD4BF1A; --tag-bg: #E2E8F0; --tag-ink: #334155;
  --featured: linear-gradient(160deg, #FFFFFF, #F0FDFA); --success-bg: #F0FDFA; --nb-bg: #FFFFFF;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

:root[data-theme="dark"] {
  --bg: #0F172A; --surface: #111B30; --card: #1E293B; --ink: #E2E8F0; --heading: #F8FAFC;
  --muted: #94A3B8; --faint: #64748B; --border: #334155; --input-border: #334155; --input-bg: #1E293B;
  --accent: #0F766E; --accent-text: #2DD4BF; --teal: #2DD4BF;
  --nav-bg: rgba(15,23,42,0.85); --chip-bg: #2DD4BF14; --tag-bg: #334155; --tag-ink: #CBD5E1;
  --featured: linear-gradient(160deg, #1E293B, #0F2E2B); --success-bg: #0F766E22; --nb-bg: #1E293B;
}

/* No-JS fallback: system dark still gets the dark palette */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F172A; --surface: #111B30; --card: #1E293B; --ink: #E2E8F0; --heading: #F8FAFC;
    --muted: #94A3B8; --faint: #64748B; --border: #334155; --input-border: #334155; --input-bg: #1E293B;
    --accent: #0F766E; --accent-text: #2DD4BF; --teal: #2DD4BF;
    --nav-bg: rgba(15,23,42,0.85); --chip-bg: #2DD4BF14; --tag-bg: #334155; --tag-ink: #CBD5E1;
    --featured: linear-gradient(160deg, #1E293B, #0F2E2B); --success-bg: #0F766E22; --nb-bg: #1E293B;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Geist', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s ease, color 0.4s ease;
}

a { color: var(--accent-text); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--teal); }
::selection { background: #2DD4BF44; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

@keyframes gb-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes gb-pop { from { opacity: 0; transform: scale(0.5); } to { opacity: 1; transform: scale(1); } }
@keyframes gb-relay { 0% { box-shadow: 0 0 0 0 rgba(45,212,191,0.45); transform: scale(1); } 5% { transform: scale(1.1); } 13% { box-shadow: 0 0 0 9px rgba(45,212,191,0); transform: scale(1); } 100% { box-shadow: 0 0 0 0 rgba(45,212,191,0); transform: scale(1); } }
@keyframes gb-flow { 0% { background-position: 100% 0; } 15% { background-position: 0% 0; } 100% { background-position: 0% 0; } }
@keyframes gb-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(45,212,191,0.55); } 50% { box-shadow: 0 0 0 6px rgba(45,212,191,0); } }

/* Timed entrance (hero) */
.rise { animation: gb-rise 0.6s var(--ease) var(--d, 0s) backwards; }

/* Scroll-driven reveal — browsers without animation-timeline show content instantly */
.reveal {
  animation: gb-rise 1ms var(--ease) backwards;
  animation-timeline: view();
  animation-range: entry var(--r0, 0%) entry var(--r1, 28%);
}

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- layout helpers ---------- */

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(56px, 10vw, 88px) clamp(20px, 5vw, 32px);
}

.band { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

section { scroll-margin-top: 64px; }

.kicker {
  margin: 0 0 8px;
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
  color: var(--accent-text);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title {
  margin: 0 0 12px;
  font-size: clamp(30px, 6.5vw, 38px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--heading);
}
.section-title.solo { margin-bottom: 48px; }

.lead {
  margin: 0 0 56px;
  font-size: 17px;
  color: var(--muted);
  max-width: 620px;
  line-height: 1.6;
}

/* ---------- nav ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 18px;
  color: var(--heading);
  letter-spacing: -0.02em;
}
.logo:hover { color: var(--heading); }
.logo .mark { height: 26px; width: auto; display: block; }
.logo-accent { font-weight: 700; color: var(--accent-text); }

.logo .mark-dark { display: none; }
:root[data-theme="dark"] .logo .mark-light { display: none; }
:root[data-theme="dark"] .logo .mark-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo .mark-light { display: none; }
  :root:not([data-theme="light"]) .logo .mark-dark { display: block; }
}

.nav-links { display: flex; align-items: center; gap: 24px; font-size: 14px; font-weight: 500; }
.nav-link { color: var(--muted); }
.nav-link:hover { color: var(--accent-text); }

.theme-btn {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 8px;
  padding: 7px 12px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.theme-btn:hover { border-color: var(--teal); color: var(--accent-text); }

.nav-cta {
  background: var(--accent);
  color: #FFFFFF;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.2s ease;
}
.nav-cta:hover { background: #0B5D57; color: #FFFFFF; }

.nav-mobile { display: none; align-items: center; gap: 10px; }
.nav-mobile .theme-btn { padding: 8px 12px; }

.menu-btn {
  font-size: 17px;
  line-height: 1;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--heading);
  border-radius: 8px;
  padding: 8px 13px;
  min-width: 44px;
  min-height: 36px;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 10px clamp(16px, 4vw, 32px) 18px;
  border-top: 1px solid var(--border);
}
.mobile-menu a { color: var(--muted); font-size: 16px; font-weight: 500; padding: 12px 2px; }
.mobile-menu .mobile-cta {
  margin-top: 10px;
  background: var(--accent);
  color: #FFFFFF;
  padding: 13px 16px;
  border-radius: 10px;
  font-weight: 600;
  text-align: center;
  font-size: 15px;
}

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-mobile { display: flex; }
  .site-nav.menu-open .mobile-menu { display: flex; }
}

/* ---------- hero ---------- */

.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(72px, 14vw, 112px) clamp(20px, 5vw, 32px) clamp(64px, 10vw, 96px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  position: relative;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
  color: var(--accent-text);
  background: var(--chip-bg);
  border: 1px solid #2DD4BF55;
  padding: 6px 14px;
  border-radius: 999px;
}

.chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2DD4BF;
  display: inline-block;
  animation: gb-pulse 2.6s ease-out infinite;
}

.hero h1 {
  margin: 0;
  font-size: clamp(38px, 9.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 700;
  max-width: 720px;
  text-wrap: balance;
  color: var(--heading);
}
.hero h1 .accent { color: var(--accent-text); }

.hero-sub {
  margin: 0;
  font-size: 20px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 640px;
  text-wrap: pretty;
}

.cta {
  background: var(--accent);
  color: #FFFFFF;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  display: inline-block;
  box-shadow: 0 4px 14px rgba(15,118,110,0.25);
  transition: background 0.2s ease;
}
.cta:hover { background: #0B5D57; color: #FFFFFF; }

.hero-note { margin: 0; font-size: 13px; color: var(--faint); }

/* ---------- capabilities ---------- */

.cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 20px;
}

.cap-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--card);
  transition: border-color 0.25s ease;
}
.cap-card:hover { border-color: #2DD4BF; }
.cap-num { font-family: 'Geist Mono', monospace; font-size: 12px; color: var(--accent-text); }
.cap-card h3 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; color: var(--heading); }
.cap-card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }

/* ---------- process ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0;
  position: relative;
}

.step { display: flex; flex-direction: column; gap: 14px; padding: 0 16px 0 0; position: relative; }
.step-track { display: flex; align-items: center; gap: 0; }

.step-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
  animation: gb-relay 9.6s ease-out calc(var(--i) * 1.6s) infinite paused;
}

.step-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, #2DD4BF44 0%, #2DD4BF44 38%, #2DD4BF 50%, #2DD4BF44 62%, #2DD4BF44 100%);
  background-size: 250% 100%;
  animation: gb-flow 9.6s ease-in-out calc(var(--i) * 1.6s + 0.2s) infinite paused;
}

.process.is-live .step-badge,
.process.is-live .step-line { animation-play-state: running; }

.step-copy { display: flex; flex-direction: column; gap: 6px; }
.step-copy h3 { margin: 0; font-size: 15px; font-weight: 600; color: var(--heading); }
.step-copy p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }

/* ---------- tools (always dark) ---------- */

.tools { background: #0F172A; color: #E2E8F0; border-top: 1px solid #1E293B; border-bottom: 1px solid #1E293B; }
.tools .kicker { color: #2DD4BF; }
.tools .section-title { color: #F8FAFC; }
.tools .lead { margin-bottom: 48px; color: #94A3B8; }

.tool-groups { display: flex; flex-direction: column; gap: 40px; }
.tool-group { display: flex; flex-direction: column; gap: 16px; }
.tool-group h3 { margin: 0; font-size: 14px; font-weight: 600; color: #2DD4BF; font-family: 'Geist Mono', monospace; letter-spacing: 0.04em; }

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 12px;
}

.tool {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #1E293B;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 14px 16px;
  transition: border-color 0.2s ease;
}
.tool:hover { border-color: #2DD4BF66; }

.tool-mono {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: #0F766E33;
  color: #2DD4BF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Geist Mono', monospace;
  font-size: 15px;
  font-weight: 500;
  flex-shrink: 0;
}

.tool-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tool-name { font-size: 15px; font-weight: 600; color: #F1F5F9; }
.tool-desc { font-size: 13px; color: #94A3B8; }

/* ---------- open source ---------- */

.oss-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 20px;
}

.featured-card {
  border: 1px solid #2DD4BF88;
  border-radius: 16px;
  padding: 32px;
  background: var(--featured);
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 4px 18px rgba(15,118,110,0.08);
  transition: border-color 0.25s ease;
}
.featured-card:hover { border-color: #2DD4BF; }

.featured-head { display: flex; align-items: center; gap: 10px; }

.featured-badge {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--accent-text);
  background: #2DD4BF22;
  border: 1px solid #2DD4BF66;
  padding: 4px 10px;
  border-radius: 999px;
}

.featured-card h3 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.015em; color: var(--heading); }
.featured-card p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--muted); text-wrap: pretty; }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-family: 'Geist Mono', monospace; font-size: 12px; color: var(--tag-ink); background: var(--tag-bg); padding: 4px 10px; border-radius: 6px; }

.featured-link { font-size: 14px; font-weight: 600; color: var(--accent-text); display: inline-flex; align-items: center; gap: 6px; }

.more-card {
  border: 1px dashed var(--input-border);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  text-align: center;
  color: var(--faint);
}
.more-mono { font-family: 'Geist Mono', monospace; font-size: 13px; }
.more-card p { margin: 0; font-size: 14px; max-width: 280px; line-height: 1.6; }
.more-card a { font-size: 14px; font-weight: 600; }

/* ---------- team ---------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.team-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border-left: 2px solid #2DD4BF;
  background: var(--card);
  border-radius: 0 12px 12px 0;
}
.team-card h3 { margin: 0; font-size: 17px; font-weight: 600; color: var(--heading); }
.team-card p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }

.nb { display: flex; flex-direction: column; gap: 16px; }
.nb-label { margin: 0; font-size: 14px; font-weight: 600; color: var(--faint); }
.nb-row { display: flex; flex-wrap: wrap; gap: 12px; }

.nb-chip {
  display: flex;
  align-items: baseline;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 18px;
  background: var(--nb-bg);
  transition: border-color 0.2s ease;
}
.nb-chip:hover { border-color: #2DD4BF; }
.nb-title { font-size: 14px; font-weight: 600; color: var(--accent-text); }
.nb-body { font-size: 13px; color: var(--muted); }

/* ---------- contact ---------- */

.contact {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(64px, 12vw, 96px) clamp(20px, 5vw, 32px);
}

.contact-inner {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: center;
  align-items: center;
}

.section-title.tight { margin-bottom: 0; }
.contact-lead { margin: 0; font-size: 16px; color: var(--muted); line-height: 1.6; }

.success {
  width: 100%;
  background: var(--success-bg);
  border: 1px solid #2DD4BF;
  border-radius: 14px;
  padding: 40px 32px;
  animation: gb-rise 0.5s var(--ease) backwards;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.success-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  animation: gb-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s backwards;
}

.success h3 { margin: 0; font-size: 20px; font-weight: 600; color: var(--heading); }
.success p { margin: 0; font-size: 15px; color: var(--muted); }

.contact-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.field {
  font-family: 'Geist', sans-serif;
  font-size: 15px;
  padding: 14px 16px;
  border: 1px solid var(--input-border);
  border-radius: 10px;
  background: var(--input-bg);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field:focus { border-color: #0F766E; box-shadow: 0 0 0 3px #2DD4BF33; }
textarea.field { resize: vertical; }

.form-error { margin: 0; font-size: 14px; line-height: 1.5; color: #DC2626; }
:root[data-theme="dark"] .form-error { color: #F87171; }

.submit-btn {
  font-family: 'Geist', sans-serif;
  background: var(--accent);
  color: #FFFFFF;
  border: none;
  padding: 15px 28px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15,118,110,0.25);
  transition: background 0.2s ease;
}
.submit-btn:hover { background: #0B5D57; }
.submit-btn:disabled { opacity: 0.7; cursor: default; }

/* ---------- footer ---------- */

.footer { background: #0F172A; color: #94A3B8; border-top: 1px solid #1E293B; }

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px clamp(20px, 5vw, 32px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand { display: flex; flex-direction: column; gap: 6px; }
.footer-logo { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 16px; color: #F8FAFC; }
.footer-logo img { height: 20px; width: auto; display: block; }
.footer-logo-accent { font-weight: 700; color: #2DD4BF; }
.footer-tag { font-size: 13px; }

.footer-links { display: flex; gap: 24px; font-size: 14px; }
.footer-links a { color: #CBD5E1; }
.footer-links a:hover { color: #2DD4BF; }

.footer-copy { font-size: 12px; color: #64748B; }
