:root {
  --bg: #121417;
  --bg-alt: #16181C;
  --surface: #1B1E23;
  --line: #23272E;
  --border: #2A2E35;
  --border-strong: #2E333B;
  --dash: #3E444E;
  --text: #F2F3F1;
  --text-2: #BAC0C8;
  --text-3: #A3A9B2;
  --text-4: #8E959F;
  --accent: #7FD1AE;
  --accent-hover: #B5E8CF;
  --blue: #3B8EF5;

  --heat-1: #0B6E5F;
  --heat-2: #26876A;
  --heat-3: #6DB56F;
  --heat-4: #F4D35E;
  --heat-5: #EE9A3A;
  --heat-6: #D9533B;
  --heat-7: #9E2A4B;

  --display: 'Bricolage Grotesque', 'Helvetica Neue', sans-serif;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 40px);
}

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

html { scroll-behavior: smooth; }

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

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, p { margin: 0; text-wrap: pretty; }

img { display: block; }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.mono { font-family: var(--mono); }

.eyebrow {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.display {
  font-family: var(--display);
  font-weight: 700;
}

.muted { color: var(--text-2); }

/* Nav */

.site-header {
  padding-top: 24px;
  padding-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}
.brand:hover { color: var(--text); }
.brand img { width: 40px; height: 40px; }
.brand span {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 15px;
}
.site-nav a { color: var(--text-3); }
.site-nav a:hover { color: var(--text); }

.status-pill {
  font-family: var(--mono);
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  gap: 8px;
}
.status-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}

/* Hero */

.hero {
  padding-top: 56px;
  padding-bottom: 96px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 64px;
}

.hero-copy {
  flex: 1 1 440px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero h1 {
  font-size: clamp(48px, 6.4vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.hero-lede {
  font-size: 19px;
  color: var(--text-2);
  max-width: 34em;
}

.app-chips { display: flex; flex-wrap: wrap; gap: 12px; }

.app-chip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 20px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
}
.app-chip strong { font-weight: 600; font-size: 16px; }
.app-chip span { font-family: var(--mono); font-size: 13px; color: var(--text-3); }

.scroll-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 16px;
  min-height: 44px;
  align-self: flex-start;
}

/* Hero visual: stylised survey */

.hero-visual {
  flex: 1 1 480px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.survey {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: 28px;
  border: 12px solid var(--border);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 46%, #0B6E5F 0%, #26876A 18%, rgba(38, 135, 106, 0) 44%),
    radial-gradient(circle at 82% 22%, #26876A 0%, #6DB56F 15%, rgba(109, 181, 111, 0) 38%),
    radial-gradient(circle at 18% 55%, rgba(109, 181, 111, 0.9) 0%, rgba(109, 181, 111, 0) 65%),
    linear-gradient(155deg, #6DB56F 0%, #A8C766 30%, #F4D35E 58%, #EE9A3A 84%, #D9533B 100%);
}

.survey > * { position: absolute; }

.wall { background: var(--border); }
.wall.v { width: 8px; margin-left: -4px; }
.wall.h { height: 8px; }

.ap {
  border-radius: 16px;
  background: #17191C;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, -50%);
}
.ap.lg { width: 60px; height: 60px; }
.ap.sm { width: 44px; height: 44px; border-radius: 12px; }

.pt {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--heat-1);
  border: 3px solid #FFFFFF;
  transform: translate(-50%, -50%);
}

.scanning {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 5px solid var(--blue);
  border-left-color: rgba(59, 142, 245, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  animation: spin 1.4s linear infinite;
}
.scanning::after {
  content: "";
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--heat-1);
  border: 4px solid #FFFFFF;
}

@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .scanning { animation: none; }
  html { scroll-behavior: auto; }
}

.insight-chip {
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(23, 25, 28, 0.92);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  white-space: nowrap;
}
.insight-chip::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--heat-5);
}

.legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 12px;
}
.legend-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-4);
}

