/* 2026+ — світла AI-естетика.
   Сучасність тримається на трьох речах: масштаб типографіки, м'яка глибина
   (кольорові серпанки + багатошарові тіні) і жива сцена агента.

   Палітра: оптичний білий #FBFBFD · картка #FFFFFF · текст #101116
            вторинний #6B7080 · акцент #1450E6 · серпанки лаванда/мʼята/персик */

[data-era="2026"] #stage {
  --bg: #fbfbfd;
  --card: #ffffff;
  --ink: #101116;
  --soft: #6b7080;
  --faint: #9aa0ad;
  --line: rgba(16, 18, 27, 0.07);
  --line-2: rgba(16, 18, 27, 0.12);
  --brand: #1450e6;
  --brand-soft: rgba(20, 80, 230, 0.08);
  --shadow-s: 0 1px 2px rgba(16, 18, 27, 0.04), 0 4px 12px rgba(16, 18, 27, 0.04);
  --shadow-m: 0 2px 4px rgba(16, 18, 27, 0.04), 0 12px 32px -8px rgba(16, 18, 27, 0.1);
  --shadow-l: 0 4px 8px rgba(16, 18, 27, 0.04), 0 28px 60px -20px rgba(16, 18, 27, 0.18);
  --ui: system-ui, -apple-system, "Segoe UI Variable Display", "Segoe UI",
    Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  position: relative;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.e26 {
  position: relative;
  isolation: isolate;
}
.e26-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}
.e26 a {
  color: inherit;
  text-decoration: none;
}
.e26-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ── кольорові серпанки: глибина замість плаского білого ─────── */

.e26-aura {
  position: absolute;
  inset: 0 0 auto 0;
  height: 1500px;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
  --drift: 0px;
}
.e26-aura span {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.55;
  will-change: transform;
}
.e26-aura__a {
  top: -180px;
  left: -120px;
  width: 640px;
  height: 640px;
  background: #cdc9ff;
  transform: translateY(var(--drift));
}
.e26-aura__b {
  top: 60px;
  right: -180px;
  width: 560px;
  height: 560px;
  background: #b8ead8;
  transform: translateY(calc(var(--drift) * -0.7));
}
.e26-aura__c {
  top: 620px;
  left: 30%;
  width: 520px;
  height: 520px;
  background: #ffd8bf;
  opacity: 0.42;
  transform: translateY(calc(var(--drift) * 1.4));
}

/* ── верхня строка ───────────────────────────────────────────── */

.e26-top {
  position: sticky;
  top: var(--shell-h);
  z-index: 20;
  background: rgba(251, 251, 253, 0.72);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.e26-top__in {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  min-height: 58px;
  padding-block: 10px;
}
.e26-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.e26-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #24c07f;
}
.e26-online {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}
.e26-nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
  color: var(--soft);
  font-size: 14.5px;
}
.e26-nav a {
  transition: color 0.18s;
}
.e26-nav a:hover {
  color: var(--ink);
}
.e26-kbd {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
}
.e26-kbd kbd {
  display: inline-grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  border: 1px solid var(--line-2);
  border-radius: 5px;
  background: var(--card);
  box-shadow: 0 1px 0 rgba(16, 18, 27, 0.06);
  /* не моно: у моноширинних стеках часто немає гліфа ⌘ */
  font-family: var(--ui);
  font-size: 11px;
}

/* ── герой ───────────────────────────────────────────────────── */

