/* algofill.com: one stylesheet for index.html and 404.html. No web fonts, no third-party requests. */

:root {
  --navy-950: #070E1B;
  --navy-900: #0A1324;
  --navy-800: #101C33;
  --teal-50: #E8FBF7;
  --teal-300: #5EEAD4;
  --teal-400: #2DD4BF;
  --teal-700: #0F766E;
  --ink: #0F172A;
  --text: #334155;
  --muted: #64748B;
  --line: #E2E8F0;
  --paper: #FFFFFF;
  --paper-2: #F6F8FB;
  --radius: 14px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--teal-700); }
a:focus-visible { outline: 2px solid var(--teal-400); outline-offset: 3px; border-radius: 6px; }
p { margin: 0 0 18px; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 10;
  padding: 8px 14px; border-radius: 8px;
  background: #fff; color: var(--ink); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding-bottom: 104px;
  color: #CBD5E1;
  background:
    radial-gradient(1100px 560px at 88% -12%, rgba(45, 212, 191, .16), transparent 62%),
    radial-gradient(900px 520px at -12% 112%, rgba(96, 165, 250, .13), transparent 60%),
    var(--navy-900);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 35%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 35%, #000 25%, transparent 75%);
}
.hero > * { position: relative; }

.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 80px; }
.nav nav { display: flex; gap: 32px; }
.nav nav a { color: #AEB9CB; font-size: 15px; font-weight: 500; text-decoration: none; transition: color .15s; }
.nav nav a:hover { color: #fff; }

.brand {
  display: inline-flex; align-items: center; gap: 11px;
  color: #fff; font-size: 15px; font-weight: 700; letter-spacing: .16em; text-decoration: none;
}
.brand .mark { flex: none; width: 32px; height: 32px; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 64px;
  align-items: center;
  padding-top: 64px;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 20px;
  color: var(--teal-300); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--teal-400); }

h1 {
  margin: 0 0 24px;
  color: #fff;
  font-size: clamp(2.3rem, 1.5rem + 3vw, 3.9rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.028em;
  text-wrap: balance;
}
.lede { max-width: 34em; margin: 0 0 36px; color: #AFBBCD; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 24px; border-radius: 10px;
  font-size: 15px; font-weight: 600; text-decoration: none;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--teal-400); color: var(--navy-950); }
.btn-primary:hover { background: var(--teal-300); }
.btn-ghost { border: 1px solid rgba(255, 255, 255, .2); color: #E2E8F0; }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .45); color: #fff; }

.hero-art {
  padding: 22px 24px 16px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, .8);
}
.hero-art svg { display: block; width: 100%; height: auto; }
.hero-art text { font-family: var(--font); font-size: 14px; font-weight: 600; letter-spacing: .16em; fill: rgba(226, 232, 240, .55); }

/* Sections */

.section { padding: 104px 0; }
.section-alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.kicker { margin: 0 0 12px; color: var(--teal-700); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
h2 {
  margin: 0 0 20px;
  color: var(--ink);
  font-size: clamp(1.8rem, 1.35rem + 1.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.022em;
  text-wrap: balance;
}
.intro { max-width: 40em; margin: 0; }

.about-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.about-grid p:last-child { margin-bottom: 0; }

.facts {
  margin: 0;
  padding: 6px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 18px 40px -26px rgba(15, 23, 42, .25);
}
.facts div { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); font-size: 14px; }
.facts dd { margin: 0; color: var(--ink); font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }
.facts a { text-decoration: none; }
.facts a:hover { text-decoration: underline; }
.mono { font-family: var(--mono); font-size: 14px; letter-spacing: .02em; }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 44px; }
.card {
  padding: 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s;
}
.card:hover { border-color: #CBD5E1; box-shadow: 0 18px 40px -28px rgba(15, 23, 42, .3); }
.card h3 { margin: 20px 0 8px; color: var(--ink); font-size: 18px; letter-spacing: -.01em; }
.card p { margin: 0; font-size: 16px; }
.icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--teal-50); color: var(--teal-700); }
.icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Contact */

.section-dark { background: var(--navy-900); color: #AFBBCD; }
.section-dark h2 { color: #fff; }
.section-dark .kicker { color: var(--teal-300); }
.contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 40px; }
.contact p { max-width: 34em; margin: 0; }
.email-link {
  padding-bottom: 4px;
  border-bottom: 2px solid var(--teal-400);
  color: #fff;
  font-size: clamp(1.3rem, 1rem + 1.2vw, 1.9rem);
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.email-link:hover { color: var(--teal-300); }

/* Footer */

.site-footer { padding: 40px 0 48px; background: var(--navy-950); color: #8090A6; font-size: 14px; }
.footer-top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: 24px; padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.footer-top p { margin: 0; }
.brand-sm { font-size: 13px; }
.brand-sm .mark { width: 26px; height: 26px; }
.disclaimer { max-width: 62em; margin: 0; color: #74849B; font-size: 13px; line-height: 1.6; }

/* 404 */

.notfound { display: flex; flex-direction: column; min-height: 100vh; padding-bottom: 0; }
.notfound-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; justify-content: center; padding-bottom: 80px; }

/* Narrow screens */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; padding-top: 40px; }
  .about-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 720px) {
  .hero { padding-bottom: 72px; }
  .section { padding: 72px 0; }
  .cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .nav { height: 68px; }
  .nav nav { gap: 18px; }
  .nav nav a { font-size: 14px; }
  .brand { font-size: 14px; letter-spacing: .14em; }
  .brand .mark { width: 28px; height: 28px; }
  .hero-art { padding: 16px 16px 10px; }
  .facts { padding: 4px 18px; }
  .facts div { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 12px 0; }
  .card { padding: 24px; }
}
@media (max-width: 400px) {
  .nav nav a[href="#approach"] { display: none; }
}
