/* ============================================================
   features.css — Interactive feature guide page
   ============================================================ */

/* ── Page shell ───────────────────────────────────────────── */
.page-features {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-top: var(--nav-h);
}

/* ── Hero ─────────────────────────────────────────────────── */
.feat-hero {
  padding: 4rem clamp(1.5rem, 6vw, 4rem) 3.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.feat-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(59,130,246,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.feat-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-hi);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  animation: fadeUp 0.5s var(--ease) 0.05s both;
}

.feat-hero__eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.feat-hero__title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 1rem;
  animation: fadeUp 0.5s var(--ease) 0.1s both;
}

.feat-hero__subtitle {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 2rem;
  line-height: 1.7;
  animation: fadeUp 0.5s var(--ease) 0.15s both;
}

.feat-hero__pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  animation: fadeUp 0.5s var(--ease) 0.2s both;
}

.feat-hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  background: var(--bg2);
  border: 1px solid var(--border-hi);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: color var(--fast), border-color var(--fast), background var(--fast);
  text-decoration: none;
}

.feat-hero__pill:hover {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(59,130,246,0.06);
}

.feat-hero__pill-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.7;
}

/* ── Layout: sidebar + content ────────────────────────────── */
.feat-body {
  flex: 1;
  display: flex;
  align-items: flex-start;
  max-width: 1160px;
  margin: 0 auto;
  width: 100%;
  padding: 0 clamp(1rem, 4vw, 3rem);
  gap: 0;
}

/* ── Sidebar ──────────────────────────────────────────────── */
.feat-sidebar {
  width: 220px;
  flex-shrink: 0;
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
  padding: 2.5rem 0 2rem;
  align-self: flex-start;
}

.feat-sidebar__label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted2);
  padding: 0 0.75rem;
  margin-bottom: 0.6rem;
}

.feat-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.feat-sidebar__item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  text-decoration: none;
  transition: color var(--fast), background var(--fast);
  border: none;
  background: none;
  font-family: inherit;
  width: 100%;
  text-align: left;
  position: relative;
}

.feat-sidebar__item:hover {
  color: var(--text);
  background: var(--border);
}

.feat-sidebar__item.active {
  color: var(--accent-hi);
  background: rgba(59,130,246,0.08);
}

.feat-sidebar__item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 60%;
  background: var(--accent);
  border-radius: 2px;
}

.feat-sidebar__item-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.75;
  color: currentColor;
  transition: opacity var(--fast);
}

.feat-sidebar__item.active .feat-sidebar__item-icon {
  opacity: 1;
}

/* ── Main content area ────────────────────────────────────── */
.feat-main {
  flex: 1;
  min-width: 0;
  padding: 2.5rem 0 4rem 3rem;
  border-left: 1px solid var(--border);
}

/* ── Individual feature section ───────────────────────────── */
.feat-section {
  padding: 2.5rem 0 3rem;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: calc(var(--nav-h) + 2rem);
}

.feat-section:last-child {
  border-bottom: none;
}

/* Section header */
.feat-section__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.feat-section__icon-wrap {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg2);
  border: 1px solid var(--border-hi);
  border-radius: 12px;
  flex-shrink: 0;
  color: var(--accent-hi);
}

.feat-section__icon-wrap svg {
  width: 20px;
  height: 20px;
}

.feat-section__title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
}

/* Description */
.feat-section__desc {
  font-size: 0.925rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 620px;
  margin-bottom: 1.25rem;
}

/* Feature tags */
.feat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.75rem;
}

.feat-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.7rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
}

.feat-tag::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Media container ──────────────────────────────────────── */
.feat-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg1);
  border: 1px solid var(--border-hi);
  aspect-ratio: 16 / 9;
  max-width: 700px;
}

/* Video element */
.feat-media__video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: var(--bg0);
}

/* Screenshot */
.feat-media__screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  display: block;
}

.feat-media__video,
.feat-media__screenshot {
  transform: scale(1.01); /* ajuste fino (1.01 ~ 1.03) */
  transform-origin: center;
}

/* Placeholder when media not yet provided */
.feat-media__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem;
  text-align: center;
}

.feat-media__placeholder-icon {
  width: 40px;
  height: 40px;
  color: var(--muted2);
  opacity: 0.4;
}

