/* radcontrol.org — marketing site for RadControl v4.
   Same visual language as the product ("warm ops console"): cream canvas,
   slate-deep dark surfaces, burnt orange kept for CTAs and accents,
   Archivo for UI text, JetBrains Mono wherever data appears. */

@font-face {
  font-family: 'Archivo Variable';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/archivo-latin-wght-normal.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/jetbrains-mono-latin-600-normal.woff2') format('woff2');
}

:root {
  --brand-500: #E15F00;
  --brand-600: #c14e00;
  --brand-700: #9c3e00;
  --brand-400: #f87a2a;
  --brand-100: #ffe6d1;
  --brand-50:  #fff5ec;
  --slate-deep: #404F57;
  --slate-deeper: #323e45;
  --slate-steel: #769dc0;
  --navy-deep: #243C5F;
  --cream-50: #F6F4EB;
  --cream-100: #ECE9D8;
  --ink: #2b343a;
  --ok: #059669;
  --warn: #d97706;
  --sans: 'Archivo Variable', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  font-family: var(--sans);
  background: var(--cream-50);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}
/* paper-grain noise, same trick as the product shell */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.25 0 0 0 0 0.23 0 0 0 0 0.18 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, header.site, footer.site { position: relative; z-index: 1; }

a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-500); }
img { max-width: 100%; height: auto; display: block; }
code, pre, .mono { font-family: var(--mono); font-feature-settings: 'tnum'; }

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }

