/* Hornet Linux — hornet-linux.net
   No external fonts or assets: everything here is served from our own box. */

:root {
  color-scheme: dark;

  --bg: #0b0907;
  --text: #fbf3e4;
  --text-2: #cdbfa6;
  --text-3: #968a75;
  --surface: rgb(255 240 210 / 0.045);
  --surface-2: rgb(255 240 210 / 0.085);
  --border: rgb(255 210 140 / 0.14);
  --border-2: rgb(255 210 140 / 0.26);
  --hex-fill: #15100b;
  --ink: #1a1105;

  /* brand */
  --y: #ffe14d;
  --a: #ffb300;
  --o: #ff6a1a;
  --p: #ff3d86;
  --grad: linear-gradient(100deg, var(--y), var(--a) 25%, var(--o) 50%, var(--p) 75%, var(--a));
  --btn-grad: linear-gradient(100deg, #ffe14d, #ffb300 45%, #ff7a2e);

  /* per-service accents: fill colour, second fill colour, text colour */
  --mail-acc: 255 179 0;   --mail-acc2: 255 122 46;  --mail-txt: 255 196 77;
  --acct-acc: 255 77 141;  --acct-acc2: 255 140 186; --acct-txt: 255 128 176;
  --cock-acc: 34 211 238;  --cock-acc2: 74 240 180;  --cock-txt: 103 232 249;

  --ok: #3ee39a;
  --warn: #ffcc33;
  --bad: #ff5470;
  --unk: #7d725f;

  --comb: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100M28 0L28 34L0 50L0 84L28 100L56 84L56 50L28 34' fill='none' stroke='%23ffb300' stroke-width='1'/%3E%3C/svg%3E");
  --comb-lit: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100M28 0L28 34L0 50L0 84L28 100L56 84L56 50L28 34' fill='none' stroke='%23ffd23f' stroke-width='1.6'/%3E%3C/svg%3E");
  --comb-o: 0.075;
  --lit-o: 0.6;
  --aurora-o: 0.3;
  --aurora-blend: screen;

  --radius: 22px;
  --shadow: 0 18px 50px -24px rgb(0 0 0 / 0.75);
  --gutter: clamp(16px, 4vw, 32px);
  --hex-clip: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #fff8ec;
    --text: #1d1409;
    --text-2: #56462f;
    --text-3: #7a6848;
    --surface: rgb(255 255 255 / 0.6);
    --surface-2: rgb(255 255 255 / 0.9);
    --border: rgb(120 80 20 / 0.14);
    --border-2: rgb(120 80 20 / 0.28);
    --hex-fill: #fffaf1;

    --y: #e08a00;
    --a: #d97706;
    --o: #ea580c;
    --p: #db2777;

    --mail-acc: 255 170 0;   --mail-acc2: 255 122 46;  --mail-txt: 180 83 9;
    --acct-acc: 244 63 136;  --acct-acc2: 255 130 180; --acct-txt: 190 24 93;
    --cock-acc: 6 182 212;   --cock-acc2: 52 211 153;  --cock-txt: 14 116 144;

    --ok: #0f9f62;
    --warn: #b7791f;
    --bad: #d92d4f;
    --unk: #9a8a6d;

    --comb: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100M28 0L28 34L0 50L0 84L28 100L56 84L56 50L28 34' fill='none' stroke='%23b86b00' stroke-width='1'/%3E%3C/svg%3E");
    --comb-lit: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100M28 0L28 34L0 50L0 84L28 100L56 84L56 50L28 34' fill='none' stroke='%23f59e0b' stroke-width='1.6'/%3E%3C/svg%3E");
    --comb-o: 0.11;
    --lit-o: 0.55;
    --aurora-o: 0.2;
    --aurora-blend: multiply;
    --shadow: 0 18px 50px -26px rgb(120 70 0 / 0.4);
  }
}

/* ---------- base ---------- */

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
img, svg { display: block; }
:focus-visible { outline: 3px solid var(--a); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1160px, 100% - 2 * var(--gutter)); margin-inline: auto; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  padding: 10px 16px; border-radius: 10px;
  background: var(--a); color: var(--ink); font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- background ---------- */

.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }

