*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --accent: #38bdf8;
  --accent2: #0ea5e9;
  --nitro: #a78bfa;
  --nitro2: #7c3aed;
  --bg: #0f172a;
  --muted: rgba(226, 232, 240, 0.58);
  --text: #f8fafc;
  --border: rgba(148, 163, 184, 0.14);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --scroll-p: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--text);
  font-family: "Inter", "Segoe UI", sans-serif;
  overflow-x: hidden;
  background:
    radial-gradient(
      circle at 15% 8%,
      rgba(56, 189, 248, 0.16),
      transparent 28rem
    ),
    radial-gradient(
      circle at 90% 18%,
      rgba(167, 139, 250, 0.12),
      transparent 24rem
    ),
    linear-gradient(180deg, #101a2d 0%, #0b1220 48%, #0f172a 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
  transform: translateY(calc(var(--scroll-p) * -40px));
}

#fxCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
}

.cursor-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(
    circle,
    rgba(56, 189, 248, 0.14),
    transparent 68%
  );
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.35s ease;
  mix-blend-mode: screen;
}

body:hover .cursor-glow {
  opacity: 1;
}

nav,
.dev-hero,
.marquee-band,
.scrolly,
footer,
.chapter-rail {
  position: relative;
  z-index: 2;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseSoft {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.08);
  }
}

@keyframes spinSlow {
  to {
    transform: rotate(360deg);
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-18px) rotate(3deg);
  }
}

@keyframes mouseScroll {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  80% {
    transform: translateY(10px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 0;
  }
}

@keyframes glitchSkip {
  0%,
  92%,
  100% {
    transform: none;
    text-shadow: none;
  }
  93% {
    transform: translate(-2px, 1px);
    text-shadow: 2px 0 #38bdf8, -2px 0 #a78bfa;
  }
  95% {
    transform: translate(2px, -1px);
    text-shadow: -2px 0 #38bdf8, 2px 0 #a78bfa;
  }
  97% {
    transform: translate(-1px, 0);
  }
}

@keyframes codeRain {
  from {
    transform: translateY(-20%);
    opacity: 0;
  }
  to {
    transform: translateY(120%);
    opacity: 0.35;
  }
}

@keyframes orbitSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes stepPop {
  from {
    opacity: 0;
    transform: translateX(-24px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* ===== NAV ===== */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
  padding: 14px clamp(18px, 5vw, 60px);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(8, 15, 28, 0.82)),
    rgba(8, 15, 28, 0.9);
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 40px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px) saturate(130%);
  animation: fadeInDown 0.45s ease-out;
}

.logo {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 16px 0 10px;
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.62);
  color: var(--text);
  font-size: 1.28rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.logo::before {
  content: "";
  width: 38px;
  height: 38px;
  margin-right: 7px;
  background: url("../assets/Logo.png") center / contain no-repeat;
}

.logo span:first-child {
  color: #f8fafc;
}
.logo span:last-child {
  color: #7dd3fc;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.42);
}

.btn-lang-dev,
.btn-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  background: rgba(15, 23, 42, 0.58);
  color: rgba(226, 232, 240, 0.82);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.btn-lang-dev {
  padding: 0 13px;
}
.btn-back {
  padding: 0 15px;
}

.btn-lang-dev:hover,
.btn-back:hover {
  color: #f8fafc;
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.28);
  transform: translateY(-1px);
}

/* ===== CHAPTER RAIL ===== */
.chapter-rail {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rail-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.7);
  cursor: pointer;
  padding: 0;
  transition:
    transform 0.3s var(--ease-out),
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.rail-dot.is-active {
  transform: scale(1.45);
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.55);
}

.rail-dot:hover {
  border-color: rgba(56, 189, 248, 0.6);
}

/* ===== HERO ===== */
.dev-hero {
  position: relative;
  width: min(980px, calc(100% - 48px));
  margin: 0 auto;
  padding: min(18vh, 140px) 0 80px;
  text-align: center;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
  animation: floaty 7s ease-in-out infinite;
}

