:root {
  --bg:           #F7F6F3;
  --surface:      #FFFFFF;
  --surface-alt:  #F2F1EE;
  --brand:        #1A3450;
  --interactive:  #1E5585;
  --accent:       #5C9E8A;
  --text:         #1A1916;
  --muted:        #7A7870;
  --border:       #E3E1DA;
}

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

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

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--interactive); text-decoration: none; }
a:hover { color: var(--brand); }
h1, h2, h3, h4, p { margin-top: 0; }

.hero-display { font-size: 52px; font-weight: 500; letter-spacing: -0.03em; color: var(--brand); line-height: 1.2; }
h1 { font-size: 40px; font-weight: 500; letter-spacing: -0.025em; color: var(--brand); line-height: 1.2; }
h2 { font-size: 30px; font-weight: 500; letter-spacing: -0.02em; color: var(--brand); line-height: 1.2; }
h3 { font-size: 18px; font-weight: 500; letter-spacing: normal; color: var(--text); line-height: 1.2; }
.caption { font-size: 13px; font-weight: 400; color: var(--muted); }
.mono-label { font-size: 12px; font-weight: 400; color: var(--muted); font-family: 'JetBrains Mono', monospace; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px;
}

section { padding: 96px 0; }

@media (max-width: 768px) {
  .container { padding: 0 24px; }
  section { padding: 64px 0; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  transition: border-color 0.15s ease;
}
.card:hover { border-color: #C5C3BA; }

.tool-card {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 24px;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  transition: background 0.15s ease;
  text-decoration: none;
}
.btn-primary:hover { background: var(--interactive); color: #fff; }

.btn-secondary {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 400;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  transition: border-color 0.15s, color 0.15s;
  text-decoration: none;
}
.btn-secondary:hover { border-color: var(--muted); color: var(--text); }

.eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.07em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.badge {
  display: inline-block;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  padding: 3px 10px;
  border-radius: 999px;
  line-height: 1.5;
  white-space: nowrap;
}
.badge-app     { background: #EEF2F7; color: var(--brand); }
.badge-ios     { background: var(--surface-alt); color: var(--muted); border: 1px solid var(--border); }
.badge-android { background: var(--surface-alt); color: var(--muted); border: 1px solid var(--border); }
.badge-soon    { background: #FFF3E8; color: #9A6230; }
.badge-oss     { background: #EEF7F2; color: #1F6A4A; }
.badge-saas    { background: #EEF2F7; color: var(--brand); }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--brand);
  text-decoration: none;
}
.nav-wordmark {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--brand);
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--brand); }
.nav-links a[aria-current="page"] { color: var(--brand); font-weight: 500; }
.nav-github { font-size: 13px; font-family: 'JetBrains Mono', monospace; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--text); padding: 0; }

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease, padding 0.25s ease;
  }
  .site-nav.nav-open .nav-links {
    display: flex;
    max-height: 240px;
    padding: 16px 24px;
  }
  .nav-links a { padding: 8px 0; width: 100%; border-bottom: 1px solid var(--border); }
  .nav-links a:last-child { border-bottom: none; }
  .nav-toggle { display: flex; }
}

.site-footer {
  background: var(--brand);
  padding: 48px 0 36px;
}
.footer-inner { display: flex; flex-direction: column; gap: 2rem; }
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover { color: #ffffff; }
.footer-legal {
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  color: rgba(255,255,255,0.35);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
}

.hero-bg-glyph {
  position: absolute;
  right: -30px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 420px;
  font-weight: 700;
  line-height: 1;
  color: var(--brand);
  opacity: 0.04;
  pointer-events: none;
  user-select: none;
  overflow: hidden;
  z-index: 0;
}
.hero-content { position: relative; z-index: 1; }
@media (max-width: 768px) {
  .hero-bg-glyph { display: none; }
}

.section-sub { font-size: 17px; color: var(--muted); max-width: 480px; margin: 0 auto; }

.product-item {
  display: block;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  transition: border-color 0.15s;
  background: var(--surface);
}
.product-item:hover { border-color: var(--interactive); }
.product-item-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.product-name { font-size: 15px; font-weight: 500; color: var(--text); }
.product-desc { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.5; }

.app-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 500;
  flex-shrink: 0;
  margin-bottom: 16px;
}

.app-tagline { font-size: 13px; color: var(--muted); margin: 2px 0 12px; }
.app-platforms { display: flex; gap: 8px; margin: 16px 0 20px; flex-wrap: wrap; }
.app-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

@media (max-width: 768px) {
  .hero-content .btn-primary, .hero-content .btn-secondary {
    display: block;
    width: 100%;
    text-align: center;
  }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.tool-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 4px; gap: 12px; }
.tool-tagline { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.tool-links { display: flex; gap: 1.5rem; margin-top: 20px; flex-wrap: wrap; }
.tool-links a { font-size: 14px; font-weight: 500; color: var(--interactive); text-decoration: none; }
.tool-links a:hover { color: var(--brand); }

.apps-footer-note { text-align: center; padding: 0 0 64px; font-size: 14px; color: var(--muted); }

@media (max-width: 768px) {
  #hero h1 {
    font-size: 36px;
    letter-spacing: -0.02em;
  }
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
  .footer-links {
    gap: 1rem;
  }
  section h2 {
    font-size: 24px;
  }
  #about .container > div {
    text-align: left !important;
  }
}
