/* ============================================
   MEMBOT — Premium Web Experience
   ============================================ */

:root {
  --bg-dark: #050508;
  --bg-card: #0a0a0f;
  --text-primary: #f0f2ff;
  --text-muted: #8b8fa8;
  --accent-blue: #4d7cff;
  --accent-purple: #8b5cf6;
  --accent-cyan: #22d3ee;
  --glow-blue: rgba(77, 124, 255, 0.4);
  --glow-purple: rgba(139, 92, 246, 0.4);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --font-display: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: auto;
}

body {
  font-family: var(--font-display);
  background: var(--bg-dark);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ============================================
   NEURAL LATTICE BG — tech showcase, Membot teması
   ============================================ */

.neural-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--bg-dark);
  overflow: hidden;
}

.main-content {
  position: relative;
  z-index: 1;
}

/* Perspective grid — daha dik açı (68deg) */
.neural-perspective {
  position: absolute;
  inset: 0;
  perspective: 800px;
  transform-style: preserve-3d;
}

.neural-grid {
  position: absolute;
  bottom: -25%;
  left: -15%;
  right: -15%;
  height: 160%;
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(34, 211, 238, 0.06) 50%, transparent 50.2%),
    linear-gradient(0deg, transparent 49.8%, rgba(139, 92, 246, 0.05) 50%, transparent 50.2%);
  background-size: 5% 4%;
  transform-origin: center bottom;
  opacity: 0.6;
  mask-image: linear-gradient(to top, transparent, black 40%);
  -webkit-mask-image: linear-gradient(to top, transparent, black 40%);
}

/* Neural network SVG — scroll ile opacity/scale JS'den */
.neural-network {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.45;
  transform-origin: center center;
}

/* Base lines — cyan/mor gradient paleti */
.neural-lines-base line {
  stroke: rgba(34, 211, 238, 0.18);
  stroke-width: 1px;
}

.neural-lines-base line.near-mouse {
  stroke: rgba(34, 211, 238, 0.4);
}

/* Data flow — scroll ile hız değişir (--flow-duration) */
.neural-lines-flow line {
  stroke: url(#lineGrad);
  stroke-width: 2px;
  stroke-dasharray: 8 220;
  stroke-linecap: round;
  animation: dataFlow var(--flow-duration, 2.5s) linear infinite;
}

.neural-lines-flow line:nth-child(odd) { animation-delay: 0.5s; }
.neural-lines-flow line:nth-child(3n) { animation-delay: 1s; }
.neural-lines-flow line:nth-child(5n) { animation-delay: 1.5s; }

@keyframes dataFlow {
  to { stroke-dashoffset: -228; }
}

/* Pulse wave — scroll ile hız değişir (--pulse-duration) */
.neural-lines-pulse line {
  stroke: rgba(34, 211, 238, 0.6);
  stroke-width: 2.5px;
  stroke-dasharray: 40 400;
  stroke-linecap: round;
  animation: pulseWave var(--pulse-duration, 5s) ease-in-out infinite;
}

.neural-lines-pulse line:nth-child(2) { animation-delay: 0.3s; }
.neural-lines-pulse line:nth-child(3) { animation-delay: 0.6s; }
.neural-lines-pulse line:nth-child(4) { animation-delay: 0.9s; }
.neural-lines-pulse line:nth-child(5) { animation-delay: 1.2s; }
.neural-lines-pulse line:nth-child(6) { animation-delay: 1.5s; }
.neural-lines-pulse line:nth-child(7) { animation-delay: 1.8s; }

@keyframes pulseWave {
  0%, 15% { stroke-dashoffset: 0; opacity: 0.3; }
  20%, 35% { stroke-dashoffset: -440; opacity: 1; }
  40%, 100% { stroke-dashoffset: -440; opacity: 0.2; }
}

/* Nöronlar — cyan ağırlıklı soğuk palet */
.neural-nodes .node {
  fill: rgba(34, 211, 238, 0.75);
  transition: opacity 0.3s, filter 0.3s;
}

.neural-nodes .node-hub {
  fill: rgba(139, 92, 246, 0.9);
}

.neural-nodes .node.near-mouse {
  filter: drop-shadow(0 0 6px rgba(34, 211, 238, 0.8));
  opacity: 1;
}

.neural-nodes .node-hub.near-mouse {
  filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.9));
}

.neural-nodes .node-pulse {
  animation: nodePulse 2.5s ease-in-out infinite;
}

.neural-nodes .node-pulse.delay-1 { animation-delay: 0.4s; }
.neural-nodes .node-pulse.delay-2 { animation-delay: 0.8s; }
.neural-nodes .node-pulse.delay-3 { animation-delay: 1.2s; }

@keyframes nodePulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* ============================================
   INTRO (first scroll section)
   ============================================ */

.page-intro {
  position: relative;
  min-height: 100svh;
  height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 3rem;
}

.intro-robot-fullpage {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.intro-robot-fullpage canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.intro-robot-spacer {
  width: 380px;
  height: 380px;
  margin-bottom: 4rem;
}

.intro-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
  opacity: 0.35;
}

/* Intro BG — zengin katmanlı */
.intro-mesh {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 50% 50%, rgba(77, 124, 255, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 45%),
    radial-gradient(ellipse 50% 35% at 20% 75%, rgba(34, 211, 238, 0.08) 0%, transparent 45%);
  pointer-events: none;
}

/* Merkezden yayılan halkalar — neural ripple */
.intro-rings {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.intro-rings::before,
.intro-rings::after {
  content: '';
  position: absolute;
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 50%;
  animation: ringExpand 6s ease-out infinite;
}

.intro-rings::after {
  animation-delay: 2s;
  border-color: rgba(139, 92, 246, 0.3);
}

@keyframes ringExpand {
  0% { width: 0; height: 0; opacity: 0.8; }
  100% { width: 120vmax; height: 120vmax; opacity: 0; }
}

/* Yumuşak orblar */
.intro-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  animation: introOrbFloat 12s ease-in-out infinite;
}

.intro-orb-1 {
  width: 350px;
  height: 350px;
  background: rgba(77, 124, 255, 0.5);
  top: 10%;
  left: 15%;
  animation-delay: 0s;
}

.intro-orb-2 {
  width: 280px;
  height: 280px;
  background: rgba(139, 92, 246, 0.45);
  bottom: 15%;
  right: 10%;
  animation-delay: -4s;
}

