/* ════════════════════════════════════════════════════════════
   MIRRORTRACE — Tutorial Page Styles & Animations
   ════════════════════════════════════════════════════════════ */

/* ── NAV ── */
.tut-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(7, 7, 11, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.tut-nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tut-nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-1);
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.12em;
}

.tut-nav__links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tut-nav__link {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}

.tut-nav__link:hover {
  color: var(--text-1);
  background: var(--bg-hover);
}

.tut-nav__cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  background: var(--accent);
  color: var(--bg-deep);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.tut-nav__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(245, 166, 35, 0.3);
}

/* ── HERO ── */
.tut-hero {
  position: relative;
  padding: 140px 24px 80px;
  text-align: center;
  overflow: hidden;
}

.tut-hero__glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.tut-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--accent-10);
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 20px;
  border: 1px solid var(--border-accent);
  margin-bottom: 24px;
}

.tut-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--text-1);
}

.tut-hero__title span {
  background: linear-gradient(135deg, var(--accent), var(--accent-warm));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tut-hero__sub {
  max-width: 600px;
  margin: 0 auto 48px;
  color: var(--text-2);
  font-size: 1.0625rem;
  line-height: 1.6;
}

/* Hero nav cards */
.tut-hero__nav-cards {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.tut-hero__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s;
  min-width: 100px;
}

.tut-hero__card:hover {
  border-color: var(--border-accent);
  background: var(--bg-elevated);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.tut-hero__card-icon {
  width: 32px;
  height: 32px;
  color: var(--accent);
}

.tut-hero__card-icon svg {
  width: 100%;
  height: 100%;
}

.tut-hero__card span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-2);
}

.tut-hero__card:hover span {
  color: var(--text-1);
}

/* ── CONTAINER ── */
.tut-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── SECTION ── */
.tut-section {
  padding: 80px 0;
}

.tut-section__header {
  text-align: center;
  margin-bottom: 56px;
}

.tut-label {
  display: inline-block;
  padding: 4px 12px;
  background: var(--accent-10);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 20px;
  margin-bottom: 16px;
}

.tut-section__header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.tut-section__header p {
  color: var(--text-2);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

/* ── 3-STEP FLOW ── */
.tut-flow {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-bottom: 48px;
}

.tut-flow__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px;
  max-width: 220px;
  position: relative;
}

.tut-flow__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--accent);
  margin-bottom: 12px;
  transition: all 0.5s;
}

.tut-flow__icon svg {
  width: 24px;
  height: 24px;
}

.tut-flow__step--active .tut-flow__icon {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(245, 166, 35, 0.2);
}

.tut-flow__num {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--bg-deep);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
}

.tut-flow__step h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.tut-flow__step p {
  font-size: 0.8125rem;
  color: var(--text-2);
  line-height: 1.4;
}

.tut-flow__arrow {
  display: flex;
  align-items: center;
  padding-top: 36px;
  color: var(--text-3);
}

.tut-flow__arrow svg {
  width: 24px;
  height: 24px;
}

/* ── ANIMATED FLOW BAR ── */
.tut-flow-anim {
  max-width: 600px;
  margin: 0 auto;
}

.tut-flow-anim__track {
  position: relative;
  height: 4px;
  background: var(--bg-elevated);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 12px;
}

.tut-flow-anim__dot {
  position: absolute;
  top: -3px;
  left: 0;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
  animation: flowDot 4s ease-in-out infinite;
}

@keyframes flowDot {
  0% { left: 0%; }
  25% { left: 33%; }
  50% { left: 66%; }
  75%, 100% { left: 96%; }
}

.tut-flow-anim__labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.6875rem;
  color: var(--text-3);
  font-family: var(--font-mono);
}

/* ── FEATURE SECTION ── */
.tut-feature {
  border-top: 1px solid var(--border);
}

.tut-feature__header {
  text-align: center;
  margin-bottom: 48px;
}

.tut-feature__badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--accent-10);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 20px;
  margin-bottom: 16px;
}

.tut-feature__header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.tut-feature__desc {
  color: var(--text-2);
  font-size: 1rem;
  max-width: 550px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ══════════════════════════════════════
   DEMO SCREEN (Animated Mockup)
   ══════════════════════════════════════ */

.tut-demo {
  margin-bottom: 48px;
}

.tut-demo__screen {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
}

.tut-demo__toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.tut-demo__dots {
  display: flex;
  gap: 6px;
}

.tut-demo__dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg-hover);
}

