/* Components ----------------------------------------------------------------- */

/* --- navigation ------------------------------------------------------------ */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(11, 11, 15, 0);
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease),
    border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(13, 13, 18, 0.72);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 40px -18px rgba(0, 0, 0, 0.5);
}

.nav__inner {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: #f5f5f7;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-right: auto;
}

.nav__logo img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  list-style: none;
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: #b9bac4;
  transition: color 0.25s var(--ease);
  position: relative;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--accent-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav__link:hover {
  color: #ffffff;
}

.nav__link:hover::after {
  transform: scaleX(1);
}

.nav__cta {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.nav__burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  align-items: center;
  justify-content: center;
  color: #f5f5f7;
}

.nav__burger span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: #f5f5f7;
  position: relative;
  transition: background 0.25s;
}

.nav__burger span::before,
.nav__burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: #f5f5f7;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}

.nav__burger span::before {
  top: -6px;
}

.nav__burger span::after {
  top: 6px;
}

body.nav-open .nav__burger span {
  background: transparent;
}

body.nav-open .nav__burger span::before {
  top: 0;
  transform: rotate(45deg);
}

body.nav-open .nav__burger span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* --- buttons --------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.4rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.btn--primary {
  color: #ffffff;
  background: linear-gradient(120deg, #6f5bee, #37b7e6);
  background-size: 140% 100%;
  background-position: 0% 0%;
  box-shadow: 0 10px 26px -8px rgba(111, 91, 238, 0.55);
}

.btn--primary:hover {
  transform: translateY(-2px);
  background-position: 100% 0%;
  box-shadow: 0 16px 34px -10px rgba(111, 91, 238, 0.6);
}

.btn--ghost {
  color: var(--ink);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: var(--faint);
  box-shadow: var(--shadow-md);
}

.dark .btn--ghost {
  color: #f5f5f7;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
}

.dark .btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.32);
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* --- badge ---------------------------------------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #dfe0ec;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-grad);
  box-shadow: 0 0 12px rgba(122, 92, 240, 0.9);
  animation: pulse-dot 2.4s var(--ease) infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.45); opacity: 0.7; }
}

.badge a {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 3px;
}

/* --- hero ------------------------------------------------------------------ */

.hero {
  position: relative;
  color: var(--body);
  padding-top: calc(var(--nav-h) + clamp(4rem, 10vw, 7rem));
  padding-bottom: clamp(4rem, 9vw, 6.5rem);
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(122, 92, 240, 0.22), transparent 60%),
    radial-gradient(900px 500px at 90% 30%, rgba(76, 201, 240, 0.1), transparent 55%),
    radial-gradient(800px 520px at 8% 40%, rgba(122, 92, 240, 0.08), transparent 55%),
    radial-gradient(680px 300px at 50% 115%, rgba(76, 201, 240, 0.07), transparent 60%),
    var(--bg);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(800px 460px at 50% 26%, #000 30%, transparent 75%);
  mask-image: radial-gradient(800px 460px at 50% 26%, #000 30%, transparent 75%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__badge {
  margin-bottom: 1.75rem;
}

.hero h1 {
  font-size: var(--type-scale-display);
  color: #f6f6f8;
  max-width: 20ch;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #c3baff 0%, #6fe0ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__sub {
  margin-top: 1.5rem;
  max-width: 62ch;
  font-size: clamp(1.05rem, 1.7vw, 1.22rem);
  line-height: 1.66;
  color: #b8b9c4;
}

.hero__ctas {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.hero__trust {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.4rem;
  font-size: 0.82rem;
  color: var(--muted);
  list-style: none;
}

.hero__trust li::before {
  content: "·";
  margin-right: 1.4rem;
  color: var(--faint);
}

.hero__trust li:first-child::before {
  display: none;
}

/* --- hero console ----------------------------------------------------------- */

.console {
  width: min(100%, 980px);
  margin: clamp(3rem, 7vw, 4.75rem) auto 0;
  text-align: left;
  border-radius: var(--radius-l);
  background: rgba(19, 19, 26, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.75);
  overflow: hidden;
}

.console__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.console__lights {
  display: flex;
  gap: 6px;
}

.console__lights span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #2c2c38;
}

.console__lights span:nth-child(1) {
  background: #ff5f57;
}

.console__lights span:nth-child(2) {
  background: #febc2e;
}

.console__lights span:nth-child(3) {
  background: #28c840;
}

.console__title {
  margin-left: 0.5rem;
  font-size: 0.78rem;
  color: var(--muted);
  font-family: var(--font-mono);
}

.console__status {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: #7ef0b2;
  border: 1px solid rgba(126, 240, 178, 0.25);
  background: rgba(34, 197, 94, 0.09);
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
}

.console__status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7ef0b2;
  animation: pulse-dot 1.8s ease-in-out infinite;
}