.intro-orb-3 {
  width: 200px;
  height: 200px;
  background: rgba(34, 211, 238, 0.4);
  top: 60%;
  left: 25%;
  animation-delay: -2s;
}

@keyframes introOrbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 25px) scale(0.95); }
}

.intro-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.2) 1.5px, transparent 1.5px);
  background-size: 36px 36px;
  pointer-events: none;
  animation: introDotsDrift 25s ease-in-out infinite;
}

@keyframes introDotsDrift {
  0%, 100% { background-position: 0 0; }
  12% { background-position: 8px 14px; }
  25% { background-position: -12px 6px; }
  37% { background-position: 18px -8px; }
  50% { background-position: -6px -16px; }
  62% { background-position: 14px 10px; }
  75% { background-position: -18px 4px; }
  87% { background-position: 4px -12px; }
}

/* Hafif noise texture */
.intro-noise {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* Intro - minimal centered landing */
.intro-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.intro-robot {
  width: 380px;
  height: 380px;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: visible;
}

.intro-hero {
  padding: 2rem 2.5rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(10, 10, 20, 0.85) 0%, rgba(15, 15, 30, 0.75) 100%);
  border: 1px solid rgba(34, 211, 238, 0.12);
  box-shadow:
    0 0 40px rgba(34, 211, 238, 0.06),
    0 0 80px rgba(139, 92, 246, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.intro-tagline {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  margin: 0 0 2rem;
}

.intro-robot canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.intro-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.intro-link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.05em;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s;
}

.intro-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
  transition: width 0.3s;
}

.intro-link:hover {
  color: var(--text-primary);
}

.intro-link:hover::after {
  width: 100%;
}

.intro-contract-wrap {
  display: block;
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.85;
}

.intro-contract-label {
  color: var(--text-muted);
  opacity: 0.9;
}

.intro-contract {
  color: var(--text-muted);
  text-decoration: none;
  word-break: break-all;
  transition: color 0.2s;
}

.intro-contract:hover {
  color: var(--accent);
}

/* Intro Memory Wave — arka planın en altında dikey çizgiler, 3D dijital */
.intro-memory-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 130px;
  pointer-events: none;
  overflow: hidden;
  perspective: 400px;
}

.intro-memory-wave::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 1px,
    rgba(0, 0, 0, 0.04) 1px,
    rgba(0, 0, 0, 0.04) 2px
  );
  pointer-events: none;
}

.intro-memory-wave-svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotateX(8deg);
  transform-origin: center bottom;
  transform-style: preserve-3d;
}

.intro-memory-bar {
  fill: url(#memoryWaveGrad);
  stroke: rgba(139, 92, 246, 0.3);
  stroke-width: 0.5;
  transform-origin: bottom center;
  transform-box: fill-box;
  animation: memoryBarPulse 2.2s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.02s);
}

@keyframes memoryBarPulse {
  0%, 100% { opacity: 0.85; transform: scaleY(0.9); }
  50% { opacity: 1; transform: scaleY(1.08); }
}

/* Intro Memory Usage — sol üst köşe, terminal efekti */
.intro-memory-usage {
  position: absolute;
  top: 5.5rem;
  left: 3rem;
  z-index: 10;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(34, 211, 238, 0.9);
  text-shadow: 0 0 10px rgba(34, 211, 238, 0.3);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.power-up-btn {
  pointer-events: all;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(139, 92, 246, 0.9);
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 6px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: all 0.3s;
  text-shadow: 0 0 8px rgba(139, 92, 246, 0.3);
}

.power-up-btn:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.6);
  color: rgba(139, 92, 246, 1);
  text-shadow: 0 0 12px rgba(139, 92, 246, 0.5);
}

.power-up-btn:active {
  transform: scale(0.96);
}

.power-up-btn.booting {
  pointer-events: none;
  animation: bootPulse 0.15s ease-in-out infinite alternate;
}

@keyframes bootPulse {
  from { border-color: rgba(139, 92, 246, 0.3); color: rgba(139, 92, 246, 0.5); }
  to { border-color: rgba(34, 211, 238, 0.8); color: rgba(34, 211, 238, 1); }
}

.power-up-btn.booted {
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s ease-out;
}

.power-up-icon {
  font-size: 1rem;
  line-height: 1;
}

.intro-memory-usage-text::before {
  content: '> ';
  color: rgba(34, 211, 238, 0.6);
}

#intro-memory-value {
  color: rgba(139, 92, 246, 0.95);
  font-weight: 600;
  min-width: 3ch;
  display: inline-block;
}

.intro-noise {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* ============================================
   MAIN CONTENT
   ============================================ */

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 3rem;
  background: linear-gradient(to bottom, var(--bg-dark) 0%, transparent 100%);
  transition: background 0.3s, padding 0.3s;
}

.nav.scrolled {
  background: rgba(5, 5, 8, 0.9);
  backdrop-filter: blur(12px);
}

.nav-logo img {
  height: 32px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  position: relative;
  transition: color 0.3s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
  transition: width 0.3s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--border-subtle);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s;
}

.nav-cta:hover {
  background: var(--accent-blue);
  box-shadow: 0 0 20px var(--glow-blue);
}

.nav-cta-group {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* Pages */
.page {
  min-height: 100svh;
  position: relative;
  display: flex;
  align-items: center;
  padding: 6rem 3rem 3rem;
}


/* Split layout — sağ sol sol sağ */
.page-split-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* Overview: foto sol, yazı sağ */
.page-split-right .hero-visual { order: 1; }
.page-split-right .hero-content { order: 2; }

/* More Info: yazı sol, foto sağ */
.page-split-left .moreinfo-content { order: 1; }
.page-split-left .page-split-visual { order: 2; }

.page-split-left .tech-sticky-left { order: 1; }
.page-split-left .tech-sticky-right { order: 2; }


.page-split-visual .page-img-wrap {
  max-width: 100%;
}

.page.page-intro {
  padding: 2rem;
}

.page-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* 2. sayfa (Overview) — GIF arka plan */
#page1 .page-bg {
  background: url('assets/bg/desktop.gif') center center / cover no-repeat;
}

