/* Blokcore site — one stylesheet, no build step. Tokens first, then components top to bottom of the page. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #0b0f17;
  --bg-2: #0e131c;
  --bg-3: #121926;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #e6edf5;
  --dim: #8b98ab;
  --accent: #3b6cf5;
  --accent-soft: rgba(59, 108, 245, 0.16);
  --accent-glow: rgba(59, 108, 245, 0.45);
  --light: #f5f7fa;
  --ink: #0b0f17;
  --r: 16px;
  --r-sm: 10px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --container: 1000px;
  --gutter: 24px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip { position: absolute; left: 16px; top: -48px; z-index: 100; padding: 10px 14px; background: var(--accent); color: #fff; border-radius: var(--r-sm); font-weight: 600; }
.skip:focus { top: 16px; }

.container { width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; }

.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Buttons: flex centering so the label never drifts to a corner, whatever the element is. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 48px;
  padding: 0 24px;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}
.btn .ic { width: 18px; height: 18px; }
.btn-light { background: var(--light); color: var(--ink); border: 1px solid rgba(255, 255, 255, 0.5); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
.btn-light:hover { background: #fff; }
.btn:active { transform: translateY(1px); }

/* ---------- Stage: background image behind header + hero ---------- */

.stage { position: relative; isolation: isolate; }

/* The mountains are anchored to the bottom of the stage at their own aspect ratio (as in the mockup: peaks beside the
   window, rocks under the caption). The sky above them is flat colour, so nothing is cropped or stretched. */
.stage-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: linear-gradient(to bottom, var(--bg), #09111b 45%); }
.stage-bg img {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: clamp(900px, 120%, 1700px);
  height: auto;
  transform: translateX(-50%);
  filter: brightness(1.12);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 28%);
  mask-image: linear-gradient(to bottom, transparent, #000 28%);
}
.stage-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(11, 15, 23, 0) calc(100% - 150px), var(--bg) 100%),
    radial-gradient(60% 16% at 50% 36%, rgba(80, 136, 255, 0.26), rgba(80, 136, 255, 0) 70%);
}

/* ---------- Header ---------- */

.site-header { padding: 18px 0; }

.header-row { display: flex; align-items: center; gap: 24px; }

.brand { flex: none; }
.brand img { height: 28px; width: auto; }

.menu { display: flex; align-items: center; flex: 1; gap: 24px; }

.site-nav { display: flex; gap: 40px; margin-inline: auto; font-size: 14px; font-weight: 500; }
.site-nav a { color: var(--text); padding: 6px 0; border-bottom: 1px solid transparent; transition: color 150ms ease, border-color 150ms ease; }
.site-nav a:hover { color: #fff; border-bottom-color: var(--line-strong); }

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 230px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(10, 14, 22, 0.55);
  color: var(--dim);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.search:focus-within { border-color: var(--accent); }
.search .ic { width: 18px; height: 18px; }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font-size: 13px; }
.search input::placeholder { color: var(--dim); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }

.menu-toggle { display: none; width: 44px; height: 44px; margin-left: auto; border-radius: var(--r-sm); border: 1px solid var(--line-strong); place-items: center; color: var(--text); }
.menu-toggle .ic { width: 22px; height: 22px; }
.menu-toggle .ic-close { display: none; }
.menu-toggle[aria-expanded="true"] .ic-menu { display: none; }
.menu-toggle[aria-expanded="true"] .ic-close { display: block; }

/* ---------- Hero ---------- */

.hero { padding: 40px 0 0; text-align: center; }

.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.34em; text-transform: uppercase; color: var(--dim); }

