/* ============================================================
   Roverto — precision-instrument product page
   Light architectural neutrals · graphite ink · one signal accent
   ============================================================ */

@font-face {
  font-family: "Space Grotesk";
  src: url("./fonts/space-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("./fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("./fonts/ibm-plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("./fonts/ibm-plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --paper: #eceae3; /* architectural warm-neutral */
  --paper-2: #f4f3ee;
  --panel: #fdfdfb;
  --ink: #17191b;
  --ink-2: #565c60;
  --ink-3: #8b9094;
  --line: #d9d8d0;
  --line-2: #c6c5bc;
  --accent: #ff4a1c; /* signal orange — used sparingly */
  --accent-deep: #c0380f;
  --ok: #2c7a57;

  --f-display: "Space Grotesk", system-ui, sans-serif;
  --f-body: "Manrope", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;

  --container: 1240px;
  --gutter: clamp(20px, 5vw, 80px);
  --radius: 3px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Type ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 0.98;
}
.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.eyebrow .idx {
  color: var(--accent);
}
.lead {
  font-size: clamp(18px, 2vw, 22px);
  color: var(--ink-2);
  max-width: 40ch;
  line-height: 1.45;
}
.mono {
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
}
.accent {
  color: var(--accent);
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section {
  position: relative;
  padding-block: clamp(64px, 9vw, 140px);
}
.section-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  border-top: 1px solid var(--line-2);
  padding-top: 18px;
  margin-bottom: clamp(32px, 5vw, 64px);
}
.section-head h2 {
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1.02;
  flex: 1;
}
.section-head .note {
  max-width: 34ch;
  text-align: right;
  color: var(--ink-2);
  font-size: 15px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}
.wordmark {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: 16px;
}
.wordmark .dot {
  color: var(--accent);
}
.site-nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
}
.site-nav a {
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--ink-2);
  transition: color 0.2s ease;
}
.site-nav a:hover {
  color: var(--ink);
}
.chip {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  border: 1px solid var(--line-2);
  border-radius: 100px;
  padding: 5px 12px;
  white-space: nowrap;
}

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(40px, 7vw, 96px);
  padding-bottom: clamp(48px, 7vw, 110px);
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}
.hero h1 {
  font-size: clamp(44px, 7.4vw, 104px);
  margin-bottom: 26px;
}
.hero h1 .thin {
  display: block;
  color: var(--ink-3);
  font-weight: 400;
}
.hero .lead {
  margin-bottom: 34px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.btn {
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  padding: 13px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--ink);
  transition: all 0.2s ease;
}
.btn--primary {
  background: var(--ink);
  color: var(--paper-2);
}
.btn--primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn--ghost {
  color: var(--ink);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
}

.spec-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-2);
  margin-top: clamp(40px, 6vw, 80px);
}
.spec {
  padding: 18px 22px 18px 0;
  border-right: 1px solid var(--line);
}
.spec:last-child {
  border-right: none;
}
.spec .k {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: block;
  margin-bottom: 6px;
}
.spec .v {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(16px, 1.5vw, 20px);
}

/* ---------- Hero diagram (the cone device) ---------- */
.diagram-frame {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 24px 60px -40px rgba(0, 0, 0, 0.4);
}
.diagram-frame .corner {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1px solid var(--accent);
}
.diagram-frame .corner.tl { top: 8px; left: 8px; border-right: none; border-bottom: none; }
.diagram-frame .corner.tr { top: 8px; right: 8px; border-left: none; border-bottom: none; }
.diagram-frame .corner.bl { bottom: 8px; left: 8px; border-right: none; border-top: none; }
.diagram-frame .corner.br { bottom: 8px; right: 8px; border-left: none; border-top: none; }
.diagram-frame figcaption {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  color: var(--ink-3);
}
.cone-svg {
  width: 100%;
  height: auto;
}

/* ---------- Problem ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.point-list {
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.point {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
}
.point .num {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--accent);
  padding-top: 4px;
}
.point h3 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 19px;
  margin-bottom: 4px;
}
.point p {
  color: var(--ink-2);
  font-size: 15.5px;
  max-width: 42ch;
}

/* ---------- Pipeline ---------- */
.pipeline {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}
.pnode {
  position: relative;
  padding: 26px 18px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 150px;
}
.pnode:last-child { border-right: none; }
.pnode .stage {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
}
.pnode h4 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.1;
}
.pnode .topic {
  margin-top: auto;
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--accent-deep);
  word-break: break-word;
}
.pnode .flow {
  position: absolute;
  top: 50%;
  right: -5px;
  width: 9px;
  height: 9px;
  transform: translateY(-50%) rotate(45deg);
  border-top: 1px solid var(--line-2);
  border-right: 1px solid var(--line-2);
  background: var(--panel);
  z-index: 2;
}
.pnode:last-child .flow { display: none; }