@media (max-width: 768px) {
  #page1 .page-bg {
    background-image: url('assets/bg/phone.gif');
    background-size: 130% auto;
    background-position: center 65%;
  }
}

.hex-pattern {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cpath fill='none' stroke='rgba(77,124,255,0.04)' stroke-width='0.3' d='M14 0l14 7v14l-14 7-14-7V7z'/%3E%3C/svg%3E");
  background-size: 28px 49px;
}

.hex-pattern-alt {
  opacity: 0.7;
}

.parallax-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.2;
}

.p-orb-1 {
  width: 500px;
  height: 500px;
  background: var(--accent-purple);
  top: 20%;
  right: -100px;
}

.p-orb-2 {
  width: 300px;
  height: 300px;
  background: var(--accent-blue);
  bottom: 10%;
  left: -50px;
}

.page-inner {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* Hero / Page 1 — page-split-inner handles grid */

.hero-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-blue);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title .line {
  display: block;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 1rem;
}

.hero-desc .highlight {
  color: var(--accent-cyan);
  font-weight: 500;
}

.hero-compat {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.compat-badge {
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
  background: rgba(77, 124, 255, 0.15);
  border: 1px solid rgba(77, 124, 255, 0.3);
  border-radius: 6px;
  color: var(--accent-cyan);
  font-weight: 500;
  transition: all 0.3s;
}

.compat-badge:hover {
  background: rgba(77, 124, 255, 0.25);
  transform: translateY(-2px);
}

.hero-stats {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.hero-stats strong {
  color: var(--accent-cyan);
  font-weight: 600;
}

.hero-stats-sep {
  margin: 0 0.5rem;
  opacity: 0.5;
}

.hero-cta {
  margin-top: 2rem;
}

/* Page 2: More Info — split layout, geniş metin */
.page-moreinfo .page-split-inner {
  max-width: 1400px;
}

.overview-glass {
  padding: 1.75rem 2.25rem;
  border-radius: 24px;
  background: rgba(15, 15, 30, 0.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(139, 92, 246, 0.06);
  box-shadow:
    0 0 25px rgba(139, 92, 246, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.overview-glass .hero-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin-bottom: 0.85rem;
}

.overview-glass .hero-desc {
  font-size: 0.88rem;
  margin-bottom: 0.6rem;
}

.moreinfo-content {
  max-width: none;
}

.moreinfo-text {
  font-size: 1.1rem;
  line-height: 1.75;
  max-width: 100%;
  color: var(--text-muted);
}

.page-split-left .moreinfo-content {
  text-align: left;
}

.moreinfo-content .section-label {
  display: inline-block;
  margin-bottom: 1.5rem;
}

.moreinfo-visual {
  margin: 2rem 0;
}

.moreinfo-visual .page-img-wrap {
  max-width: 100%;
}

/* Pipeline Diagram */
.pipeline-diagram {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 2.5rem 2rem;
  font-family: var(--font-mono);
  min-height: 520px;
}

.pipe-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 2rem;
  border-radius: 12px;
  border: 1px solid rgba(139, 92, 246, 0.25);
  background: rgba(15, 15, 30, 0.6);
  backdrop-filter: blur(8px);
  z-index: 2;
  transition: box-shadow 0.4s, border-color 0.4s;
}

.pipe-node:hover {
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.2);
}

.pipe-icon {
  font-size: 1.5rem;
  color: var(--accent-cyan);
  margin-bottom: 0.2rem;
}

.pipe-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.06em;
}

.pipe-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* Node-specific styles & pulse animations */
.pipe-query {
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.1);
  animation: pulseQuery 3s ease-in-out infinite;
}

@keyframes pulseQuery {
  0%, 100% { box-shadow: 0 0 20px rgba(34, 211, 238, 0.1); }
  50% { box-shadow: 0 0 35px rgba(34, 211, 238, 0.25), 0 0 60px rgba(34, 211, 238, 0.08); }
}

.pipe-embed {
  border-color: rgba(139, 92, 246, 0.35);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.08);
  animation: pulseEmbed 3.5s ease-in-out infinite 0.5s;
}

@keyframes pulseEmbed {
  0%, 100% { box-shadow: 0 0 20px rgba(139, 92, 246, 0.08); }
  50% { box-shadow: 0 0 30px rgba(139, 92, 246, 0.2), 0 0 50px rgba(139, 92, 246, 0.06); }
}

.pipe-blend {
  border-color: rgba(139, 92, 246, 0.4);
  background: rgba(139, 92, 246, 0.08);
  animation: pulseBlend 2.5s ease-in-out infinite;
  overflow: hidden;
}

.pipe-blend::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 12px;
  background: conic-gradient(from 0deg, transparent, rgba(139, 92, 246, 0.3), transparent, rgba(34, 211, 238, 0.2), transparent);
  animation: rotateGlow 4s linear infinite;
  z-index: -1;
}

@keyframes rotateGlow {
  to { transform: rotate(360deg); }
}

@keyframes pulseBlend {
  0%, 100% { box-shadow: 0 0 25px rgba(139, 92, 246, 0.12); }
  50% { box-shadow: 0 0 40px rgba(139, 92, 246, 0.3), 0 0 70px rgba(139, 92, 246, 0.1); }
}

.pipe-results {
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.1);
  animation: pulseResults 3s ease-in-out infinite 1s;
}

@keyframes pulseResults {
  0%, 100% { box-shadow: 0 0 20px rgba(34, 211, 238, 0.1); }
  50% { box-shadow: 0 0 35px rgba(34, 211, 238, 0.25), 0 0 55px rgba(34, 211, 238, 0.08); }
}

/* Connector lines */
.pipe-line {
  width: 2px;
  height: 32px;
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.5), rgba(139, 92, 246, 0.15));
  position: relative;
  z-index: 1;
}

.pipe-line-down {
  position: relative;
  overflow: visible;
}

.pipe-line-down::after {
  content: '';
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-purple);
  box-shadow: 0 0 10px var(--accent-purple), 0 0 20px rgba(139, 92, 246, 0.3);
  left: 50%;
  transform: translateX(-50%);
  animation: flowDown 1.6s ease-in-out infinite;
}

.pipe-line-down::before {
  content: '';
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
  left: 50%;
  transform: translateX(-50%);
  animation: flowDown 1.6s ease-in-out infinite 0.8s;
  opacity: 0.6;
}

