/* RoboMiri — robomiri.com
   No external requests: system fonts only, all assets local. */

:root {
  --bg:        #0a0c0d;
  --bg-soft:   #101314;
  --surface:   #14181a;
  --surface-2: #1a1f21;
  --line:      #242b2d;
  --line-soft: #1c2224;
  --text:      #e9eeec;
  --text-2:    #a8b3b0;
  --text-3:    #6f7b78;
  --accent:    #3ddc97;
  --accent-dim:#1f6f52;
  --amber:     #f0a33c;
  --slate:     #7d8f9a;

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Liberation Mono", monospace;

  --wrap: 1120px;
  --r: 14px;
  --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 18px 40px -24px rgba(0,0,0,.9);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg:        #fbfbfa;
    --bg-soft:   #f3f4f3;
    --surface:   #ffffff;
    --surface-2: #f6f7f7;
    --line:      #e0e3e2;
    --line-soft: #ebeeed;
    --text:      #141a19;
    --text-2:    #55605d;
    --text-3:    #838d8a;
    --accent:    #0f8f5f;
    --accent-dim:#a9e6c9;
    --amber:     #a96712;
    --slate:     #5b6a72;
    --shadow: 0 1px 2px rgba(16,24,20,.04), 0 12px 32px -22px rgba(16,24,20,.35);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; }
img, svg { max-width: 100%; }

::selection { background: var(--accent); color: var(--bg); }

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px; top: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 8px;
  font-weight: 600;
}

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 680;
  letter-spacing: -.015em;
  font-size: 18px;
  margin-right: auto;
}
.brand svg { display: block; }
.brand b { font-weight: 680; }
.brand span { color: var(--text-3); font-weight: 500; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  padding: 7px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-2);
  font-size: 14.5px;
  font-weight: 500;
  transition: color .15s, background .15s;
}
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a.cta {
  color: var(--bg);
  background: var(--accent);
  font-weight: 620;
}
.nav a.cta:hover { filter: brightness(1.08); background: var(--accent); }

@media (max-width: 720px) {
  .nav a.hide-sm { display: none; }
}

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

.hero {
  position: relative;
  padding: clamp(56px, 11vw, 120px) 0 clamp(40px, 7vw, 72px);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto -10%;
  height: 620px;
  background:
    radial-gradient(60% 60% at 22% 40%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 70%),
    radial-gradient(46% 46% at 78% 20%, color-mix(in srgb, var(--slate) 12%, transparent), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero .wrap { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 22px;
}
.eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}

h1 {
  margin: 0;
  font-size: clamp(38px, 6.4vw, 68px);
  line-height: 1.04;
  letter-spacing: -.035em;
  font-weight: 700;
  max-width: 17ch;
}
h1 em {
  font-style: normal;
  color: var(--accent);
}

.lede {
  margin: 26px 0 0;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
  color: var(--text-2);
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 570;
  transition: transform .12s ease, border-color .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); border-color: var(--text-3); }
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #06120c;
  font-weight: 640;
}
.btn-primary:hover { filter: brightness(1.08); }

/* ------------------------------------------------------------- key facts */

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(44px, 7vw, 76px);
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  overflow: hidden;
}
.fact {
  background: var(--bg);
  padding: 20px 22px;
}
.fact dt {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 6px;
}
.fact dd {
  margin: 0;
  font-size: 21px;
  font-weight: 640;
  letter-spacing: -.02em;
}
@media (max-width: 760px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* --------------------------------------------------------------- section */

section { padding: clamp(56px, 8vw, 96px) 0; }
section + section { border-top: 1px solid var(--line-soft); }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.section-head .num {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--accent);
  letter-spacing: .08em;
}
h2 {
  margin: 0;
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.15;
  letter-spacing: -.03em;
  font-weight: 690;
}
.section-sub {
  margin: 0 0 40px;
  color: var(--text-2);
  max-width: 66ch;
  font-size: 17px;
}

