@charset "UTF-8";

:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --text: #151515;
  --muted: #6c6c72;
  --border: #e6e6e1;
  --brand-element: #0dbd8b;
  --brand-mastodon: #6364ff;
  --brand-jitsi: #8e8e93;
  --max: 1080px;
  --radius: 24px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0c0e;
    --surface: #121316;
    --text: #f4f4f2;
    --muted: #9c9ca4;
    --border: #24262c;
    --brand-jitsi: #b0b0b7;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: rgba(13, 189, 139, .22); }

a { color: inherit; }

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

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 10;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-180%);
}

.skip-link:focus { transform: none; }

.glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(48% 42% at 14% 2%, rgba(13, 189, 139, .16), transparent 68%),
    radial-gradient(42% 38% at 52% -6%, rgba(99, 100, 255, .14), transparent 68%),
    radial-gradient(40% 36% at 88% 8%, rgba(142, 142, 147, .18), transparent 68%);
}

@media (prefers-color-scheme: dark) {
  .glow {
    opacity: .7;
    background:
      radial-gradient(48% 42% at 14% 2%, rgba(13, 189, 139, .10), transparent 68%),
      radial-gradient(42% 38% at 52% -6%, rgba(99, 100, 255, .10), transparent 68%),
      radial-gradient(40% 36% at 88% 8%, rgba(176, 176, 183, .08), transparent 68%);
  }
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

main { flex: 1; }

.site-header {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.04rem;
  font-weight: 600;
  letter-spacing: -.025em;
  text-decoration: none;
}

.brand-mark { width: 22px; height: 22px; display: block; }

.nav-link {
  font-size: .88rem;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s ease;
}

.nav-link:hover { color: var(--text); }

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(84px, 14vh, 148px) 24px 76px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-element);
  box-shadow: 0 0 0 4px rgba(13, 189, 139, .12);
}

h1 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(2.6rem, 6.4vw, 4.55rem);
  line-height: 1.04;
  letter-spacing: -.045em;
  font-weight: 600;
  text-wrap: balance;
}

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

.lede {
  margin: 26px 0 0;
  max-width: 520px;
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  line-height: 1.65;
  letter-spacing: -.01em;
  color: var(--muted);
}

.scroll-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 34px;
  padding-bottom: 4px;
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: border-color .2s ease;
}

.scroll-link:hover { border-color: var(--text); }

.services {
  max-width: var(--max);
  margin: 0 auto;
  padding: 6px 24px 96px;
  scroll-margin-top: 24px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.section-head h2 {
  margin: 0;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-head p {
  margin: 0;
  font-size: .88rem;
  color: var(--muted);
}

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

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: 284px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--brand) 38%, var(--border));
  box-shadow: 0 22px 44px -28px rgba(0, 0, 0, .38);
}

.card:focus-visible { outline-offset: 4px; }

.card--element { --brand: var(--brand-element); }
.card--mastodon { --brand: var(--brand-mastodon); }
.card--jitsi { --brand: var(--brand-jitsi); }

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 15px;
  border: 1px solid color-mix(in srgb, var(--brand) 16%, transparent);
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  color: var(--brand);
  transition: transform .24s ease;
}

.card:hover .icon { transform: translateY(-1px); }

.icon svg { width: 26px; height: 26px; display: block; }

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 7px;
}

.card-kicker {
  font-size: .71rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}

.card-title {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -.025em;
}

.card-text {
  font-size: .92rem;
  line-height: 1.6;
  color: var(--muted);
}

.card-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 18px;
  font-size: .86rem;
  font-weight: 500;
}

.arrow { transition: transform .24s ease; }

.card:hover .arrow { transform: translateX(4px); }

.site-footer {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 26px 24px 40px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--border);
  font-size: .82rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .hero { padding-top: 80px; }
}

@media (max-width: 560px) {
  .site-header { padding: 20px; }
  .nav-link { display: none; }
  .hero { padding: 64px 20px 48px; }
  .services { padding: 4px 20px 64px; }
  .site-footer { padding: 24px 20px 32px; flex-direction: column; gap: 6px; }
  .card { padding: 22px; }
}

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