@keyframes flowDown {
  0% { top: -2px; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { top: calc(100% + 2px); opacity: 0; }
}

/* Three branches */
.pipe-branches {
  display: flex;
  gap: 1.5rem;
  margin: 0;
  position: relative;
  z-index: 2;
}

.pipe-branch {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pipe-line-v {
  width: 2px;
  height: 26px;
  position: relative;
  overflow: visible;
}

.pipe-branch-cosine .pipe-line-v { background: rgba(77, 124, 255, 0.35); }
.pipe-branch-hamming .pipe-line-v { background: rgba(139, 92, 246, 0.35); }
.pipe-branch-keyword .pipe-line-v { background: rgba(34, 211, 238, 0.35); }

.pipe-branch-cosine .pipe-line-v::after,
.pipe-branch-hamming .pipe-line-v::after,
.pipe-branch-keyword .pipe-line-v::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  left: 50%;
  transform: translateX(-50%);
  animation: flowDown 1.4s ease-in-out infinite;
}

.pipe-branch-cosine .pipe-line-v::after {
  background: #4d7cff;
  box-shadow: 0 0 8px #4d7cff;
  animation-delay: 0s;
}

.pipe-branch-hamming .pipe-line-v::after {
  background: #8b5cf6;
  box-shadow: 0 0 8px #8b5cf6;
  animation-delay: 0.3s;
}

.pipe-branch-keyword .pipe-line-v::after {
  background: #22d3ee;
  box-shadow: 0 0 8px #22d3ee;
  animation-delay: 0.6s;
}

.pipe-signal {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.8rem 1.1rem;
  border-radius: 10px;
  border: 1px solid rgba(139, 92, 246, 0.2);
  background: rgba(10, 10, 25, 0.7);
  min-width: 100px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.pipe-signal:hover {
  transform: translateY(-2px);
}

/* Scan line effect on signal cards */
.pipe-signal::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 40%, rgba(255, 255, 255, 0.03) 50%, transparent 60%);
  animation: scanLine 3s linear infinite;
  pointer-events: none;
}

@keyframes scanLine {
  0% { top: -100%; }
  100% { top: 200%; }
}

.pipe-signal-pct {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.pipe-signal-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
}

.pipe-signal-desc {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.pipe-branch-cosine .pipe-signal {
  border-color: rgba(77, 124, 255, 0.35);
  box-shadow: 0 0 18px rgba(77, 124, 255, 0.08);
}
.pipe-branch-cosine .pipe-signal:hover { box-shadow: 0 0 30px rgba(77, 124, 255, 0.2); }
.pipe-branch-cosine .pipe-signal-pct { color: #4d7cff; }
.pipe-branch-cosine .pipe-signal::after { animation-delay: 0s; }

.pipe-branch-hamming .pipe-signal {
  border-color: rgba(139, 92, 246, 0.35);
  box-shadow: 0 0 18px rgba(139, 92, 246, 0.08);
}
.pipe-branch-hamming .pipe-signal:hover { box-shadow: 0 0 30px rgba(139, 92, 246, 0.2); }
.pipe-branch-hamming .pipe-signal-pct { color: #8b5cf6; }
.pipe-branch-hamming .pipe-signal::after { animation-delay: 1s; }

.pipe-branch-keyword .pipe-signal {
  border-color: rgba(34, 211, 238, 0.35);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.08);
}
.pipe-branch-keyword .pipe-signal:hover { box-shadow: 0 0 30px rgba(34, 211, 238, 0.2); }
.pipe-branch-keyword .pipe-signal-pct { color: #22d3ee; }
.pipe-branch-keyword .pipe-signal::after { animation-delay: 2s; }

/* Merge lines with animated gradient */
.pipe-merge-lines {
  width: 80%;
  height: 26px;
  position: relative;
  z-index: 1;
}

.pipe-merge-lines::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, rgba(77, 124, 255, 0.5), rgba(139, 92, 246, 0.6), rgba(34, 211, 238, 0.5));
  background-size: 200% 100%;
  animation: shiftGradient 3s ease-in-out infinite;
}

@keyframes shiftGradient {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 0%; }
}

.pipe-merge-lines::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background: rgba(139, 92, 246, 0.35);
  transform: translateX(-50%);
}

/* Floating particles — bigger & more visible */
.pipe-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.pipe-p1 {
  background: rgba(77, 124, 255, 0.7);
  box-shadow: 0 0 12px rgba(77, 124, 255, 0.5);
  animation: floatParticle1 4.5s ease-in-out infinite;
}

.pipe-p2 {
  background: rgba(139, 92, 246, 0.7);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.5);
  animation: floatParticle2 5.5s ease-in-out infinite 1.2s;
}

.pipe-p3 {
  background: rgba(34, 211, 238, 0.7);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.5);
  animation: floatParticle3 3.8s ease-in-out infinite 0.6s;
}

@keyframes floatParticle1 {
  0%, 100% { top: 10%; left: 15%; opacity: 0; transform: scale(1); }
  15% { opacity: 0.9; transform: scale(1.4); }
  50% { top: 60%; left: 35%; opacity: 0.6; transform: scale(1); }
  85% { opacity: 0.2; }
}

@keyframes floatParticle2 {
  0%, 100% { top: 20%; right: 10%; opacity: 0; transform: scale(1); }
  20% { opacity: 0.8; transform: scale(1.3); }
  65% { top: 75%; right: 30%; opacity: 0.5; transform: scale(1); }
  90% { opacity: 0.15; }
}

@keyframes floatParticle3 {
  0%, 100% { top: 35%; left: 55%; opacity: 0; transform: scale(1); }
  10% { opacity: 0.7; transform: scale(1.5); }
  60% { top: 80%; left: 40%; opacity: 0.4; transform: scale(1); }
  90% { opacity: 0.1; }
}

.pipe-p4 {
  background: rgba(160, 120, 255, 0.6);
  box-shadow: 0 0 10px rgba(160, 120, 255, 0.4);
  animation: floatParticle4 6s ease-in-out infinite 2s;
}

.pipe-p5 {
  background: rgba(77, 200, 255, 0.5);
  box-shadow: 0 0 10px rgba(77, 200, 255, 0.35);
  animation: floatParticle5 4s ease-in-out infinite 0.3s;
}