/* ---------- Hardware datasheet ---------- */
.sheet {
  border-top: 1px solid var(--line-2);
}
.sheet-row {
  display: grid;
  grid-template-columns: 40px 1.2fr 2fr 0.8fr;
  gap: 20px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.sheet-row .id { font-family: var(--f-mono); font-size: 12px; color: var(--ink-3); }
.sheet-row .name { font-family: var(--f-display); font-weight: 600; font-size: 17px; }
.sheet-row .desc { color: var(--ink-2); font-size: 15px; }
.sheet-row .tag {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-align: right;
}
.sheet-row .tag.upper { color: var(--accent-deep); }

/* ---------- Cards (breakthroughs) ---------- */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 28px);
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card .ba {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
}
.card .ba .before { color: var(--ink-3); text-decoration: line-through; }
.card .ba .after { color: var(--accent-deep); }
.card .mini { width: 100%; height: 52px; }
.card h3 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 18px;
}
.card p { color: var(--ink-2); font-size: 15px; flex: 1; }
.claim {
  align-self: flex-start;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid currentColor;
}
.claim.verified { color: var(--ok); }
.claim.integrating { color: var(--accent-deep); }
.claim.next { color: var(--ink-3); }

/* ---------- Proof / metrics ---------- */
.proof {
  background: var(--ink);
  color: var(--paper-2);
}
.proof .section-head { border-top-color: #3a3f43; }
.proof .section-head h2 { color: var(--paper-2); }
.proof .section-head .note { color: #9aa1a5; }
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #2a2f33;
  border: 1px solid #2a2f33;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.metric {
  background: #1c2023;
  padding: 30px 26px;
}
.metric .v {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(30px, 4.4vw, 54px);
  letter-spacing: -0.02em;
}
.metric .v .accent { color: var(--accent); }
.metric .k {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #9aa1a5;
  margin-top: 6px;
}
.proof-media {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* media placeholder */
.media {
  position: relative;
  background:
    repeating-linear-gradient(45deg, #e7e6df 0 12px, #efeee8 12px 24px);
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
}
.proof .media {
  background: repeating-linear-gradient(45deg, #20252a 0 12px, #1b2024 12px 24px);
  border-color: #3a3f43;
}
.media video,
.media img { width: 100%; height: 100%; object-fit: cover; }
.media .ph {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.media .ph .lbl { font-family: var(--f-display); font-weight: 600; font-size: 15px; }
.media .ph .nt { font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); max-width: 30ch; }
.proof .media .ph .lbl { color: var(--paper-2); }
.proof .media .ph .nt { color: #8a9296; }

/* ---------- Roadmap ---------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 32px);
}
.milestone {
  border-top: 2px solid var(--line-2);
  padding-top: 18px;
}
.milestone.now { border-top-color: var(--accent); }
.milestone .when {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.milestone.now .when { color: var(--accent-deep); }
.milestone h3 { font-family: var(--f-display); font-weight: 600; font-size: 18px; margin-bottom: 6px; }
.milestone p { color: var(--ink-2); font-size: 15px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line-2);
  padding-block: clamp(48px, 6vw, 80px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
}
.footer-grid h4 {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 14px;
}
.footer-brand .wordmark { font-size: 22px; margin-bottom: 12px; display: inline-block; }
.footer-brand p { color: var(--ink-2); max-width: 32ch; font-size: 15px; }
.footer-list { display: flex; flex-direction: column; gap: 8px; }
.footer-list a, .footer-list span { color: var(--ink-2); font-size: 15px; }
.footer-list a:hover { color: var(--accent-deep); }
.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  color: var(--ink-3);
  font-family: var(--f-mono);
  font-size: 11.5px;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* flow pulse along pipeline */
.pnode .flow.live {
  animation: flowpulse 2.4s ease-in-out infinite;
}
@keyframes flowpulse {
  0%, 100% { border-color: var(--line-2); }
  50% { border-color: var(--accent); }
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero .container { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: 1fr 1fr; }
  .pnode { border-right: none; border-bottom: 1px solid var(--line); min-height: 0; }
  .pnode .flow { display: none; }
  .cards-3 { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr; }
  .proof-media { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .spec-strip { grid-template-columns: 1fr 1fr; }
  .spec:nth-child(2) { border-right: none; }
  .section-head { flex-direction: column; gap: 8px; }
  .section-head .note { text-align: left; }
}
@media (max-width: 560px) {
  .site-nav { display: none; }
  .sheet-row { grid-template-columns: 30px 1fr; gap: 8px; }
  .sheet-row .desc, .sheet-row .tag { grid-column: 2; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .pnode .flow.live { animation: none; }
}

/* ============ Presentation / click-through deck ============ */
html {
  scroll-snap-type: y proximity;
}
section {
  min-height: 100svh;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.site-footer {
  scroll-snap-align: end;
}

/* slide progress dots */
.deck-dots {
  position: fixed;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 11px;
  z-index: 60;
}
.deck-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--line-2);
  cursor: pointer;
  transition: all 0.2s ease;
}
.deck-dots button:hover { background: var(--ink-3); }
.deck-dots button.on { background: var(--accent); transform: scale(1.35); }

/* navigation hint */
.deck-hint {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  background: color-mix(in srgb, var(--paper) 80%, transparent);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 6px 14px;
  transition: opacity 0.5s ease;
}

/* big image showcase (QR + future stills) */
.showcase-media {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #0f1418;
  cursor: zoom-in;
}
.showcase-media img {
  width: 100%;
  height: auto;
  display: block;
}
.showcase-media:fullscreen {
  display: grid;
  place-items: center;
  background: #0c0e11;
  cursor: zoom-out;
  border: none;
}
.showcase-media:fullscreen img {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}

@media (max-width: 560px) {
  .deck-dots { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-snap-type: none; }
  section { min-height: auto; }
}
