:root {
  --bg: #f5f7f6;
  --surface: #ffffff;
  --text: #181b1a;
  --text-muted: #5b6360;
  --border: #e1e6e3;
  --accent: #1f6f5c;
  --accent-contrast: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101513;
    --surface: #161b19;
    --text: #edf1ef;
    --text-muted: #93a19c;
    --border: #232b28;
    --accent: #4fbe9e;
    --accent-contrast: #0b1210;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.mono {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-weight: 600;
  font-size: 15px;
}

.brand-name {
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.header-cta {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.header-cta:hover,
.header-cta:focus-visible {
  color: var(--text);
}

/* Hero */

.hero {
  padding: 96px 0 72px;
}

.eyebrow {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 0 0 20px;
  font-weight: 700;
  font-size: clamp(32px, 5vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 14ch;
  text-wrap: balance;
}

.hero-sub {
  margin: 0 0 32px;
  font-size: 18px;
  color: var(--text-muted);
  max-width: 52ch;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-contrast);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: 6px;
}

.btn:hover,
.btn:focus-visible {
  opacity: 0.9;
}

/* Apps */

.header-nav {
  display: flex;
  gap: 24px;
}

.apps {
  padding: 8px 0 80px;
}

.apps h2 {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.section-sub {
  margin: 0 0 28px;
  color: var(--text-muted);
}

.app-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-card {
  display: flex;
  gap: 18px;
  height: 100%;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.app-card:hover,
.app-card:focus-visible {
  border-color: var(--accent);
}

.app-icon {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 14px;
}

.app-body h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 600;
}

.app-body p {
  margin: 0 0 10px;
  font-size: 15px;
  color: var(--text-muted);
}

.app-meta {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

/* About */

.about {
  padding: 64px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.about h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

.about p {
  margin: 0;
  color: var(--text-muted);
}

.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-muted);
}

.feature-list li {
  padding: 10px 0;
  border-top: 1px solid var(--border);
}

.feature-list li:first-child {
  border-top: none;
}

/* Contact */

.contact {
  padding: 80px 0;
  text-align: center;
}

.contact h2 {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.contact p {
  margin: 0 0 20px;
  color: var(--text-muted);
}

.email-link {
  display: inline-block;
  font-size: 19px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.email-link:hover,
.email-link:focus-visible {
  text-decoration: underline;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-domain {
  letter-spacing: 0.02em;
}

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

@media (max-width: 640px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero {
    padding: 64px 0 48px;
  }
}