@keyframes floatParticle4 {
  0%, 100% { top: 5%; left: 70%; opacity: 0; transform: scale(1); }
  25% { opacity: 0.6; transform: scale(1.6); }
  55% { top: 50%; left: 60%; opacity: 0.4; }
  80% { top: 90%; left: 75%; opacity: 0.15; transform: scale(0.8); }
}

@keyframes floatParticle5 {
  0%, 100% { top: 50%; left: 5%; opacity: 0; transform: scale(1); }
  20% { opacity: 0.7; transform: scale(1.3); }
  50% { top: 30%; left: 20%; opacity: 0.5; }
  80% { top: 15%; left: 10%; opacity: 0.1; transform: scale(0.6); }
}

/* Ortak image placeholder */
.page-img-wrap {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: rgba(10, 10, 15, 0.6);
}

.page-img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.hero-visual .page-img-wrap {
  max-width: 520px;
}


.moreinfo-text p {
  margin-bottom: 1.5rem;
}

.moreinfo-text p:last-of-type {
  margin-bottom: 2rem;
}

.moreinfo-text strong {
  color: var(--accent-cyan);
  font-weight: 600;
}

.moreinfo-text em {
  color: var(--text-primary);
  font-style: italic;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.3s;
  cursor: pointer;
}

.btn-primary {
  color: var(--bg-dark);
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  border: none;
}

.btn-primary:hover {
  box-shadow: 0 0 40px var(--glow-blue), 0 0 80px var(--glow-purple);
  transform: translateY(-2px);
}

.btn-arrow {
  transition: transform 0.3s;
}

.btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}

/* Magnetic button effect */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

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

.hero-visual {
  display: flex;
  justify-content: center;
}

.brain-card {
  width: 320px;
  aspect-ratio: 1;
  background: linear-gradient(135deg, rgba(77, 124, 255, 0.1), rgba(139, 92, 246, 0.05));
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.brain-card:hover {
  border-color: rgba(77, 124, 255, 0.3);
  box-shadow: 0 0 60px rgba(77, 124, 255, 0.15);
  transform: scale(1.02);
}

.brain-card-inner {
  position: relative;
  text-align: center;
}

.hex-cluster {
  width: 120px;
  height: 120px;
  margin: 0 auto 1rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='35' viewBox='0 0 40 35'%3E%3Cpath fill='rgba(77,124,255,0.3)' d='M20 0l20 10v15l-20 10-20-10V10z'/%3E%3Cpath fill='rgba(139,92,246,0.2)' d='M20 5l15 7.5v11.25L20 31 5 23.75V12.5z'/%3E%3C/svg%3E");
  background-size: 40px 35px;
  animation: hexPulse 3s ease-in-out infinite;
}

@keyframes hexPulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

.brain-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.page-split-left .section-header {
  text-align: left;
}

.page-split-left .section-desc {
  margin-left: 0;
  margin-right: 0;
}

.section-label {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--accent-purple);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.2;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 1rem auto 0;
}

.metric-counter {
  color: var(--accent-cyan);
  font-weight: 700;
}

/* GSAP ScrollTrigger pin-spacer */
.pin-spacer {
  height: 80% !important;
  padding: 0 !important;
}

/* Technology — CSS sticky, sağ/sol height %100 eşit */
.tech-sticky-section {
  min-height: auto;
  align-items: stretch;
}

.tech-sticky-inner {
  align-items: stretch;
}