.console__body {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
}

.console__panel {
  padding: 1.4rem;
}

.console__panel + .console__panel {
  border-left: 1px solid rgba(255, 255, 255, 0.07);
}

.console__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.9rem;
}

/* graph pane */
.demo-graph {
  width: 100%;
  height: auto;
}

.g-edge,
.g-edge--hot {
  stroke-width: 1.6;
  opacity: 0;
  animation: edge-in 0.7s var(--ease) forwards;
}

.g-edge {
  stroke: #2c2c38;
}

.g-edge--hot {
  stroke: url(#gline);
  stroke-width: 2.6;
}

.g-edge--hot.stagger-1 { animation-delay: 0.1s; }
.g-edge.stagger-2 { animation-delay: 0.14s; }
.g-edge.stagger-3 { animation-delay: 0.18s; }
.g-edge.stagger-4 { animation-delay: 0.22s; }
.g-edge.stagger-5 { animation-delay: 0.26s; }
.g-edge.stagger-6 { animation-delay: 0.3s; }
.g-edge.stagger-7 { animation-delay: 0.34s; }
.g-edge.stagger-8 { animation-delay: 0.38s; }
.g-edge.stagger-9 { animation-delay: 0.42s; }
.g-edge.stagger-10 { animation-delay: 0.46s; }

@keyframes edge-in {
  from { opacity: 0; }
  to { opacity: 0.9; }
}

.g-node {
  fill: #1c1c26;
  stroke: #2f2f3b;
  stroke-width: 1.5;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: node-in 0.6s var(--ease) forwards;
}

.g-node--sel {
  fill: #2b2350;
  stroke: #9a8cff;
}

.g-node--live {
  fill: #12384a;
  stroke: #4cc9f0;
  animation: node-in 0.6s var(--ease) forwards, node-live 2.4s ease-in-out infinite;
}

.g-node.stagger-a { animation-delay: 0.3s; }
.g-node.stagger-b { animation-delay: 0.38s; }
.g-node.stagger-c { animation-delay: 0.46s; }
.g-node.stagger-d { animation-delay: 0.54s; }
.g-node.stagger-e { animation-delay: 0.62s; }
.g-node.stagger-f { animation-delay: 0.7s; }
.g-node.stagger-g { animation-delay: 0.78s; }

@keyframes node-in {
  from { opacity: 0; transform: scale(0.4); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes node-live {
  0%, 100% {
    filter: drop-shadow(0 0 0 rgba(76, 201, 240, 0));
    stroke-width: 1.5;
  }
  50% {
    filter: drop-shadow(0 0 9px rgba(76, 201, 240, 0.85));
    stroke-width: 2.5;
  }
}

.delta-float {
  opacity: 0;
  animation: edge-in 0.5s var(--ease) 1.9s forwards, float-y 3.2s ease-in-out 2s infinite;
  transform-box: fill-box;
}

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* objective pane */
.objective {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.objective__readout {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.objective__value {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 600;
  color: #f6f6f8;
  letter-spacing: -0.03em;
}

.objective__value::after {
  content: attr(data-suffix);
  font-size: 1rem;
  color: var(--muted);
  margin-left: 0.25rem;
}

.objective__unit {
  font-size: 0.75rem;
  color: var(--muted);
}

.objective__chart {
  margin-top: auto;
}

.objective__line {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: draw-line 5s var(--ease) 0.5s forwards;
}

@keyframes draw-line {
  to { stroke-dashoffset: 0; }
}

.objective__area {
  opacity: 0;
  animation: area-in 1.6s ease 3.4s forwards;
}

@keyframes area-in {
  from { opacity: 0; } to { opacity: 1; }
}

.objective__log {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.9;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 0.85rem;
}

.objective__log p {
  opacity: 0;
  animation: log-line 8s var(--ease) forwards;
}

.objective__log p:nth-child(1) { animation-delay: 0.6s; }
.objective__log p:nth-child(2) { animation-delay: 1.4s; }
.objective__log p:nth-child(3) { animation-delay: 2.2s; }
.objective__log p:nth-child(4) { animation-delay: 3s; }

@keyframes log-line {
  0% { opacity: 0; transform: translateY(4px); }
  8%, 92% { opacity: 1; transform: none; }
  100% { opacity: 0.55; }
}

.log-ok { color: #7ef0b2; }
.log-acc { color: #c3baff; }

/* --- stats band ------------------------------------------------------------- */

.stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat__value {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.stat__value .grad {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat__label {
  margin-top: 0.4rem;
  font-size: 0.86rem;
  color: var(--muted);
}

/* --- pillars --------------------------------------------------------------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.pillar__icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--accent-1);
  background: var(--accent-soft);
  border: 1px solid rgba(122, 92, 240, 0.18);
  margin-bottom: 1.4rem;
}

.pillar__icon svg {
  width: 26px;
  height: 26px;
  stroke-width: 1.7;
}

.pillar h3 {
  font-size: 1.24rem;
  letter-spacing: -0.02em;
}

.pillar p {
  margin-top: 0.7rem;
  font-size: 0.98rem;
  line-height: 1.7;
}

.pillar {
  min-width: 0;
}

.pillar__tag {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-1);
}

/* --- flow ------------------------------------------------------------------ */

.flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  counter-reset: step;
}

.flow::before {
  content: "";
  position: absolute;
  top: 27px;
  left: calc(10% + 1rem);
  right: calc(10% + 1rem);
  height: 2px;
  background-image: linear-gradient(
    90deg,
    var(--accent-1),
    var(--accent-2),
    var(--accent-1),
    var(--accent-2)
  );
  background-size: 50% 100%;
  animation: flow-dash 6s linear infinite;
  opacity: 0.35;
  border-radius: 2px;
}

@keyframes flow-dash {
  from { background-position: 0% 0; }
  to { background-position: 200% 0; }
}

.flow__step {
  position: relative;
  z-index: 1;
  text-align: center;
}

.flow__num {
  width: 54px;
  height: 54px;
  margin: 0 auto;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-md);
  counter-increment: step;
}

.flow__num::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-1);
}

.flow h3 {
  margin-top: 1rem;
  font-size: 1.02rem;
  letter-spacing: -0.015em;
}

.flow p {
  margin-top: 0.45rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--muted);
}

/* --- story (screenshot) ----------------------------------------------------- */

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 4.5rem);
}

.story-copy li {
  position: relative;
  padding-left: 1.9rem;
  margin-top: 1.1rem;
  list-style: none;
  font-size: 1rem;
  line-height: 1.66;
}

.story-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.34em;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent-grad);
}