.bg-aurora span {
  position: absolute;
  width: 70vmax; height: 70vmax;
  border-radius: 50%;
  opacity: var(--aurora-o);
  mix-blend-mode: var(--aurora-blend);
  animation: drift 26s ease-in-out infinite alternate;
}
.bg-aurora span:nth-child(1) { top: -34vmax; left: -18vmax; background: radial-gradient(circle, var(--a), transparent 62%); }
.bg-aurora span:nth-child(2) { top: -30vmax; right: -26vmax; background: radial-gradient(circle, var(--p), transparent 62%); animation-delay: -9s; }
.bg-aurora span:nth-child(3) { bottom: -44vmax; left: 18vmax; background: radial-gradient(circle, rgb(var(--cock-acc)), transparent 62%); opacity: calc(var(--aurora-o) * 0.45); animation-delay: -17s; }

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(7vmax, 5vmax, 0) scale(1.18); }
}

.bg-comb {
  position: absolute; inset: 0;
  background-image: var(--comb);
  background-size: 56px 100px;
  opacity: var(--comb-o);
  -webkit-mask-image: radial-gradient(ellipse 95% 75% at 50% 0%, #000 25%, transparent 78%);
          mask-image: radial-gradient(ellipse 95% 75% at 50% 0%, #000 25%, transparent 78%);
}
/* The same comb, brighter, revealed only under the pointer (app.js sets --mx / --my). */
.bg-comb--lit {
  background-image: var(--comb-lit);
  opacity: var(--lit-o);
  -webkit-mask-image: radial-gradient(240px circle at var(--mx, -999px) var(--my, -999px), #000, transparent 72%);
          mask-image: radial-gradient(240px circle at var(--mx, -999px) var(--my, -999px), #000, transparent 72%);
}

/* ---------- nav ---------- */

.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.08rem; letter-spacing: -0.02em;
  text-decoration: none;
}
.brand-mark { width: 34px; height: 38px; filter: drop-shadow(0 4px 14px rgb(255 160 0 / 0.45)); transition: transform 0.3s; }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
.brand-dim { color: var(--text-3); font-weight: 600; }

.status-chip {
  display: inline-flex; align-items: center; gap: 9px;
  margin: 0; padding: 7px 13px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-2); font-size: 0.85rem; font-weight: 600; white-space: nowrap;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}

@media (max-width: 460px) {
  .status-chip { padding: 10px; }
  .status-chip-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* status dots — colour comes from the nearest element carrying data-state */
.dot { position: relative; flex: none; width: 9px; height: 9px; border-radius: 50%; color: var(--unk); background: currentColor; }
.dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: currentColor; opacity: 0; }
[data-state="ok"] > .dot   { color: var(--ok); }
[data-state="warn"] > .dot { color: var(--warn); }
[data-state="bad"] > .dot  { color: var(--bad); }
[data-state="ok"] > .dot::after,
[data-state="bad"] > .dot::after { animation: ping 2.4s cubic-bezier(0, 0, 0.2, 1) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: 0.55; } 80%, 100% { transform: scale(2.8); opacity: 0; } }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s, background-color 0.2s, color 0.2s;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 0.2s; }
.btn:hover svg:last-child:not(:first-child) { transform: translateX(3px); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--btn-grad); color: var(--ink);
  box-shadow: 0 12px 30px -12px rgb(255 140 0 / 0.75), inset 0 1px 0 rgb(255 255 255 / 0.45);
}
.btn-primary:hover { box-shadow: 0 18px 40px -14px rgb(255 120 0 / 0.9), inset 0 1px 0 rgb(255 255 255 / 0.45); }

.btn-ghost {
  background: var(--surface); color: var(--text); border-color: var(--border-2);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.btn-ghost:hover { border-color: rgb(var(--acc, var(--mail-acc)) / 0.6); }

.btn-acc {
  background: linear-gradient(100deg, rgb(var(--acc)), rgb(var(--acc2)));
  color: var(--ink);
  box-shadow: 0 12px 28px -14px rgb(var(--acc) / 0.9), inset 0 1px 0 rgb(255 255 255 / 0.4);
}
.btn-acc:hover { box-shadow: 0 18px 36px -14px rgb(var(--acc) / 1), inset 0 1px 0 rgb(255 255 255 / 0.4); }

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

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  padding-block: clamp(32px, 7vw, 88px) clamp(16px, 3vw, 40px);
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
}