.hero-orb--a {
  width: 220px;
  height: 220px;
  top: 8%;
  left: 4%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.35), transparent 70%);
}

.hero-orb--b {
  width: 280px;
  height: 280px;
  top: 20%;
  right: 0%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.28), transparent 70%);
  animation-delay: -2s;
}

.hero-orb--c {
  width: 160px;
  height: 160px;
  bottom: 12%;
  left: 30%;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.2), transparent 70%);
  animation-delay: -4s;
}

.dev-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #7dd3fc;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.16);
  font-size: 0.78rem;
  font-weight: 700;
}

.dev-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px #34d399;
}

.dev-hero h1 {
  margin-bottom: 18px;
  font-size: clamp(2.8rem, 8vw, 5.4rem);
  font-weight: 900;
  line-height: 0.95;
}

.dev-hero .brand span:first-child {
  color: #fff;
}
.dev-hero .brand span:last-child {
  color: var(--accent);
}

.dev-hero-rest {
  display: block;
  margin-top: 10px;
  color: rgba(248, 250, 252, 0.92);
  font-size: 0.55em;
  font-weight: 800;
}

.split-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(1.1em) rotateX(-70deg);
  transition:
    opacity 0.55s var(--ease-out),
    transform 0.55s var(--ease-out);
}

.split-char.is-in {
  opacity: 1;
  transform: none;
}

.dev-hero-sub {
  max-width: 620px;
  margin: 0 auto 36px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 42px;
}

.hero-stat {
  min-width: 140px;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(8, 15, 28, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.14);
  text-align: center;
}

.hero-stat strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 900;
  color: #7dd3fc;
  margin-bottom: 4px;
}

.hero-stat span {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}

.scroll-hint {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: rgba(226, 232, 240, 0.45);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-mouse {
  width: 22px;
  height: 34px;
  border: 2px solid rgba(148, 163, 184, 0.35);
  border-radius: 12px;
  position: relative;
}

.scroll-mouse span {
  position: absolute;
  left: 50%;
  top: 7px;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--accent);
  animation: mouseScroll 1.6s ease-in-out infinite;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ===== MARQUEE ===== */
.marquee-band {
  border-block: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(8, 15, 28, 0.55);
  overflow: hidden;
  padding: 14px 0;
  margin-bottom: 20px;
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 36px;
  animation: marquee 28s linear infinite;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.35);
}

.marquee-track span::after {
  content: "✦";
  margin-left: 36px;
  color: rgba(56, 189, 248, 0.45);
}

/* ===== SCROLLY ===== */
.scrolly {
  position: relative;
  padding-bottom: 60px;
}

.scrolly-progress {
  position: sticky;
  top: 74px;
  z-index: 40;
  height: 3px;
  background: rgba(148, 163, 184, 0.12);
}

.scrolly-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--nitro));
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.45);
}

.scrolly-layout {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.88fr) minmax(0, 1.12fr);
  gap: 48px;
  align-items: start;
  padding: 28px 0 100px;
}

.scrolly-sticky {
  position: sticky;
  top: 110px;
  height: calc(100vh - 140px);
  min-height: 460px;
  display: flex;
  align-items: center;
}

.sticky-panel {
  position: relative;
  width: 100%;
  min-height: 460px;
  padding: 36px 28px;
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(15, 23, 42, 0.96), rgba(8, 15, 28, 0.92)),
    #0b1220;
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  display: grid;
  place-items: center;
  transition:
    border-color 0.5s ease,
    box-shadow 0.5s ease,
    transform 0.5s var(--ease-out);
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}

.sticky-panel[data-active="bots"],
.sticky-panel[data-active="roadmap"] {
  border-color: rgba(167, 139, 250, 0.35);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.38),
    0 0 40px rgba(167, 139, 250, 0.12);
}