.e26-hero {
  padding: 104px 0 72px;
}
.e26-eyebrow {
  margin: 0 0 20px;
  color: var(--brand);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.e26-h1 {
  max-width: 15ch;
  margin: 0 0 24px;
  font-size: clamp(46px, 7.4vw, 104px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.04em;
}
.e26-lede {
  max-width: 54ch;
  margin: 0 0 40px;
  color: var(--soft);
  font-size: 19px;
  letter-spacing: -0.005em;
}
.e26-lede--sm {
  margin-bottom: 32px;
  font-size: 17px;
}

/* поле запиту */
.e26-ask {
  max-width: 760px;
  padding: 14px 14px 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-l);
  transition: box-shadow 0.25s, border-color 0.25s;
}
.e26-ask:focus-within {
  border-color: rgba(20, 80, 230, 0.35);
  box-shadow: var(--shadow-l), 0 0 0 4px var(--brand-soft);
}
.e26-ask__row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}
.e26-ask__text {
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px 8px 10px 12px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  resize: none;
  field-sizing: content;
  max-height: 8em;
}
.e26-ask__text::placeholder {
  color: var(--faint);
}
.e26-ask__text:focus {
  outline: none;
}
.e26-ask__text.is-typing {
  caret-color: var(--brand);
}
.e26-go {
  flex: 0 0 auto;
  padding: 12px 24px;
  border: 0;
  border-radius: 13px;
  background: var(--brand);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background-color 0.18s, transform 0.18s;
}
.e26-go:hover {
  background: #0f3fc4;
  transform: translateY(-1px);
}
.e26-ask__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.e26-mini {
  flex: 0 1 190px;
  min-width: 0;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7f8fa;
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
}
.e26-mini::placeholder {
  color: var(--faint);
}
.e26-mini:focus {
  outline: none;
  border-color: rgba(20, 80, 230, 0.4);
  background: var(--card);
}
.e26-hint {
  margin-left: auto;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
}

.e26-msg {
  margin: 12px 4px 2px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
}
.e26-msg--error {
  background: #fff1f0;
  color: #b3261e;
}
.e26-msg--done {
  background: #eaf7f1;
  color: #10704c;
}

.e26-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 760px;
  margin-top: 16px;
}
.e26-chip {
  padding: 8px 15px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--soft);
  font-family: inherit;
  font-size: 13.5px;
  cursor: pointer;
  transition: border-color 0.18s, color 0.18s, background-color 0.18s, transform 0.18s;
}
.e26-chip:hover {
  border-color: rgba(20, 80, 230, 0.45);
  background: var(--card);
  color: var(--brand);
  transform: translateY(-1px);
}

/* ── секції ──────────────────────────────────────────────────── */

.e26-section {
  padding: 84px 0;
}
.e26-h2 {
  max-width: 18ch;
  margin: 0 0 34px;
  font-size: clamp(30px, 4.2vw, 52px);
  font-weight: 680;
  line-height: 1.04;
  letter-spacing: -0.032em;
}

/* статус агента */
.e26-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 8px 16px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow-s);
  color: var(--soft);
  font-family: var(--mono);
  font-size: 12px;
}
.e26-spin {
  width: 12px;
  height: 12px;
  border: 2px solid var(--line-2);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: e26-spin 0.9s linear infinite;
}
@keyframes e26-spin {
  to {
    transform: rotate(360deg);
  }
}
.e26-status.is-done {
  border-color: rgba(36, 192, 127, 0.4);
  color: #10704c;
}
.e26-status.is-done .e26-spin {
  border-color: rgba(36, 192, 127, 0.35);
  border-top-color: #24c07f;
  animation: none;
  transform: none;
}
.e26-status.is-done .e26-spin::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #24c07f;
}