/* --------------------------------------------------------------- filters */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 44px;
}
.filters button {
  font: inherit;
  font-size: 14px;
  font-weight: 550;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.filters button:hover { color: var(--text); border-color: var(--text-3); }
.filters button[aria-pressed="true"] {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

/* ----------------------------------------------------------- app listing */

.group { margin-bottom: 56px; }
.group:last-child { margin-bottom: 0; }
.group[hidden] { display: none; }

.group-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line-soft);
}
.group-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 660;
  letter-spacing: .01em;
}
.group-head p {
  margin: 0;
  color: var(--text-3);
  font-size: 14.5px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 18px;
}
@media (max-width: 620px) {
  .cards { grid-template-columns: 1fr; }
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px 26px 22px;
  box-shadow: var(--shadow);
  transition: border-color .18s ease, transform .18s ease;
}
.card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.card[hidden] { display: none; }

.card-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 4px;
}
.card h4 {
  margin: 0;
  font-size: 21px;
  font-weight: 680;
  letter-spacing: -.02em;
  flex: 1;
}
.card h4 a { text-decoration: none; }
.card h4 a:hover { color: var(--accent); }

.pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text-3);
  white-space: nowrap;
  margin-top: 3px;
}
.pill::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.pill.live     { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.pill.building { color: var(--amber);  border-color: color-mix(in srgb, var(--amber) 35%, transparent); }
.pill.internal { color: var(--slate);  border-color: color-mix(in srgb, var(--slate) 32%, transparent); }

.card .tagline {
  margin: 0 0 14px;
  color: var(--text);
  font-weight: 560;
  font-size: 16px;
  line-height: 1.45;
}
.card .body {
  margin: 0 0 18px;
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.6;
}

.card ul {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.card ul li {
  position: relative;
  padding-left: 20px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text-2);
}
.card ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .62em;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--accent-dim);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}
.tag {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .02em;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  color: var(--text-3);
}

.card-foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.card-foot .host {
  flex: 0 0 100%;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-3);
}
.card-foot a {
  font-size: 14px;
  font-weight: 560;
  text-decoration: none;
  color: var(--text-2);
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}
.card-foot a:hover { color: var(--text); border-color: var(--text-3); }
.card-foot a.primary { color: var(--accent); }
.card-foot a.primary:hover { border-color: var(--accent); }
.card-foot a.primary::after { content: " →"; }

/* ------------------------------------------------------------ principles */

.principles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  overflow: hidden;
}
.principle {
  background: var(--bg);
  padding: 30px 28px;
}
.principle h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -.015em;
}
.principle p {
  margin: 0;
  color: var(--text-2);
  font-size: 15.5px;
}
@media (max-width: 720px) {
  .principles { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------------- about */

.about-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
}
.about-grid p {
  color: var(--text-2);
  font-size: 17px;
}
.about-grid p:first-child { margin-top: 0; }

.detail-list {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  overflow: hidden;
}
.detail-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  font-size: 14.5px;
}
.detail-list div + div { border-top: 1px solid var(--line-soft); }
.detail-list dt { color: var(--text-3); font-family: var(--mono); font-size: 12.5px; letter-spacing: .05em; text-transform: uppercase; }
.detail-list dd { margin: 0; font-weight: 560; text-align: right; }
.detail-list a { color: var(--accent); text-decoration: none; }
.detail-list a:hover { text-decoration: underline; }

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

.site-footer {
  border-top: 1px solid var(--line-soft);
  background: var(--bg-soft);
  padding: 48px 0 40px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line-soft);
}
.footer-top p {
  margin: 10px 0 0;
  color: var(--text-3);
  font-size: 14.5px;
  max-width: 42ch;
}
.footer-links {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(4, auto);
  gap: 8px 48px;
}
@media (max-width: 620px) {
  .footer-links { grid-auto-flow: row; grid-template-rows: none; }
}
.footer-links a {
  text-decoration: none;
  color: var(--text-2);
  font-size: 14.5px;
}
.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 26px;
  font-size: 13.5px;
  color: var(--text-3);
  font-family: var(--mono);
}
.footer-bottom a { color: var(--text-3); text-decoration: none; }
.footer-bottom a:hover { color: var(--text); }