.ramp {
  display: flex;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  background: linear-gradient(90deg,
    var(--heat-1) 0 14.29%, var(--heat-2) 0 28.57%, var(--heat-3) 0 42.86%,
    var(--heat-4) 0 57.14%, var(--heat-5) 0 71.43%, var(--heat-6) 0 85.71%,
    var(--heat-7) 0);
}

/* Sections */

.section { border-top: 1px solid var(--line); }
.section.alt { background: var(--bg-alt); }

.section-inner {
  padding-top: 112px;
  padding-bottom: 112px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 760px;
}

.section-head h2 {
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.section-head p { font-size: 18px; }

/* Platform cards */

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

.platform {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 28px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.platform-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.platform-name { display: flex; align-items: center; gap: 14px; }
.platform-name img { width: 52px; height: 52px; }
.platform-name div { display: flex; flex-direction: column; }
.platform-name strong {
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.platform-name span { font-size: 15px; color: var(--text-3); }

.date-pill {
  font-family: var(--mono);
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--line);
  color: var(--text-2);
}

.window {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #353A43;
  background: #0F1114;
}
.window.win { border-radius: 6px; }

.window-bar {
  height: 32px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  background: var(--line);
}
.window-bar .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #4A505A;
}
.window.win .window-bar { justify-content: flex-end; gap: 22px; padding: 0 16px; }
.win-min { width: 11px; height: 1.5px; background: #6A717B; }
.win-max { width: 10px; height: 10px; border: 1.5px solid #6A717B; }

.window .shot { margin: 14px; border-radius: 8px; }
.window.win .shot { border-radius: 4px; }

/* Letterbox the 16:9 Windows shot to the Mac shot's ratio so both cards match */

.window.win .shot:has(img) { aspect-ratio: 2958 / 1864; }

.specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-3);
}

/* Screenshot slots */

.shot {
  aspect-ratio: 16 / 10;
  border: 1.5px dashed var(--dash);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  padding: 16px;
}
.shot strong { font-weight: 500; color: #C9CED5; }
.shot span { font-family: var(--mono); font-size: 12px; color: var(--text-4); }

.shot:has(img) { aspect-ratio: auto; padding: 0; border: 0; overflow: hidden; }

.shot img {
  width: 100%;
  height: auto;
}

/* Lightbox */

.zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.zoom:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.lightbox {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: clamp(16px, 4vw, 48px);
  border: 0;
  background: transparent;
  cursor: zoom-out;
}
.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox::backdrop { background: rgba(8, 9, 11, 0.88); }

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.8);
  cursor: default;
}

.lightbox-close {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.lightbox-close:hover { background: var(--line); }

/* Features */

.features { gap: 112px; }

.feature {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
}
.feature.flip { flex-direction: row-reverse; flex-wrap: wrap-reverse; }

.feature-copy {
  flex: 1 1 400px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.feature-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-3);
}
.feature-label b { font-weight: 400; color: var(--text); }
.feature-label i { width: 28px; height: 1px; background: var(--dash); }

.feature h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.ticks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ticks li { display: flex; gap: 14px; align-items: flex-start; }
.ticks li::before {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  margin-top: 7px;
  border-radius: 3px;
  background: var(--heat-2);
}
.ticks li:nth-child(2)::before { background: var(--heat-3); }
.ticks li:nth-child(3)::before { background: var(--heat-4); }
.ticks li:nth-child(4)::before { background: var(--heat-5); }

.feature .shot {
  flex: 1 1 520px;
  min-width: 0;
  border-radius: 18px;
  background: var(--surface);
}

/* Closing */

.closing {
  padding-top: 120px;
  padding-bottom: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
}
.closing .ramp { width: min(280px, 70%); height: 6px; border-radius: 3px; }
.closing h2 {
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1;
  letter-spacing: -0.035em;
}
.closing p { font-size: 19px; max-width: 32em; }

.button {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  font-size: 16px;
}
.button:hover { background: #FFFFFF; color: var(--bg); }

/* Footer */

.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap {
  padding-top: 32px;
  padding-bottom: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  color: var(--text-4);
}
.site-footer .brand-small { display: flex; align-items: center; gap: 10px; }
.site-footer img { width: 24px; height: 24px; }
.site-footer .mono { font-size: 13px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
