/*
 * The skopik.com hub wears the same look as the Platform landing page and
 * the console (SPEC.md, "The look"): no borders and no rules, areas told
 * apart by fill and space, pill controls, one color, lime, always a fill
 * with black on it, on pure grays. Light by default, dark when the system
 * asks, or when the visitor chose it.
 */
@font-face { font-family: 'Space Grotesk'; font-weight: 400; font-display: swap; src: url(/fonts/space-grotesk-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-weight: 500; font-display: swap; src: url(/fonts/space-grotesk-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-weight: 600; font-display: swap; src: url(/fonts/space-grotesk-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-weight: 700; font-display: swap; src: url(/fonts/space-grotesk-latin-700-normal.woff2) format('woff2'); }

:root {
  color-scheme: light;
  --lime: #d4ff3a;
  --on-lime: #0a0a0a;
  --bg: #ffffff;
  --surface: #f4f4f4;
  --surface-2: #e6e6e6;
  --raised: #ffffff;
  --text: #0a0a0a;
  --muted: #5c5c5c;
  --focus: #0a0a0a;
  --ink: #0a0a0a;
  --ink-text: #f2f2f2;
  --ink-muted: #8c8c8c;
  --ink-field: #1c1c1c;
  --font: 'Space Grotesk', system-ui, sans-serif;
  --max: 1160px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --bg: #161616;
    --surface: #202020;
    --surface-2: #2e2e2e;
    --raised: #262626;
    --text: #f2f2f2;
    --muted: #a3a3a3;
    --focus: #f2f2f2;
  }
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #161616;
  --surface: #202020;
  --surface-2: #2e2e2e;
  --raised: #262626;
  --text: #f2f2f2;
  --muted: #a3a3a3;
  --focus: #f2f2f2;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  padding: 10px 16px; border-radius: 999px; background: var(--lime); color: var(--on-lime); font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* Pills */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 18px; border-radius: 999px;
  font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: background-color 0.15s;
}
.pill.big { height: 50px; padding: 0 26px; font-size: 16px; }
.pill.lime { background: var(--lime); color: var(--on-lime); }
.pill.lime:hover { background: #c6f224; }
.pill.ghost { background: var(--raised); }
.pill.ghost:hover { background: var(--surface-2); }
.pill.dark { background: var(--ink-field); color: var(--ink-text); }
.pill.dark:hover { background: #2a2a2a; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
}
.top-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.brand img { border-radius: 8px; display: block; }
.brand.small { font-size: 16px; }
/* The header mark wakes as the page opens (the eye opens, looks down left,
   down right and back), then blinks every 6 s; hovering the brand makes it
   look around. As brand/mark-wake.svg, in the design system's colors. */
.mark { display: block; flex-shrink: 0; }
.mark-look { transform-box: view-box; transform-origin: 0 0; animation: mark-look 2.6s 1s both; }
.mark-blink, .mark-eye { transform-box: fill-box; transform-origin: center; }
.mark-eye { animation: mark-wake 0.9s 0.15s both; }
.mark-blink { animation: mark-blink 6s 3.6s infinite; }
.brand:hover .mark-look, .brand:focus-visible .mark-look { animation: mark-look 2.2s infinite; }
.brand:hover .mark-blink, .brand:focus-visible .mark-blink { animation: mark-blink 3.4s 0.6s infinite; }
@keyframes mark-wake {
  0% { transform: scale(1.15, 0.08); animation-timing-function: cubic-bezier(.2, .8, .3, 1.3); }
  100% { transform: scale(1, 1); }
}
@keyframes mark-look {
  0% { transform: translate(0, 0); animation-timing-function: cubic-bezier(.3, 0, .2, 1); }
  20%, 40% { transform: translate(-10px, 5px); animation-timing-function: cubic-bezier(.3, 0, .2, 1); }
  58%, 76% { transform: translate(4px, 8px); animation-timing-function: cubic-bezier(.3, 0, .2, 1); }
  96%, 100% { transform: translate(0, 0); }
}
@keyframes mark-blink {
  0%, 4% { transform: scale(1, 1); }
  6% { transform: scale(1.1, 0.08); }
  8%, 100% { transform: scale(1, 1); }
}
@media (prefers-reduced-motion: reduce) { .mark-look, .mark-eye, .mark-blink { animation: none !important; } }
.brand.small img { border-radius: 6px; }
.top-nav { display: flex; gap: 4px; margin-left: 12px; }
.top-nav a { padding: 8px 14px; border-radius: 999px; color: var(--muted); font-weight: 500; }
.top-nav a:hover { color: var(--text); background: var(--surface); }
.top-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-btn {
  width: 40px; height: 40px; border: 0; border-radius: 999px; background: transparent;
  display: inline-flex; align-items: center; justify-content: center; color: var(--muted);
}
.icon-btn:hover { background: var(--surface); color: var(--text); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; display: none; }
.icon-btn[data-mode='system'] .i-sys,
.icon-btn[data-mode='light'] .i-light,
.icon-btn[data-mode='dark'] .i-dark { display: block; }
.icon-btn:not([data-mode]) .i-sys { display: block; }

/* Hero */
.hero { padding-top: 80px; padding-bottom: 24px; }
.hero h1 { font-size: clamp(40px, 6vw, 76px); line-height: 1.02; letter-spacing: -0.035em; margin-top: 22px; max-width: 14em; }
.lede { margin-top: 22px; font-size: 20px; color: var(--muted); max-width: 36em; }

.jump { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 48px; }
.jump-card {
  background: var(--surface); border-radius: 20px; padding: 20px 22px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; transition: background-color 0.15s;
}
.jump-card:hover { background: var(--surface-2); }
.jump-name { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; display: flex; align-items: center; justify-content: space-between; }
.jump-name::after { content: '↓'; font-weight: 500; color: var(--muted); }
.jump-line { color: var(--muted); font-size: 15px; }
.jump-card.featured { background: var(--lime); color: var(--on-lime); }
.jump-card.featured:hover { background: #c6f224; }
.jump-card.featured .jump-line,
.jump-card.featured .jump-name::after { color: color-mix(in srgb, var(--on-lime) 70%, transparent); }
.jump-tag { align-self: flex-start; margin-bottom: 6px; padding: 2px 10px; border-radius: 999px; background: var(--on-lime); color: var(--lime); font-size: 12px; font-weight: 600; }

/* One band per product */
.product { padding-top: 24px; }
.product-in {
  background: var(--surface); border-radius: 28px; padding: 48px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 48px; align-items: center;
}
.product-in > .points { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.product-in.ink { background: var(--ink); color: var(--ink-text); }
.product-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.card-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--lime); color: var(--on-lime); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.card-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.badge { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--raised); color: var(--muted); font-size: 13px; font-weight: 600; }
.ink .badge { background: var(--ink-field); color: var(--ink-muted); }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ink .kicker { color: var(--ink-muted); }
.product h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; margin-top: 10px; }
.section-lede { margin-top: 16px; font-size: 18px; color: var(--muted); }
.ink .section-lede { color: var(--ink-muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.fine { margin-top: 20px; font-size: 15px; color: var(--muted); background: var(--raised); border-radius: 16px; padding: 14px 18px; }

.points { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.points li { background: var(--raised); border-radius: 16px; padding: 16px 18px 16px 50px; position: relative; color: var(--muted); font-size: 15px; }
.points li strong { color: var(--text); display: block; font-size: 16px; }
.points li::before {
  content: ''; position: absolute; left: 18px; top: 19px; width: 20px; height: 20px; border-radius: 999px;
  background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0a0a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.ink .points li { background: var(--ink-field); color: var(--ink-muted); }
.ink .points li strong { color: var(--ink-text); }
.ink :focus-visible { outline-color: var(--lime); }

.foot { margin-top: 72px; padding: 32px 0 48px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; color: var(--muted); }
.foot nav a:hover { color: var(--text); }

/* The picture in each band: drawn in markup, so it follows the theme */
:root { --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; }
.visual { border-radius: 20px; min-width: 0; }
.visual b { font-weight: 600; }

/* Platform: a deploy in a terminal */
.term { background: var(--ink-field); padding: 6px 6px 8px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); }
.term-bar { display: flex; align-items: center; gap: 6px; padding: 8px 10px 10px; }
.term-bar span { width: 10px; height: 10px; border-radius: 999px; background: #333; }
.term-bar span:first-child { background: var(--lime); }
.term-bar em { margin-left: auto; font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--ink-muted); }
.term pre { margin: 0; padding: 4px 14px 14px; font-family: var(--mono); font-size: 13.5px; line-height: 1.8; overflow-x: auto; color: var(--ink-text); }
.term .ln { display: block; white-space: pre; }
.term .p { color: var(--lime); }
.term .o { color: #c9c9c9; }
.term .c { color: var(--ink-muted); }
.term .ok { color: var(--on-lime); background: var(--lime); border-radius: 4px; padding: 0 4px; }
.term .url { color: var(--lime); }
.term .cursor { display: inline-block; width: 8px; height: 1.1em; vertical-align: -0.2em; background: var(--ink-text); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Bot: a team in one conversation */
.chat { background: var(--raised); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.chat-head { display: flex; align-items: center; gap: 10px; padding-bottom: 4px; }
.team { display: inline-flex; }
.team svg { width: 26px; height: 26px; margin-right: -6px; }
.chat-title { font-weight: 700; margin-left: 8px; }
.chat-meta { margin-left: auto; font-size: 13px; color: var(--muted); }
.msg { display: flex; gap: 10px; align-items: flex-start; }
.msg .av { width: 34px; height: 34px; flex-shrink: 0; }
.msg > div { background: var(--surface); border-radius: 4px 16px 16px 16px; padding: 10px 14px; font-size: 14px; }
.msg b { display: block; font-size: 13px; }
.msg b i { font-style: normal; font-weight: 500; color: var(--muted); margin-left: 4px; }
.msg p { color: var(--muted); margin-top: 2px; }
.msg.you { justify-content: flex-end; }
.msg.you > div { background: var(--lime); color: var(--on-lime); border-radius: 16px 4px 16px 16px; max-width: 80%; }
.msg.you p { color: inherit; opacity: 0.75; }
.typing { display: inline-flex; gap: 4px; padding: 6px 0 2px; }
.typing span { width: 6px; height: 6px; border-radius: 999px; background: var(--muted); animation: bob 1.2s ease-in-out infinite; }
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes bob { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-3px); opacity: 1; } }

/* Build: every agent on every computer */
.sessions { background: var(--raised); padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.sess-head { display: flex; justify-content: space-between; padding: 8px 10px 6px; font-weight: 700; }
.sess-count { font-weight: 500; font-size: 13px; color: var(--muted); }
.sess { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface); }
.sess > div { flex: 1; min-width: 0; }
.sess b { display: block; font-size: 15px; }
.sess small { display: block; font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st { width: 10px; height: 10px; border-radius: 999px; flex-shrink: 0; background: var(--muted); }
.st.working { background: var(--text); animation: pulse 1.6s ease-in-out infinite; }
.st.needs { background: transparent; box-shadow: inset 0 0 0 2px var(--text); }
.st.ready { background: var(--lime); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lime) 35%, transparent); }
@keyframes pulse { 50% { opacity: 0.3; } }
.tag { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--raised); color: var(--muted); white-space: nowrap; }
.tag.needs { background: var(--text); color: var(--bg); }
.tag.ready { background: var(--lime); color: var(--on-lime); }

/* Played once as each picture scrolls in, when the script runs; still otherwise */
.js-reveal .term .ln, .js-reveal .chat .msg, .js-reveal .sessions .sess { opacity: 0; transform: translateY(6px); transition: opacity 0.4s, transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); }
.js-reveal .in .ln, .js-reveal .in .msg, .js-reveal .in .sess { opacity: 1; transform: none; }
.js-reveal .in .l2, .js-reveal .in .m2, .js-reveal .in .sess:nth-child(3) { transition-delay: 0.5s; }
.js-reveal .in .l3, .js-reveal .in .m3, .js-reveal .in .sess:nth-child(4) { transition-delay: 0.9s; }
.js-reveal .in .l4, .js-reveal .in .m4, .js-reveal .in .sess:nth-child(5) { transition-delay: 1.4s; }
.js-reveal .in .l5 { transition-delay: 1.7s; }
.js-reveal .in .l6 { transition-delay: 2s; }
@media (prefers-reduced-motion: reduce) {
  .js-reveal .term .ln, .js-reveal .chat .msg, .js-reveal .sessions .sess { opacity: 1; transform: none; transition: none; }
  .term .cursor, .typing span, .st.working { animation: none; }
}

/* Narrower screens */
@media (max-width: 1000px) {
  .product-in { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 36px; }
}
@media (max-width: 760px) {
  .product-in > .points { grid-template-columns: minmax(0, 1fr); }
  .top-nav { display: none; }
  .jump { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-top: 48px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .product-in { padding: 28px 20px; border-radius: 24px; }
  .lede { font-size: 18px; }
  .term pre { font-size: 12px; padding: 4px 10px 12px; }
  .chat { padding: 14px; }
  .sess { padding: 10px 12px; }
}