.scr-panel {
  position: relative;
}

.scr {
  position: relative;
  border-radius: var(--radius-l);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0d0d12;
  box-shadow: 0 50px 110px -40px rgba(0, 0, 0, 0.85);
  overflow: hidden;
}

.scr__bar {
  position: absolute;
  inset: 0 0 auto 0;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  z-index: 2;
  background: linear-gradient(rgba(13, 13, 18, 0.55), transparent);
}

.scr__bar span {
  font-size: 0.74rem;
  color: #9a9baa;
  font-family: var(--font-mono);
  padding: 0.28rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.scr img {
  width: 100%;
  height: auto;
}

.scr__cap {
  padding: 1rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  color: var(--muted);
}

.scr__cap code {
  font-family: var(--font-mono);
  color: #c3baff;
}

/* --- problem cards ---------------------------------------------------------- */

.problems {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.problem {
    position: relative;
    border-radius: var(--radius-l);
    border: 1px solid var(--line);
    background: var(--bg);
    padding: 1.6rem 1.6rem 1.45rem;
    min-width: 0;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
      border-color 0.35s var(--ease);
  }

.problem::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--accent-grad);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.problem:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lg);
}

.problem:hover::before {
  opacity: 1;
}

.problem__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.problem__ac {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: var(--accent-1);
  background: var(--accent-soft);
}