.tech-sticky-left {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.tech-sticky-visual {
  position: sticky;
  top: 20%;
  margin: 0;
  width: 100%;
  max-width: 480px;
}


/* ===================== Neural Core Monitor ===================== */
.ncore {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: rgba(8, 8, 18, 0.85);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 16px;
  padding: 1.2rem 1.5rem 1.5rem;
  font-family: var(--font-mono);
  overflow: hidden;
  backdrop-filter: blur(12px);
  box-shadow:
    0 0 40px rgba(139, 92, 246, 0.08),
    0 0 80px rgba(34, 211, 238, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Header */
.ncore-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(139, 92, 246, 0.12);
}

.ncore-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 8px #22d3ee, 0 0 16px rgba(34, 211, 238, 0.3);
  animation: statusBlink 2s ease-in-out infinite;
}

@keyframes statusBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.ncore-title {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  flex: 1;
}

.ncore-badge {
  font-size: 0.58rem;
  font-weight: 700;
  color: #22d3ee;
  padding: 0.15rem 0.5rem;
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 4px;
  letter-spacing: 0.1em;
  animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { border-color: rgba(34, 211, 238, 0.3); color: #22d3ee; }
  50% { border-color: rgba(34, 211, 238, 0.6); color: #5eeaff; text-shadow: 0 0 6px rgba(34, 211, 238, 0.4); }
}

/* Core Visualization */
.ncore-visual {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 1rem auto 1.2rem;
}

.ncore-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid transparent;
}

.ncore-ring-1 {
  inset: 0;
  border-color: rgba(139, 92, 246, 0.25);
  animation: ringRotate1 12s linear infinite;
  border-top-color: rgba(139, 92, 246, 0.6);
  border-right-color: rgba(139, 92, 246, 0.15);
}

.ncore-ring-2 {
  inset: 18px;
  border-color: rgba(77, 124, 255, 0.2);
  animation: ringRotate2 8s linear infinite reverse;
  border-bottom-color: rgba(77, 124, 255, 0.5);
  border-left-color: rgba(77, 124, 255, 0.12);
}

.ncore-ring-3 {
  inset: 36px;
  border-color: rgba(34, 211, 238, 0.15);
  animation: ringRotate3 6s linear infinite;
  border-top-color: rgba(34, 211, 238, 0.45);
}

@keyframes ringRotate1 { to { transform: rotate(360deg); } }
@keyframes ringRotate2 { to { transform: rotate(360deg); } }
@keyframes ringRotate3 { to { transform: rotate(360deg); } }

.ncore-center {
  position: absolute;
  inset: 54px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(8, 8, 18, 0.9) 70%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(139, 92, 246, 0.3);
  animation: corePulse 3s ease-in-out infinite;
}

@keyframes corePulse {
  0%, 100% { box-shadow: 0 0 20px rgba(139, 92, 246, 0.1), inset 0 0 15px rgba(139, 92, 246, 0.05); }
  50% { box-shadow: 0 0 40px rgba(139, 92, 246, 0.25), inset 0 0 25px rgba(139, 92, 246, 0.12); }
}

.ncore-center-icon {
  font-size: 1.4rem;
  color: #8b5cf6;
  filter: drop-shadow(0 0 6px rgba(139, 92, 246, 0.5));
  transition: color 0.5s, filter 0.5s;
}

.ncore-center-label {
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  margin-top: 0.2rem;
  transition: color 0.5s;
}

/* Orbiting dots */
.ncore-orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.ncore-orbit span {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.ncore-orbit-1 {
  animation: ringRotate1 12s linear infinite;
}
.ncore-orbit-1 span {
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  background: #8b5cf6;
  box-shadow: 0 0 10px #8b5cf6, 0 0 20px rgba(139, 92, 246, 0.4);
}

.ncore-orbit-2 {
  inset: 18px;
  animation: ringRotate2 8s linear infinite reverse;
}
.ncore-orbit-2 span {
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  background: #4d7cff;
  box-shadow: 0 0 10px #4d7cff, 0 0 20px rgba(77, 124, 255, 0.4);
}

.ncore-orbit-3 {
  inset: 36px;
  animation: ringRotate3 6s linear infinite;
}
.ncore-orbit-3 span {
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  background: #22d3ee;
  box-shadow: 0 0 10px #22d3ee, 0 0 20px rgba(34, 211, 238, 0.4);
}

/* Data stream */
.ncore-stream {
  margin-bottom: 1rem;
  padding: 0.6rem 0.8rem;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 6px;
  border: 1px solid rgba(139, 92, 246, 0.08);
  max-height: 80px;
  overflow: hidden;
  position: relative;
}

.ncore-stream::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 24px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
  pointer-events: none;
}

.ncore-stream-line {
  font-size: 0.58rem;
  color: rgba(139, 92, 246, 0.5);
  line-height: 1.6;
  white-space: nowrap;
  overflow: hidden;
  opacity: 0;
  animation: streamFade 10s linear infinite;
}

.ncore-stream-line:nth-child(1) { animation-delay: 0s; color: rgba(77, 124, 255, 0.55); }
.ncore-stream-line:nth-child(2) { animation-delay: 2s; color: rgba(139, 92, 246, 0.55); }
.ncore-stream-line:nth-child(3) { animation-delay: 4s; color: rgba(34, 211, 238, 0.55); }
.ncore-stream-line:nth-child(4) { animation-delay: 6s; color: rgba(77, 124, 255, 0.55); }
.ncore-stream-line:nth-child(5) { animation-delay: 8s; color: rgba(34, 211, 238, 0.55); }

@keyframes streamFade {
  0%, 15% { opacity: 0; transform: translateY(4px); }
  20%, 80% { opacity: 1; transform: translateY(0); }
  85%, 100% { opacity: 0; transform: translateY(-4px); }
}

/* Active stream highlight — changes per card */
.ncore[data-active="0"] .ncore-stream-line:nth-child(1),
.ncore[data-active="1"] .ncore-stream-line:nth-child(2),
.ncore[data-active="2"] .ncore-stream-line:nth-child(3),
.ncore[data-active="3"] .ncore-stream-line:nth-child(4),
.ncore[data-active="4"] .ncore-stream-line:nth-child(5) {
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 0 8px rgba(139, 92, 246, 0.4);
}

/* Stats bar */
.ncore-stats {
  display: flex;
  justify-content: space-around;
  margin-bottom: 0.8rem;
}

.ncore-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  border: 1px solid rgba(139, 92, 246, 0.1);
  background: rgba(139, 92, 246, 0.04);
  transition: border-color 0.4s, box-shadow 0.4s;
}

.ncore-stat-val {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.ncore-stat-key {
  font-size: 0.55rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-top: 0.1rem;
}

/* Highlight stats per card */
.ncore[data-active="2"] .ncore-stat:nth-child(1),
.ncore[data-active="2"] .ncore-stat:nth-child(2) {
  border-color: rgba(34, 211, 238, 0.35);
  box-shadow: 0 0 15px rgba(34, 211, 238, 0.1);
}
.ncore[data-active="2"] .ncore-stat:nth-child(1) .ncore-stat-val,
.ncore[data-active="2"] .ncore-stat:nth-child(2) .ncore-stat-val {
  color: #22d3ee;
}

.ncore[data-active="4"] .ncore-stat:nth-child(3) {
  border-color: rgba(77, 124, 255, 0.35);
  box-shadow: 0 0 15px rgba(77, 124, 255, 0.1);
}
.ncore[data-active="4"] .ncore-stat:nth-child(3) .ncore-stat-val {
  color: #4d7cff;
}

/* Progress bar */
.ncore-progress {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.ncore-progress-track {
  flex: 1;
  height: 3px;
  background: rgba(139, 92, 246, 0.12);
  border-radius: 2px;
  overflow: hidden;
}

.ncore-progress-fill {
  height: 100%;
  width: 78%;
  border-radius: 2px;
  background: linear-gradient(90deg, #8b5cf6, #22d3ee);
  background-size: 200% 100%;
  animation: progressShift 3s ease-in-out infinite;
  transition: width 0.8s ease;
}

@keyframes progressShift {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 0%; }
}

.ncore-progress-label {
  font-size: 0.55rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  white-space: nowrap;
  transition: color 0.4s;
}

/* Card-specific core color shifts */
.ncore[data-active="0"] { border-color: rgba(77, 124, 255, 0.25); }
.ncore[data-active="0"] .ncore-center-icon { color: #4d7cff; filter: drop-shadow(0 0 8px rgba(77, 124, 255, 0.5)); }
.ncore[data-active="0"] .ncore-center-label { color: #4d7cff; }

.ncore[data-active="1"] { border-color: rgba(139, 92, 246, 0.25); }
.ncore[data-active="1"] .ncore-center-icon { color: #a78bfa; filter: drop-shadow(0 0 8px rgba(167, 139, 250, 0.5)); }
.ncore[data-active="1"] .ncore-center-label { color: #a78bfa; }

.ncore[data-active="2"] { border-color: rgba(34, 211, 238, 0.25); }
.ncore[data-active="2"] .ncore-center-icon { color: #22d3ee; filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.5)); }
.ncore[data-active="2"] .ncore-center-label { color: #22d3ee; }
.ncore[data-active="2"] .ncore-ring-3 { border-top-color: rgba(34, 211, 238, 0.8); }

.ncore[data-active="3"] { border-color: rgba(77, 200, 255, 0.25); }
.ncore[data-active="3"] .ncore-center-icon { color: #4dc8ff; filter: drop-shadow(0 0 8px rgba(77, 200, 255, 0.5)); }
.ncore[data-active="3"] .ncore-center-label { color: #4dc8ff; }

.ncore[data-active="4"] { border-color: rgba(52, 211, 153, 0.25); }
.ncore[data-active="4"] .ncore-center-icon { color: #34d399; filter: drop-shadow(0 0 8px rgba(52, 211, 153, 0.5)); }
.ncore[data-active="4"] .ncore-center-label { color: #34d399; }
.ncore[data-active="4"] .ncore-status-dot { background: #34d399; box-shadow: 0 0 8px #34d399; }

/* Scan line overlay */
.ncore-scanline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 10%, rgba(139, 92, 246, 0.15) 50%, transparent 90%);
  animation: ncoreScan 4s linear infinite;
  pointer-events: none;
  z-index: 10;
}

@keyframes ncoreScan {
  0% { top: 0; }
  100% { top: 100%; }
}

/* ===================== End Neural Core ===================== */

.tech-img-slot {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: rgba(10, 10, 15, 0.6);
}

.tech-img-slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease-out;
}

.tech-img-slot img.active {
  opacity: 1;
  z-index: 1;
}

.tech-sticky-right {
  padding-top: 0;
}

.tech-sticky-right .section-header {
  margin-bottom: 1.5rem;
}

/* Tech grid */
.tech-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.tech-sticky-right .tech-card {
  padding: 1.25rem;
}

.tech-card.numbered {
  position: relative;
}

.tech-num {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-blue);
  opacity: 0.25;
  line-height: 1;
}

.tech-card {
  padding: 2rem;
  background: rgba(10, 10, 15, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tech-card:hover {
  border-color: rgba(77, 124, 255, 0.3);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.tech-card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
  color: var(--accent-blue);
}

.tech-card-icon svg {
  width: 100%;
  height: 100%;
}

.tech-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.tech-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.demos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.demo-card {
  padding: 2rem;
  background: rgba(10, 10, 15, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.demo-card:hover {
  border-color: rgba(77, 124, 255, 0.3);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.demo-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.demo-badge {
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
  background: rgba(77, 124, 255, 0.2);
  border-radius: 4px;
  color: var(--accent-cyan);
  font-weight: 600;
}

.demo-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
}

.demo-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.demo-link {
  font-size: 0.9rem;
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.demo-link:hover {
  color: var(--accent-cyan);
}

.features-list-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--text-muted);
}

.features-list {
  max-width: 800px;
  margin: 0 auto 4rem;
}

.feature-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s;
}

.feature-item:hover {
  padding-left: 1rem;
  border-color: rgba(77, 124, 255, 0.2);
}

.feature-item:last-child {
  border-bottom: none;
}

.feature-num {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 500;
  color: var(--accent-blue);
  opacity: 0.8;
}

.feature-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-content p {
  font-size: 1rem;
  color: var(--text-muted);
}

.demo-cta,
.tech-cta {
  text-align: left;
  margin-top: 2rem;
}

.btn-github {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-github:hover {
  border-color: var(--accent-blue);
  background: rgba(77, 124, 255, 0.1);
  box-shadow: 0 0 30px var(--glow-blue);
}

/* Footer */
.footer {
  padding: 4rem 3rem;
  text-align: center;
  border-top: 1px solid var(--border-subtle);
}

.footer-logo {
  height: 40px;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.footer p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.footer a {
  color: var(--accent-blue);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer a:hover {
  color: var(--accent-cyan);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  transition: all 0.3s;
}

.footer-links a:hover {
  color: var(--text-primary);
  border-color: var(--accent-blue);
}

/* Scroll progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 101;
  background: transparent;
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
  transition: width 0.1s linear;
}

/* Cursor glow */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(77, 124, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.3s;
  will-change: transform;
}

/* Reveal animation base */
.reveal {
  opacity: 0;
  transform: translateY(40px);
}

/* ============================================
   RESPONSIVE — Tablet
   ============================================ */
@media (max-width: 1024px) {
  .page-split-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .page-split-left .page-split-visual,
  .page-split-left .moreinfo-content,
  .page-split-left .tech-sticky-left,
  .page-split-left .tech-sticky-right,
  .page-split-right .hero-content,
  .page-split-right .hero-visual {
    order: unset;
  }

  .page-split-left .section-header {
    text-align: center;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    display: flex;
    justify-content: center;
  }

  .tech-sticky-visual {
    position: relative;
    top: auto;
    transform: none;
  }

  .tech-grid,
  .demos-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   RESPONSIVE — Mobile
   ============================================ */
@media (max-width: 768px) {
  /* -- Nav -- */
  .nav {
    padding: 0.75rem 1rem;
  }

  .nav-links {
    display: none;
  }

  .nav-logo img {
    height: 26px;
  }

  .nav-cta {
    padding: 0.45rem 0.7rem;
    font-size: 0.8rem;
  }

  /* -- Intro — full screen, svh sabit yükseklik -- */
  .page-intro {
    min-height: 100svh;
    height: 100svh;
    padding: 4.5rem 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  @supports not (height: 100svh) {
    .page-intro {
      height: calc(var(--vh, 1svh) * 100);
      min-height: -webkit-fill-available;
    }
  }

  .intro-robot-spacer {
    width: 55svh;
    height: 55svh;
    max-width: 380px;
    max-height: 380px;
    margin-bottom: 1rem;
  }

  .intro-hero {
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
  }

  .intro-tagline {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
  }

  .intro-links {
    gap: 1.5rem;
  }

  .intro-link {
    font-size: 0.88rem;
  }

  .intro-memory-usage {
    top: 4.5rem;
    left: 1.25rem;
    font-size: 0.72rem;
  }

  .power-up-btn {
    font-size: 0.7rem;
    padding: 0.3rem 0.7rem;
  }

  .intro-memory-wave {
    height: 80px;
  }

  /* -- Pages global (intro ve overview hariç) -- */
  .page:not(.page-intro):not(.page-hero) {
    min-height: auto;
    padding: 3.5rem 1.25rem 2.5rem;
    align-items: flex-start;
  }

  .page.page-hero {
    min-height: 100svh;
    padding: 3.5rem 1.25rem 2.5rem;
    align-items: center;
  }

  .page-split-inner {
    gap: 1.5rem;
  }

  /* -- Page 1: Overview -- */
  .overview-glass {
    padding: 1.5rem 1.25rem;
    background: rgba(15, 15, 30, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 18px;
  }

  .hero-label {
    font-size: 0.72rem;
    margin-bottom: 0.6rem;
  }

  .hero-title {
    font-size: 1.65rem;
    margin-bottom: 1rem;
  }

  .overview-glass .hero-title {
    font-size: 1.5rem;
    margin-bottom: 0.6rem;
  }

  .hero-desc {
    font-size: 0.92rem;
    max-width: 100%;
  }

  .overview-glass .hero-desc {
    font-size: 0.82rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
  }

  .hero-stats {
    font-size: 0.82rem;
    margin-bottom: 0.6rem;
  }

  .hero-compat {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.6rem;
  }

  .compat-badge {
    font-size: 0.72rem;
    padding: 0.3rem 0.6rem;
  }

  .hero-cta {
    margin-top: 1.25rem;
  }

  .btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    border-radius: 8px;
  }

  /* -- Page 2: More Info / Pipeline -- */
  .section-label {
    font-size: 0.75rem;
  }

  .moreinfo-text {
    font-size: 0.9rem;
    line-height: 1.7;
    text-align: left;
  }

  .moreinfo-text p {
    margin-bottom: 1rem;
  }

  .moreinfo-content .section-label {
    margin-bottom: 1rem;
  }

  .pipeline-diagram {
    padding: 1.5rem 0.5rem;
    min-height: 400px;
  }

  .pipe-node {
    padding: 0.7rem 1.3rem;
  }

  .pipe-icon {
    font-size: 1.15rem;
  }

  .pipe-label {
    font-size: 0.82rem;
  }

  .pipe-sub {
    font-size: 0.62rem;
  }

  .pipe-branches {
    gap: 0.65rem;
  }

  .pipe-signal {
    padding: 0.55rem 0.7rem;
    min-width: 78px;
  }

  .pipe-signal-pct {
    font-size: 0.85rem;
  }

  .pipe-signal-name {
    font-size: 0.68rem;
  }

  .pipe-signal-desc {
    font-size: 0.55rem;
  }

  .pipe-line {
    height: 24px;
  }

  .pipe-line-v {
    height: 18px;
  }

  .pipe-merge-lines {
    width: 90%;
    height: 20px;
  }

  /* -- Page 3: Technology -- */
  .section-title {
    font-size: 1.35rem;
  }

  .section-desc {
    font-size: 0.9rem;
  }

  .ncore {
    max-width: 340px;
    margin: 0 auto;
    padding: 1rem 1.2rem 1.2rem;
  }

  .ncore-visual {
    width: 140px;
    height: 140px;
    margin: 0.8rem auto 1rem;
  }

  .ncore-center { inset: 42px; }
  .ncore-ring-2 { inset: 14px; }
  .ncore-ring-3 { inset: 28px; }
  .ncore-orbit-2 { inset: 14px; }
  .ncore-orbit-3 { inset: 28px; }

  .ncore-center-icon {
    font-size: 1.15rem;
  }

  .ncore-center-label {
    font-size: 0.5rem;
  }

  .ncore-title {
    font-size: 0.6rem;
  }

  .ncore-stream {
    max-height: 65px;
    margin-bottom: 0.8rem;
  }

  .ncore-stream-line {
    font-size: 0.52rem;
  }

  .ncore-stat {
    padding: 0.4rem 0.6rem;
  }

  .ncore-stat-val {
    font-size: 0.82rem;
  }

  .ncore-stat-key {
    font-size: 0.5rem;
  }

  .ncore-progress-label {
    font-size: 0.5rem;
  }

  .tech-sticky-right .tech-card {
    padding: 1.1rem;
  }

  .tech-card {
    padding: 1.25rem;
    border-radius: 12px;
  }

  .tech-card:hover {
    transform: translateY(-4px);
  }

  .tech-card h3 {
    font-size: 1.08rem;
  }

  .tech-card p {
    font-size: 0.85rem;
  }

  .tech-card-icon {
    width: 38px;
    height: 38px;
    margin-bottom: 0.8rem;
  }

  .tech-num {
    font-size: 1.8rem;
    top: 1rem;
    right: 1rem;
  }

  .tech-cta {
    text-align: center;
  }

  .btn-github {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }

  /* -- Footer -- */
  .footer {
    padding: 2.5rem 1.25rem;
  }

  .footer p {
    font-size: 0.85rem;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 0.6rem;
  }

  .footer-links a {
    font-size: 0.78rem;
    padding: 0.35rem 0.65rem;
  }

  .footer-logo {
    height: 32px;
  }

  /* -- Misc mobile -- */
  .cursor-glow {
    display: none;
  }

  .p-orb-1 {
    width: 280px;
    height: 280px;
  }

  .p-orb-2 {
    width: 180px;
    height: 180px;
  }

  .feature-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

/* ============================================
   RESPONSIVE — Small phones
   ============================================ */
@media (max-width: 400px) {
  .intro-robot-spacer {
    width: 220px;
    height: 220px;
  }

  .pipe-branches {
    gap: 0.4rem;
  }

  .pipe-signal {
    min-width: 64px;
    padding: 0.45rem 0.5rem;
  }

  .pipe-signal-pct {
    font-size: 0.75rem;
  }

  .pipe-signal-name {
    font-size: 0.6rem;
  }

  .overview-glass .hero-title {
    font-size: 1.25rem;
  }

  .overview-glass .hero-desc {
    font-size: 0.75rem;
  }

  .ncore {
    max-width: 100%;
  }

  .ncore-visual {
    width: 115px;
    height: 115px;
  }

  .ncore-center { inset: 35px; }
  .ncore-ring-2 { inset: 12px; }
  .ncore-ring-3 { inset: 24px; }
  .ncore-orbit-2 { inset: 12px; }
  .ncore-orbit-3 { inset: 24px; }
}
