/* murvord.com: dark only, one violet line colour, system fonts, no script.
   The hero drawing (scene.go) is styled and animated from here; its
   keyframes translate in drawing units that TestSceneMotionMatchesKeyframes
   checks against scene.go. */

:root {
  --bg: #07060d;
  --line: #9a7bff;
  --line-2: #6f55d9;
  --line-dim: rgba(154, 123, 255, 0.32);
  --text: #eeebf8;
  --muted: #a8a1c4;
  --faint: #6d6690;
  --accent: #c4b2ff;
  --bright: #e0d6ff;
  --face: rgba(15, 11, 30, 0.94);
  --face-x: rgba(22, 16, 44, 0.94);
  --face-lid: rgba(30, 22, 60, 0.94);
  --radius: 14px;
  --max: 1200px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--sans);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1100px 680px at 78% 6%, rgba(123, 92, 255, 0.17), transparent 62%),
    radial-gradient(900px 600px at 6% 96%, rgba(123, 92, 255, 0.07), transparent 60%),
    var(--bg);
}

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

/* ── Header ─────────────────────────────────────────────── */

.top {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.mark { width: 32px; height: 32px; }
.mark-shield { fill: rgba(154, 123, 255, 0.1); stroke: var(--line); stroke-width: 1.6; stroke-linejoin: round; }
.mark-roof { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.mark-lens { fill: var(--line); }
.word { font-weight: 700; font-size: 21px; letter-spacing: 0.02em; }

.nav { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; padding: 8px 13px; border-radius: 999px; font-size: 15px; }
.nav a:hover { color: var(--text); background: rgba(154, 123, 255, 0.1); }
.nav .nav-cta { color: var(--text); box-shadow: 0 0 0 1px var(--line-dim) inset; margin-left: 6px; }
.nav .nav-cta:hover { box-shadow: 0 0 0 1px var(--line) inset; }

/* ── Type and buttons ───────────────────────────────────── */

main { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font: 600 12.5px/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--line);
  margin: 0 0 18px;
}

h1 {
  font-size: clamp(36px, 4.6vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0 0 22px;
  font-weight: 750;
}

h1 em {
  font-style: normal;
  color: transparent;
  background: linear-gradient(90deg, #dcd0ff, #9a7bff 62%, #7b5cff);
  -webkit-background-clip: text;
  background-clip: text;
}

h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 16px; font-weight: 720; }
h3 { font-size: 18.5px; line-height: 1.3; margin: 0 0 8px; }

.lead { font-size: 18.5px; color: var(--muted); margin: 0 0 28px; max-width: 36em; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 30px; }

.button {
  display: inline-flex;
  align-items: center;
  padding: 13px 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, #a78bff, #7b5cff);
  color: #0b0717;
  font-weight: 650;
  text-decoration: none;
  box-shadow: 0 0 0 1px rgba(196, 178, 255, 0.35) inset, 0 10px 32px -10px rgba(123, 92, 255, 0.8);
}
.button:hover { filter: brightness(1.08); }
.button-ghost { background: transparent; color: var(--text); box-shadow: 0 0 0 1px var(--line-dim) inset; }
.button-ghost:hover { filter: none; box-shadow: 0 0 0 1px var(--line) inset; }

.partner { display: flex; align-items: center; gap: 10px; margin: 0; font: 500 13.5px var(--mono); letter-spacing: 0.04em; color: var(--muted); }
.partner-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); box-shadow: 0 0 0 4px rgba(154, 123, 255, 0.18), 0 0 12px var(--line); }

/* ── Hero ───────────────────────────────────────────────── */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 4.4fr) minmax(0, 7.6fr);
  gap: 28px;
  align-items: center;
  padding: 36px 0 80px;
}
.hero-small { grid-template-columns: minmax(0, 1fr); min-height: 60vh; }
.copy { min-width: 0; }