.tut-demo__dots span:first-child { background: #FF5F56; }
.tut-demo__dots span:nth-child(2) { background: #FFBD2E; }
.tut-demo__dots span:last-child { background: #27CA40; }

.tut-demo__title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
}

.tut-demo__body {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  overflow: hidden;
}

/* Phase visibility */
.tut-demo__phase {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
  transform: translateY(10px);
}

.tut-demo__phase.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Upload Zone */
.tut-demo__upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 280px;
  height: 200px;
  border: 2px dashed var(--text-3);
  border-radius: var(--radius-lg);
  color: var(--text-2);
  font-size: 0.875rem;
  transition: all 0.4s;
  animation: uploadPulse 3s ease-in-out infinite;
}

@keyframes uploadPulse {
  0%, 100% { border-color: var(--text-3); }
  50% { border-color: var(--accent); box-shadow: 0 0 20px rgba(245, 166, 35, 0.1); }
}

.tut-demo__upload-icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
}

.tut-demo__upload-icon svg {
  width: 100%;
  height: 100%;
}

/* Dual Upload for Style Transfer */
.tut-demo__dual-upload {
  display: flex;
  align-items: center;
  gap: 16px;
}

.tut-demo__upload-zone--small {
  width: 180px;
  height: 160px;
}

.tut-demo__upload-zone--small small {
  font-size: 0.6875rem;
  color: var(--text-3);
}

.tut-demo__upload-zone--ref {
  border-color: var(--accent);
  border-style: solid;
  animation: none;
}

.tut-demo__plus {
  font-size: 1.5rem;
  color: var(--text-3);
  font-weight: 300;
}

/* Text Input (Multicenas) */
.tut-demo__text-input {
  margin-top: 20px;
  width: 280px;
}

.tut-demo__typing {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
}

.tut-demo__typing-label {
  display: block;
  font-size: 0.6875rem;
  color: var(--text-3);
  margin-bottom: 6px;
}

.tut-demo__typing-text {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-1);
  display: flex;
  align-items: center;
}

.tut-demo__cursor-blink {
  color: var(--accent);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Processing Phase */
.tut-demo__processing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.tut-demo__scan-line {
  width: 280px;
  height: 200px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}

.tut-demo__scan-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: scanDown 2s ease-in-out infinite;
}

@keyframes scanDown {
  0% { top: 0; }
  50% { top: calc(100% - 3px); }
  100% { top: 0; }
}

.tut-demo__ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: 20px;
  font-size: 0.8125rem;
  color: var(--accent);
  font-weight: 500;
}

.tut-demo__spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Merge Animation (Style Transfer) */
.tut-demo__merge-anim {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 8px;
}

.tut-demo__merge-left,
.tut-demo__merge-right {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  color: var(--text-2);
}

.tut-demo__merge-left {
  animation: mergeSlide 2s ease-in-out infinite;
}

.tut-demo__merge-right {
  animation: mergeSlide 2s ease-in-out infinite reverse;
}

@keyframes mergeSlide {
  0%, 100% { transform: translateX(0); opacity: 1; }
  50% { transform: translateX(15px); opacity: 0.6; }
}

.tut-demo__merge-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Grid Animation (Collage) */
.tut-demo__grid-anim {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 200px;
  margin-bottom: 16px;
}

.tut-demo__grid-cell {
  width: 96px;
  height: 80px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  color: var(--text-3);
  position: relative;
  overflow: hidden;
}

.tut-demo__grid-cell::after {
  content: attr(data-label);
}

.tut-demo__grid-cell:nth-child(1) { animation: cellReveal 2s ease-in-out infinite 0s; }
.tut-demo__grid-cell:nth-child(2) { animation: cellReveal 2s ease-in-out infinite 0.3s; }
.tut-demo__grid-cell:nth-child(3) { animation: cellReveal 2s ease-in-out infinite 0.6s; }
.tut-demo__grid-cell:nth-child(4) { animation: cellReveal 2s ease-in-out infinite 0.9s; }

@keyframes cellReveal {
  0%, 100% { border-color: var(--border); }
  50% { border-color: var(--accent); box-shadow: 0 0 12px rgba(245, 166, 35, 0.15); }
}

/* Upscale Pixel Animation */
.tut-demo__upscale-anim {
  margin-bottom: 16px;
}

.tut-demo__pixel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  width: 120px;
  margin: 0 auto;
}

.tut-demo__pixel {
  width: 36px;
  height: 36px;
  background: var(--bg-card);
  border-radius: 4px;
  animation: pixelSharp 2.5s ease-in-out infinite;
}

