html {
  scroll-behavior: smooth;
}
body {
  background: #020617;
  font-family: "Inter", sans-serif;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
::selection {
  background: #1d4ed8;
  color: #eff6ff;
}
.bg-atmo {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  will-change: transform;
}
.blob-a {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, #1d4ed8, transparent 70%);
  top: -160px;
  right: -120px;
  animation: drift1 22s ease-in-out infinite;
}
.blob-b {
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, #1e3a8a, transparent 70%);
  bottom: -140px;
  left: -100px;
  animation: drift2 26s ease-in-out infinite;
}
.blob-c {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, #0f172a, transparent 70%);
  top: 40%;
  left: 50%;
  animation: drift3 30s ease-in-out infinite;
}
@keyframes drift1 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-60px, 60px) scale(1.15);
  }
}
@keyframes drift2 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(50px, -40px) scale(1.1);
  }
}
@keyframes drift3 {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-45%, -55%) scale(1.2);
  }
}
.grid-veil {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(
    ellipse 80% 60% at 50% 0%,
    black 40%,
    transparent 100%
  );
}
main,
footer,
.corner-ui,
.rail {
  position: relative;
  z-index: 1;
}
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 {
  transition-delay: 0.08s;
}
.reveal-delay-2 {
  transition-delay: 0.16s;
}
.floaty {
  animation: floaty 5s ease-in-out infinite;
}
@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
.grad-text {
  background: linear-gradient(90deg, #60a5fa, #93c5fd 40%, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tilt {
  transform-style: preserve-3d;
  transition: transform 0.2s ease-out;
  will-change: transform;
}
.rail {
  position: fixed;
  right: 1.4rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.rail-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(148, 163, 184, 0.18);
  transform: translateX(-50%);
  z-index: -1;
}
.rail-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.35);
  margin: 11px 0;
  position: relative;
  transition:
    background 0.25s,
    transform 0.25s;
  cursor: pointer;
}
.rail-dot:hover {
  background: #93c5fd;
}
.rail-dot.active {
  background: #3b82f6;
  transform: scale(1.5);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18);
}
.rail-dot .tip {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  color: #cbd5f5;
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.2);
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}
.rail-dot:hover .tip {
  opacity: 1;
}
@media (max-width: 860px) {
  .rail {
    display: none;
  }
}
.corner-ui {
  position: fixed;
  z-index: 40;
}
.diagram-box {
  height: 23rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0b1220;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  padding: 2px;
}
.diagram-box img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.tab {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  color: #94a3b8;
  background: none;
  border: none;
  padding: 0.6rem 0.2rem;
  margin-right: 1.5rem;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}
.tab.active {
  color: #e2e8f0;
  border-bottom-color: #3b82f6;
}
.tabpanel {
  display: none;
}
.tabpanel.active {
  display: block;
  animation: fadein 0.4s ease;
}
@keyframes fadein {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.video-shell {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 14px;
  overflow: hidden;
  background: #0b1220;
  cursor: pointer;
  border: 1px solid rgba(148, 163, 184, 0.15);
}
.video-shell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.play-circle {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: rgba(29, 78, 216, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.5);
  animation: pulse-ring 2.4s ease-out infinite;
}
@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.45);
  }
  70% {
    box-shadow: 0 0 0 22px rgba(59, 130, 246, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
  }
}
.code-block {
  background: #0b1220;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 10px;
  padding: 1.1rem 1.3rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.83rem;
  color: #94a3b8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  overflow-x: hidden;
  margin: 0;
}
.terminal-line {
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
  letter-spacing: 0.01em;
  text-shadow: 0 0 14px rgba(96, 165, 250, 0.25);
}
.terminal-prompt {
  color: #60a5fa;
  margin-right: 0.5rem;
  font-weight: 600;
  text-shadow: 0 0 12px rgba(59, 130, 246, 0.45);
}
.caret {
  display: inline-block;
  width: 0.55em;
  height: 1.15em;
  margin-left: 0.18rem;
  background: #60a5fa;
  border-radius: 1px;
  vertical-align: middle;
  box-shadow:
    0 0 8px rgba(96, 165, 250, 0.7),
    0 0 18px rgba(59, 130, 246, 0.35);
  animation: terminal-blink 0.9s steps(1, end) infinite;
}
@keyframes terminal-blink {
  0%,
  45% {
    opacity: 1;
  }

  46%,
  100% {
    opacity: 0;
  }
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.terminal-line:has(.caret) {
  position: relative;
}

.terminal-line::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 100%;
  max-width: 360px;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(59, 130, 246, 0),
    rgba(59, 130, 246, 0.35),
    rgba(59, 130, 246, 0)
  );
  opacity: 0.55;
}
.chip {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 6px;
  padding: 0.28rem 0.55rem;
}
.vital {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
}

.creator-section {
  max-width: 72rem;
  margin: 0 auto;
  padding: 4.5rem 1.5rem;
}
.creator-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.creator-portrait-wrap {
  position: relative;
  width: 176px;
  height: 176px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.75rem;
}
.creator-glow {
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.4), transparent 70%);
  filter: blur(26px);
  animation: creator-pulse 4s ease-in-out infinite;
  z-index: 0;
}
@keyframes creator-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.16);
    opacity: 1;
  }
}
.creator-ring {
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(from 0deg, #1d4ed8, #60a5fa, #1e3a8a, #1d4ed8);
  -webkit-mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 3px),
    #000 calc(100% - 3px)
  );
  mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 3px),
    #000 calc(100% - 3px)
  );
  animation: spin-ring 6s linear infinite;
  z-index: 1;
}
@keyframes spin-ring {
  to {
    transform: rotate(360deg);
  }
}
.creator-photo {
  position: relative;
  z-index: 2;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #020617;
  box-shadow: 0 20px 45px -18px rgba(0, 0, 0, 0.7);
}
.creator-name {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  background: linear-gradient(90deg, #60a5fa, #93c5fd 45%, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0 0 0.5rem;
}
.creator-title {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: #94a3b8;
  margin: 0 0 2rem;
}
.creator-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}
.creator-link {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: #0f172a;
  color: #e2e8f0;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    color 0.25s ease;
}
.creator-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(59, 130, 246, 0.35) 50%,
    transparent 70%
  );
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}
.creator-link:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 130, 246, 0.6);
  color: #bfdbfe;
  box-shadow: 0 12px 30px -14px rgba(59, 130, 246, 0.55);
}
.creator-link:hover::before {
  transform: translateX(120%);
}
.creator-link span {
  position: relative;
  z-index: 1;
}

@media (max-width: 640px) {
  .creator-section {
    padding: 3rem 1.25rem;
  }
  .creator-portrait-wrap {
    width: 140px;
    height: 140px;
    margin-bottom: 1.4rem;
  }
  .creator-glow {
    inset: -22px;
  }
  .creator-ring {
    inset: -7px;
  }
  .creator-photo {
    width: 128px;
    height: 128px;
    border-width: 3px;
  }
  .creator-name {
    font-size: 1.4rem;
    margin-bottom: 0.4rem;
  }
  .creator-title {
    font-size: 0.75rem;
    margin-bottom: 1.5rem;
  }
  .creator-links {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 260px;
    gap: 0.65rem;
  }
  .creator-link {
    width: 100%;
    padding: 0.75rem 1.2rem;
    font-size: 0.8rem;
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  .creator-portrait-wrap {
    width: 156px;
    height: 156px;
  }
  .creator-photo {
    width: 142px;
    height: 142px;
  }
  .creator-name {
    font-size: 1.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .creator-glow,
  .creator-ring {
    animation: none;
  }
}