.hero-title {
  margin: 0 0 22px;
  font-size: clamp(3.6rem, 10vw, 7.8rem);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.055em;
}
.grad {
  background-image: var(--grad);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  filter: drop-shadow(0 8px 34px rgb(255 130 0 / 0.35));
  animation: shimmer 9s ease-in-out infinite alternate;
  padding-right: 0.06em; /* keep the last letter's edge from being clipped */
}
@keyframes shimmer { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.solid { color: var(--text); }

.lead { margin: 0; max-width: 34ch; color: var(--text-2); font-size: clamp(1.08rem, 1.7vw, 1.3rem); line-height: 1.55; }
.lead strong { color: var(--text); font-weight: 700; }

.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* hero entrance */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise-in 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) backwards; }
  .hero-copy > :nth-child(2) { animation-delay: 0.1s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.2s; }
}
@keyframes rise-in { from { opacity: 0; translate: 0 22px; } }

/* ---------- the hive ---------- */

.hive-wrap { position: relative; display: grid; place-items: center; }
.hive-wrap::before {
  content: ""; position: absolute; inset: 8% 6%;
  background: radial-gradient(closest-side, rgb(255 170 0 / 0.28), transparent);
  filter: blur(10px);
}

.hive {
  --w: clamp(96px, 10.8vw, 136px);   /* flat-to-flat width of one cell */
  --h: calc(var(--w) * 1.1547);      /* point-to-point height */
  position: relative;
  width: calc(var(--w) * 3 + 12px);
  height: calc(var(--w) * 2.887 + 12px);
}
@media (max-width: 900px) { .hive { --w: min(25vw, 124px); } }

.hex {
  --dx: 0px; --dy: 0px;
  position: absolute;
  left: calc(50% - var(--w) / 2 + var(--dx));
  top: calc(50% - var(--h) / 2 + var(--dy));
  width: var(--w); height: var(--h);
  text-decoration: none;
  transition: scale 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.3s;
}
.hex--e  { --dx: var(--w); }
.hex--w  { --dx: calc(var(--w) * -1); }
.hex--ne { --dx: calc(var(--w) * 0.5);  --dy: calc(var(--w) * -0.866); }
.hex--nw { --dx: calc(var(--w) * -0.5); --dy: calc(var(--w) * -0.866); }
.hex--se { --dx: calc(var(--w) * 0.5);  --dy: calc(var(--w) * 0.866); }
.hex--sw { --dx: calc(var(--w) * -0.5); --dy: calc(var(--w) * 0.866); }

.hex-shape { position: absolute; inset: 3.5%; clip-path: var(--hex-clip); }
.hex-inner { position: absolute; inset: 2px; clip-path: var(--hex-clip); }

/* centre: the hornet */
.hex--c { z-index: 1; filter: drop-shadow(0 0 28px rgb(255 170 0 / 0.5)); }
.hex--c .hex-shape { display: grid; place-items: center; background: var(--btn-grad); }
.hex-hornet { width: 66%; height: 66%; color: var(--ink); }

/* services */
.hex--svc .hex-shape { background: linear-gradient(150deg, rgb(var(--acc)), rgb(var(--acc2) / 0.35)); }
.hex--svc .hex-inner {
  display: grid; place-content: center; justify-items: center; gap: calc(var(--w) * 0.05);
  background: var(--hex-fill);
  color: rgb(var(--acc-txt));
  transition: background-color 0.3s;
}
.hex--svc .ico { width: calc(var(--w) * 0.3); height: calc(var(--w) * 0.3); }
.hex-label { font-weight: 800; font-size: calc(var(--w) * 0.12); letter-spacing: -0.01em; color: var(--text); }
.hex--svc:hover, .hex--svc:focus-visible, .hex--svc.is-lit {
  z-index: 2; scale: 1.07;
  filter: drop-shadow(0 12px 26px rgb(var(--acc) / 0.55));
}
.hex--svc:hover .hex-inner, .hex--svc:focus-visible .hex-inner, .hex--svc.is-lit .hex-inner {
  background: linear-gradient(rgb(var(--acc) / 0.2), rgb(var(--acc) / 0.2)) var(--hex-fill);
}
.hex--svc:focus-visible { outline: none; }

