/* CGIntelligent — tamsi, redakcinė svetainė. Šriftai Geist (OFL) iš šio serverio, jokių skriptų. */
@font-face { font-family: "Geist"; src: url("/fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #0b0b0b;
  --bg-2: #111111;
  --line: #222222;
  --line-2: #2e2e2e;
  --fg: #ededeb;
  --fg-2: #a9a9a5;
  --fg-3: #75756f;
  --live: #3ec7b4;
  --warn: #d6b25e;
  --sans: "Geist", "Segoe UI Variable Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 500; }
h1 { font-size: clamp(40px, 6.2vw, 84px); line-height: 1.02; letter-spacing: -0.045em; max-width: 13ch; }
h2 { font-size: clamp(26px, 2.8vw, 36px); line-height: 1.12; letter-spacing: -0.03em; max-width: 14ch; }
h3 { font-size: 17px; line-height: 1.35; letter-spacing: -0.01em; }
p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
code, kbd, .mono { font-family: var(--mono); font-size: 0.875em; letter-spacing: -0.01em; }
.dim { color: var(--fg-3); }
.small { font-size: 14px; }
.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }
.narrow { width: min(700px, 100% - 48px); }
:focus-visible { outline: 2px solid var(--live); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--live); color: var(--bg); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 9; background: var(--fg); color: var(--bg); padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }

.label { font: 400 12px/1.5 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 20px; }
.lead { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.55; color: var(--fg-2); max-width: 36em; margin-top: 24px; }
.sub { color: var(--fg-2); margin-top: 16px; max-width: 26em; }

/* mygtukai ir nuorodos */
.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px;
  border-radius: 8px; background: var(--fg); color: var(--bg); font-weight: 500; font-size: 15px;
  transition: background .2s var(--ease);
}
.btn:hover { background: #fff; }
.btn.sm { height: 34px; padding: 0 14px; font-size: 14px; border-radius: 7px; }
.btn.off { background: transparent; color: var(--fg-2); box-shadow: inset 0 0 0 1px var(--line-2); cursor: default; }
.link { color: var(--fg); border-bottom: 1px solid var(--line-2); padding-bottom: 1px; transition: border-color .2s var(--ease); }
.link:hover { border-color: var(--fg); }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 36px; }

/* akys – prekės ženklas */
.eyes { display: inline-flex; gap: 0.36em; font-size: 20px; }
.eyes i {
  display: block; width: 0.28em; height: 0.5em; border-radius: 99px; background: currentColor;
  animation: blink 7s infinite; transform-origin: 50% 60%;
}
.eyes i + i { animation-delay: .04s; }
.eyes.sm { font-size: 18px; }
.eyes.lg { font-size: 64px; }
@keyframes blink { 0%, 95%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }

/* viršus */
.top { position: sticky; top: 0; z-index: 5; background: rgba(11, 11, 11, .94); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; letter-spacing: -0.02em; }
.top nav { display: flex; gap: 24px; margin-left: auto; font-size: 14px; color: var(--fg-2); }
.top nav a:hover, .lang:hover { color: var(--fg); }
.lang { font: 400 13px var(--mono); color: var(--fg-3); }

/* pirmas ekranas */
.hero { padding: clamp(72px, 12vw, 148px) 0 0; }
.meta-line { margin-top: 28px; }
.pipe { margin-top: clamp(72px, 10vw, 120px); border-top: 1px solid var(--line); padding-top: 28px; }
.pipe ol { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.pipe li { padding: 20px 22px 24px; background: var(--bg-2); display: grid; gap: 12px; align-content: start; }
.pipe li + li { border-left: 1px solid var(--line); }
.pipe .step { color: var(--fg-3); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.pipe li:last-child .step { color: var(--live); }
.pipe .val { font-size: 15px; line-height: 1.5; }
.pipe .note { margin-top: 18px; color: var(--fg-3); font-size: 14px; max-width: 60em; }

/* skiltys */
.sec { padding: clamp(72px, 9vw, 112px) 0; }
.sec + .sec { border-top: 1px solid var(--line); }
.hero + .sec { margin-top: clamp(72px, 9vw, 112px); border-top: 1px solid var(--line); }
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; align-items: start; }
.split > header { position: sticky; top: 100px; }
.split > header .link { display: inline-block; margin-top: 24px; font-size: 15px; }

.rows > div { display: grid; gap: 8px 32px; padding: 20px 0; border-top: 1px solid var(--line); }
.rows > div:last-child { border-bottom: 1px solid var(--line); }
.row3 { grid-template-columns: 11em 1fr; }
.row3 .say { grid-column: 2; color: var(--fg-3); }
.row2 { grid-template-columns: 11em 1fr; }
.rows dt { font-weight: 500; }
.rows dd { color: var(--fg-2); }

.steps { display: grid; gap: 0; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 3.5em 1fr; gap: 4px 0; padding: 20px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps .num { grid-row: span 2; color: var(--fg-3); padding-top: 2px; }
.steps p { color: var(--fg-2); }
.minor { margin: 40px 0 14px; font-size: 13px; font-family: var(--mono); font-weight: 400; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-3); }
.keys { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 32px; }
.keys > div { display: flex; align-items: baseline; gap: 14px; color: var(--fg-2); }
kbd { display: inline-block; min-width: 2.2em; text-align: center; padding: 2px 7px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; color: var(--fg); }

.status { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 48px; }
.status ul { display: grid; gap: 10px; }
.status li { position: relative; padding-left: 18px; color: var(--fg-2); }
.status li::before { content: ""; position: absolute; left: 0; top: .72em; width: 7px; height: 1px; background: var(--fg-3); }
.status .future { grid-column: 1 / -1; padding-top: 28px; border-top: 1px solid var(--line); }
.status .future p { color: var(--fg-2); max-width: 44em; }
.tag { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font: 400 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-3); }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; border: 1px solid var(--fg-3); }
.tag.ok::before { background: var(--live); border-color: var(--live); }
.tag.wip::before { border-color: var(--warn); }