.sticky-panel[data-active="jobs"],
.sticky-panel[data-active="cta"] {
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.38),
    0 0 40px rgba(56, 189, 248, 0.14);
}

.sticky-ring {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 1px dashed rgba(56, 189, 248, 0.25);
  animation: spinSlow 18s linear infinite;
}

.sticky-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.28), transparent 68%);
  filter: blur(8px);
  animation: pulseSoft 4s ease-in-out infinite;
  transition: background 0.45s ease;
}

.sticky-panel[data-active="bots"] .sticky-glow,
.sticky-panel[data-active="roadmap"] .sticky-glow {
  background: radial-gradient(circle, rgba(167, 139, 250, 0.32), transparent 68%);
}

.sticky-code {
  position: absolute;
  inset: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  line-height: 1.7;
  color: rgba(125, 211, 252, 0.18);
  padding: 18px;
  white-space: pre;
  overflow: hidden;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
}

.sticky-scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px 28px;
  text-align: center;
  opacity: 0;
  transform: translateY(30px) scale(0.92) rotateX(8deg);
  filter: blur(8px);
  pointer-events: none;
  transition:
    opacity 0.55s var(--ease-out),
    transform 0.55s var(--ease-out),
    filter 0.55s var(--ease-out);
}

.sticky-scene.is-active {
  opacity: 1;
  transform: none;
  filter: none;
  pointer-events: auto;
}

.sticky-scene.is-exit {
  opacity: 0;
  transform: translateY(-24px) scale(1.04) rotateX(-6deg);
  filter: blur(6px);
}

.scene-badge {
  position: absolute;
  top: 22px;
  right: 24px;
  color: rgba(226, 232, 240, 0.14);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
}

.scene-icon {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #7dd3fc;
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(14, 165, 233, 0.08)),
    rgba(15, 23, 42, 0.76);
  border: 1px solid rgba(56, 189, 248, 0.22);
  animation: floaty 5s ease-in-out infinite;
}

.scene-icon--nitro {
  color: #c4b5fd;
  background:
    linear-gradient(135deg, rgba(167, 139, 250, 0.22), rgba(124, 58, 237, 0.1)),
    rgba(15, 23, 42, 0.76);
  border-color: rgba(167, 139, 250, 0.3);
}

.sticky-scene h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 900;
}

.sticky-scene p {
  max-width: 280px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.scene-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 4px;
}

.scene-chips span,
.mail-chip,
.soon-pill {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
}

.scene-chips span {
  color: #7dd3fc;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.22);
}

.mail-chip {
  color: #7dd3fc;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.28);
  font-size: 0.72rem;
}

.soon-pill {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c4b5fd;
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.28);
}

.process-orbit {
  position: relative;
  width: 120px;
  height: 120px;
  margin-top: 8px;
  animation: orbitSpin 10s linear infinite;
}