/* decorative cells */
.hex--honey .hex-shape {
  background:
    linear-gradient(to top, rgb(255 179 0 / 0.85), rgb(255 122 46 / 0.6) 46%, transparent 46.5%),
    linear-gradient(160deg, rgb(255 225 77 / 0.22), rgb(255 179 0 / 0.08));
}
.hex--glass .hex-shape { background: linear-gradient(160deg, rgb(255 225 77 / 0.55), rgb(255 61 134 / 0.25)); }
.hex--glass .hex-inner { background: linear-gradient(160deg, rgb(255 225 77 / 0.1), rgb(255 61 134 / 0.08)) var(--hex-fill); }
.hex--outline .hex-shape { background: linear-gradient(160deg, rgb(var(--acct-acc) / 0.5), rgb(var(--cock-acc) / 0.5)); }
.hex--outline .hex-inner { background: var(--hex-fill); }
.hex--outline .hex-inner::after {
  content: ""; position: absolute; inset: 0;
  background: var(--comb-lit) center / 28px 50px;
  opacity: 0.18;
}

@media (prefers-reduced-motion: no-preference) {
  .hex {
    animation:
      pop 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.25) backwards var(--pop, 0s),
      bob 7s ease-in-out infinite var(--bob, 0s);
  }
  .hex--c  { --pop: 0.05s; animation: pop 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.25) backwards 0.05s, bob 7s ease-in-out infinite, glow 3.6s ease-in-out infinite alternate; }
  .hex--nw { --pop: 0.15s; --bob: -1.2s; }
  .hex--ne { --pop: 0.22s; --bob: -2.4s; }
  .hex--e  { --pop: 0.29s; --bob: -3.6s; }
  .hex--se { --pop: 0.36s; --bob: -4.8s; }
  .hex--sw { --pop: 0.43s; --bob: -6s; }
  .hex--w  { --pop: 0.5s;  --bob: -0.6s; }
}
@keyframes pop  { from { opacity: 0; scale: 0.4; } }
@keyframes bob  { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
@keyframes glow {
  from { filter: drop-shadow(0 0 18px rgb(255 170 0 / 0.35)); }
  to   { filter: drop-shadow(0 0 38px rgb(255 140 0 / 0.7)); }
}

/* ---------- sections ---------- */

.section { padding-block: clamp(40px, 7vw, 88px); }

.section-head { max-width: 660px; margin-bottom: clamp(26px, 4vw, 42px); }
.kicker {
  display: flex; align-items: center; gap: 10px; margin: 0 0 14px;
  color: var(--a); font: 700 0.78rem/1 var(--mono); letter-spacing: 0.18em; text-transform: uppercase;
}
.kicker::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--btn-grad); }
.section-head h2 {
  margin: 0 0 14px;
  font-size: clamp(2.1rem, 4.6vw, 3.3rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.04em;
}
.section-head p { margin: 0; color: var(--text-2); font-size: 1.08rem; }
.section-head strong { color: var(--text); }

/* accent wiring */
[data-svc="mail"], .card--mail, .setup-card--in  { --acc: var(--mail-acc); --acc2: var(--mail-acc2); --acc-txt: var(--mail-txt); }
[data-svc="acct"], .card--acct, .setup-card--out { --acc: var(--acct-acc); --acc2: var(--acct-acc2); --acc-txt: var(--acct-txt); }
[data-svc="cock"], .card--cock, .setup-card--dav { --acc: var(--cock-acc); --acc2: var(--cock-acc2); --acc-txt: var(--cock-txt); }

/* ---------- service cards ---------- */

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr)); gap: 20px; }

.card {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; gap: 16px;
  padding: 26px 26px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s, box-shadow 0.3s;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(460px circle at 30% 0%, rgb(var(--acc) / 0.2), transparent 62%);
  opacity: 0.55; transition: opacity 0.3s;
}
.card::after {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  background: linear-gradient(90deg, rgb(var(--acc)), rgb(var(--acc2)) 40%, transparent);
}
.card:hover, .card.is-lit, .card:focus-within {
  transform: translateY(-5px);
  border-color: rgb(var(--acc) / 0.5);
  box-shadow: 0 28px 60px -28px rgb(var(--acc) / 0.65);
}
.card:hover::before, .card.is-lit::before, .card:focus-within::before { opacity: 1; }

.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }

.badge-hex {
  display: grid; place-items: center;
  width: 54px; height: 62px;
  clip-path: var(--hex-clip);
  background: linear-gradient(150deg, rgb(var(--acc)), rgb(var(--acc2)));
  color: var(--ink);
}
.badge-hex svg { width: 26px; height: 26px; }