.stage { margin: 0 -12px 0 0; position: relative; isolation: isolate; }
.stage::before {
  content: "";
  position: absolute;
  inset: 8% 6% 18%;
  background: radial-gradient(closest-side, rgba(123, 92, 255, 0.22), transparent);
  filter: blur(24px);
  z-index: -1;
}

.sequence {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.sequence li { font: 500 12.5px/1.4 var(--mono); color: var(--muted); border-top: 1px solid var(--line-dim); padding-top: 10px; }
.step-n { display: block; color: var(--line); font: 600 12px var(--mono); letter-spacing: 0.1em; margin-bottom: 4px; }

/* ── The drawing ────────────────────────────────────────── */

.scene { display: block; width: 100%; height: auto; overflow: visible; }
.scene path, .scene circle, .scene rect { vector-effect: non-scaling-stroke; }

.ground { fill: none; }
.grid { fill: none; stroke: rgba(154, 123, 255, 0.08); stroke-width: 1; }
.lane, .drive { fill: rgba(154, 123, 255, 0.035); stroke: var(--line-dim); stroke-width: 1; }
.bay { fill: rgba(154, 123, 255, 0.07); stroke: var(--line-dim); stroke-width: 1; }
.lane-edge { fill: none; stroke: var(--line-dim); stroke-width: 1; }
.lane-far { stroke-dasharray: 3 5; }
.lane-mid { fill: none; stroke: rgba(154, 123, 255, 0.26); stroke-width: 1; stroke-dasharray: 8 8; }
.stop { fill: none; stroke: var(--accent); stroke-width: 1.6; opacity: 0.7; }
.pool-rim { fill: none; stroke: var(--line); stroke-width: 1.1; }
.pool-wall { fill: rgba(60, 40, 140, 0.35); stroke: var(--line-dim); stroke-width: 1; }
.water { fill: rgba(120, 90, 255, 0.18); stroke: rgba(154, 123, 255, 0.4); stroke-width: 0.8; }

.fov { stroke: none; }
.scan { fill: rgba(170, 140, 255, 0.55); opacity: 0.12; }
.scan-a { animation: scan-a 16s linear infinite; }
.scan-b { animation: scan-b 16s linear infinite; }

.net { fill: none; }
.run { fill: none; stroke: #b9a3ff; stroke-width: 1.2; stroke-dasharray: 2 6; opacity: 0.75; animation: flow 1.4s linear infinite; }

.tree { fill: none; }
.trunk { stroke: var(--line-dim); stroke-width: 1; }
.crown { fill: rgba(20, 14, 40, 0.92); stroke: rgba(154, 123, 255, 0.55); stroke-width: 1; stroke-linejoin: round; }
.crown-lit { fill: rgba(40, 28, 80, 0.92); }

.fence { fill: none; }
.fence-panel { fill: rgba(154, 123, 255, 0.035); stroke: none; }
.rail { fill: none; stroke: var(--line); stroke-width: 1; opacity: 0.5; }
.rail-low { opacity: 0.25; }
.post { fill: none; stroke: rgba(111, 85, 217, 0.55); stroke-width: 1; }
.fence-high .post { stroke: var(--line-2); }
.fence-high .rail { opacity: 1; }
.fence-high .fence-panel { fill: rgba(154, 123, 255, 0.07); }

.house { filter: drop-shadow(0 0 5px rgba(150, 110, 255, 0.4)); }
.wall { fill: var(--face); stroke: var(--line); stroke-width: 1.2; stroke-linejoin: round; }
.wall.side-x { fill: var(--face-x); }
.wall.lid { fill: var(--face-lid); }
.upper { stroke: #b49cff; }
.side-x, .side-y, .lid { stroke-linejoin: round; }
.glass { fill: rgba(154, 123, 255, 0.11); stroke: rgba(154, 123, 255, 0.7); stroke-width: 0.9; }
.door { fill: rgba(154, 123, 255, 0.05); stroke: rgba(154, 123, 255, 0.7); stroke-width: 0.9; }
.mullion { fill: none; stroke: rgba(154, 123, 255, 0.45); stroke-width: 0.8; }
.parapet { fill: none; stroke: rgba(154, 123, 255, 0.35); stroke-width: 0.8; }
.solar { fill: rgba(154, 123, 255, 0.12); stroke: rgba(154, 123, 255, 0.5); stroke-width: 0.6; }

.cam { fill: none; }
.dot { fill: #ddd2ff; }
.ring {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.2;
  transform-box: fill-box;
  transform-origin: center;
  animation: ping 2.6s ease-out infinite;
}
.c1 .ring { animation-delay: 0s; }
.c2 .ring { animation-delay: 0.45s; }
.c3 .ring { animation-delay: 0.9s; }
.c4 .ring { animation-delay: 1.35s; }
.c5 .ring { animation-delay: 1.8s; }
.c6 .ring { animation-delay: 2.25s; }

.gate { fill: none; }
.leaf { fill: rgba(154, 123, 255, 0.07); stroke: var(--line); stroke-width: 1.2; }
.slat { stroke: rgba(154, 123, 255, 0.6); stroke-width: 0.8; }
.leaf-rail { stroke: var(--line); stroke-width: 0.8; }
.gate-a { animation: gate-a 16s ease-in-out infinite; }
.gate-b { animation: gate-b 16s ease-in-out infinite; }

.pillar { fill: var(--face); stroke: var(--line); stroke-width: 1; }
.pillar.side-x { fill: var(--face-x); }
.pillar.lid { fill: var(--face-lid); }
.lamp { fill: #e8e0ff; }
.pole { stroke: var(--line); stroke-width: 1.4; }
.cam-body { fill: var(--face-lid); stroke: #d0c2ff; stroke-width: 1; }
.ir { fill: #ff8ae0; }

.car { animation: car 16s infinite; filter: drop-shadow(0 0 4px rgba(170, 140, 255, 0.55)); }
.body { fill: rgba(22, 16, 44, 0.9); stroke: var(--bright); stroke-width: 1.2; stroke-linejoin: round; }
.body.lid { fill: rgba(36, 26, 70, 0.92); }
.cabin { fill: rgba(154, 123, 255, 0.18); stroke: var(--bright); stroke-width: 1; stroke-linejoin: round; }
.pillar-line { stroke: var(--bright); stroke-width: 0.8; }
.tail { stroke: #ff6fb5; stroke-width: 2.2; stroke-linecap: round; }
.wheel { fill: #0b0817; stroke: var(--bright); stroke-width: 1; }

.labels { pointer-events: none; }
.lbl { font: 600 11px var(--mono); fill: #b7aadf; letter-spacing: 0.1em; }
.lbl-floor { fill: rgba(183, 170, 223, 0.6); }
.read { opacity: 0; }
.read-a { animation: read-a 16s linear infinite; }
.read-b { animation: read-b 16s linear infinite; }
.chip { fill: #7b5cff; stroke: #cbbcff; stroke-width: 1; }
.chip-text { font: 700 11px var(--mono); fill: #fff; text-anchor: middle; letter-spacing: 0.08em; }

/* One 16 s loop. Times: the car arrives (0–18%), plate read (18–26%),
   gate A opens (24–32%), the car rolls into the sluice (36–46%), gate A
   closes (47–55%), second check (49–58%), gate B opens (58–66%), the car
   drives up to the house (68–82%), gate B closes (84–92%), fade (92–97%). */

@keyframes car {
  0% { transform: translate(90.07px, 52px); opacity: 0; animation-timing-function: cubic-bezier(0.2, 0.6, 0.3, 1); }
  6% { opacity: 1; }
  18% { transform: translate(0px, 0px); }
  36% { transform: translate(0px, 0px); animation-timing-function: ease-in-out; }
  46% { transform: translate(-75.43px, -43.55px); }
  68% { transform: translate(-75.43px, -43.55px); animation-timing-function: ease-in-out; }
  82% { transform: translate(-163.25px, -94.25px); }
  92% { transform: translate(-163.25px, -94.25px); opacity: 1; }
  97%, 100% { transform: translate(-163.25px, -94.25px); opacity: 0; }
}

@keyframes gate-a {
  0%, 24% { transform: translate(0px, 0px); }
  32%, 47% { transform: translate(-58.54px, 33.8px); }
  55%, 100% { transform: translate(0px, 0px); }
}

@keyframes gate-b {
  0%, 58% { transform: translate(0px, 0px); }
  66%, 84% { transform: translate(-58.54px, 33.8px); }
  92%, 100% { transform: translate(0px, 0px); }
}

@keyframes scan-a {
  0%, 17% { opacity: 0.12; }
  19% { opacity: 0.6; }
  21% { opacity: 0.3; }
  23% { opacity: 0.6; }
  26%, 100% { opacity: 0.12; }
}

@keyframes scan-b {
  0%, 49% { opacity: 0.12; }
  51% { opacity: 0.6; }
  53% { opacity: 0.3; }
  55% { opacity: 0.6; }
  58%, 100% { opacity: 0.12; }
}

@keyframes read-a {
  0%, 20% { opacity: 0; }
  22%, 31% { opacity: 1; }
  34%, 100% { opacity: 0; }
}

@keyframes read-b {
  0%, 53% { opacity: 0; }
  55%, 63% { opacity: 1; }
  66%, 100% { opacity: 0; }
}

@keyframes flow { to { stroke-dashoffset: -16; } }

@keyframes ping {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(3.4); opacity: 0; }
}

/* ── Sections ───────────────────────────────────────────── */

.section { padding: 76px 0; border-top: 1px solid rgba(154, 123, 255, 0.12); }
.section-head { max-width: 760px; margin-bottom: 38px; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card {
  background: linear-gradient(180deg, rgba(154, 123, 255, 0.07), rgba(154, 123, 255, 0.02));
  border: 1px solid rgba(154, 123, 255, 0.18);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: border-color 0.2s;
}
.card:hover { border-color: rgba(154, 123, 255, 0.45); }
.card p { color: var(--muted); margin: 0; font-size: 16px; }
.ico {
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  fill: none;
  stroke: var(--line);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(154, 123, 255, 0.45));
}

.approach .section-head { margin-bottom: 34px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.step { border-top: 1px solid var(--line); padding-top: 18px; }
.step p { color: var(--muted); margin: 0; font-size: 16px; }

.unifi { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.unifi .section-head { margin: 0; }
.stack { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.stack li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid rgba(154, 123, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(154, 123, 255, 0.04);
}
.stack-name { font-weight: 650; }
.stack-what { color: var(--muted); font-size: 15px; text-align: right; }

.contact-card {
  border: 1px solid rgba(154, 123, 255, 0.3);
  border-radius: 20px;
  padding: 48px;
  background: radial-gradient(600px 300px at 85% 0%, rgba(123, 92, 255, 0.25), transparent 70%), rgba(154, 123, 255, 0.04);
}
.contact-card h2 { max-width: 20em; }
.contact-card .lead { margin: 0; }

.foot { max-width: var(--max); margin: 0 auto; padding: 32px 24px 48px; color: var(--faint); font: 500 13px var(--mono); letter-spacing: 0.03em; }
.foot p { margin: 0; }

/* ── Smaller screens ────────────────────────────────────── */

@media (max-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 12px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .unifi { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  html { font-size: 16px; }
  .nav a:not(.nav-cta) { display: none; }
  .cards, .steps { grid-template-columns: minmax(0, 1fr); }
  .sequence { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .labels, .read { display: none; }
  .section { padding: 56px 0; }
  .contact-card { padding: 28px; }
  .stack li { flex-direction: column; gap: 2px; }
  .stack-what { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .car, .gate-a, .gate-b, .scan-a, .scan-b, .read-a, .read-b, .run, .ring { animation: none; }
  .ring { opacity: 0; }
  .read-a { opacity: 1; }
}