.process-orbit span {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 900;
  color: #0f172a;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}

.process-orbit span:nth-child(1) {
  top: 0;
  left: 46px;
}
.process-orbit span:nth-child(2) {
  top: 46px;
  right: 0;
}
.process-orbit span:nth-child(3) {
  bottom: 0;
  left: 46px;
}
.process-orbit span:nth-child(4) {
  top: 46px;
  left: 0;
}

/* ===== CHAPTERS ===== */
.scrolly-chapters {
  display: flex;
  flex-direction: column;
}

.chapter {
  min-height: 115vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 0;
  opacity: 0.22;
  transform: translateY(40px) scale(0.985);
  filter: blur(1.5px);
  transition:
    opacity 0.55s var(--ease-out),
    transform 0.55s var(--ease-out),
    filter 0.55s var(--ease-out);
}

.chapter.is-active {
  opacity: 1;
  transform: none;
  filter: none;
}

.chapter.is-active .reveal-child {
  animation: stepPop 0.65s var(--ease-out) both;
}

.chapter.is-active .reveal-child:nth-child(1) {
  animation-delay: 0.02s;
}
.chapter.is-active .reveal-child:nth-child(2) {
  animation-delay: 0.08s;
}
.chapter.is-active .reveal-child:nth-child(3) {
  animation-delay: 0.14s;
}
.chapter.is-active .reveal-child:nth-child(4) {
  animation-delay: 0.2s;
}
.chapter.is-active .reveal-child:nth-child(5) {
  animation-delay: 0.26s;
}

.chapter-label {
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.chapter[data-chapter="bots"] .chapter-label,
.chapter[data-chapter="roadmap"] .chapter-label {
  color: #c4b5fd;
}

.chapter h2 {
  margin-bottom: 16px;
  font-size: clamp(2.1rem, 4.2vw, 3.2rem);
  font-weight: 900;
}

.glitch-title {
  animation: glitchSkip 4.5s steps(2, end) infinite;
}

.chapter-lead {
  max-width: 540px;
  margin-bottom: 28px;
  color: rgba(226, 232, 240, 0.72);
  font-size: 1.05rem;
  line-height: 1.75;
}

.feature-grid,
.role-stack,
.bot-grid,
.wave-list {
  display: grid;
  gap: 12px;
  max-width: 540px;
}

.feature-grid {
  grid-template-columns: 1fr;
}

.role-stack {
  grid-template-columns: 1fr 1fr;
}

.bot-grid,
.wave-list {
  grid-template-columns: 1fr;
  margin-bottom: 18px;
}

.feature-tile,
.role-card,
.bot-card,
.wave-item,
.chapter-card {
  padding: 18px 20px;
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(8, 15, 28, 0.78)),
    rgba(8, 15, 28, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  position: relative;
  overflow: hidden;
  transition:
    border-color 0.3s ease,
    transform 0.35s var(--ease-out),
    box-shadow 0.35s ease;
  transform-style: preserve-3d;
}

.feature-tile:hover,
.role-card:hover,
.bot-card:hover,
.wave-item:hover,
.chapter-card:hover {
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.feature-tile strong,
.role-card h3,
.bot-card h3,
.wave-item h3 {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}

.feature-tile p,
.role-card p,
.bot-card p,
.wave-item p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.role-num {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 1.4rem;
  font-weight: 900;
  color: rgba(226, 232, 240, 0.12);
}

.chapter-card {
  max-width: 480px;
  margin-bottom: 16px;
}

.chapter-card::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.8), transparent);
}

.chapter-card--soon::after {
  background: linear-gradient(90deg, rgba(167, 139, 250, 0.85), transparent);
}

.chapter-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: rgba(226, 232, 240, 0.7);
  font-size: 0.82rem;
  font-weight: 700;
}

.chapter-card-head svg {
  color: var(--accent);
}
.chapter-card--soon .chapter-card-head svg {
  color: #c4b5fd;
}

.mail-link {
  display: inline-block;
  color: #7dd3fc;
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 800;
  text-decoration: none;
  word-break: break-all;
  transition:
    color 0.2s ease,
    letter-spacing 0.3s ease;
}

.mail-link:hover {
  color: #bae6fd;
  letter-spacing: 0.02em;
}

.soon-line {
  color: #c4b5fd;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 900;
  letter-spacing: 0.04em;
}

.chapter-hint {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

.cta-btn {
  display: inline-flex;
  margin-top: 18px;
  padding: 12px 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  color: #07111f;
  font-weight: 900;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 14px 32px rgba(14, 165, 233, 0.2);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    filter 0.25s ease;
}

.cta-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 40px rgba(14, 165, 233, 0.32);
  filter: brightness(1.05);
}

.cta-btn--xl {
  font-size: 1.05rem;
  padding: 16px 22px;
}

.checklist {
  list-style: none;
  max-width: 480px;
  display: grid;
  gap: 10px;
}