.hero h1 {
  margin-top: 8px;
  font-size: clamp(42px, 6vw, 66px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: #fff;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.5);
}

.lede { margin-top: 14px; font-size: clamp(17px, 1.8vw, 20px); color: #c7d1de; }

/* ---------- Showcase window ---------- */

.window {
  position: relative;
  width: 92%;
  height: 480px;
  margin: 44px auto 0;
  overflow: hidden;
  text-align: left;
  border-radius: 18px 18px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 0;
  background: var(--bg-2);
  box-shadow:
    0 -30px 120px -40px rgba(80, 136, 255, 0.45),
    0 40px 90px -30px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(0, 0, 0, 0.5);
  font-size: 13px;
}

.win-titlebar { display: flex; align-items: center; gap: 12px; height: 54px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.win-title { font-weight: 600; font-size: 14px; }
.win-controls { display: flex; gap: 18px; margin-left: auto; color: var(--dim); }
.win-controls svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; }

.tile { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 11px; background: linear-gradient(160deg, #4b86ff 0%, #2158e8 100%); box-shadow: 0 6px 18px rgba(59, 108, 245, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.tile img { width: 24px; height: 24px; }
.tile-sm { width: 30px; height: 30px; border-radius: 8px; }
.tile-sm img { width: 18px; height: 18px; }

.win-body { display: grid; grid-template-columns: 212px 1fr; height: calc(100% - 54px); }

.win-side { display: flex; flex-direction: column; padding: 14px 10px 48px; border-right: 1px solid var(--line); background: rgba(255, 255, 255, 0.015); }
.side-nav li { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; margin-bottom: 4px; border-radius: 9px; color: #c7d1de; white-space: nowrap; overflow: hidden; }
.side-nav li .ic { width: 18px; height: 18px; color: var(--dim); }
.side-nav li.is-active { background: var(--accent-soft); color: #fff; box-shadow: inset 2px 0 0 var(--accent); }
.side-nav li.is-active .ic { color: #8fb0ff; }
.side-brand { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 8px 6px; }
.side-brand img { opacity: 0.7; }
.side-brand strong { display: block; font-size: 12px; font-weight: 600; }
.side-brand small { display: block; font-size: 10px; color: var(--dim); white-space: nowrap; }

.win-main { min-width: 0; padding: 14px 16px; }

.win-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.win-h { font-size: 16px; font-weight: 600; margin-right: auto; }
.win-search { display: flex; align-items: center; gap: 8px; width: 170px; height: 34px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--dim); font-size: 12px; white-space: nowrap; overflow: hidden; }
.win-search .ic { width: 15px; height: 15px; }
.win-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 34px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface-2); font-weight: 500; white-space: nowrap; }
.win-btn .ic { width: 15px; height: 15px; }

.session {
  display: grid;
  grid-template-columns: minmax(150px, 1.3fr) minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 14px;
  height: 58px;
  padding: 0 14px;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.s-meta strong { display: block; font-size: 13px; font-weight: 600; line-height: 1.25; }
.s-meta span { display: block; font-size: 11.5px; color: var(--dim); line-height: 1.25; }
.s-count { color: #b7c2d0; font-size: 12px; white-space: nowrap; padding-right: 12px; }
.s-restore { display: inline-flex; align-items: center; justify-content: center; height: 30px; padding: 0 14px; border-radius: 7px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; line-height: 1; white-space: nowrap; }
.s-more { width: 18px; height: 18px; background: radial-gradient(circle, var(--dim) 1.3px, transparent 1.7px) center / 100% 33% repeat-y; }

.chips { display: flex; gap: 10px; min-width: 0; overflow: hidden; }
.chip { position: relative; width: 22px; height: 22px; border-radius: 6px; flex: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 1px 2px rgba(0, 0, 0, 0.35); }
.chip::after { content: ""; position: absolute; inset: 0; margin: auto; }
.chip.dot::after { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.92); }
.chip.ring::after { width: 9px; height: 9px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, 0.92); }
.chip.bar::after { width: 11px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.92); }
.c-red { background: #e4433f; }
.c-blue { background: #2f7cf6; }
.c-navy { background: #1e4fd6; }
.c-green { background: #2bb673; }
.c-emerald { background: #17b26a; }
.c-yellow { background: #f0b429; }
.c-orange { background: #f0752e; }
.c-purple { background: #8b5cf6; }
.c-pink { background: #ec4d9b; }
.c-ink { background: #1c2230; border: 1px solid rgba(255, 255, 255, 0.2); }
.c-white { background: #eef2f7; }
.c-white.bar::after { background: #d1322e; }

/* ---------- Caption strip overlapping the window ---------- */

.caption {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: -6px;
  padding: 26px 40px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: linear-gradient(100deg, rgba(20, 28, 40, 0.92), rgba(14, 19, 28, 0.96));
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-align: center;
}
.caption > p:first-child { flex: 1; max-width: 520px; margin-inline: auto; font-size: 15.5px; line-height: 1.55; color: #d8e0ea; }
.caption-tag { padding-left: 28px; border-left: 1px solid var(--line-strong); color: var(--dim); font-size: 14px; white-space: nowrap; }

/* ---------- Products ---------- */

.products { padding: 28px 0 96px; }

.product-tabs { display: flex; justify-content: center; border-top: 1px solid var(--line); }
.product-tab { position: relative; flex: 0 1 320px; }
.product-tab a { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 30px 24px 10px; color: var(--dim); transition: color 150ms ease; }
.product-tab a:hover { color: var(--text); }
.product-tab.is-active a { color: var(--text); }
.product-tab.is-active::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--accent); box-shadow: 0 0 22px 1px var(--accent-glow); }
.product-tab:not(.is-active) .tile { background: #2a3140; box-shadow: none; }
.tab-text strong { display: block; font-size: 15px; font-weight: 600; color: var(--text); }
.tab-text small { display: block; font-size: 12px; color: var(--dim); margin-top: 2px; }
.product-tab[hidden] { display: none; }

.search-empty { text-align: center; color: var(--dim); margin-top: 24px; }

.spotlight { margin-top: 22px; text-align: center; }
.spotlight h3 { font-size: clamp(34px, 4.2vw, 42px); font-weight: 700; letter-spacing: -0.03em; color: #fff; }
.spotlight p { margin-top: 10px; font-size: clamp(17px, 1.8vw, 20px); color: #c7d1de; }
.spotlight .btn { margin-top: 26px; min-width: 156px; }

/* ---------- Footer ---------- */

.site-footer { padding: 40px 0 48px; border-top: 1px solid var(--line); }
.footer-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.footer-row .brand img { height: 24px; }
.footer-nav { display: flex; gap: 32px; font-size: 14px; font-weight: 500; }
.footer-nav a:hover { color: #fff; }
.footer-meta { text-align: right; font-size: 12.5px; color: var(--dim); line-height: 1.7; }

/* ---------- Responsive ---------- */

@media (max-width: 1040px) {
  .site-nav { gap: 28px; }
  .search { width: 200px; }
}

@media (max-width: 900px) {
  .win-body { grid-template-columns: 184px 1fr; }
  .win-search { width: 150px; }
  .side-brand small { white-space: normal; }
  .chip:nth-child(n + 6) { display: none; }
}

@media (max-width: 760px) {
  .site-header { padding: 14px 0; }
  .header-row { flex-wrap: wrap; gap: 14px; }
  .menu-toggle { display: grid; }
  .menu { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 0 6px; }
  .menu.is-open { display: flex; }
  .site-nav { flex-direction: column; gap: 0; margin: 0; font-size: 16px; }
  .site-nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .site-nav a:hover { border-bottom-color: var(--line); }
  .search { width: 100%; height: 44px; margin-top: 8px; }
  .search input { font-size: 15px; }

  .hero { padding-top: 28px; }
  .window { width: 100%; height: 440px; margin-top: 32px; border-radius: 14px 14px 0 0; }
  .win-body { grid-template-columns: 1fr; }
  .win-side { display: none; }
  .win-main { padding: 12px; }
  .win-toolbar { flex-wrap: wrap; }
  .win-h { flex-basis: 100%; }
  .win-search { flex: 1; width: auto; }
  .win-btn span { display: none; }
  .win-btn { width: 34px; padding: 0; }

  .caption { flex-direction: column; gap: 14px; padding: 22px 20px; }
  .caption-tag { padding: 14px 0 0; border-left: 0; border-top: 1px solid var(--line-strong); width: 100%; }

  .products { padding-bottom: 72px; }
  .product-tab a { padding: 26px 8px 8px; }

  .footer-row { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 20px; }
  .footer-nav { flex-wrap: wrap; justify-content: center; gap: 12px 24px; }
  .footer-meta { text-align: center; }
}

@media (max-width: 560px) {
  .chips { display: none; }
  .session { grid-template-columns: 1fr auto auto; gap: 10px; height: 56px; }
  .s-count { padding-right: 4px; }
  .s-more { display: none; }
}

@media (max-width: 400px) {
  :root { --gutter: 16px; }
  .window { height: 410px; }
  .s-count { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
