/* Grok Bot for Stream Deck (pepefigueroa.com/grokdeck/): built on the V1 Patterns page styles (the site's brand: ink, panel, line,
   bone, steel, amber, signal, rec, tally; Archivo + JetBrains Mono), plus the deck, key grid, status legend and install box below. */
:root { --ink:#08090B; --panel:#131519; --line:#22252B; --bone:#F2EFE9; --steel:#8A8F98; --soft:#C9CBD0; --amber:#FFB547; --signal:#35D0E6; --rec:#E5484D; --tally:#3BD671;
  --mono:"JetBrains Mono", ui-monospace, monospace; }
* { box-sizing: border-box; }
html { background: var(--ink); scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--bone); font: 17px/1.55 "Archivo", ui-sans-serif, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--amber); } a:hover { color: #FFC977; }
img, video { display: block; max-width: 100%; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.mono { font-family: var(--mono); }
.eyebrow { margin: 0; display: flex; align-items: center; gap: 14px; font-family: var(--mono); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--steel); }
.eyebrow::before { content: ""; width: 32px; height: 1px; background: var(--amber); }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(30px, 4.2vw, 44px); line-height: 1.08; }
h3 { font-size: 21px; font-weight: 700; letter-spacing: 0; }
.lead { margin: 0; font-size: 18px; color: var(--soft); max-width: 62ch; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 10px; background: var(--amber); color: var(--ink); font-weight: 700; font-size: 17px; text-decoration: none; }
.btn:hover { background: #FFC977; color: var(--ink); }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--bone); font-weight: 600; }
.btn.ghost:hover { border-color: var(--amber); color: var(--amber); }

/* header */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; padding-top: 6px; padding-bottom: 6px; }
.top a { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--bone); }
.top .back { color: var(--steel); }
.top nav { display: flex; flex-wrap: wrap; gap: 0 24px; }