/* bento-сітка відповіді */
.e26-bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.e26-tile {
  position: relative;
  overflow: hidden;
  grid-column: span 2;
  padding: 26px 24px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-s);
  transition: box-shadow 0.28s, transform 0.28s, border-color 0.28s;
}
.e26-tile--wide {
  grid-column: span 3;
  padding: 34px 32px 30px;
}
/* остання плитка добирає рядок і лягає в два стовпчики */
.e26-tile:last-child {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 8px 32px;
  grid-column: span 6;
  align-items: baseline;
  padding: 30px 32px 28px;
}
.e26-tile:last-child .e26-tile__tag {
  grid-column: 1;
}
.e26-tile:last-child h3 {
  grid-column: 1;
  margin: 0;
  font-size: 24px;
}
.e26-tile:last-child p {
  grid-column: 2;
  grid-row: 1 / span 2;
  font-size: 16px;
}
.e26-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    340px circle at var(--mx, 50%) var(--my, 0%),
    rgba(20, 80, 230, 0.07),
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.28s;
  pointer-events: none;
}
.e26-tile:hover {
  transform: translateY(-3px);
  border-color: var(--line-2);
  box-shadow: var(--shadow-m);
}
.e26-tile:hover::before {
  opacity: 1;
}
/* підпис джерела — лише на великих плитках, щоб не шуміти шість разів */
.e26-tile:not(.e26-tile--wide):not(:last-child) .e26-tile__tag {
  display: none;
}
.e26-tile__tag {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.e26-tile h3 {
  margin: 12px 0 8px;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.e26-tile--wide h3 {
  font-size: 26px;
}
.e26-tile p {
  margin: 0;
  color: var(--soft);
  font-size: 15px;
}

/* картки відповіді вступають по черзі, коли агент «закінчив» */
.e26-bento .e26-tile {
  opacity: 0;
  transform: translateY(14px);
}
.e26-bento.is-live .e26-tile {
  animation: e26-enter 0.62s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
.e26-bento.is-live .e26-tile:nth-child(1) { animation-delay: 0s; }
.e26-bento.is-live .e26-tile:nth-child(2) { animation-delay: 0.07s; }
.e26-bento.is-live .e26-tile:nth-child(3) { animation-delay: 0.14s; }
.e26-bento.is-live .e26-tile:nth-child(4) { animation-delay: 0.21s; }
.e26-bento.is-live .e26-tile:nth-child(5) { animation-delay: 0.28s; }
.e26-bento.is-live .e26-tile:nth-child(6) { animation-delay: 0.35s; }
@keyframes e26-enter {
  to {
    opacity: 1;
    transform: none;
  }
}

/* кейси */
.e26-cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.e26-case {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 10px 10px 4px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-s);
  transition: box-shadow 0.28s, transform 0.28s;
}
.e26-case:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-l);
}
.e26-case img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 14px;
}
.e26-case figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 14px 8px 12px;
  font-size: 15px;
  font-weight: 550;
  letter-spacing: -0.01em;
}
.e26-case__year {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
}

/* що входить */
.e26-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-2);
}
.e26-strip li {
  padding: 26px 24px 8px 0;
  border-right: 1px solid var(--line);
}
.e26-strip li:last-child {
  border-right: 0;
}
.e26-strip li:not(:first-child) {
  padding-left: 24px;
}
.e26-strip h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.015em;
}
.e26-strip p {
  margin: 0;
  color: var(--soft);
  font-size: 14.5px;
}

/* план виконання */
.e26-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.e26-track li {
  position: relative;
  padding-top: 26px;
  border-top: 1px solid var(--line-2);
}
.e26-node {
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px var(--bg);
}
.e26-step {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.e26-track h3 {
  margin: 10px 0 6px;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.015em;
}
.e26-track p {
  margin: 0;
  color: var(--soft);
  font-size: 14.5px;
}

/* підвал */
.e26-foot {
  padding: 30px 0 56px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11.5px;
}
.e26-foot__in {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* поява при прокрутці */
.e26-reveal:not(.e26-tile) {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.e26-reveal.is-in:not(.e26-tile) {
  opacity: 1;
  transform: none;
}

@media (max-width: 940px) {
  .e26-bento {
    grid-template-columns: repeat(4, 1fr);
  }
  .e26-tile--wide,
  .e26-tile:last-child {
    grid-column: span 4;
  }
  .e26-tile:last-child {
    grid-template-columns: 1fr;
  }
  .e26-tile:last-child p {
    grid-column: 1;
    grid-row: auto;
  }
  .e26-cases,
  .e26-track {
    grid-template-columns: repeat(2, 1fr);
  }
  .e26-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .e26-strip li:nth-child(2n) {
    border-right: 0;
  }
}
@media (max-width: 620px) {
  .e26-nav,
  .e26-kbd {
    display: none;
  }
  .e26-hero {
    padding: 56px 0 44px;
  }
  .e26-section {
    padding: 56px 0;
  }
  .e26-bento {
    grid-template-columns: 1fr;
  }
  .e26-tile,
  .e26-tile--wide {
    grid-column: span 1;
  }
  .e26-cases,
  .e26-track,
  .e26-strip {
    grid-template-columns: 1fr;
  }
  .e26-strip li {
    padding: 22px 0 6px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .e26-strip li:not(:first-child) {
    padding-left: 0;
  }
  .e26-ask__row {
    flex-direction: column;
    align-items: stretch;
  }
  .e26-go {
    width: 100%;
  }
  .e26-hint {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .e26-aura span,
  .e26-tile,
  .e26-case,
  .e26-chip,
  .e26-go,
  .e26-nav a,
  .e26-ask {
    transition: none;
  }
  .e26-spin {
    animation: none;
  }
  .e26-bento .e26-tile,
  .e26-reveal:not(.e26-tile) {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