.problem__ac svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.7;
}

.problem__tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  white-space: nowrap;
}

.problem__tag[data-kind="monotone"] {
  color: #0e7a3d;
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.07);
}

.problem__tag[data-kind="non-monotone"] {
  color: var(--accent-1);
  border-color: rgba(122, 92, 240, 0.3);
  background: rgba(122, 92, 240, 0.07);
}

.problem h3 {
  margin-top: 1.15rem;
  font-size: 1.13rem;
  letter-spacing: -0.02em;
}

.problem__title small {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--faint);
}

.problem p {
  margin-top: 0.6rem;
  font-size: 0.93rem;
  line-height: 1.66;
}

/* --- performance ------------------------------------------------------------ */

.perf-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 4.5rem);
}

.perf-item {
  display: flex;
  gap: 1.1rem;
  margin-top: 1.5rem;
}

.perf-item__icon {
  flex: none;
  width: 42px;
  height: 42px;
  margin-top: 0.15rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--accent-1);
  background: var(--accent-soft);
}

.perf-item__icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.8;
}

.perf-item h3 {
  font-size: 1.02rem;
  letter-spacing: -0.015em;
}

.perf-item p {
  margin-top: 0.28rem;
  font-size: 0.93rem;
  line-height: 1.65;
  color: var(--muted);
}

.chart-panel {
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  background: var(--bg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.chart-panel__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid var(--line);
}

.chart-panel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-grad);
}

.chart-panel__head span {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
}

.chart-panel img {
  width: 100%;
  height: auto;
  background: #0b0b0f;
}

.chart-panel__cap {
  padding: 0.85rem 1.2rem;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1rem;
}

.chart-panel__cap strong {
  color: var(--ink);
  font-weight: 600;
}

/* --- solvers ---------------------------------------------------------------- */

.solvers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.solver {
  border-radius: var(--radius-m);
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 1.25rem 1.3rem;
  min-width: 0;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.solver:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.solver code {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--accent-1);
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.solver p {
  margin-top: 0.45rem;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--muted);
}

/* --- code window ------------------------------------------------------------ */

.code {
  position: relative;
}

.code__tabs {
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 1.4rem;
}

.code__tab {
  padding: 0.45rem 1.1rem;
  border-radius: 11px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.25s, background 0.25s;
}

.code__tab.is-active {
  color: #f5f5f7;
  background: rgba(255, 255, 255, 0.1);
}

.code__win {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0f0f15;
  box-shadow: 0 50px 110px -40px rgba(0, 0, 0, 0.85);
  overflow: hidden;
}

.code__win-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.code__win-bar .console__lights span {
  width: 10px;
  height: 10px;
}

.code__win-bar-title {
  margin-left: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--muted);
}

.code__copy {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.34rem 0.8rem;
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: color 0.25s, border-color 0.25s;
}

.code__copy:hover {
  color: #f5f5f7;
  border-color: rgba(255, 255, 255, 0.3);
}

.code__copy svg {
  width: 14px;
  height: 14px;
}