/* ── header ──────────────────────────────────────────────────────────── */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 244, 235, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(64, 79, 87, .12);
}
header.site .bar {
  display: flex; align-items: center; gap: 2rem;
  height: 4rem;
}
.brand { display: flex; align-items: center; gap: .65rem; font-size: 1.25rem; font-weight: 650; letter-spacing: -.02em; }
.brand svg { width: 2rem; height: 2rem; }
.brand .b1 { color: var(--slate-deep); }
.brand .b2 { color: var(--brand-500); }
.brand .vtag {
  font-family: var(--mono); font-size: .7rem; font-weight: 500;
  color: var(--brand-700); background: var(--brand-100);
  padding: .12rem .45rem; border-radius: 99px; margin-left: .25rem;
  letter-spacing: .06em;
}
nav.main { margin-left: auto; display: flex; align-items: center; gap: 1.6rem; font-size: .95rem; font-weight: 500; }
nav.main a { color: var(--slate-deep); }
nav.main a:hover, nav.main a.active { color: var(--brand-600); }
nav.main .cta {
  background: var(--brand-500); color: #fff;
  padding: .5rem 1.1rem; border-radius: .6rem;
  box-shadow: 0 1px 2px rgba(64,79,87,.2);
}
nav.main .cta:hover { background: var(--brand-600); color: #fff; }

/* ── typography helpers ──────────────────────────────────────────────── */
.section-label {
  font-family: var(--mono); font-size: .72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .16em;
  color: var(--brand-600); margin-bottom: .75rem;
}
h1, h2, h3 { color: var(--navy-deep); letter-spacing: -.02em; line-height: 1.15; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 680; }
h3 { font-size: 1.15rem; font-weight: 640; }
.lede { font-size: clamp(1.05rem, 2vw, 1.25rem); color: rgba(43, 52, 58, .78); max-width: 44rem; }

section.block { padding: 5rem 0; }
section.block.tight { padding: 3.5rem 0; }

/* ── hero ────────────────────────────────────────────────────────────── */
.hero { padding: 5.5rem 0 3.5rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.5rem; border-radius: .7rem;
  font-weight: 600; font-size: 1rem; border: 0; cursor: pointer;
}
.btn-primary { background: var(--brand-500); color: #fff; box-shadow: 0 2px 8px rgba(225,95,0,.3); }
.btn-primary:hover { background: var(--brand-600); color: #fff; }
.btn-secondary { background: #fff; color: var(--slate-deep); border: 1px solid rgba(64,79,87,.25); }
.btn-secondary:hover { border-color: var(--slate-deep); color: var(--slate-deep); }
.hero-kpis { display: flex; flex-wrap: wrap; gap: 2.5rem; margin-top: 2.6rem; }
.hero-kpis .kpi { font-family: var(--mono); }
.hero-kpis .kpi b { display: block; font-size: 1.55rem; font-weight: 600; color: var(--navy-deep); }
.hero-kpis .kpi span { font-size: .8rem; color: rgba(43,52,58,.6); }

/* ── screenshot frames ───────────────────────────────────────────────── */
.frame {
  background: #fff; border-radius: .9rem; overflow: hidden;
  border: 1px solid rgba(64,79,87,.14);
  box-shadow: 0 20px 50px -18px rgba(36,60,95,.35), 0 4px 14px -6px rgba(36,60,95,.18);
}
.frame .chrome {
  display: flex; align-items: center; gap: .4rem;
  padding: .55rem .9rem; background: var(--cream-100);
  border-bottom: 1px solid rgba(64,79,87,.12);
}
.frame .chrome i { width: .65rem; height: .65rem; border-radius: 50%; background: rgba(64,79,87,.22); }
.frame .chrome .url {
  margin-left: .6rem; font-family: var(--mono); font-size: .72rem;
  color: rgba(64,79,87,.6); background: rgba(255,255,255,.7);
  padding: .1rem .7rem; border-radius: 99px;
}
.frame img { width: 100%; height: auto; }
.shot-caption { text-align: center; font-size: .85rem; color: rgba(43,52,58,.6); margin-top: .9rem; }

/* ── feature grid ────────────────────────────────────────────────────── */
.grid { display: grid; gap: 1.4rem; }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 56rem) { .grid.cols-3, .grid.cols-2 { grid-template-columns: minmax(0, 1fr); } }
.card {
  background: #fff; border: 1px solid rgba(64,79,87,.12);
  border-radius: .9rem; padding: 1.6rem;
  box-shadow: 0 1px 3px rgba(64,79,87,.07);
}
.card h3 { margin-bottom: .5rem; display: flex; align-items: center; gap: .6rem; }
.card p { font-size: .95rem; color: rgba(43,52,58,.75); }
.card .glyph {
  width: 2.2rem; height: 2.2rem; flex: none; border-radius: .55rem;
  background: var(--brand-50); color: var(--brand-600);
  display: inline-flex; align-items: center; justify-content: center;
}
.card .glyph svg { width: 1.25rem; height: 1.25rem; }

/* ── split feature sections ─────────────────────────────────────────── */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem; align-items: center; }
.split.rev { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
@media (max-width: 56rem) { .split, .split.rev { grid-template-columns: minmax(0, 1fr); } .split.rev .txt { order: -1; } }
.split .txt p { margin: .8rem 0; color: rgba(43,52,58,.78); }
.checks { list-style: none; margin-top: 1.1rem; display: grid; gap: .55rem; }
.checks li { padding-left: 1.7rem; position: relative; font-size: .95rem; }
.checks li::before {
  content: ''; position: absolute; left: 0; top: .32rem;
  width: 1rem; height: 1rem; border-radius: 50%;
  background: var(--brand-100);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23c14e00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.checks li code { font-size: .85em; background: var(--cream-100); padding: .05rem .35rem; border-radius: .3rem; }

/* ── dark section ────────────────────────────────────────────────────── */
.dark {
  background: linear-gradient(180deg, var(--slate-deep), var(--slate-deeper));
  color: var(--cream-100);
  border-top: 2px solid var(--brand-500);
}
.dark h2, .dark h3 { color: #fff; }
.dark .section-label { color: var(--brand-400); }
.dark p, .dark .split .txt p { color: rgba(236,233,216,.78); }
.dark .card {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.12);
  box-shadow: none;
}
.dark .card p { color: rgba(236,233,216,.7); }
.dark .card h3 { color: #fff; }
.dark .card .glyph { background: rgba(225,95,0,.18); color: var(--brand-400); }
.dark code.inline { background: rgba(0,0,0,.3); color: var(--brand-100); padding: .1rem .4rem; border-radius: .3rem; }

/* ── code blocks / terminal ─────────────────────────────────────────── */
.term {
  background: #1d252a; color: #d7e0d9;
  border-radius: .8rem; overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 14px 40px -16px rgba(0,0,0,.5);
}
.term .term-bar {
  display: flex; align-items: center; gap: .4rem;
  background: rgba(255,255,255,.06); padding: .5rem .9rem;
  font-family: var(--mono); font-size: .72rem; color: rgba(255,255,255,.45);
}
.term .term-bar i { width: .6rem; height: .6rem; border-radius: 50%; background: rgba(255,255,255,.18); }
.term pre {
  padding: 1.1rem 1.3rem; overflow-x: auto;
  font-size: .88rem; line-height: 1.7;
}
.term .p  { color: var(--brand-400); user-select: none; }
.term .c  { color: rgba(215,224,217,.45); }
.term .g  { color: #7ee2a8; }
.copy-wrap { position: relative; }
.copy-btn {
  position: absolute; top: 2.6rem; right: .8rem;
  background: rgba(255,255,255,.1); color: #fff;
  border: 1px solid rgba(255,255,255,.18); border-radius: .45rem;
  font-family: var(--mono); font-size: .72rem; padding: .3rem .7rem; cursor: pointer;
}
.copy-btn:hover { background: rgba(255,255,255,.2); }

/* ── tables ──────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table.ops { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid rgba(64,79,87,.12); border-radius: .8rem; overflow: hidden; }
table.ops th {
  font-family: var(--mono); font-size: .68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .14em; text-align: left;
  color: rgba(64,79,87,.65); background: var(--cream-100);
  padding: .6rem .9rem;
}
table.ops td { padding: .65rem .9rem; font-size: .92rem; border-top: 1px solid rgba(64,79,87,.08); vertical-align: top; }
table.ops td:first-child { font-family: var(--mono); font-size: .85rem; white-space: nowrap; }

/* ── guide layout ───────────────────────────────────────────────────── */
.guide-layout { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 3rem; align-items: start; }
@media (max-width: 56rem) { .guide-layout { grid-template-columns: minmax(0, 1fr); } .toc { position: static !important; } }
.toc {
  position: sticky; top: 5.5rem;
  font-size: .9rem; display: grid; gap: .15rem;
}
.toc a { color: rgba(43,52,58,.75); padding: .3rem .7rem; border-left: 2px solid rgba(64,79,87,.15); }
.toc a:hover { color: var(--brand-600); border-left-color: var(--brand-500); }
.toc .toc-label { margin-bottom: .4rem; }
article.guide h2 { margin: 3.2rem 0 .4rem; scroll-margin-top: 5.5rem; }
article.guide h2:first-of-type { margin-top: 0; }
article.guide h3 { margin: 1.8rem 0 .4rem; }
article.guide p, article.guide li { color: rgba(43,52,58,.82); }
article.guide p { margin: .7rem 0; }
article.guide ol, article.guide ul { margin: .7rem 0 .7rem 1.4rem; }
article.guide li { margin: .3rem 0; }
article.guide .frame { margin: 1.4rem 0 .4rem; }
article.guide code {
  background: var(--cream-100); border: 1px solid rgba(64,79,87,.1);
  padding: .08rem .4rem; border-radius: .35rem; font-size: .84em;
}
article.guide .term { margin: 1rem 0; }
article.guide .term pre { font-size: .82rem; }
.note {
  border-left: 3px solid var(--brand-500);
  background: var(--brand-50); border-radius: 0 .6rem .6rem 0;
  padding: .9rem 1.2rem; margin: 1.2rem 0; font-size: .92rem;
}
.note.slate { border-left-color: var(--slate-steel); background: #eef3f8; }

/* ── steps (get page) ───────────────────────────────────────────────── */
.steps { counter-reset: step; display: grid; gap: 1.5rem; margin-top: 1.5rem; }
.step { display: grid; grid-template-columns: 2.6rem 1fr; gap: 1.1rem; }
.step::before {
  counter-increment: step; content: counter(step);
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: var(--slate-deep); color: var(--cream-100);
  font-family: var(--mono); font-weight: 600; font-size: 1.05rem;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { margin-bottom: .3rem; }
.step p { color: rgba(43,52,58,.78); font-size: .95rem; }

/* ── footer ─────────────────────────────────────────────────────────── */
footer.site {
  background: var(--slate-deeper); color: rgba(236,233,216,.65);
  padding: 3rem 0; margin-top: 5rem; font-size: .9rem;
  border-top: 2px solid var(--brand-500);
}
footer.site .cols { display: flex; flex-wrap: wrap; gap: 3rem; justify-content: space-between; align-items: flex-start; }
footer.site a { color: var(--cream-100); }
footer.site a:hover { color: var(--brand-400); }
footer.site .brand .b1 { color: var(--cream-100); }
footer.site nav { display: grid; gap: .35rem; }

@media (max-width: 40rem) {
  .wrap { padding: 0 1rem; }
  header.site .bar { gap: .75rem; }
  /* Keep the top bar to brand + the primary CTA; the text links stay reachable
     in the footer. This is what prevents the "Get RadControl" button from being
     pushed off-screen (horizontal scroll) on narrow phones. */
  nav.main { gap: .9rem; font-size: .88rem; }
  nav.main a:not(.cta) { display: none; }
  nav.main .cta { padding: .45rem .9rem; }
  .brand { font-size: 1.1rem; }
  .brand svg { width: 1.7rem; height: 1.7rem; }
  .hero { padding-top: 3.5rem; }
}
