/* ================================================
   SAFIRION TUTORIAL — tutorial.safirion.com
   ================================================ */

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

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #060B18;
}

/* ===== Noise texture overlay ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== Grid lines (Linear vibe) ===== */
.grid-bg {
  background-image:
    linear-gradient(rgba(214, 237, 248, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214, 237, 248, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #060B18; }
::-webkit-scrollbar-thumb { background: #2389E6; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #146AC7; }

::selection { background-color: rgba(35, 137, 230, 0.3); color: #fff; }

/* ===== Sticky top progress bar ===== */
.top-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, #2389E6, #69B8FF);
  box-shadow: 0 0 12px rgba(35, 137, 230, 0.6);
  z-index: 100;
  transition: width 0.1s ease;
}

/* ===== Side step nav ===== */
.side-nav {
  position: fixed;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.side-nav-item {
  width: 40px; height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(214, 237, 248, 0.1);
  background: rgba(11, 18, 33, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Geist Mono', 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: #A1B8C3;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}
.side-nav-item:hover { border-color: rgba(35, 137, 230, 0.4); color: #fff; }
.side-nav-item.active {
  background: linear-gradient(135deg, #2389E6, #0A3461);
  border-color: #2389E6;
  color: #fff;
  box-shadow: 0 0 24px rgba(35, 137, 230, 0.5);
}
@media (max-width: 1024px) { .side-nav { display: none; } }

/* ===== Outline number gigante ===== */
.step-number-outline {
  font-family: 'Geist', 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(140px, 20vw, 280px);
  line-height: 0.85;
  letter-spacing: -0.06em;
  -webkit-text-stroke: 2px rgba(35, 137, 230, 0.35);
  color: transparent;
  user-select: none;
  pointer-events: none;
}

/* ===== Mono metadata ===== */
.mono-label {
  font-family: 'Geist Mono', 'JetBrains Mono', 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #69B8FF;
  font-weight: 500;
}

/* ===== CTA pulse ===== */
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(35, 137, 230, 0.3); }
  50%      { box-shadow: 0 0 40px rgba(35, 137, 230, 0.5), 0 0 60px rgba(35, 137, 230, 0.2); }
}
.cta-pulse { animation: ctaPulse 3s ease-in-out infinite; }

/* ===== Hero float ===== */
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.hero-float { animation: heroFloat 6s ease-in-out infinite; }

/* ===== Glow blob ===== */
.glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  opacity: 0.4;
}
.glow-blob.blue { background: radial-gradient(circle, #2389E6 0%, transparent 70%); }
.glow-blob.deep { background: radial-gradient(circle, #0A3461 0%, transparent 70%); }

/* ===== Video thumb (premium) ===== */
.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  background: linear-gradient(135deg, #0E1627 0%, #141B27 100%);
  border: 1px solid rgba(35, 137, 230, 0.2);
  transition: all 0.4s ease;
}
.video-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(35, 137, 230, 0.25), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(10, 52, 97, 0.4), transparent 50%);
}
.video-thumb:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(35, 137, 230, 0.25);
  border-color: rgba(35, 137, 230, 0.5);
}
.video-thumb-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 76px; height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2389E6, #0A3461);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 8px rgba(35, 137, 230, 0.15), 0 12px 40px rgba(35, 137, 230, 0.5);
  transition: transform 0.3s ease;
  z-index: 2;
}
.video-thumb:hover .video-thumb-play { transform: translate(-50%, -50%) scale(1.1); }
.video-thumb-meta { position: absolute; bottom: 14px; left: 14px; z-index: 2; }
.video-thumb-tag {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  font-family: 'Geist Mono', 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: #D6EDF8;
  font-weight: 500;
}

/* ===== Modal lightbox ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 3, 11, 0.85);
  backdrop-filter: blur(16px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.modal-overlay.open { display: flex; }
.modal-frame {
  width: 100%;
  max-width: 1100px;
  aspect-ratio: 16 / 9;
  border-radius: 1rem;
  background: #000;
  border: 1px solid rgba(35, 137, 230, 0.3);
  box-shadow: 0 0 80px rgba(35, 137, 230, 0.4);
  overflow: hidden;
  position: relative;
}
.modal-close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

/* ===== Hero title — gradiente fluido ===== */
.hero-title {
  background: linear-gradient(
    100deg,
    #FFFFFF 0%,
    #D6EDF8 28%,
    #69B8FF 52%,
    #2389E6 74%,
    #8FBEE4 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: heroGradientShift 12s ease-in-out infinite;
}
@keyframes heroGradientShift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* ===== Hero section — background com mesh gradient ===== */
.hero-bg-mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 20% 0%, rgba(35, 137, 230, 0.18), transparent 60%),
    radial-gradient(ellipse 50% 60% at 80% 30%, rgba(105, 184, 255, 0.10), transparent 60%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(10, 52, 97, 0.35), transparent 70%),
    linear-gradient(180deg, #060B18 0%, #080E1C 50%, #060B18 100%);
}

/* ===== Step card (vertical, sem botão) ===== */
.step-card {
  margin-bottom: 56px;
  scroll-margin-top: 5rem;
}
.step-card:last-child { margin-bottom: 0; }
.step-card-header {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}
.step-card-meta {
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.step-card-num {
  font-family: 'Geist', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 56px;
  line-height: 0.85;
  letter-spacing: -0.05em;
  -webkit-text-stroke: 1.5px rgba(35, 137, 230, 0.55);
  color: transparent;
  user-select: none;
}
@media (min-width: 768px) {
  .step-card-num { font-size: 76px; }
}
.step-card-thumb {
  width: 100%;
}

/* ===== Step row (zig-zag) — kept for legacy, not in use ===== */
.step-row { position: relative; padding: 80px 0; }
.step-row + .step-row { border-top: 1px solid rgba(214, 237, 248, 0.05); }
.step-row-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}
@media (min-width: 1024px) {
  .step-row-grid { grid-template-columns: 1fr 1fr; gap: 80px; }
  .step-row.reverse .step-row-content { order: 2; }
  .step-row.reverse .step-row-media { order: 1; }
}
.step-row-outline { position: absolute; z-index: 1; opacity: 0.5; }
.step-row-outline.left { top: 20px; left: -20px; }
.step-row-outline.right { top: 20px; right: -20px; }
@media (max-width: 768px) {
  .step-row-outline { opacity: 0.25; font-size: 180px !important; top: -30px !important; }
}

/* ===== Membership mock ===== */
.member-mock { position: relative; perspective: 1500px; padding: 40px 0; }
.member-mock-card {
  background: linear-gradient(180deg, #0C1424 0%, #111C30 100%);
  border: 1px solid rgba(35, 137, 230, 0.2);
  border-radius: 1.5rem;
  padding: 28px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 60px rgba(35, 137, 230, 0.15);
  transform: rotateX(8deg) rotateY(-6deg) rotateZ(1deg);
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
}
.member-mock:hover .member-mock-card { transform: rotateX(4deg) rotateY(-3deg) rotateZ(0); }
.member-mock-row {
  display: flex; align-items: center; gap: 16px;
  padding: 18px; border-radius: 1rem;
  background: rgba(6, 11, 24, 0.6);
  border: 1px solid rgba(214, 237, 248, 0.05);
  transition: all 0.3s ease;
}
.member-mock-row + .member-mock-row { margin-top: 12px; }
.member-mock-row.unlocked { border-color: rgba(35, 137, 230, 0.4); }
.member-mock-row.active { border-color: rgba(35, 137, 230, 0.6); box-shadow: 0 0 30px rgba(35, 137, 230, 0.2); }
.member-mock-row.locked { opacity: 0.6; }
.member-mock-status {
  width: 38px; height: 38px; border-radius: 50%;
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
}
.member-mock-status.done { background: linear-gradient(135deg, #69B8FF, #2389E6); }
.member-mock-status.play {
  background: linear-gradient(135deg, #2389E6, #0A3461);
  box-shadow: 0 0 16px rgba(35, 137, 230, 0.5);
}
.member-mock-status.lock {
  background: rgba(214, 237, 248, 0.08);
  border: 1px solid rgba(214, 237, 248, 0.1);
}

/* ===== Float CTA ===== */
.float-cta {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 60;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.4s ease;
  padding: 14px 22px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2389E6, #146AC7);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 12px 40px rgba(35, 137, 230, 0.4);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 10px;
}
.float-cta.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.float-cta:hover { background: linear-gradient(135deg, #146AC7, #0A3461); }

/* ===== Card hover ===== */
.feat-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.feat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(35, 137, 230, 0.15);
  border-color: rgba(35, 137, 230, 0.25);
}

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.animate-in { opacity: 1; transform: translateY(0); }

/* ===== Hamburger ===== */
.hamburger-line { transition: all 0.3s ease; }
.mobile-menu-open .hamburger-line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.mobile-menu-open .hamburger-line:nth-child(2) { opacity: 0; }
.mobile-menu-open .hamburger-line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== FAQ ===== */
.faq-item .faq-content { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-item.active .faq-content { max-height: 500px; }
.faq-item .faq-icon { transition: transform 0.3s ease; }
.faq-item.active .faq-icon { transform: rotate(45deg); }

/* ===== Check icon ===== */
.check-icon {
  background: #090E1A;
  position: relative;
  border: 2px solid transparent;
  background-clip: padding-box;
}
.check-icon::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: linear-gradient(to bottom, #146AC7, #0A3461);
  z-index: -1;
}