/* hero over an LED-dot field (colour drifting through the dots), darkened under the text */
.led { position: relative; isolation: isolate; overflow: hidden; }
.led::before { content: ""; position: absolute; inset: 0; z-index: -2; opacity: .9;
  background: linear-gradient(115deg,#0d5f73 0%,#35D0E6 20%,#5b3fd6 42%,#b8326a 62%,#FFB547 82%,#0d5f73 100%); background-size: 240% 100%;
  animation: ledflow 22s linear infinite;
  -webkit-mask: radial-gradient(circle at center,#000 1.6px,transparent 2.3px) 0 0/8px 8px; mask: radial-gradient(circle at center,#000 1.6px,transparent 2.3px) 0 0/8px 8px; }
.led::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg,rgba(8,9,11,0) 0%,rgba(8,9,11,.25) 70%,var(--ink) 100%), linear-gradient(90deg,rgba(8,9,11,.6) 0%,rgba(8,9,11,.15) 55%,rgba(8,9,11,.25) 100%); }
@keyframes ledflow { to { background-position: 240% 0; } }
/* text on the bright dots: a soft ink halo keeps it readable without dimming the LEDs */
.led .kicker, .led .small { color: var(--soft); }
.led .hero-copy p { text-shadow: 0 0 4px var(--ink), 0 0 10px var(--ink), 0 0 18px var(--ink); }
.led h1 { text-shadow: 0 2px 22px rgba(8,9,11,.9); }
.led .btn.ghost { background: rgba(8,9,11,.7); border-color: #3A3D44; }
@media (prefers-reduced-motion: reduce) { .led::before { animation: none; } html { scroll-behavior: auto; } }
.hero { display: flex; flex-wrap: wrap; gap: 48px 56px; align-items: center; padding-top: 72px; padding-bottom: 56px; }
.hero-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.badge-row { display: flex; align-items: center; gap: 14px; }
.badge-row img { width: 64px; height: 64px; border-radius: 15px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--amber); border-radius: 999px; color: var(--amber); font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.kicker { margin: 0; font-family: var(--mono); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--steel); }
.hero h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.02; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.small { margin: 0; font-size: 14px; color: var(--steel); }
.screen { flex: 1 1 520px; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.screen .frame { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #000; aspect-ratio: 16 / 9; }
.screen video, .screen .frame img { width: 100%; height: 100%; object-fit: cover; }
.screen figcaption { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 13px; letter-spacing: .08em; color: var(--tally); }

.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--panel); }
.facts ul { margin: 0 auto; padding-top: 18px; padding-bottom: 18px; list-style: none; display: flex; flex-wrap: wrap; gap: 10px 36px; font-family: var(--mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }

section.block { padding-top: 88px; padding-bottom: 24px; }
.head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; margin-bottom: 36px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card .body { padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.card .num { margin: 0; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--signal); }
.card p { margin: 0; color: var(--soft); font-size: 16px; }

.stack { display: flex; flex-direction: column; gap: 16px; }

.why { border-left: 2px solid var(--amber); padding: 6px 0 6px 28px; max-width: 820px; display: flex; flex-direction: column; gap: 12px; }
.why blockquote { margin: 0; font-size: clamp(21px, 2.4vw, 26px); line-height: 1.4; font-weight: 600; }


.support { display: flex; flex-wrap: wrap; gap: 48px; padding-bottom: 96px; }
.support > div { flex: 1 1 320px; min-width: 0; }
.support > div:last-child { flex: 1 1 520px; border-top: 1px solid var(--line); }
.support p { color: var(--soft); }
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { cursor: pointer; font-size: 17px; font-weight: 600; min-height: 28px; }
summary:focus-visible, a:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
details p { margin: 10px 0 0; }

.foot { border-top: 1px solid var(--line); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; padding-top: 28px; padding-bottom: 28px; color: var(--steel); font-size: 14px; }
.foot a { color: var(--steel); }

/* hero: the deck loop (1280x792), no 16:9 crop */
.screen .frame.deck { aspect-ratio: 1280 / 792; background: var(--ink); border: 0; }
.screen .frame.deck video, .screen .frame.deck img { object-fit: contain; }

/* keys */
.keys { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.key { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.key img { width: 88px; height: 88px; border-radius: 16px; flex: none; }
.key .pair { display: flex; gap: 10px; flex: none; }
.key .pair img { width: 88px; height: 88px; border-radius: 16px; }
.key h3 { font-size: 18px; margin-bottom: 4px; }
.key p { margin: 0; color: var(--soft); font-size: 15px; line-height: 1.5; }
.key.wide { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 24px; }
.key.wide > div { flex: 1 1 260px; }
.key.wide img.dial { width: 220px; height: 110px; border-radius: 12px; }

/* status legend */
.legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 8px; }
.legend div { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .08em; margin-bottom: 6px; }
.pill.working { background: #1084FE; color: #fff; } .pill.ready { background: #00C972; color: #04140C; }
.pill.idle { background: #4A4F5A; color: #E4E6EB; } .pill.inactive { background: #26272B; color: #8A8D94; }
.pill.offline { background: #3A2A12; color: #FFB547; }
.legend span { display: block; color: var(--steel); font-size: 15px; }

/* install box (same frame as the V1 Patterns beta box) */
.install { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 4vw, 40px); display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.install > div:first-child { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.install ol { margin: 4px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; color: var(--soft); }
.install b { color: var(--bone); }
.install .get { flex: 0 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.install .get .btn { width: 100%; }
.install .get p { margin: 0; }
.sig { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); }

@media (max-width: 640px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .top nav { display: none; }
  .hero { padding-top: 32px; padding-bottom: 32px; gap: 28px; }
  .badge-row img { width: 52px; height: 52px; border-radius: 12px; }
  .cta-row .btn { flex: 1 1 100%; }
  section.block { padding-top: 56px; }
  .facts ul { gap: 8px 18px; font-size: 11px; }
  .key { padding: 16px; gap: 12px; }
  .key.wide { flex-direction: column; align-items: flex-start; }
  .key.wide img.dial { width: 100%; max-width: 280px; height: auto; aspect-ratio: 2 / 1; }
}
