/* ===========================================================
   iKyle Labs — Blueprint Glass
   Shared stylesheet
   =========================================================== */

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

:root {
  --ink: #142038;
  --ink-soft: #41507a;
  --ink-soft-2: #4a577a;
  --ink-mono: #5a6699;
  --blue: #1f74e0;
  --blue-deep: #2563eb;
  --blue-bright: #1f8fff;
  --paper: #eef2fb;
  --line: rgba(31, 79, 216, .12);
  --glass: rgba(255, 255, 255, .6);
  --glass-strong: rgba(255, 255, 255, .62);
  --glass-border: rgba(255, 255, 255, .85);
  --grad: linear-gradient(140deg, #2563eb, #1f8fff);
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'Sora', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --shadow-card: 0 9px 24px rgba(40, 70, 160, .12);
  --maxw: 1140px;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(31, 79, 216, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 79, 216, .05) 1px, transparent 1px),
    linear-gradient(rgba(31, 111, 235, .1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 111, 235, .1) 1px, transparent 1px);
  background-size: 28px 28px, 28px 28px, 140px 140px, 140px 140px;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
input::placeholder, textarea::placeholder { color: inherit; opacity: .5; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

/* ---------- Nav ---------- */
.nav {
  position: relative;
  z-index: 30;
  background: rgba(238, 242, 251, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand svg { width: 46px; height: 46px; }
.brand-name { font-weight: 700; letter-spacing: -.01em; font-size: 16px; }
.brand-name span { font-weight: 400; color: var(--blue-bright); }

.menu {
  display: flex;
  gap: 4px;
  align-items: center;
  font-size: 14px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, .55);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .75);
  padding: 6px;
  border-radius: 30px;
  box-shadow: 0 4px 16px rgba(40, 70, 160, .1);
}
.menu a {
  padding: 8px 16px;
  border-radius: 24px;
  transition: color .15s ease, background .15s ease;
  white-space: nowrap;
}
.menu a:hover { color: var(--ink); }
.menu a.active {
  background: var(--grad);
  color: #fff;
  font-weight: 600;
}

.nav-toggle { display: none; }

/* ---------- Hero / page head ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 100px;
}
.page-head {
  position: relative;
  overflow: hidden;
  padding: 72px 0 52px;
}
.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--blue);
  margin-bottom: 18px;
}
.pill {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--blue);
  background: rgba(255, 255, 255, .6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .75);
  padding: 8px 16px;
  border-radius: 30px;
  margin-bottom: 24px;
}
h1.display {
  font-size: clamp(40px, 6vw, 62px);
  line-height: 1.12;
  letter-spacing: -.03em;
  font-weight: 700;
  margin: 0 0 18px;
  padding-bottom: .06em;
  background: linear-gradient(135deg, #142038 25%, #2f53c8 65%, #1f8fff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lede {
  font-size: clamp(17px, 2.4vw, 19px);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 780px;
  margin: 0;
}
.hero .lede {
  margin-bottom: 36px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  border-radius: 14px;
  cursor: pointer;
  font-family: inherit;
  padding: 15px 26px;
  transition: filter .15s ease, background .15s ease;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 20px rgba(31, 120, 240, .38);
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-dark {
  background: #111827;
  color: #fff;
  padding-top: 11px;
  padding-bottom: 11px;
  box-shadow: 0 7px 18px rgba(20, 32, 56, .22);
}
.btn-dark:hover { background: #1f2937; }
.btn-ghost {
  background: rgba(255, 255, 255, .6);
  backdrop-filter: blur(10px);
  color: #1857c4;
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: 0 6px 16px rgba(40, 70, 160, .1);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .9); }
.btn.disabled { cursor: default; opacity: .55; box-shadow: none; }
.btn-sm { padding: 11px 22px; font-size: 14px; border-radius: 11px; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-alt {
  background: linear-gradient(180deg, #f3f5fd, #eef2fb);
  border-top: 1px solid var(--line);
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-size: clamp(23px, 3.4vw, 27px);
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 0;
}
.tag-mono {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--blue);
  letter-spacing: .1em;
}

/* ---------- Glass card ---------- */
.card {
  border-radius: 16px;
  background: var(--glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.card-body { padding: 22px; }
.card .kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--blue);
  margin-bottom: 9px;
}
.card h3 { margin: 0 0 7px; font-size: 19px; font-weight: 700; }
.card p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-soft-2); }