.tut-demo__pixel:nth-child(1) { animation-delay: 0s; }
.tut-demo__pixel:nth-child(2) { animation-delay: 0.1s; }
.tut-demo__pixel:nth-child(3) { animation-delay: 0.2s; }
.tut-demo__pixel:nth-child(4) { animation-delay: 0.3s; }
.tut-demo__pixel:nth-child(5) { animation-delay: 0.15s; }
.tut-demo__pixel:nth-child(6) { animation-delay: 0.25s; }
.tut-demo__pixel:nth-child(7) { animation-delay: 0.35s; }
.tut-demo__pixel:nth-child(8) { animation-delay: 0.2s; }
.tut-demo__pixel:nth-child(9) { animation-delay: 0.4s; }

@keyframes pixelSharp {
  0%, 100% {
    background: var(--bg-card);
    filter: blur(2px);
    opacity: 0.4;
  }
  50% {
    background: var(--accent-20);
    filter: blur(0px);
    opacity: 1;
    box-shadow: 0 0 8px rgba(245, 166, 35, 0.2);
  }
}

/* Quality Badge */
.tut-demo__quality-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  justify-content: center;
}

.tut-demo__quality-low {
  padding: 4px 10px;
  background: rgba(255, 80, 80, 0.15);
  color: #FF5050;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
}

.tut-demo__quality-high {
  padding: 4px 10px;
  background: rgba(39, 202, 64, 0.15);
  color: #27CA40;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  animation: qualityGlow 2s ease-in-out infinite;
}

@keyframes qualityGlow {
  0%, 100% { box-shadow: none; }
  50% { box-shadow: 0 0 12px rgba(39, 202, 64, 0.3); }
}

/* Result Phase */
.tut-demo__result {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.tut-demo__result-img {
  width: 280px;
  height: 200px;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  animation: resultReveal 1s ease-out forwards;
}

.tut-demo__result-img svg {
  width: 48px;
  height: 48px;
  opacity: 0.5;
}

.tut-demo__result-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(245, 166, 35, 0.08) 0%, transparent 70%);
  animation: resultPulse 3s ease-in-out infinite;
}

@keyframes resultPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

@keyframes resultReveal {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.tut-demo__result-img--styled {
  border: 2px solid var(--accent);
}

.tut-demo__brush-strokes {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(45deg, transparent 40%, rgba(245, 166, 35, 0.05) 50%, transparent 60%),
    linear-gradient(-45deg, transparent 40%, rgba(255, 140, 0, 0.05) 50%, transparent 60%);
  animation: brushMove 4s ease-in-out infinite;
}

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

.tut-demo__result-img--sharp {
  border: 2px solid #27CA40;
}

.tut-demo__scene-label,
.tut-demo__quality-tag {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  background: rgba(7, 7, 11, 0.8);
  border-radius: 20px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

.tut-demo__quality-tag {
  color: #27CA40;
}

/* Collage Result Grid */
.tut-demo__collage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 280px;
}

.tut-demo__collage-cell {
  height: 96px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  animation: collageAppear 0.5s ease-out forwards;
  opacity: 0;
}

.tut-demo__collage-cell:nth-child(1) { animation-delay: 0s; }
.tut-demo__collage-cell:nth-child(2) { animation-delay: 0.15s; }
.tut-demo__collage-cell:nth-child(3) { animation-delay: 0.3s; }
.tut-demo__collage-cell:nth-child(4) { animation-delay: 0.45s; }

@keyframes collageAppear {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

.tut-demo__collage-cell svg {
  width: 32px;
  height: 32px;
}

.tut-demo__collage-cell span {
  font-size: 0.6875rem;
  color: var(--text-3);
}

/* Result Actions */
.tut-demo__result-actions {
  display: flex;
  gap: 8px;
}

.tut-demo__btn-fake {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  background: var(--accent);
  color: var(--bg-deep);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 700;
}

/* ── STEP INDICATORS ── */
.tut-demo__steps {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}

.tut-demo__step {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s;
  text-align: left;
}

.tut-demo__step:hover {
  background: var(--bg-elevated);
}

.tut-demo__step.active {
  border-color: var(--accent);
  background: var(--accent-05);
}

.tut-demo__step-num {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-hover);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-2);
  flex-shrink: 0;
  transition: all 0.3s;
}

.tut-demo__step.active .tut-demo__step-num {
  background: var(--accent);
  color: var(--bg-deep);
}

.tut-demo__step-label {
  font-size: 0.8125rem;
  color: var(--text-2);
  line-height: 1.3;
  transition: color 0.3s;
}