.checklist li {
  position: relative;
  padding: 12px 14px 12px 42px;
  border-radius: 10px;
  background: rgba(8, 15, 28, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 0.9rem;
  color: rgba(226, 232, 240, 0.72);
  font-weight: 600;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border-radius: 5px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: inset 0 0 0 3px transparent;
}

.chapter.is-active .checklist li::before {
  background: #38bdf8;
  box-shadow: inset 0 0 0 3px #0b1220;
}

.timeline {
  position: relative;
  max-width: 520px;
  padding-left: 8px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(
    180deg,
    rgba(56, 189, 248, 0.7),
    rgba(167, 139, 250, 0.5),
    transparent
  );
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 0.9s var(--ease-out);
}

.chapter.is-active .timeline::before {
  transform: scaleY(1);
}

.timeline-step {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 16px;
  align-items: start;
  padding: 14px 0;
  opacity: 0.35;
  transform: translateX(-12px);
  transition:
    opacity 0.4s ease,
    transform 0.4s var(--ease-out);
}

.chapter.is-active .timeline-step {
  opacity: 1;
  transform: none;
}

.chapter.is-active .timeline-step:nth-child(1) {
  transition-delay: 0.1s;
}
.chapter.is-active .timeline-step:nth-child(2) {
  transition-delay: 0.22s;
}
.chapter.is-active .timeline-step:nth-child(3) {
  transition-delay: 0.34s;
}
.chapter.is-active .timeline-step:nth-child(4) {
  transition-delay: 0.46s;
}

.step-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(56, 189, 248, 0.5);
  background: #0b1220;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.08);
  position: relative;
  z-index: 1;
}

.chapter.is-active .step-dot {
  background: var(--accent);
  border-color: #7dd3fc;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.45);
}

.timeline-step h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.timeline-step p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.bot-tag,
.wave-badge {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c4b5fd;
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.28);
}

.wave-badge {
  color: #7dd3fc;
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.25);
}

.cta-finale {
  max-width: 520px;
}

.chapter--cta {
  min-height: 100vh;
}

/* ===== FOOTER ===== */
footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 20px;
  padding: 28px 20px 40px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background:
    linear-gradient(180deg, rgba(8, 15, 28, 0.12), rgba(8, 15, 28, 0.72)),
    rgba(8, 15, 28, 0.84);
  color: rgba(226, 232, 240, 0.38);
  font-size: 0.85rem;
}

.footer-link {
  color: rgba(226, 232, 240, 0.52);
  text-decoration: none;
  font-weight: 600;
}
.footer-link:hover {
  color: var(--accent);
}

#scrollTop {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  border: none;
  color: #0f172a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(56, 189, 248, 0.4);
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.3s,
    transform 0.3s;
  pointer-events: none;
  z-index: 999;
}

#scrollTop.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#scrollTop:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.5);
}