.feat-media__placeholder-text {
  font-size: 0.78rem;
  color: var(--muted2);
  font-family: var(--font-mono);
}

/* Video overlay badge */
.feat-media__badge {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  background: rgba(8,12,18,0.8);
  border: 1px solid var(--border-hi);
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  backdrop-filter: blur(8px);
  letter-spacing: 0.03em;
  user-select: none;
  -webkit-user-select: none;
}

.feat-media__badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

/* Decorative corner grid on media */
.feat-media::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: radial-gradient(ellipse at top right, rgba(59,130,246,0.06), transparent 70%);
  pointer-events: none;
}

/* ── Download CTA ─────────────────────────────────────────── */
.feat-dl {
  padding: 3.5rem clamp(1.5rem, 6vw, 3rem);
  border-top: 1px solid var(--border);
}

.feat-dl__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  max-width: 480px;
  margin: 0 auto;
}

.feat-dl__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.feat-dl__icon svg {
  width: 20px;
  height: 20px;
}

.feat-dl__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin: 0;
}

.feat-dl__body {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.feat-dl__link {
  color: var(--accent-hi);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(59, 130, 246, 0.4);
  transition: color var(--fast), text-decoration-color var(--fast);
}

.feat-dl__link:hover {
  color: var(--text);
  text-decoration-color: var(--text);
}

/* ── Footer ───────────────────────────────────────────────── */
.feat-footer {
  padding: 1.75rem clamp(1.5rem, 6vw, 3rem);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.feat-footer__copy {
  font-size: 0.8rem;
  color: var(--muted2);
}

.feat-footer__links {
  display: flex;
  gap: 1.5rem;
}

.feat-footer__link {
  font-size: 0.8rem;
  color: var(--muted2);
  text-decoration: none;
  transition: color var(--fast);
}

.feat-footer__link:hover { color: var(--muted); }

/* ── Mobile top nav (replaces sidebar on small screens) ────── */
.feat-topnav {
  display: none;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.75rem clamp(1rem, 4vw, 2rem);
  border-bottom: 1px solid var(--border);
  gap: 0.4rem;
  background: var(--bg0);
  position: sticky;
  top: var(--nav-h);
  z-index: 50;
}

.feat-topnav::-webkit-scrollbar { display: none; }

.feat-topnav__item {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--bg2);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: color var(--fast), border-color var(--fast), background var(--fast);
  white-space: nowrap;
}

.feat-topnav__item:hover {
  color: var(--text);
  border-color: var(--border-hi);
}

.feat-topnav__item.active {
  color: var(--accent-hi);
  border-color: var(--accent);
  background: rgba(59,130,246,0.08);
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .feat-sidebar   { display: none; }
  .feat-topnav    { display: flex; }

  .feat-body {
    display: block;
    padding: 0;
  }

  .feat-main {
    padding: 0 clamp(1rem, 4vw, 2rem) 4rem;
    border-left: none;
  }

  .feat-section {
    padding: 2rem 0 2.5rem;
  }
}

@media (max-width: 560px) {
  .feat-hero { padding: 3rem 1.25rem 2.5rem; }

  .feat-media {
    aspect-ratio: 16 / 9;
    max-width: 100%;
  }
}

/* ── OBS Setup Steps ──────────────────────────────────────── */
.feat-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 1.75rem;
  padding: 0.25rem 0;
}

.feat-step {
  display: flex;
  gap: 1.25rem;
  position: relative;
}

/* Left column: number circle + vertical connector */
.feat-step__marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 28px;
}

.feat-step__num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg2);
  border: 1.5px solid var(--accent);
  color: var(--accent-hi);
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0;
}

.feat-step__line {
  width: 1.5px;
  flex: 1;
  min-height: 1.5rem;
  background: var(--border-hi);
  margin: 4px 0;
}

/* Right column: label + title + desc */
.feat-step__body {
  padding-bottom: 1.75rem;
  flex: 1;
  min-width: 0;
}

.feat-step:last-child .feat-step__body {
  padding-bottom: 0;
}

.feat-step__label {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: 100px;
  padding: 0.15rem 0.55rem;
  margin-bottom: 0.35rem;
  line-height: 1.6;
}

.feat-step__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
  line-height: 1.4;
}

.feat-step__desc {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 520px;
}