/* ReddropAI Guides. Same system as reddrop.ai (near black ground, Bebas
   headlines with a green full stop, bracketed labels, hairlines, frosted
   glass), tuned for reading: a guide column, a sidebar and screenshots. */

@font-face {
  font-family: "Techovier";
  src: url("/assets/techovier.woff2") format("woff2");
  font-display: swap;
}

:root {
  --ground: #07060b;
  --ink-1: #f0f0f0;
  --ink-2: #b4b4b4;
  --ink-label: #9c9c9c;
  --ink-3: #767676;
  --rule: rgba(255, 255, 255, 0.12);
  --vision: #68cc28;
  --amber: #f0b429;

  --display-l: clamp(48px, 6vw, 112px);
  --display-m: clamp(40px, 4.4vw, 72px);

  --bebas: "Bebas Neue", Impact, sans-serif;
  --inter: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 5vw, 64px);
  --max: 1320px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink-2);
  font: 16px/1.75 var(--inter);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--vision); color: var(--ground); }
a { color: var(--ink-1); text-decoration-color: rgba(104, 204, 40, 0.6); text-underline-offset: 4px; }
a:hover { color: var(--vision); }
img, svg { display: block; max-width: 100%; height: auto; }
code { font: 14px/1.5 ui-monospace, "SF Mono", Menlo, monospace; color: var(--ink-1); background: rgba(255, 255, 255, 0.07); padding: 2px 6px; border-radius: 4px; overflow-wrap: anywhere; }
strong { color: var(--ink-1); font-weight: 600; }
.crumb { color: var(--vision); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 20; background: var(--vision); color: var(--ground); padding: 8px 12px; }

.sky {
  position: fixed; top: 0; left: 0; width: 100%; height: 100lvh; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 55% at 72% 38%, rgba(56, 143, 255, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(7, 6, 11, 0.7), rgba(7, 6, 11, 0.8) 40%, rgba(7, 6, 11, 0.95) 85%, var(--ground)),
    url("/assets/galaxy.jpg") center 70% / cover no-repeat,
    var(--ground);
  opacity: 0.6;
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: linear-gradient(180deg, rgba(7, 6, 11, 0.9), rgba(7, 6, 11, 0.6));
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--rule);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 24px; }
.logo {
  font-family: "Techovier", var(--inter); text-transform: uppercase; letter-spacing: 0;
  font-size: 18px; color: var(--ink-1); text-decoration: none; white-space: nowrap;
}
.logo span { color: var(--vision); }
.logo em { font: 500 12px/1 var(--inter); font-style: normal; letter-spacing: 0.16em; color: var(--ink-label); margin-left: 10px; vertical-align: 2px; }
.logo:hover { color: var(--ink-1); }
nav.primary { display: flex; align-items: center; gap: 32px; }
nav.primary a { color: var(--ink-2); text-decoration: none; font-size: 14px; }
nav.primary a:hover { color: var(--ink-1); }

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--vision); color: var(--ground);
  font: 600 13px/1 var(--inter); letter-spacing: 0.14em; text-transform: uppercase;
  padding: 16px 24px; border-radius: 2px; text-decoration: none;
  transition: filter 0.2s ease;
}
.btn:hover { color: var(--ground); filter: brightness(1.12); }
nav.primary a.btn { color: var(--ground); }
.btn.small { padding: 12px 16px; font-size: 12px; }

/* Type */
.label {
  font: 500 12px/1.7 var(--inter); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-label); margin: 0 0 16px;
}
h1, h2 {
  font-family: var(--bebas); font-weight: 400; text-transform: uppercase;
  letter-spacing: 0.01em; line-height: 0.95; color: var(--ink-1); margin: 0;
}
h1 .dim { color: var(--ink-2); }
.dot { color: var(--vision); }
.lead { font-size: 19px; line-height: 1.6; color: var(--ink-2); max-width: 36em; margin: 0; }

.glass {
  position: relative;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02) 60%),
    rgba(10, 8, 16, 0.5);
  backdrop-filter: blur(40px) saturate(1.4) brightness(0.75);
  -webkit-backdrop-filter: blur(40px) saturate(1.4) brightness(0.75);
  border: 1px solid var(--rule);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}

/* Home */
.page-hero { padding: 112px 0 72px; }
.page-hero h1 { font-size: var(--display-l); margin-bottom: 28px; }
.sections { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding-bottom: 120px; }
.section-card { padding: 36px 32px 28px; }
.section-card .label { color: var(--vision); margin-bottom: 8px; }
.section-card .blurb { margin: 0 0 20px; color: var(--ink-1); font-size: 17px; line-height: 1.5; }
.section-card ul { list-style: none; margin: 0; padding: 0; }
.section-card li { border-top: 1px solid var(--rule); padding: 14px 0; }
.section-card li a { display: block; font-weight: 500; text-decoration: none; }
.section-card li span { display: block; font-size: 14px; line-height: 1.55; color: var(--ink-3); }