@media (max-width: 980px) {
  .chapter-rail {
    display: none;
  }

  .scrolly {
    padding-bottom: 28px;
  }

  .scrolly-progress {
    top: 62px;
  }

  .scrolly-layout {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px 0 64px;
  }

  .scrolly-sticky {
    position: relative;
    top: auto;
    height: auto;
    min-height: 0;
    z-index: 2;
    align-items: stretch;
    margin: 8px 0 18px;
  }

  .sticky-panel {
    min-height: 168px;
    padding: 20px 16px;
    border-radius: 14px;
    transform: none !important;
    box-shadow:
      0 12px 28px rgba(0, 0, 0, 0.32),
      inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }

  body::before {
    transform: none;
  }

  #fxCanvas {
    opacity: 0.35;
  }

  .reveal {
    transform: translateY(16px);
    transition-duration: 0.45s;
  }

  .sticky-code,
  .sticky-ring,
  .sticky-glow {
    display: none;
  }

  .sticky-scene {
    position: absolute;
    inset: 0;
    gap: 6px;
    padding: 18px 16px 16px;
    transform: translateY(12px);
    filter: none;
    transition:
      opacity 0.35s var(--ease-out),
      transform 0.35s var(--ease-out);
  }

  .sticky-scene.is-active {
    transform: none;
  }

  .sticky-scene.is-exit {
    transform: translateY(-10px);
    filter: none;
  }

  .scene-badge {
    top: 10px;
    right: 12px;
    font-size: 1.6rem;
  }

  .scene-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    animation: none;
  }

  .scene-icon svg {
    width: 24px;
    height: 24px;
  }

  .sticky-scene h2 {
    font-size: 1.35rem;
  }

  .sticky-scene p {
    max-width: 100%;
    font-size: 0.84rem;
    line-height: 1.45;
  }

  .scene-chips,
  .process-orbit {
    display: none;
  }

  .mail-chip,
  .soon-pill {
    margin-top: 2px;
    font-size: 0.72rem;
  }

  .chapter {
    min-height: 78vh;
    justify-content: flex-start;
    padding: 36px 0 56px;
    opacity: 0.34;
    transform: translateY(18px);
    filter: none;
  }

  .chapter.is-active {
    opacity: 1;
    transform: none;
  }

  .chapter h2 {
    font-size: clamp(1.7rem, 8vw, 2.4rem);
  }

  .chapter-lead {
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.65;
  }

  .role-stack {
    grid-template-columns: 1fr;
  }

  .chapter--cta {
    min-height: 70vh;
  }

  #scrollTop {
    bottom: 18px;
    right: 16px;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 640px) {
  .dev-hero {
    width: calc(100% - 32px);
    min-height: auto;
    padding: 64px 0 48px;
  }

  .scrolly-progress {
    top: 58px;
  }

  .scrolly-layout {
    width: calc(100% - 28px);
    gap: 10px;
  }

  .scrolly-sticky {
    margin: 4px 0 14px;
  }

  .sticky-panel {
    min-height: 150px;
    padding: 16px 14px;
  }

  .sticky-scene {
    padding: 14px 12px;
  }

  .sticky-scene h2 {
    font-size: 1.2rem;
  }

  .sticky-scene p {
    font-size: 0.8rem;
  }

  .chapter {
    min-height: 72vh;
    padding: 28px 0 48px;
  }

  .hero-stat {
    min-width: 110px;
  }

  .cursor-glow {
    display: none;
  }

  nav {
    flex-wrap: nowrap;
    gap: 8px;
    min-height: auto;
    padding: 10px 12px;
  }

  .logo {
    flex: 0 1 auto;
    min-width: 0;
    font-size: 1.05rem;
    min-height: 40px;
    padding: 0 10px 0 8px;
  }

  .logo::before {
    width: 28px;
    height: 28px;
  }

  .nav-right {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 6px;
    padding: 3px;
    overflow: visible;
  }

  .btn-lang-dev,
  .btn-back {
    min-height: 36px;
    padding: 0 10px;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .btn-back span {
    display: inline;
  }

  .cta-btn,
  .cta-btn--xl {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    min-height: 48px;
  }

  footer {
    flex-direction: column;
    gap: 10px;
    padding: 24px 16px 36px;
    text-align: center;
  }

  .footer-link {
    padding: 8px 10px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }

  .hero-stats {
    width: 100%;
  }

  .hero-stat {
    flex: 1 1 40%;
  }
}

@media (max-width: 420px) {
  .logo {
    font-size: 0.95rem;
    padding: 0 8px 0 6px;
  }

  .logo::before {
    width: 24px;
    height: 24px;
    margin-right: 5px;
  }

  .btn-lang-dev,
  .btn-back {
    min-height: 34px;
    padding: 0 8px;
    font-size: 0.74rem;
    gap: 5px;
  }

  .btn-back span {
    display: none;
  }

  .dev-hero h1 {
    font-size: 2.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