.code__pre {
  margin: 0;
  padding: 1.5rem 1.6rem 1.7rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.75;
  color: #d9dae3;
}

.code__pre code {
  font-family: inherit;
}

.tok-kw   { color: #c792ea; }
.tok-str  { color: #c3e88d; }
.tok-com  { color: #5c5d66; font-style: italic; }
.tok-fn   { color: #6fd6d8; }
.tok-num  { color: #f78c6c; }
.tok-vr   { color: #82aaff; }
.tok-cls  { color: #ffcb6b; }
.tok-prompt { color: #7f7f8d; }

.code__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
  color: var(--muted);
}

.code__foot code {
  font-family: var(--font-mono);
  color: #c3baff;
}

/* --- CTA --------------------------------------------------------------------- */

.cta {
  position: relative;
  overflow: hidden;
}

.cta__card {
  text-align: center;
  padding: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 5vw, 4rem);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(700px 320px at 50% -20%, rgba(122, 92, 240, 0.28), transparent 60%),
    radial-gradient(520px 280px at 90% 110%, rgba(76, 201, 240, 0.16), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
}

.cta h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.cta h2 em {
  font-style: normal;
  background: linear-gradient(100deg, #c3baff 0%, #6fe0ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cta p {
  margin: 1.1rem auto 0;
  max-width: 46ch;
  color: #b8b9c4;
  font-size: 1.02rem;
}

.cta__actions {
  margin-top: 2.1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.cta__hint {
  margin-top: 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
}

/* --- footer ------------------------------------------------------------------ */

.footer {
  padding-top: clamp(3.5rem, 7vw, 5rem);
  padding-bottom: 2.25rem;
  background: #08080b;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
}

.footer__brand {
  max-width: 34ch;
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #f5f5f7;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.footer__logo img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.footer__brand p {
  margin-top: 1rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--muted);
}

.footer__col h4 {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.95rem;
}

.footer__col ul {
  list-style: none;
}

.footer__col li {
  margin-top: 0.6rem;
}

.footer__col a {
  font-size: 0.9rem;
  color: #b9bac4;
  transition: color 0.25s var(--ease);
}

.footer__col a:hover {
  color: #ffffff;
}

.footer__bottom {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.footer__bottom a {
  color: var(--muted);
  transition: color 0.25s;
}

.footer__bottom a:hover {
  color: #ffffff;
}

/* --- responsive -------------------------------------------------------------- */

@media (max-width: 1024px) {
  .stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem 1.5rem;
  }

  .pillars {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .flow {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 2.25rem;
  }

  .flow::before {
    display: none;
  }

  .problems {
    grid-template-columns: repeat(2, 1fr);
  }

  .solvers {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 880px) {
  .nav__links,
  .nav__cta {
    display: none;
  }

  .nav__burger {
    display: flex;
  }

  .nav__panel {
    position: fixed;
    inset: calc(var(--nav-h) + 8px) 1.25rem auto;
    z-index: 49;
    width: auto;
    left: 1.25rem;
    right: 1.25rem;
    border-radius: var(--radius-l);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 15, 21, 0.96);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(-12px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  }

  body.nav-open .nav__panel {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .nav__panel a {
    padding: 0.85rem 1rem;
    border-radius: 12px;
    color: #d6d7e0;
    font-weight: 500;
    font-size: 1rem;
  }

  .nav__panel a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
  }

  .nav__panel .btn {
    margin-top: 0.5rem;
  }

  .console__body {
    grid-template-columns: 1fr;
  }

  .console__panel + .console__panel {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
  }

  .story-grid,
  .perf-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero__trust {
    gap: 0.3rem 0.9rem;
    font-size: 0.78rem;
  }

  .hero__trust li::before {
    margin-right: 0.9rem;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .problems {
    grid-template-columns: 1fr;
  }

  .solvers {
    grid-template-columns: repeat(2, 1fr);
  }

  .flow {
    grid-template-columns: 1fr 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}