.thumb {
  height: 148px;
  background-image: repeating-linear-gradient(45deg, rgba(31, 111, 235, .1) 0 9px, transparent 9px 18px);
  border-bottom: 1px dashed rgba(31, 111, 235, .3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(31, 116, 224, .7);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ---------- Newsletter ---------- */
.newsletter {
  border-radius: 22px;
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 16px 44px rgba(40, 70, 160, .14);
  padding: 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.newsletter::before {
  content: "";
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 160px;
  background: radial-gradient(circle, rgba(31, 143, 255, .26), transparent 70%);
  filter: blur(30px);
}
.newsletter > * { position: relative; z-index: 1; }
.newsletter h2 { font-size: clamp(26px, 4vw, 30px); font-weight: 700; letter-spacing: -.02em; margin: 0 0 10px; }
.newsletter p { font-size: 15px; line-height: 1.6; color: var(--ink-soft-2); margin: 0 auto 24px; max-width: 420px; }
.field {
  display: flex;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto;
  align-items: stretch;
  border: 1px solid rgba(31, 143, 255, .3);
  border-radius: 14px;
  padding: 5px;
  background: rgba(255, 255, 255, .7);
  text-align: left;
}
.field .prompt { display: flex; align-items: center; padding-left: 13px; color: var(--blue); font-size: 15px; font-family: var(--mono); }
.field input { flex: 1; background: transparent; border: none; color: var(--ink); padding: 11px 8px; font-size: 15px; font-family: inherit; outline: none; }
.field .btn { border-radius: 11px; padding: 11px 20px; }

/* ---------- Apps: product rows ---------- */
.rows { display: flex; flex-direction: column; gap: 24px; }
.prow {
  display: flex;
  border-radius: 18px;
  overflow: hidden;
  background: var(--glass-strong);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-card);
}
.prow .thumb {
  width: 300px;
  flex: none;
  height: auto;
  border-bottom: none;
  border-right: 1px dashed rgba(31, 111, 235, .3);
}
.thumb-image { width: 100%; height: 100%; object-fit: cover; }
.prow-body { flex: 1; padding: 32px 34px; display: flex; flex-direction: column; gap: 14px; }
.prow-body h3 { margin: 0; font-size: 24px; font-weight: 700; }
.prow-body h3 a:hover { color: var(--blue); }
.prow-body p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-soft-2); max-width: 520px; }
.prow-meta { display: flex; align-items: center; gap: 10px; }
.prow-meta .kicker { margin: 0; }
.ver { font-family: var(--mono); font-size: 11px; color: #7a85a8; }
.chip {
  font-size: 12px;
  font-family: var(--mono);
  color: var(--ink-soft);
  border: 1px solid rgba(31, 79, 216, .25);
  border-radius: 20px;
  padding: 5px 12px;
}
.prow-cta { display: flex; align-items: center; gap: 12px; margin-top: 6px; flex-wrap: wrap; width: 100%; }
.prow-platforms { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.prow-cta .btn-dark { border-radius: 18px; }
.prow-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

/* ---------- Studio: principles ---------- */
.principle { padding: 28px; }
.principle .num { font-family: var(--mono); font-size: 28px; color: var(--blue); margin-bottom: 14px; }
.principle h3 { margin: 0 0 8px; font-size: 19px; font-weight: 700; }
.principle p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-soft-2); }

.split {
  border-radius: 22px;
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 16px 44px rgba(40, 70, 160, .14);
  padding: 44px 48px;
  display: flex;
  gap: 44px;
  align-items: center;
}
.split-main { flex: 1; }
.split-main h2 { font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 12px; }
.split-main p { font-size: 15px; line-height: 1.7; color: var(--ink-soft-2); margin: 0; }
.factbox { flex: none; width: 240px; display: flex; flex-direction: column; gap: 14px; font-family: var(--mono); }
.fact { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-soft); border-bottom: 1px dashed rgba(31, 111, 235, .3); padding-bottom: 10px; }
.fact:last-child { border-bottom: none; padding-bottom: 0; }
.fact b { color: var(--ink); font-weight: 400; }

