/* Middle demo page (munshey.tech/middle/). Self-contained: local fonts, relative paths, no external requests. */
@font-face { font-family: Outfit; src: url(fonts/outfit-200.woff2) format('woff2'); font-weight: 200; font-display: swap; }
@font-face { font-family: Outfit; src: url(fonts/outfit-300.woff2) format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: Outfit; src: url(fonts/outfit-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Outfit; src: url(fonts/outfit-500.woff2) format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --bg: #0b0e14; --panel: #121821; --line: rgba(255, 255, 255, 0.09); --line-2: rgba(255, 255, 255, 0.16);
  --text: #eef1f5; --text-2: #b0b7c3; --text-3: #7f8899;
  --accent: #4c8df6; --accent-btn: #1a73e8; --accent-btn-2: #2b80f0;
  --brand: Outfit, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --w: 1180px;
}
* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; color: var(--text); font: 300 17px/1.6 var(--brand); -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(60% 520px at 50% 0, rgba(40, 90, 200, 0.22), transparent 75%),
    radial-gradient(50% 600px at 50% 900px, rgba(26, 115, 232, 0.10), transparent 75%),
    var(--bg);
  overflow-x: hidden;
}
body::before { /* faint map-like grid, echoing the app's start screen */
  content: ''; position: absolute; inset: 0 0 auto; height: 1100px; pointer-events: none; z-index: -1; opacity: 0.5;
  background-image: linear-gradient(rgba(120, 150, 210, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(120, 150, 210, 0.06) 1px, transparent 1px);
  background-size: 64px 64px; -webkit-mask-image: radial-gradient(60% 70% at 50% 25%, #000, transparent); mask-image: radial-gradient(60% 70% at 50% 25%, #000, transparent);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* Top bar */
.top { max-width: var(--w); margin: 0 auto; padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; align-items: baseline; font: 200 30px/1 var(--brand); letter-spacing: 0.035em; color: #e6e9ef; }
.logo img { height: 0.713em; width: auto; margin-right: 0.03em; align-self: baseline; }
.top nav { display: flex; align-items: center; gap: 22px; }
.built { font-size: 12.5px; font-weight: 300; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3); transition: color .2s; }
.built b { font-weight: 400; color: #c8cdd8; }
.built:hover, .built:hover b { color: var(--text); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; padding: 14px 28px; border-radius: 999px;
  font: 500 16px/1 var(--brand); letter-spacing: 0.01em; color: #fff;
  background: linear-gradient(180deg, var(--accent-btn-2), var(--accent-btn)); box-shadow: 0 0 0 1px rgba(76, 141, 246, 0.35), 0 8px 30px rgba(26, 115, 232, 0.35);
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(76, 141, 246, 0.6), 0 10px 40px rgba(26, 115, 232, 0.5); }
.btn:focus-visible, .play:focus-visible, .top a:focus-visible, .foot a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-sm { padding: 10px 18px; font-size: 14px; }

/* Hero */
main { max-width: var(--w); margin: 0 auto; padding: 0 24px; }
.hero { text-align: center; padding: 72px 0 44px; }
.eyebrow { margin: 0; font-size: 14px; letter-spacing: 0.42em; text-transform: uppercase; color: var(--text-2); padding-left: 0.42em; }
.wordmark {
  margin: 18px 0 0; display: inline-flex; align-items: baseline; font: 200 clamp(72px, 13vw, 148px)/1 var(--brand); letter-spacing: 0.035em;
  background: linear-gradient(180deg, #ffffff 10%, #c8cdd8 60%, #8f97a8 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.wordmark img { height: 0.713em; width: auto; margin-right: 0.03em; filter: drop-shadow(0 0 28px rgba(76, 141, 246, 0.35)); }
.lead { max-width: 620px; margin: 22px auto 0; font-size: clamp(18px, 2.1vw, 22px); line-height: 1.5; color: var(--text-2); }

/* Video */
.player { position: relative; }
.frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #05070b;
  border: 1px solid var(--line-2);
  box-shadow: 0 0 0 1px rgba(76, 141, 246, 0.12), 0 0 90px rgba(26, 115, 232, 0.18), 0 30px 80px rgba(0, 0, 0, 0.6);
}
.frame video { display: block; width: 100%; height: 100%; object-fit: contain; background: #05070b; }
.play {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  border: 0; padding: 0; cursor: pointer; color: #fff; font: inherit;
  background: radial-gradient(40% 50% at 50% 50%, rgba(5, 8, 14, 0.55), rgba(5, 8, 14, 0.25) 70%, rgba(5, 8, 14, 0.1));
}
.play[hidden] { display: none; }
.ring {
  display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%;
  background: linear-gradient(180deg, var(--accent-btn-2), var(--accent-btn));
  box-shadow: 0 0 0 10px rgba(76, 141, 246, 0.16), 0 0 60px rgba(26, 115, 232, 0.55); transition: transform .25s, box-shadow .25s;
}
.ring svg { width: 40px; height: 40px; margin-left: 5px; }
.play:hover .ring { transform: scale(1.06); box-shadow: 0 0 0 14px rgba(76, 141, 246, 0.2), 0 0 80px rgba(26, 115, 232, 0.7); }
.play-t { font-size: 18px; font-weight: 400; letter-spacing: 0.02em; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8); }
.dur { margin-left: 6px; color: #c8cdd8; font-weight: 300; }
.sound { margin: 14px 0 0; text-align: center; font-size: 14px; color: var(--text-3); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; padding: 96px 0 0; }
.steps article { position: relative; }
.steps figure { margin: 0 0 22px; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.steps figure img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transition: transform .6s; }
.steps article:hover figure img { transform: scale(1.03); }
.n { font-size: 13px; font-weight: 500; letter-spacing: 0.16em; color: var(--accent); }
.steps h2 { margin: 6px 0 8px; font: 400 23px/1.25 var(--brand); }
.steps p { margin: 0; color: var(--text-2); font-size: 16.5px; }

/* Under the hood */
.hood { margin-top: 110px; padding: 52px 56px; border-radius: 22px; background: linear-gradient(180deg, rgba(22, 28, 38, 0.9), rgba(16, 21, 29, 0.9)); border: 1px solid var(--line); }
.sec { margin: 0 0 30px; font: 300 14px var(--brand); letter-spacing: 0.32em; text-transform: uppercase; color: var(--text-2); }
.hood ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.hood li { display: flex; flex-direction: column; gap: 16px; font-size: 18.5px; line-height: 1.5; color: var(--text); }
.hood svg { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: rgba(76, 141, 246, 0.12); stroke: var(--accent); stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* Call to action */
.cta { text-align: center; padding: 110px 0 100px; }
.cta p { max-width: 640px; margin: 0 auto 32px; font: 200 clamp(26px, 3.4vw, 38px)/1.3 var(--brand); color: var(--text); }

.foot {
  max-width: var(--w); margin: 0 auto; padding: 26px 24px 40px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3);
}
.foot b { font-weight: 400; color: #c8cdd8; }
.foot a:hover, .foot a:hover b { color: var(--text); }

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 44px; padding-top: 72px; }
  .steps figure { aspect-ratio: 16 / 9; }
  .hood { margin-top: 80px; padding: 36px 26px; }
  .hood ul { grid-template-columns: 1fr; gap: 28px; }
  .hood li { flex-direction: row; align-items: flex-start; font-size: 17px; }
  .hood svg { flex: none; }
}
@media (max-width: 600px) {
  .top { padding: 16px; }
  main { padding: 0 16px; }
  .foot { padding: 22px 16px 32px; }
  .built { display: none; }
  .hero { padding: 48px 0 32px; }
  .eyebrow { font-size: 12px; letter-spacing: 0.32em; padding-left: 0.32em; }
  .frame { border-radius: 12px; }
  .ring { width: 68px; height: 68px; box-shadow: 0 0 0 7px rgba(76, 141, 246, 0.16), 0 0 40px rgba(26, 115, 232, 0.5); }
  .ring svg { width: 30px; height: 30px; margin-left: 4px; }
  .play { gap: 10px; }
  .play-t { font-size: 15px; }
  .cta { padding: 80px 0 72px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .ring, .steps figure img { transition: none; }
}