.dl > p { color: var(--fg-2); max-width: 40em; }
.dl > p + p { margin-top: 12px; }
.dl .cta { margin-top: 0; }
.meta { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 18px 40px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.meta dt { font-size: 13px; color: var(--fg-3); margin-bottom: 4px; }
.meta .wide { grid-column: 1 / -1; }
.hash { word-break: break-all; color: var(--fg-2); font-size: 13px; }
.notes { display: grid; gap: 6px; color: var(--fg-2); }
.notes li { padding-left: 18px; position: relative; }
.notes li::before { content: "–"; position: absolute; left: 0; color: var(--fg-3); }

.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 24px; padding: 18px 0; cursor: pointer; list-style: none; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 18px/1 var(--mono); color: var(--fg-3); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--fg-2); max-width: 44em; }
.sec p + p { margin-top: 12px; }
#help .split > div > p { color: var(--fg-2); max-width: 44em; }
#help .link { margin-left: 4px; }

/* privatumas */
.doc h1 { font-size: clamp(36px, 5vw, 56px); max-width: none; }
.doc h2 { font-size: 22px; margin: 48px 0 16px; max-width: none; }
.doc ul { display: grid; gap: 12px; }
.doc li, .doc p:not(.label):not(.lead) { color: var(--fg-2); }
.doc li { padding-left: 18px; position: relative; }
.doc li::before { content: "–"; position: absolute; left: 0; color: var(--fg-3); }
.doc b { color: var(--fg); font-weight: 500; }
.doc code { color: var(--fg); }

/* 404 */
.lost { padding-bottom: clamp(96px, 14vw, 160px); }
.lost .eyes { color: var(--fg-3); margin-bottom: 40px; }
.lost-eyes i { animation: blink 7s infinite; height: .32em; }

/* apačia */
.foot { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: 14px; }
.foot .row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.foot-links { display: flex; gap: 24px; color: var(--fg-2); margin-left: auto; }
.foot-links a:hover { color: var(--fg); }

/* subtilus pasirodymas (tik pirmas ekranas) */
@media (prefers-reduced-motion: no-preference) {
  .hero .wrap > * { animation: rise .7s var(--ease) both; }
  .hero .wrap > :nth-child(2) { animation-delay: .05s; }
  .hero .wrap > :nth-child(3) { animation-delay: .1s; }
  .hero .wrap > :nth-child(4) { animation-delay: .15s; }
  .pipe li { animation: rise .6s var(--ease) both; animation-delay: .35s; }
  .pipe li:nth-child(2) { animation-delay: .43s; }
  .pipe li:nth-child(3) { animation-delay: .51s; }
  .pipe li:nth-child(4) { animation-delay: .59s; }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* planšetė */
@media (max-width: 900px) {
  .top nav { display: none; }
  .lang { margin-left: auto; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split > header { position: static; }
  .pipe ol { grid-template-columns: 1fr 1fr; }
  .pipe li:nth-child(3) { border-left: 0; }
  .pipe li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .meta { grid-template-columns: repeat(2, auto); }
}
/* telefonas */
@media (max-width: 560px) {
  .wrap, .narrow { width: calc(100% - 32px); }
  .bar { gap: 16px; }
  .pipe ol { grid-template-columns: 1fr; }
  .pipe li + li { border-left: 0; border-top: 1px solid var(--line); }
  .row3, .row2 { grid-template-columns: 1fr; }
  .row3 .say { grid-column: 1; }
  .keys, .status { grid-template-columns: 1fr; }
  .meta { grid-template-columns: 1fr 1fr; gap: 16px 24px; }
  .foot-links { margin-left: 0; }
}
