:root {
  --bg: #0a0a0f;
  --surface: #101016;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #e9e9ef;
  --dim: #a3a3b2;
  --faint: #6c6c7e;
  --accent: #8d84f0;
  --accent-dim: rgba(141, 132, 240, 0.14);
  --sans: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --container: 1000px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
html.smooth { scroll-behavior: auto; }
html.smooth .wrap {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  will-change: transform;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent-dim); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a2a36; border-radius: 99px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #3a3a4a; }

.mono { font-family: var(--mono); }

.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }
.container--wide { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }

.spacer { width: 1px; }

#glCanvas, #field {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
  display: block;
}

.progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px; z-index: 120;
}
.progress span {
  display: block; height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

.curtain {
  position: fixed; inset: 0; z-index: 140;
  background: var(--bg);
  transform: scaleY(1);
  transform-origin: top;
  transition: transform 0.9s cubic-bezier(0.76, 0, 0.24, 1) 0.15s;
}
.loaded .curtain { transform: scaleY(0); pointer-events: none; }
html:not(.smooth) .curtain { transition: none; }

.wrap { position: relative; z-index: 1; }

.cursor { position: fixed; top: 0; left: 0; z-index: 130; pointer-events: none; opacity: 0; }
.cursor__dot, .cursor__ring {
  position: absolute; top: 0; left: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor__dot {
  width: 6px; height: 6px;
  background: var(--text);
}
.cursor__ring {
  width: 34px; height: 34px;
  border: 1px solid rgba(141, 132, 240, 0.5);
  transition: width 0.3s var(--ease), height 0.3s var(--ease), border-color 0.3s;
}
.cursor.hover .cursor__ring { width: 56px; height: 56px; border-color: var(--accent); }
.cursor.hover .cursor__dot { background: var(--accent); }
@media (pointer: coarse) { .cursor { display: none; } }

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center;
  padding: 22px 40px;
  transition: background 0.35s, padding 0.35s, border-color 0.35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding-block: 14px;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.nav__brand {
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.nav__brand span { color: var(--faint); }
.nav__links { display: flex; gap: 32px; margin-left: auto; }
.nav__links a {
  color: var(--dim);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.25s;
}
.nav__links a:hover, .nav__links a.active { color: var(--text); }
.nav__toggle { display: none; }

.hero {
  min-height: 96vh;
  display: flex; align-items: center;
  padding: 140px 0 80px;
  position: relative;
}
.hero__eyebrow {
  color: var(--dim);
  font-size: 0.85rem;
  margin-bottom: 28px;
  letter-spacing: 0.03em;
  display: flex; align-items: center; gap: 12px;
}
.hero__eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--accent);
}
.hero__title {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
}
.hero__title .line { display: block; overflow: hidden; padding-block: 0.08em; }
.hero__title .line__inner {
  display: block;
  transform: translateY(120%) rotate(2.5deg);
  transform-origin: left top;
  transition: transform 1.1s var(--ease);
  transition-delay: var(--d, 0s);
}
.hero__title em { font-style: normal; color: var(--accent); }
.hero__lead {
  color: var(--dim);
  max-width: 520px;
  font-size: 1.05rem;
  margin-bottom: 40px;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__status { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 48px; }
.status { display: flex; align-items: center; gap: 10px; font-size: 0.74rem; color: var(--faint); letter-spacing: 0.02em; }
.status i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(141, 132, 240, 0.9);
  animation: pulse 2.4s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.hero__side {
  position: absolute;
  right: 26px; top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  color: var(--faint);
  font-size: 0.66rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0.7;
  pointer-events: none;
}
.hero__scroll {
  position: absolute; bottom: 30px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--faint);
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}
.hero__scroll i {
  display: block; width: 1px; height: 40px;
  background: var(--accent);
  opacity: 0.6;
  animation: scrollHint 2.2s var(--ease) infinite;
}
@keyframes scrollHint {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.anim {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(6px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}
.loaded .anim {
  opacity: 1;
  transform: none;
  filter: none;
}
.loaded .hero__title .line__inner { transform: none; }

.kchar { display: inline-block; will-change: transform; }

.btn {
  position: relative;
  display: inline-flex; align-items: center;
  font-family: var(--mono);
  font-size: 0.85rem;
  padding: 13px 26px;
  border-radius: 10px;
  background: var(--accent);
  color: #0a0a0f;
  text-decoration: none;
  font-weight: 500;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.3s var(--ease);
}
.btn:hover { transform: translateY(-2px) scale(1.02); }
.btn::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: #9d95f4;
  transform: translateX(-101%);
  transition: transform 0.45s var(--ease);
}
.btn:hover::before { transform: translateX(0); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn--ghost::before { background: var(--accent-dim); }
.btn--ghost:hover { border-color: var(--accent); }

.section { padding: 110px 0; }
.section__head {
  display: flex; align-items: baseline; gap: 16px;
  margin-bottom: 56px;
  padding-bottom: 20px;
  position: relative;
}
.section__head::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--border-strong);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s var(--ease) 0.2s;
}
.section__head.reveal.in::after { transform: scaleX(1); }
.section__index { color: var(--accent); font-size: 0.8rem; }
.section__head h2 {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.split__char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.55em) rotate(8deg);
  transform-origin: left bottom;
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  transition-delay: calc(var(--i) * 0.03s);
}
.reveal.in .split__char { opacity: 1; transform: none; }

