:root {
  --honey: #F5B301;
  --honey-deep: #C98A00;
  --ink: #1B160C;
  --text: #2A2415;
  --muted: #6F6450;
  --bg: #FFFBF1;
  --surface: #FFFFFF;
  --line: rgba(27, 22, 12, 0.10);
  --glow: rgba(245, 179, 1, 0.28);
  --live: #1F8A4C;
  --shadow: 0 1px 2px rgba(27, 22, 12, 0.06), 0 12px 32px -12px rgba(27, 22, 12, 0.18);
  --hive-opacity: 0.18;
  --radius: 22px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #F3ECDC;
    --muted: #B3A78E;
    --bg: #12100A;
    --surface: #1C1910;
    --line: rgba(255, 240, 200, 0.10);
    --glow: rgba(245, 179, 1, 0.20);
    --live: #4ADE80;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px -16px rgba(0, 0, 0, 0.7);
    --hive-opacity: 0.10;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont, "SF Pro Display", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img, svg { display: block; }

/* Honeycomb backdrop, strongest behind the hero and fading away below it. */
body { background: radial-gradient(900px 520px at 80% -5%, var(--glow), transparent 70%) no-repeat, var(--bg); }
.hive {
  position: fixed;
  inset: 0 0 auto 0;
  height: 100vh;
  z-index: -1;
  background: url("/hive.svg") repeat;
  background-size: 56px 97px;
  opacity: var(--hive-opacity);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.45) 45%, transparent 90%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.45) 45%, transparent 90%);
}

.top, main, .bottom { width: min(1120px, 100% - 32px); margin-inline: auto; }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}
.brand b { color: var(--honey-deep); font-weight: 800; }
@media (prefers-color-scheme: dark) { .brand b { color: var(--honey); } }
nav { display: flex; align-items: center; gap: 6px; }
nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 999px;
  transition: color 0.15s, background 0.15s;
}
nav a:hover { color: var(--text); background: var(--line); }
nav a.pill { color: var(--ink); background: var(--honey); }
nav a.pill:hover { background: #FFC21A; color: var(--ink); }
.hello { color: var(--muted); font-weight: 600; font-size: 0.95rem; padding: 0 6px; }
.navform { margin: 0; }
.navform .pill {
  border: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: 0.95rem;
  padding: 8px 12px; border-radius: 999px; color: var(--ink); background: var(--honey);
}
.navform .pill:hover { background: #FFC21A; }

/* Hero */
.hero { position: relative; padding: clamp(48px, 10vw, 120px) 0 clamp(40px, 7vw, 80px); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow);
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--honey);
  box-shadow: 0 0 0 0 var(--glow);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(245, 179, 1, 0.55); }
  100% { box-shadow: 0 0 0 10px rgba(245, 179, 1, 0); }
}
h1 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(2.6rem, 7.2vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 800;
  color: var(--text);
}
h1 em {
  font-style: normal;
  background: linear-gradient(transparent 62%, var(--honey) 62%, var(--honey) 92%, transparent 92%);
  padding: 0 0.06em;
}
@media (prefers-color-scheme: dark) {
  h1 em { background: none; color: var(--honey); }
}
.lead {
  max-width: 52ch;
  margin: 26px 0 34px;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--muted);
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 14px;
  background: var(--ink);
  color: #FFF8E7;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
}
.button:hover { transform: translateY(-2px); }
@media (prefers-color-scheme: dark) { .button { background: var(--honey); color: var(--ink); } }

/* The bee's flight path across the hero. */
.flight {
  position: absolute;
  right: -2%;
  top: 8%;
  width: min(560px, 55%);
  height: auto;
  overflow: visible;
  pointer-events: none;
}
.flight path#route { fill: none; stroke: var(--honey-deep); stroke-width: 1.5; stroke-dasharray: 2 9; stroke-linecap: round; opacity: 0.55; }
.flight .wing { fill: #FFFFFF; stroke: var(--honey-deep); stroke-width: 1; opacity: 0.9; transform-box: fill-box; transform-origin: center bottom; animation: flap 0.18s ease-in-out infinite alternate; }
.flight .body { fill: var(--honey); stroke: var(--ink); stroke-width: 1.5; }
.flight .stripe { stroke: var(--ink); stroke-width: 2.4; }
@keyframes flap { from { transform: scaleY(1); } to { transform: scaleY(0.45); } }
@media (max-width: 760px) { .flight { top: auto; bottom: -10px; width: 90%; right: 5%; opacity: 0.8; } }

/* Apps */
.apps { padding: 12px 0 96px; }
h2 {
  margin: 0 0 22px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 700;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-decoration: none;
  isolation: isolate;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
a.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px 180px at 100% 0%, var(--glow), transparent 70%);
  opacity: 0;
  transition: opacity 0.25s ease;
}
a.card:hover, a.card:focus-visible { transform: translateY(-4px); border-color: var(--honey); }
a.card:hover::before, a.card:focus-visible::before { opacity: 1; }
a.card:focus-visible { outline: 3px solid var(--honey); outline-offset: 3px; }
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--honey);
}
.icon svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-git { background: var(--ink); }
.icon-git svg { stroke: var(--honey); }
@media (prefers-color-scheme: dark) { .icon-git { background: #FFF8E7; } .icon-git svg { stroke: var(--ink); } }
.icon-symmetra { background: #FFE9A8; }
@media (prefers-color-scheme: dark) { .icon-symmetra { background: var(--honey-deep); } }
.icon-soon { background: transparent; }
.icon-soon svg { stroke: var(--muted); }
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid var(--line);
  color: var(--muted);
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.live { color: var(--live); }
.status.private { color: var(--honey-deep); }
@media (prefers-color-scheme: dark) { .status.private { color: var(--honey); } }
.card h3 { margin: 0; font-size: 1.45rem; letter-spacing: -0.02em; color: var(--text); }
.card p { margin: 0; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; padding: 0; list-style: none; }
.tags li { padding: 3px 10px; border-radius: 8px; background: var(--line); font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.go { margin-top: auto; padding-top: 14px; font-weight: 700; color: var(--text); }
.go span { display: inline-block; transition: transform 0.2s ease; }
a.card:hover .go span { transform: translateX(4px); }
.card.soon { background: transparent; border-style: dashed; box-shadow: none; justify-content: center; }

.bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
.bottom a { text-decoration: none; }
.bottom a:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .flight { display: none; }
}
@media (max-width: 520px) {
  nav a:not(.pill), .hello { display: none; }
  .card { padding: 22px; }
}