/* ---------- Blog ---------- */
.searchbar { display: flex; gap: 14px; align-items: center; margin-bottom: 24px; flex-wrap: wrap; }
.search {
  flex: 1;
  min-width: 240px;
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--glass-strong);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 9px 24px rgba(40, 70, 160, .1);
  border-radius: 13px;
  padding: 13px 18px;
}
.search input { flex: 1; background: transparent; border: none; outline: none; font-size: 15px; font-family: var(--sans); color: var(--ink); }
.filters { display: flex; gap: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; }
.filters span, .filters a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 11px;
  cursor: pointer;
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  color: var(--ink-soft);
  font: inherit;
  line-height: 1;
  white-space: nowrap;
}
.filters span.on, .filters a.on { background: var(--grad); color: #fff; border-color: transparent; }

.posts { display: flex; flex-direction: column; gap: 18px; }
.post {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  border-radius: 16px;
  background: var(--glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-card);
  padding: 28px 32px;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.post:hover { box-shadow: 0 14px 30px rgba(40, 70, 160, .16); border-color: rgba(31, 143, 255, .55); }
.post-meta { flex: none; width: 120px; display: flex; flex-direction: column; gap: 11px; align-items: flex-start; font-family: var(--mono); font-size: 12px; color: #7a85a8; padding-top: 4px; }
.badge { font-size: 10px; letter-spacing: .14em; padding: 4px 10px; border-radius: 20px; }
.badge-release { color: #fff; background: var(--grad); }
.badge-essay { color: var(--blue); border: 1px solid rgba(31, 143, 255, .4); }
.post h3 { margin: 0 0 8px; font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.post p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-soft-2); max-width: 640px; }

.pager { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; font-family: var(--mono); flex-wrap: wrap; gap: 12px; }
.pager .count { font-size: 12px; color: #7a85a8; letter-spacing: .04em; }
.pager .pages { display: flex; gap: 8px; align-items: center; }
.pg { display: flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; border-radius: 10px; background: var(--glass-strong); border: 1px solid var(--glass-border); color: var(--ink-soft); font-size: 13px; cursor: pointer; }
.pg.on { background: var(--grad); color: #fff; border-color: transparent; }
.pg.disabled { color: #9aa3bd; cursor: not-allowed; }
.pg.dots { border: none; background: none; color: #9aa3bd; min-width: 0; }

/* ---------- Blog post ---------- */
.article-head { position: relative; overflow: hidden; padding: 44px 0 44px; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--blue);
  background: rgba(255, 255, 255, .6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .8);
  padding: 8px 14px;
  border-radius: 24px;
  margin-bottom: 24px;
  transition: background .15s ease;
}
.back-link:hover { background: rgba(255, 255, 255, .9); }
.post-badges { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-family: var(--mono); font-size: 12px; color: #7a85a8; }
.post-badges .dot { color: #c3cad9; }
h1.article-title {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.08;
  letter-spacing: -.03em;
  font-weight: 700;
  margin: 0 0 20px;
  background: linear-gradient(135deg, #142038 30%, #2f53c8 70%, #1f8fff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.dek { font-size: clamp(18px, 2.6vw, 20px); line-height: 1.55; color: var(--ink-soft); margin: 0 0 28px; }
.byline { display: flex; align-items: center; gap: 13px; }
.byline .avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  background-image: repeating-linear-gradient(45deg, rgba(31, 111, 235, .18) 0 6px, transparent 6px 12px);
  border: 1px solid rgba(31, 111, 235, .3);
}
.byline .who { font-size: 14px; font-weight: 600; color: var(--ink); }
.byline .role { font-family: var(--mono); font-size: 12px; color: #7a85a8; }

.cover {
  height: 320px;
  border-radius: 18px;
  overflow: hidden;
  background-image: repeating-linear-gradient(45deg, rgba(31, 111, 235, .1) 0 9px, transparent 9px 18px);
  border: 1px dashed rgba(31, 111, 235, .3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 13px;
  color: rgba(31, 116, 224, .7);
  margin-bottom: 40px;
}

.prose { font-size: 17px; line-height: 1.8; color: #31405f; }
.prose > p { margin: 0 0 24px; }
.prose h2 { font-size: clamp(23px, 3.2vw, 27px); font-weight: 700; letter-spacing: -.02em; color: var(--ink); margin: 40px 0 16px; }
.prose ul { margin: 0 0 28px; padding-left: 22px; }
.prose li { margin-bottom: 10px; }
.prose blockquote {
  margin: 0 0 32px;
  padding: 20px 26px;
  border-left: 3px solid var(--blue-bright);
  background: rgba(31, 143, 255, .06);
  border-radius: 0 12px 12px 0;
  font-size: 19px;
  line-height: 1.6;
  color: #2b3a59;
  font-style: italic;
}

.code {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(31, 79, 216, .18);
  box-shadow: 0 8px 22px rgba(40, 70, 160, .1);
  margin: 0 0 28px;
}
.code-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  background: #16233c;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: #8fb4ff;
}
.code-head .tl { width: 11px; height: 11px; border-radius: 50%; }
.code-head .name { margin-left: 8px; }
.code pre { margin: 0; padding: 20px 18px; background: #0f1a30; overflow-x: auto; font-family: var(--mono); font-size: 13px; line-height: 1.7; color: #cdd9f5; }
.code .cm { color: #6f86c9; }
.code .kw { color: #7ec7ff; }
.code .fn { color: #8fe6b4; }

.stat-strip { display: flex; gap: 16px; margin: 0 0 32px; flex-wrap: wrap; }
.stat {
  flex: 1;
  min-width: 180px;
  border-radius: 14px;
  background: var(--glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 9px 24px rgba(40, 70, 160, .1);
  padding: 22px;
}
.stat .n { font-size: 34px; font-weight: 700; letter-spacing: -.02em; color: var(--blue); }
.stat .l { font-family: var(--mono); font-size: 12px; color: #7a85a8; margin-top: 6px; }

.post-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px dashed rgba(31, 111, 235, .3);
  gap: 16px;
  flex-wrap: wrap;
}
.tags { display: flex; gap: 8px; font-family: var(--mono); font-size: 12px; flex-wrap: wrap; }
.tags span { color: var(--ink-soft); border: 1px solid rgba(31, 79, 216, .25); border-radius: 20px; padding: 5px 12px; }

.adjacent { display: flex; gap: 20px; }
.adjacent a {
  flex: 1;
  border-radius: 16px;
  background: var(--glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-card);
  padding: 24px 28px;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.adjacent a:hover { box-shadow: 0 14px 30px rgba(40, 70, 160, .16); border-color: rgba(31, 143, 255, .55); }
.adjacent .dir { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--blue); margin-bottom: 10px; }
.adjacent .t { font-size: 17px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.adjacent .next { text-align: right; }

/* ---------- Blog search (dense) ---------- */
.search-hero { padding: 40px 0 24px; }
.search-big {
  display: flex;
  align-items: center;
  gap: 13px;
  background: var(--glass-strong);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 9px 24px rgba(40, 70, 160, .1);
  border-radius: 15px;
  padding: 16px 20px;
}
.search-big svg { flex: none; }
.search-big input { flex: 1; background: transparent; border: none; outline: none; font-size: 19px; font-family: var(--sans); color: var(--ink); font-weight: 500; }
.search-big .kbd {
  font-family: var(--mono);
  font-size: 11px;
  color: #7a85a8;
  border: 1px solid rgba(31, 79, 216, .2);
  border-radius: 7px;
  padding: 4px 8px;
  white-space: nowrap;
}

.results-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 22px 0 16px;
  flex-wrap: wrap;
}
.results-bar .rc { font-size: 14px; color: var(--ink-soft); }
.results-bar .rc b { color: var(--ink); font-weight: 600; }
.results-bar .rc .q { color: var(--blue); font-weight: 600; }
.sort { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; color: #7a85a8; letter-spacing: .04em; }
.sort select {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink);
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  border-radius: 9px;
  padding: 8px 10px;
  cursor: pointer;
  outline: none;
}

.search-layout { display: block; }

.facets { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.dd { position: relative; }
.dd > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--glass-strong);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 14px rgba(40, 70, 160, .08);
  font-size: 14px;
  color: var(--ink);
  white-space: nowrap;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.dd > summary::-webkit-details-marker { display: none; }
.dd > summary:hover { border-color: rgba(31, 143, 255, .5); }
.dd[open] > summary { border-color: rgba(31, 143, 255, .55); box-shadow: 0 0 0 3px rgba(31, 143, 255, .12); }
.dd .lbl-k { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: #9aa3bd; }
.dd .lbl-v { font-weight: 600; }
.dd .cv { display: flex; color: var(--blue); transition: transform .15s ease; }
.dd[open] .cv { transform: rotate(180deg); }
.dd-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 8;
  min-width: 210px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(40, 70, 160, .18);
  padding: 8px;
}
.dd-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 9px;
  cursor: pointer;
  font-size: 14px;
  color: var(--ink-soft);
}
.dd-opt:hover { background: rgba(31, 143, 255, .08); color: var(--ink); }
.dd-opt input { accent-color: var(--blue-deep); width: 15px; height: 15px; margin: 0; }
.dd-opt .ct { margin-left: auto; font-family: var(--mono); font-size: 11px; color: #9aa3bd; }

/* dense result rows: dividers, tight padding */
.results { border-top: 1px solid var(--line); }
.result {
  display: grid;
  grid-template-columns: 104px 1fr auto;
  gap: 20px;
  align-items: baseline;
  padding: 15px 14px;
  border-bottom: 1px solid var(--line);
  transition: background .12s ease;
}
.result:hover { background: rgba(255, 255, 255, .5); }
.result .date { font-family: var(--mono); font-size: 12px; color: #7a85a8; padding-top: 1px; white-space: nowrap; }
.result .main { min-width: 0; }
.result .rt { display: flex; align-items: center; gap: 9px; margin-bottom: 4px; flex-wrap: wrap; }
.result h3 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.result .snip { margin: 0; font-size: 13px; line-height: 1.55; color: var(--ink-soft-2); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.result mark { background: rgba(31, 143, 255, .22); color: var(--ink); border-radius: 3px; padding: 0 2px; }
.result .prod { font-family: var(--mono); font-size: 11px; color: #9aa3bd; white-space: nowrap; padding-top: 1px; }
.badge-sm { font-size: 9px; letter-spacing: .12em; padding: 3px 8px; border-radius: 16px; }

/* ---------- App detail ---------- */
.app-hero { position: relative; overflow: hidden; padding: 40px 0 52px; }
.app-hero-row { display: flex; gap: 36px; align-items: center; }
.app-hero-main { flex: 1; }
.app-kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-family: var(--mono); }
.app-kicker .k { font-size: 12px; letter-spacing: .14em; color: var(--blue); }
.app-kicker .ver { font-size: 12px; color: #7a85a8; }
h1.app-title {
  font-size: clamp(38px, 6vw, 56px);
  line-height: 1.03;
  letter-spacing: -.03em;
  font-weight: 700;
  margin: 0 0 18px;
  background: linear-gradient(135deg, #142038 30%, #2f53c8 70%, #1f8fff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.app-tagline { font-size: clamp(17px, 2.4vw, 19px); line-height: 1.6; color: var(--ink-soft); max-width: 640px; margin: 0 0 26px; }
.app-platforms { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; flex-wrap: wrap; }
.app-icon {
  flex: none;
  width: 150px;
  height: 150px;
  border-radius: 34px;
  background: linear-gradient(145deg, #16323c, #1b4b57);
  box-shadow: 0 18px 44px rgba(20, 50, 80, .34);
  display: flex;
  align-items: center;
  justify-content: center;
}

.shot {
  width: 100%;
  appearance: none;
  border-radius: 18px;
  overflow: hidden;
  background-image: repeating-linear-gradient(45deg, rgba(31, 111, 235, .1) 0 9px, transparent 9px 18px);
  border: 1px dashed rgba(31, 111, 235, .3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(31, 116, 224, .7);
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.shot img { width: 100%; height: 100%; object-fit: contain; background: transparent; }
.shot:hover { border-color: rgba(31, 143, 255, .6); box-shadow: inset 0 0 0 1px rgba(31, 143, 255, .16); }
.shot:focus-visible { outline: 3px solid rgba(31, 143, 255, .35); outline-offset: 4px; }
.shot-hero { height: 360px; font-size: 13px; margin-bottom: 0; }

.detail-grid { display: flex; gap: 24px; align-items: flex-start; }
.gallery { flex: 1; display: flex; flex-direction: column; gap: 16px; }
.gallery:empty { display: none; }
.gallery-row { display: flex; gap: 16px; }
.gallery .shot { min-height: 150px; flex: 1; }
.gallery .shot.tall { min-height: 170px; }
.app-primary-section { padding-top: 28px; padding-bottom: 28px; }
.app-detail-section { padding-top: 32px; padding-bottom: 32px; }
.app-gallery {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.app-gallery .shot { min-height: 0; aspect-ratio: 1; }
.app-gallery .shot:first-child { grid-row: 1 / span 2; }
.app-gallery .shot img { object-fit: cover; }
.app-description-section { padding-top: 36px; padding-bottom: 36px; }
.app-description-section .tag-mono { margin-bottom: 20px; }
.app-description-layout { display: grid; grid-template-columns: minmax(220px, .75fr) minmax(0, 1.5fr); gap: 56px; align-items: start; }
.app-description-layout h2 { margin: 0; font-size: clamp(24px, 3.4vw, 32px); line-height: 1.25; }
.app-description-copy { max-width: 720px; }
.app-description-copy p { margin: 0 0 18px; font-size: 15px; line-height: 1.75; color: var(--ink-soft-2); }
.app-description-copy p:last-child { margin-bottom: 0; }
.app-description-copy .lead { font-size: 17px; line-height: 1.7; color: var(--ink-soft); }
.app-features-section { padding-top: 36px; padding-bottom: 48px; }
.specs {
  flex: none;
  width: 320px;
  border-radius: 20px;
  background: var(--glass-strong);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 12px 32px rgba(40, 70, 160, .13);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-family: var(--mono);
}
.specs .sh { font-size: 11px; letter-spacing: .14em; color: var(--blue); margin-bottom: 2px; }
.spec { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-soft); border-bottom: 1px dashed rgba(31, 111, 235, .3); padding-bottom: 12px; }
.spec:last-of-type { border-bottom: none; padding-bottom: 0; }
.spec b { color: var(--ink); font-weight: 400; }
.specs .btn { margin-top: 8px; justify-content: center; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 34px;
}
.lightbox.open { display: flex; }
body.lightbox-lock { overflow: hidden; }
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 13, 24, .78);
  backdrop-filter: blur(5px);
}
.lightbox-dialog {
  position: relative;
  width: min(1080px, 100%);
  display: block;
}
.lightbox-frame {
  margin: 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.lightbox-media {
  position: relative;
  width: fit-content;
  max-width: calc(100% - 148px);
  margin: 0 auto;
}
.lightbox-shot {
  width: fit-content;
  max-width: 100%;
  height: auto;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  cursor: default;
}
.lightbox-shot img { display: block; width: auto; height: auto; max-width: 100%; max-height: min(68vh, 620px); object-fit: contain; }
.lightbox-shot:hover { border: none; box-shadow: none; }
.lightbox-frame figcaption {
  width: 100%;
  margin-top: 14px;
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(255, 255, 255, .82);
}
.lightbox-close,
.lightbox-nav {
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .12);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
}
.lightbox-close {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  width: 56px;
  height: 72px;
  border-radius: 18px;
  font-size: 44px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transform: translateY(-50%);
}
.lightbox-prev { right: calc(100% + 18px); }
.lightbox-next { left: calc(100% + 18px); }
.lightbox-close:hover,
.lightbox-nav:hover { background: rgba(255, 255, 255, .2); }
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible { outline: 3px solid rgba(31, 143, 255, .55); outline-offset: 3px; }

/* ---------- Contact ---------- */
.contact-grid { display: flex; gap: 24px; align-items: stretch; }
.form-card {
  flex: 1;
  border-radius: 20px;
  background: var(--glass-strong);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 12px 32px rgba(40, 70, 160, .13);
  padding: 36px;
}
.form-col { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: flex; gap: 16px; }
.form-row > div { flex: 1; }
label.lbl { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--blue); margin-bottom: 8px; }
.inp {
  width: 100%;
  background: rgba(255, 255, 255, .7);
  border: 1px solid rgba(31, 143, 255, .25);
  color: var(--ink);
  padding: 13px 14px;
  font-size: 15px;
  border-radius: 11px;
  font-family: inherit;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.inp:focus { border-color: var(--blue-bright); box-shadow: 0 0 0 3px rgba(31, 143, 255, .15); }
textarea.inp { resize: vertical; }
.channels {
  flex: none;
  width: 320px;
  border-radius: 20px;
  background: var(--glass-strong);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 12px 32px rgba(40, 70, 160, .13);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.channel .k { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--blue); margin-bottom: 8px; }
.channel .v { font-size: 16px; font-weight: 600; word-break: break-word; }
.hr { height: 1px; background: rgba(31, 111, 235, .2); }

/* ---------- Footer ---------- */
.site-foot {
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.site-foot .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
  padding-bottom: 22px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-mono);
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .split { flex-direction: column; align-items: stretch; }
  .factbox { width: 100%; }
  .contact-grid { flex-direction: column; }
  .contact-grid .channels { order: -1; }
  .channels { width: 100%; }
  .prow { flex-direction: column; }
  .prow .thumb { width: 100%; height: 120px; border-right: none; border-bottom: 1px dashed rgba(31, 111, 235, .3); }
  .post { flex-direction: column; gap: 14px; }
  .post-meta { flex-direction: row; width: auto; align-items: center; }
  .adjacent { flex-direction: column; }
  .adjacent .next { text-align: left; }
  .facet-group + .facet-group { border-left: none; padding-left: 0; }
  .result { grid-template-columns: 1fr; gap: 5px; }
  .result .date { padding-top: 0; }
  .result .prod { display: none; }
}

@media (max-width: 760px) {
  .grid-3 { grid-template-columns: 1fr; }
  .detail-grid { flex-direction: column; }
  .specs { width: 100%; }
  .app-hero-row { flex-direction: column; align-items: flex-start; }
  .gallery-row { flex-direction: column; }
  .app-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto;
  }
  .app-gallery .shot:first-child { grid-column: 1 / -1; grid-row: auto; }
  .app-description-layout { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 680px) {
  .wrap, .nav-inner { padding-left: 20px; padding-right: 20px; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .6);
    border: 1px solid var(--glass-border);
    cursor: pointer;
  }
  .menu {
    position: absolute;
    z-index: 31;
    top: calc(100% + 8px);
    right: 20px;
    left: 20px;
    flex-direction: column;
    align-items: stretch;
    background: rgba(255, 255, 255, .96);
    border-radius: 18px;
    padding: 10px;
    gap: 2px;
    display: none;
  }
  .menu.open { display: flex; }
  .menu a { padding: 12px 16px; border-radius: 12px; }
  .hero { padding: 60px 0 68px; }
  .page-head { padding: 52px 0 40px; }
  .form-row { flex-direction: column; }
  .newsletter { padding: 36px 22px; }
  .field { flex-wrap: wrap; }
  .field input { min-width: 0; }
  .lightbox { padding: 18px; }
  .lightbox-dialog { width: 100%; }
  .lightbox-media { max-width: 100%; }
  .lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 58px; border-radius: 14px; font-size: 34px; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .lightbox-close { top: -12px; right: -8px; }
  .lightbox-shot { height: auto; }
  .lightbox-shot img { max-height: min(64vh, 520px); }
}

@media (max-width: 520px) {
  .prow-cta { align-items: stretch; gap: 14px; }
  .prow-platforms { width: 100%; }
  .prow-actions {
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
  }
}