.reveal { will-change: transform, opacity; }
.r-up, .r-left, .r-right { transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0s); }
.r-up { opacity: 0; transform: translateY(32px); }
.r-left { opacity: 0; transform: translateX(-32px); }
.r-right { opacity: 0; transform: translateX(32px); }
.r-up.in, .r-left.in, .r-right.in { opacity: 1; transform: none; }

.about {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 72px;
}
.about__text p { color: var(--dim); margin-bottom: 20px; }
.about__text p:last-child { margin-bottom: 0; }
.about__facts { list-style: none; display: flex; flex-direction: column; }
.about__facts li {
  display: flex; gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.about__facts li:last-child { border-bottom: none; }
.about__facts .mono {
  color: var(--faint);
  font-size: 0.78rem;
  min-width: 88px;
  padding-top: 3px;
  transition: color 0.3s;
}
.about__facts li:hover .mono { color: var(--accent); }

.stack-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 44px 48px;
}
.stack-group__title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  padding-bottom: 12px;
  margin-bottom: 2px;
  border-bottom: 1px solid var(--border-strong);
}
.stack-group__title::before {
  content: "";
  flex: none;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(141, 132, 240, 0.8);
}
.stack { list-style: none; display: flex; flex-direction: column; }
.stack li {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.stack li:last-child { border-bottom: none; }
.stack li::before {
  content: "";
  position: absolute; left: -12px; top: 21px;
  width: 8px; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.stack li:hover::before { transform: scaleX(1); }
.stack__name { font-size: 0.92rem; font-weight: 500; transition: color 0.3s; }
.stack li:hover .stack__name { color: var(--accent); }
.stack__use { color: var(--faint); font-size: 0.78rem; line-height: 1.55; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 30px 28px;
  display: flex; flex-direction: column;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: border-color 0.3s, transform 0.5s var(--ease);
}
.card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(141, 132, 240, 0.09), transparent 55%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.card::after {
  content: "";
  position: absolute; top: 0; left: -60%;
  width: 40%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(141, 132, 240, 0.6), transparent);
  transform: rotate(6deg) translateY(1.4em);
  opacity: 0;
  transition: opacity 0.4s, left 0.7s var(--ease);
}
.card:hover { border-color: rgba(141, 132, 240, 0.45); }
.card:hover::before { opacity: 1; }
.card:hover::after { left: 120%; opacity: 1; }
.card__meta { color: var(--faint); font-size: 0.7rem; margin-bottom: 18px; letter-spacing: 0.06em; }
.card h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 12px; transition: color 0.3s; }
.card:hover h3 { color: var(--accent); }
.card p { color: var(--dim); font-size: 0.9rem; flex: 1; margin-bottom: 24px; }
.card__links { display: flex; gap: 18px; flex-wrap: wrap; }
.card__links a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.8rem;
  position: relative;
}
.card__links a::after {
  content: "";
  position: absolute; left: 0; bottom: -3px;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.card__links a:hover::after { transform: scaleX(1); transform-origin: left; }

.section--contact { padding-bottom: 130px; }
.contact { max-width: 560px; }
.contact h3 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.contact p { color: var(--dim); margin-bottom: 28px; }
.email {
  position: relative;
  display: inline-block;
  color: var(--text);
  font-size: 1.05rem;
  text-decoration: none;
  padding-bottom: 3px;
  transition: color 0.3s;
}
.email::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--faint);
}
.email::before {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.email:hover { color: var(--accent); }
.email:hover::before { transform: scaleX(1); transform-origin: left; }

.socials { display: flex; gap: 10px; margin-top: 40px; flex-wrap: wrap; }
.socials a {
  display: inline-block;
  color: var(--dim);
  text-decoration: none;
  font-size: 0.82rem;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 99px;
  transition: color 0.25s, border-color 0.3s, background 0.3s;
}
.socials a:hover { color: var(--text); border-color: var(--accent); background: var(--accent-dim); }

.email-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.copy {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 14px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--faint);
  cursor: pointer;
  transition: color 0.25s, border-color 0.3s;
}
.copy:hover { color: var(--accent); border-color: var(--accent); }