.product {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  margin: 0 0 2px; color: var(--text-3);
  font: 700 0.74rem/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase;
}
.card h3 { margin: 0; font-size: 1.6rem; line-height: 1.15; letter-spacing: -0.03em; }
.host { margin: 6px 0 0; color: rgb(var(--acc-txt)); font: 600 0.9rem var(--mono); overflow-wrap: anywhere; }
.card > p { margin: 0; color: var(--text-2); }

.lock {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 8px; margin-block: -3px; /* don't make this row taller than its neighbours' */
  border-radius: 999px;
  background: rgb(var(--acc) / 0.14); color: rgb(var(--acc-txt));
  letter-spacing: 0.06em;
}
.lock svg { width: 12px; height: 12px; }

.card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: auto; padding-top: 6px; }

.sub-link {
  color: var(--text-2); font-size: 0.92rem; font-weight: 600;
  text-decoration: underline; text-decoration-color: var(--border-2); text-underline-offset: 4px;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.sub-link:hover { color: rgb(var(--acc-txt)); text-decoration-color: currentColor; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 11px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-2); font-size: 0.78rem; font-weight: 700; white-space: nowrap;
}
.pill .dot { width: 8px; height: 8px; }

/* ---------- mail setup ---------- */

.setup { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 18px; }

.setup-card {
  padding: 22px 22px 20px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  transition: border-color 0.3s;
}
.setup-card:hover { border-color: rgb(var(--acc) / 0.45); }
.setup-card header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.setup-card small {
  display: block; color: rgb(var(--acc-txt));
  font: 700 0.72rem/1.3 var(--mono); letter-spacing: 0.14em; text-transform: uppercase;
}
.setup-card h3 { margin: 0; font-size: 1.2rem; letter-spacing: -0.02em; }

.icon-tile {
  display: grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 13px;
  background: rgb(var(--acc) / 0.15); color: rgb(var(--acc-txt));
  border: 1px solid rgb(var(--acc) / 0.3);
}
.icon-tile svg { width: 22px; height: 22px; }

.setup-card dl { display: grid; gap: 10px; margin: 0; }
.setup-card dl > div { display: grid; grid-template-columns: 78px 1fr; align-items: center; gap: 10px; }
.setup-card dt { color: var(--text-3); font-size: 0.86rem; font-weight: 600; }
.setup-card dd { min-width: 0; margin: 0; color: var(--text-2); font-size: 0.95rem; line-height: 1.9; }
/* rows with a copy button: keep the button beside the value, let a long value wrap */
.setup-card dd.copyable { display: flex; align-items: center; gap: 8px; line-height: 1.5; }
.setup-card dd.copyable code { min-width: 0; }

code {
  padding: 3px 8px; border-radius: 8px;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text); font: 500 0.86rem/1.5 var(--mono);
  overflow-wrap: anywhere;
}

.copy {
  display: grid; place-items: center; flex: none;
  width: 30px; height: 30px; padding: 0; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-3); cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.copy:hover { color: var(--text); border-color: var(--border-2); }
.copy svg { width: 15px; height: 15px; }
.copy .i-ok { display: none; }
.copy.is-copied { color: var(--ok); border-color: currentColor; }
.copy.is-copied .i-copy { display: none; }
.copy.is-copied .i-ok { display: block; }

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

.footer {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 28px;
  padding-block: 34px 44px;
  border-top: 1px solid var(--border);
  color: var(--text-3); font-size: 0.9rem;
}
.footer p { margin: 0; }
.footer a { color: var(--text-2); text-decoration-color: var(--border-2); text-underline-offset: 3px; }
.footer a:hover { color: var(--text); }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text) !important; font-weight: 800; text-decoration: none; }
.footer-brand svg { width: 26px; height: 30px; }

/* ---------- scroll reveal (browsers with scroll-driven animations only) ---------- */

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: rise-in linear backwards;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
  }
}

/* ---------- 404 ---------- */

.lost { display: grid; place-items: center; min-height: 70vh; text-align: center; padding-block: 40px; }
.lost-code { margin: 0; font-size: clamp(6rem, 22vw, 12rem); font-weight: 800; line-height: 0.9; letter-spacing: -0.06em; }
.lost h1 { margin: 12px 0 10px; font-size: clamp(1.6rem, 4vw, 2.4rem); letter-spacing: -0.03em; }
.lost p { margin: 0 auto 28px; max-width: 42ch; color: var(--text-2); }

/* ---------- motion off ---------- */

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