.tut-demo__step.active .tut-demo__step-label {
  color: var(--text-1);
}

/* ── CONTROLS ── */
.tut-demo__controls {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.tut-demo__play {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.tut-demo__play svg {
  width: 16px;
  height: 16px;
}

.tut-demo__play:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.tut-demo__play.playing {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-10);
}

/* ── TIPS ── */
.tut-tips {
  margin-top: 0;
}

.tut-tips h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-1);
}

.tut-tips__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.tut-tip {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.3s;
}

.tut-tip:hover {
  border-color: var(--border-accent);
}

.tut-tip__icon {
  width: 24px;
  height: 24px;
  margin-bottom: 10px;
}

.tut-tip__icon svg {
  width: 100%;
  height: 100%;
}

.tut-tip strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.tut-tip p {
  font-size: 0.8125rem;
  color: var(--text-2);
  line-height: 1.4;
}

/* ── CTA SECTION ── */
.tut-cta-section {
  border-top: 1px solid var(--border);
}

.tut-cta {
  position: relative;
  text-align: center;
  padding: 56px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.tut-cta__glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.tut-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 12px;
  position: relative;
}

.tut-cta p {
  color: var(--text-2);
  font-size: 1rem;
  margin-bottom: 24px;
  position: relative;
}

.tut-cta p strong {
  color: var(--accent);
}

.tut-cta__info {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  position: relative;
}

.tut-cta__info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--text-2);
}

.tut-cta__buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
}

.tut-cta__btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 32px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: all 0.3s;
}

.tut-cta__btn--primary {
  background: var(--accent);
  color: var(--bg-deep);
}

.tut-cta__btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(245, 166, 35, 0.3);
}

.tut-cta__btn--secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border-accent);
}

.tut-cta__btn--secondary:hover {
  background: var(--accent-10);
}

/* ── FOOTER ── */
.tut-footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
}

.tut-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.tut-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.12em;
  color: var(--text-1);
  margin-bottom: 16px;
}

.tut-footer__links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 16px;
}

.tut-footer__links a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.8125rem;
  transition: color 0.2s;
}

.tut-footer__links a:hover {
  color: var(--accent);
}

.tut-footer__copy {
  font-size: 0.75rem;
  color: var(--text-3);
}

/* ══════════════════════════════════════
   SCROLL ANIMATIONS
   ══════════════════════════════════════ */

.tut-feature,
.tut-flow__step,
.tut-tip {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.tut-feature.visible,
.tut-flow__step.visible,
.tut-tip.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */

@media (max-width: 768px) {
  .tut-hero { padding: 120px 20px 60px; }

  .tut-hero__nav-cards {
    gap: 8px;
  }

  .tut-hero__card {
    min-width: 80px;
    padding: 12px 14px;
  }

  .tut-hero__card span {
    font-size: 0.6875rem;
  }

  .tut-flow {
    flex-direction: column;
    align-items: center;
  }

  .tut-flow__arrow {
    transform: rotate(90deg);
    padding: 8px 0;
  }

  .tut-demo__steps {
    flex-direction: column;
  }

  .tut-demo__body {
    min-height: 280px;
    padding: 24px;
  }

  .tut-demo__upload-zone {
    width: 220px;
    height: 160px;
  }

  .tut-demo__dual-upload {
    flex-direction: column;
    gap: 10px;
  }

  .tut-demo__upload-zone--small {
    width: 200px;
    height: 120px;
  }

  .tut-demo__result-img {
    width: 220px;
    height: 160px;
  }

  .tut-demo__scan-line {
    width: 220px;
    height: 160px;
  }

  .tut-demo__collage-grid {
    width: 220px;
  }

  .tut-demo__collage-cell {
    height: 76px;
  }

  .tut-demo__merge-left,
  .tut-demo__merge-right {
    width: 80px;
    height: 80px;
  }

  .tut-tips__grid {
    grid-template-columns: 1fr;
  }

  .tut-cta {
    padding: 40px 24px;
  }

  .tut-cta__info {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .tut-cta__buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .tut-cta__btn {
    justify-content: center;
  }

  .tut-nav__links {
    gap: 8px;
  }

  .tut-nav__link {
    display: none;
  }
}

@media (max-width: 480px) {
  .tut-hero__card {
    min-width: 60px;
    padding: 10px;
  }

  .tut-hero__card-icon {
    width: 24px;
    height: 24px;
  }

  .tut-flow__step {
    padding: 16px;
  }

  .tut-demo__text-input {
    width: 220px;
  }
}