.toast {
  position: fixed;
  bottom: 34px; left: 50%;
  z-index: 125;
  padding: 11px 22px;
  background: var(--surface);
  border: 1px solid rgba(141, 132, 240, 0.35);
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translate(-50%, 14px);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.footer {
  border-top: 1px solid var(--border);
  padding: 26px 0;
  font-size: 0.75rem;
  color: var(--faint);
}
.footer__row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer a { color: var(--dim); text-decoration: none; transition: color 0.25s; }
.footer a:hover { color: var(--text); }
.footer__hint { color: var(--faint); }
.footer__hint b {
  color: var(--accent);
  font-weight: 500;
  padding: 1px 6px;
  border: 1px solid var(--border);
  border-radius: 5px;
}

.rows { border-top: 1px solid var(--border); }
.rows__note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 760px;
  margin: -28px 0 30px;
  color: var(--faint);
  font-size: 0.82rem;
  line-height: 1.6;
}
.rows__note::before {
  content: "";
  flex: none;
  width: 26px;
  height: 1px;
  margin-top: 0.72em;
  background: var(--accent);
}
.row {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1.18fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 30px;
  padding: 40px 24px;
  border-bottom: 1px solid var(--border);
  transition: background 0.35s;
}
.row__hit { position: absolute; inset: 0; z-index: 2; }
.row::before {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 14px; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.row::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(560px circle at var(--mx, 50%) var(--my, 60%), rgba(141, 132, 240, 0.07), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  z-index: 1;
}
.row:hover { background: var(--surface); }
.row:hover::before { transform: scaleX(1); }
.row:hover::after { opacity: 1; }
.row > *:not(.row__hit) { position: relative; z-index: 3; }
.row__num {
  color: var(--faint);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  transition: color 0.3s;
}
.row:hover .row__num { color: var(--accent); }
.row__brand {
  display: block;
  color: var(--accent);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 8px;
  opacity: 0.85;
}
.row__main h3 {
  font-size: clamp(1.45rem, 2.1vw, 1.95rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  transition: transform 0.4s var(--ease);
}
.row:hover .row__main h3 { transform: translateX(8px); }
.row__main p { color: var(--dim); font-size: 0.9rem; line-height: 1.65; max-width: 46ch; }
.pv-img {
  transition: opacity 0.7s var(--ease), transform 0.8s var(--ease), filter 0.6s var(--ease);
}
.row:hover .pv-img { transform: scale(1.035); filter: saturate(1.1) contrast(1.03) brightness(1.03); }
.row__side {
  display: flex; flex-direction: column;
  align-items: flex-end; gap: 14px;
}
.row__meta {
  color: var(--faint);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}
.row__arrow {
  color: var(--accent);
  font-size: 1.2rem;
  opacity: 0;
  transform: translate(-10px, 10px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.row:hover .row__arrow { opacity: 1; transform: none; }
.row__links { display: flex; gap: 14px; }
.row__links a {
  color: var(--dim);
  text-decoration: none;
  font-size: 0.74rem;
  transition: color 0.25s;
}
.row__links a:hover { color: var(--accent); }

.row__tech {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--accent);
  font-size: 0.7rem;
  margin-top: 14px;
  letter-spacing: 0.05em;
}
.row__tech .tech-stack { opacity: 0.85; }
.row__tech .tech-cap { color: var(--faint); }

.preview {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  overflow: hidden;
  background: #0d0d14;
  aspect-ratio: 16 / 10;
  align-self: stretch;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.42), 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.5s var(--ease), border-color 0.35s, box-shadow 0.5s var(--ease);
  display: flex; flex-direction: column;
}
.row:hover .preview {
  transform: translateY(-6px) scale(1.012);
  border-color: rgba(141, 132, 240, 0.5);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.6), 0 0 46px rgba(141, 132, 240, 0.13);
}
.pv-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  filter: saturate(1.04) contrast(1.02);
  transition: opacity 0.7s var(--ease), transform 0.8s var(--ease), filter 0.6s var(--ease);
}
.pv-img.loaded { opacity: 1; }
.pv-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 2;
  display: flex; align-items: center; gap: 6px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 15, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.pv-bar i { width: 8px; height: 8px; border-radius: 50%; background: #26263a; }
.pv-bar i:first-child { background: rgba(141, 132, 240, 0.65); }
.pv--dash.has-img .pv-body, .pv--web.has-img .pv-body { opacity: 0; }
.pv--phone.has-img .pv-screen > *:not(.pv-img) { opacity: 0; }
.has-img .pv-bar { opacity: 0; pointer-events: none; }
.pv-screen .pv-img {
  border-radius: 14px;
  object-fit: cover;
  object-position: center top;
}
.pv-body { flex: 1; display: flex; min-height: 0; }
.pv-body > span, .pv-body .pv-hero > span, .pv-screen > span {
  display: block;
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  width: calc(var(--w) * 1%);
}
.pv-rail {
  width: 54px; flex: none;
  padding: 14px 10px;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 10px;
}
.pv-rail i {
  height: 7px; border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
}
.pv-rail i:first-child { background: rgba(141, 132, 240, 0.5); }
.pv-main { flex: 1; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pv-head { display: flex; gap: 10px; }
.pv-head span {
  height: 10px; border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  width: 90px;
}
.pv-head span:last-child { width: 56px; background: rgba(141, 132, 240, 0.35); }
.pv-chart {
  flex: 1;
  display: flex; align-items: flex-end; gap: 9px;
  min-height: 0;
  padding-bottom: 2px;
}
.pv-chart i {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, rgba(141, 132, 240, 0.85), rgba(141, 132, 240, 0.25));
  height: calc(var(--h) * 100%);
  transform: scaleY(0.55);
  transform-origin: bottom;
  transition: transform 0.7s var(--ease);
}
.pv-chart i:nth-child(2) { transition-delay: 0.05s; }
.pv-chart i:nth-child(3) { transition-delay: 0.1s; }
.pv-chart i:nth-child(4) { transition-delay: 0.15s; }
.pv-chart i:nth-child(5) { transition-delay: 0.2s; }
.pv-chart i:nth-child(6) { transition-delay: 0.25s; }
.pv-chart i:nth-child(7) { transition-delay: 0.3s; }
.row:hover .pv-chart i { transform: scaleY(1); }
.pv-lines { display: flex; flex-direction: column; gap: 8px; }
.pv-lines span {
  height: 7px; border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  width: var(--w);
}
.pv-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.pv-nav span { width: 46px; height: 7px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); }
.pv-nav b { width: 54px; height: 7px; border-radius: 99px; background: rgba(141, 132, 240, 0.4); }
.pv-body.pv--web, 
.pv--web .pv-body { flex-direction: column; }
.pv-hero {
  flex: 1;
  padding: 18px 16px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.pv-hero em {
  margin-top: auto;
  width: 86px; height: 20px; border-radius: 6px;
  background: rgba(141, 132, 240, 0.3);
}
.pv-cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0 14px 14px;
}
.pv-cards span {
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.row:hover .pv-cards span:nth-child(1) { border-color: rgba(141, 132, 240, 0.4); transform: translateY(-4px); }
.pv--phone { background: radial-gradient(120% 110% at 50% 0%, #171722 0%, #0b0b12 62%); }
.pv--phone .pv-body { align-items: center; justify-content: center; padding: 12px 0; }
.pv-phone {
  width: 168px;
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  padding: 7px;
  background: #0b0b12;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), 0 0 30px rgba(141, 132, 240, 0.06);
  transition: transform 0.5s var(--ease);
}
.row:hover .pv-phone { transform: translateY(-4px) rotate(-1.5deg); }
.pv-screen {
  height: 234px;
  border-radius: 16px;
  background: #101018;
  border: 1px solid var(--border);
  padding: 12px 9px 10px;
  display: flex; flex-direction: column; gap: 9px;
  position: relative;
  overflow: hidden;
}
.pv-notch {
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 46px; height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
}
.pv-screen > span { margin-top: 10px; height: 7px; }
.pv-screen > span:first-of-type { margin-top: 16px; }.pv-tile {
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 9px 8px;
  display: flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.02);
}
.pv-tile em {
  margin-left: auto;
  width: 18px; height: 18px;
  border-radius: 6px;
  background: rgba(141, 132, 240, 0.3);
}
.footer__hint b {
  color: var(--accent);
  font-weight: 500;
  padding: 1px 6px;
  border: 1px solid var(--border);
  border-radius: 5px;
}

.section .container { position: relative; }
.wm {
  position: absolute;
  top: -0.62em;
  right: -0.06em;
  font-size: clamp(9rem, 22vw, 17rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.055);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.grain {
  position: fixed; inset: 0; z-index: 95;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

.term-fab {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 105;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(16, 16, 22, 0.9);
  border: 1px solid var(--border-strong);
  color: var(--faint);
  font-size: 1rem;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: color 0.25s, border-color 0.3s, transform 0.3s var(--ease);
}
.term-fab:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.terminal {
  position: fixed;
  right: 22px; bottom: 76px;
  z-index: 110;
  width: min(640px, calc(100vw - 32px));
  max-height: 60vh;
  background: rgba(10, 10, 15, 0.94);
  border: 1px solid rgba(141, 132, 240, 0.3);
  border-radius: 14px;
  overflow: hidden;
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6), 0 0 60px rgba(141, 132, 240, 0.08);
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  display: flex; flex-direction: column;
}
.terminal.open { opacity: 1; transform: none; pointer-events: auto; }
.terminal__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}
.terminal__bar i { width: 10px; height: 10px; border-radius: 50%; background: #242434; }
.terminal__bar i:first-child { background: var(--accent); opacity: 0.7; }
.terminal__title {
  margin-left: 8px;
  color: var(--faint);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}
.terminal__close {
  margin-left: auto;
  background: none; border: none;
  color: var(--faint);
  font-size: 1rem;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.terminal__close:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }

.terminal__out {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 18px;
  font-size: 0.76rem;
  line-height: 1.75;
  color: var(--dim);
  white-space: pre-wrap;
  word-break: break-word;
}
.terminal__out .t-echo { color: var(--faint); }
.terminal__out .t-acc { color: var(--accent); }
.terminal__out .t-dim { color: var(--faint); }
.terminal__out .t-ok { color: #5dd39e; }
.terminal__out .t-err { color: #e07484; }

.terminal__in {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  border-top: 1px solid var(--border);
}
.terminal__prompt { color: var(--accent); font-size: 0.8rem; }
.terminal__in input {
  flex: 1;
  background: none; border: none; outline: none;
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.8rem;
}

@media (max-width: 860px) {
  .stack-groups { grid-template-columns: 1fr 1fr; gap: 34px 32px; }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .grid { grid-template-columns: 1fr; }
  .nav { padding: 16px 24px; }
  .nav__links {
    display: none;
    position: fixed; inset: 0;
    background: rgba(10, 10, 15, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center; justify-content: center;
    gap: 30px;
    z-index: 98;
  }
  .nav.open .nav__links { display: flex; }
  .nav.open .nav__links a { font-size: 1.2rem; }
  .nav__toggle {
    display: flex; flex-direction: column; gap: 6px;
    background: none; border: none; cursor: pointer;
    padding: 8px; margin-left: auto; z-index: 100;
  }
  .nav__toggle span {
    display: block; width: 22px; height: 2px;
    background: var(--text); border-radius: 2px;
    transition: transform 0.3s var(--ease);
  }
  .nav.open .nav__toggle span:first-child { transform: rotate(45deg) translate(3px, 3px); }
  .nav.open .nav__toggle span:last-child { transform: rotate(-45deg) translate(3px, -3px); }
  .section { padding: 80px 0; }
  .row { grid-template-columns: 1fr; gap: 14px; padding: 30px 6px; }
  .row__side { flex-direction: column-reverse; align-items: flex-start; }
  .row__arrow { display: none; }
  .hero__scroll { display: none; }
  .hero__side { display: none; }
  .hero__status { gap: 16px; }
  .row { grid-template-columns: 1fr; gap: 16px; padding: 30px 6px; }
  .row > * { order: initial; }
  .row__num { order: 1; }
  .row__main { order: 2; }
  .preview { order: 3; margin-block: 4px; }
  .row__side { order: 4; }
  .pv-screen { height: 240px; }
}

@media (max-width: 620px) {
  .stack-groups { grid-template-columns: 1fr; gap: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .anim, .r-up, .r-left, .r-right, .split__char, .hero__title .line__inner {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}