/* Guide layout: sidebar, article */
.docs { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); padding-top: 56px; padding-bottom: 120px; }
.side { position: sticky; top: 90px; align-self: start; max-height: calc(100vh - 110px); overflow-y: auto; padding-right: 8px; }
.side .label { margin: 24px 0 6px; font-size: 11px; }
.side .label:first-child { margin-top: 0; }
.side ul { list-style: none; margin: 0; padding: 0; }
.side a { display: block; padding: 5px 0 5px 14px; border-left: 1px solid var(--rule); color: var(--ink-2); text-decoration: none; font-size: 14px; line-height: 1.45; }
.side a:hover { color: var(--ink-1); }
.side a[aria-current="page"] { color: var(--ink-1); border-left: 2px solid var(--vision); padding-left: 13px; }

.guide { max-width: 760px; }
.guide > .label { color: var(--vision); }
.guide h1 { font-size: var(--display-m); margin-bottom: 24px; }
.guide > .lead { margin-bottom: 40px; }
.toc { border: 1px solid var(--rule); border-radius: 8px; padding: 18px 22px; margin-bottom: 48px; }
.toc ul { margin: 0; padding-left: 18px; }
.toc li { font-size: 15px; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--ink-1); }

.body h2 { font-size: clamp(30px, 3vw, 42px); margin: 64px 0 18px; padding-top: 24px; border-top: 1px solid var(--rule); }
.body h3 { font: 600 19px/1.35 var(--inter); color: var(--ink-1); margin: 40px 0 10px; }
.body p { margin: 0 0 18px; }
.body ul { padding-left: 22px; margin: 0 0 22px; }
.body li { margin-bottom: 8px; }

/* Numbered steps: a green number in a ring, a hairline down the side */
.body ol.steps { list-style: none; counter-reset: step; padding: 0; margin: 8px 0 28px; }
.body ol.steps > li { counter-increment: step; position: relative; padding: 0 0 26px 52px; margin: 0; }
.body ol.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(104, 204, 40, 0.6);
  color: var(--vision); font: 600 14px/30px var(--inter); text-align: center; background: var(--ground);
}
.body ol.steps > li::after { content: ""; position: absolute; left: 16px; top: 38px; bottom: 6px; border-left: 1px solid var(--rule); }
.body ol.steps > li:last-child::after { display: none; }

/* Screenshots */
.shot { margin: 20px 0 32px; }
.shot img { border-radius: 10px; border: 1px solid var(--rule); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.8); background: #15131c; }
.shot figcaption { font-size: 13px; color: var(--ink-3); margin-top: 10px; line-height: 1.5; }
.shot.pending { aspect-ratio: 16 / 9; border: 1px dashed rgba(255, 255, 255, 0.2); border-radius: 10px; display: grid; place-items: center; text-align: center; padding: 24px; background: rgba(255, 255, 255, 0.02); }
.shot.pending p { margin: 0; color: var(--ink-3); font-size: 14px; max-width: 30em; }
.shot.pending .label { margin-bottom: 8px; }
ol.steps .shot { margin: 16px 0 8px; }

/* Callouts */
.callout { border-left: 2px solid var(--vision); background: rgba(104, 204, 40, 0.06); padding: 16px 20px; border-radius: 0 8px 8px 0; margin: 0 0 24px; }
.callout .label { margin: 0 0 4px; color: var(--vision); font-size: 11px; }
.callout p { margin: 0; color: var(--ink-1); }
.callout.warning { border-color: var(--amber); background: rgba(240, 180, 41, 0.07); }
.callout.warning .label { color: var(--amber); }
.callout.note { border-color: rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.04); }
.callout.note .label { color: var(--ink-label); }

/* Previous and next */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 72px; }
.pager a { border: 1px solid var(--rule); border-radius: 8px; padding: 18px 20px; text-decoration: none; color: var(--ink-1); font-weight: 500; line-height: 1.4; }
.pager a:hover { border-color: var(--vision); color: var(--ink-1); }
.pager .label { display: block; margin-bottom: 6px; font-size: 11px; }
.pager .next { grid-column: 2; text-align: right; }

/* Footer */
footer.site { border-top: 1px solid var(--rule); padding: 72px 0 48px; font-size: 14px; background: rgba(7, 6, 11, 0.7); }
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 64px; }
footer.site p { margin: 0; line-height: 1.8; }
footer.site ul { list-style: none; margin: 0; padding: 0; line-height: 2; }
footer.site a { color: var(--ink-2); text-decoration: none; }
footer.site a:hover { color: var(--ink-1); }
footer.site .legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; color: var(--ink-3); font-size: 12px; letter-spacing: 0.04em; padding-top: 24px; border-top: 1px solid var(--rule); }
footer.site .logo { font-size: 22px; display: inline-block; margin-bottom: 16px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (max-width: 1000px) {
  .docs { grid-template-columns: 1fr; padding-top: 32px; }
  .side { position: static; max-height: none; order: 2; border-top: 1px solid var(--rule); padding-top: 32px; }
  .sections { grid-template-columns: 1fr; }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  nav.primary .hide-sm { display: none; }
  .logo em { display: none; }
  .page-hero { padding: 64px 0 40px; }
  .section-card { padding: 28px 20px 16px; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { grid-column: 1; }
  .body ol.steps > li { padding-left: 44px; }
  footer.site .cols { grid-template-columns: 1fr; gap: 28px; }
}
