/* RevertOS buyer showcase. Graphite and indigo tokens from the RevertOS v0.1.1 dark theme. */
:root {
  color-scheme: dark;
  --bg: #0b0c0f;
  --surface-1: #111318;
  --surface-2: #161920;
  --surface-3: #1d2129;
  --border-subtle: #1c1f25;
  --border: #262a32;
  --text-1: #eceef1;
  --text-2: #a9afba;
  --text-3: #868c97;
  --accent: #818cf8;
  --accent-surface: #818cf81f;
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --warn: #fbbf24;
  --radius: 12px;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-1);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #a5b4fc; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem); font-weight: 650; }
h3 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 1000px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 20; padding: 8px 12px; background: var(--primary); color: #fff; border-radius: 8px; }
.skip:focus { left: 8px; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgb(11 12 15 / 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border-subtle);
}
.topbar__inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text-1); text-decoration: none; font-weight: 650; font-size: 1.05rem; letter-spacing: -0.01em; }
.brand:hover { color: var(--text-1); }
.brand--small { font-size: 0.95rem; gap: 8px; }
.topnav { display: flex; gap: 22px; margin-right: auto; }
.topnav a { color: var(--text-2); text-decoration: none; font-size: 0.92rem; }
.topnav a:hover { color: var(--text-1); }
@media (max-width: 900px) { .topnav { display: none; } .topbar__inner { justify-content: space-between; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 18px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface-1);
  color: var(--text-1); font-weight: 550; font-size: 0.95rem; text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--surface-2); border-color: #343945; color: var(--text-1); }
.btn--primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; }
.btn--small { min-height: 36px; padding: 6px 14px; font-size: 0.88rem; }

/* Hero */
.hero { padding: 72px 0 56px; text-align: center; background: radial-gradient(60% 50% at 50% 0%, rgb(79 70 229 / 0.16), transparent 70%); }
.pill {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
  padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface-1); color: var(--text-1); font-size: 0.85rem; font-weight: 550;
}
.pill__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--warn); flex: none; }
.hero__title { margin-top: 28px; font-size: clamp(2.8rem, 1.6rem + 5vw, 4.75rem); font-weight: 700; letter-spacing: -0.035em; }
.hero__lede { margin: 12px auto 0; max-width: 760px; font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem); color: var(--text-1); font-weight: 500; letter-spacing: -0.01em; }
.hero__copy { margin: 20px auto 0; max-width: 720px; color: var(--text-2); }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.hero__shot { margin: 48px auto 0; }

/* Framed screenshots */
.frame {
  display: block; margin: 0; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-1);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.02) inset, 0 24px 60px -24px rgb(0 0 0 / 0.7);
}
a.frame:hover { border-color: #3a3f4b; }
.note { margin-top: 14px; color: var(--text-3); font-size: 0.88rem; }
.note--strong { margin: 12px 0 28px; color: var(--text-2); }

/* Sections */
.section { padding: 88px 0; }
.section--alt { background: var(--surface-1); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.eyebrow { color: var(--accent); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px; }
.mt { margin-top: 32px; }
.small { color: var(--text-3); font-size: 0.85rem; margin-top: 12px; }
@media (max-width: 600px) { .section { padding: 64px 0; } .hero { padding: 48px 0 40px; } }

/* Workflow steps */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-top: 36px; counter-reset: step; }
.steps li { position: relative; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-1); }
.steps__n { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-bottom: 14px; border-radius: 8px; background: var(--accent-surface); color: var(--accent); font: 600 0.85rem var(--mono); }
.steps p { margin-top: 8px; color: var(--text-2); font-size: 0.92rem; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }

/* Grids and cards */
.grid { display: grid; gap: 16px; margin-top: 36px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1000px) { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }
.card { padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); }
.section--alt .card { background: var(--surface-2); }
.card p { margin-top: 8px; color: var(--text-2); font-size: 0.93rem; }
.card--plain { background: var(--surface-1); }

.callout { margin-top: 28px; padding: 22px 24px; border: 1px solid rgb(251 191 36 / 0.35); border-radius: var(--radius); background: rgb(251 191 36 / 0.05); }
.callout h3 { margin-bottom: 12px; }

.ticks li { position: relative; padding-left: 26px; margin-top: 10px; color: var(--text-1); font-size: 0.95rem; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 0.62em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.ticks--muted li { color: var(--text-2); }
.ticks--muted li::before { background: var(--text-3); }
.card h3 + .ticks { margin-top: 6px; }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 14px 0 0; }
.stats div { padding: 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); }
.stats dt { color: var(--text-3); font-size: 0.8rem; }
.stats dd { margin: 4px 0 0; font: 600 1.05rem var(--mono); color: var(--text-1); }
@media (max-width: 420px) { .stats { grid-template-columns: 1fr; } }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tags li { padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-1); color: var(--text-2); font-size: 0.85rem; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 28px; }
.shot { margin: 0; }
.shot--wide { grid-column: 1 / -1; max-width: calc(50% - 14px); justify-self: center; }
.shot figcaption { margin-top: 14px; color: var(--text-2); font-size: 0.92rem; }
.shot figcaption strong { color: var(--text-1); }
.caveat { display: block; margin-top: 8px; padding: 10px 12px; border-left: 2px solid var(--warn); background: rgb(251 191 36 / 0.06); color: var(--text-2); border-radius: 0 8px 8px 0; }
@media (max-width: 800px) { .gallery { grid-template-columns: 1fr; } .shot--wide { max-width: none; } }

/* Video */
.frame--video { margin-top: 32px; background: #000; }
.frame--video video { width: 100%; aspect-ratio: 1440 / 900; background: #000; }
.links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 12px; font-size: 0.9rem; }

/* Contact */
.contact { text-align: center; }
.contact p { margin: 14px auto 28px; max-width: 620px; color: var(--text-2); }
.contact .btn { white-space: normal; text-align: center; }

/* Footer */
.footer { border-top: 1px solid var(--border-subtle); padding: 28px 0; color: var(--text-3); font-size: 0.85rem; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }

/* 404 */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.notfound p { margin: 12px 0 28px; color: var(--text-2); }
