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

:root {
  --bg: #070709;
  --bg2: #0d0d10;
  --bg3: #13131a;
  --border: rgba(255,255,255,.08);
  --accent: #7c5cfc;
  --accent2: #a78bfa;
  --text: #f0f0f5;
  --muted: #8888a0;
  --radius: 16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Nav ─────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(7,7,9,.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; align-items: center;
  padding: 0 24px; height: 64px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
  font-weight: 700; font-size: 1rem; letter-spacing: -.02em;
  flex-shrink: 0;
}
.nav-logo-mark {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: .85rem; color: #fff;
}
.nav-links {
  display: flex; gap: 28px; margin-left: 48px; flex: 1;
}
.nav-links a {
  color: var(--muted); text-decoration: none;
  font-size: .9rem; font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }
.nav-ctas { display: flex; gap: 10px; }

/* ── User dropdown landing ───────────────────────────────────────── */
.land-user-menu { position: relative; }

.land-user-btn {
  display: flex; align-items: center; gap: 8px;
  background: none; border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px; padding: 4px 12px 4px 4px;
  cursor: pointer; color: var(--text); font-family: inherit;
  transition: all .15s;
}
.land-user-btn:hover { border-color: rgba(124,92,252,.4); background: rgba(124,92,252,.08); }
.land-user-btn span { font-size: .8rem; font-weight: 600; color: #e0e0f0; }

.land-avatar-img {
  width: 26px; height: 26px; border-radius: 50%; object-fit: cover;
}
.land-avatar-init {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: .68rem; font-weight: 800; color: #fff; flex-shrink: 0;
}

.land-dropdown {
  display: none; position: absolute; right: 0; top: calc(100% + 8px);
  width: 200px; background: #0f0f14;
  border: 1px solid rgba(124,92,252,.2);
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,.6);
  z-index: 200;
}
.land-dropdown.open { display: block; }

.land-drop-item {
  display: block; padding: 10px 16px;
  font-size: .82rem; color: rgba(255,255,255,.6);
  text-decoration: none; transition: all .15s;
}
.land-drop-item:hover { background: rgba(124,92,252,.12); color: #fff; }
.land-drop-sep { height: 1px; background: rgba(255,255,255,.06); margin: 4px 0; }
.land-drop-logout { color: #f87171; }
.land-drop-logout:hover { background: rgba(248,113,113,.1); color: #f87171; }

.btn-ghost-sm {
  padding: 7px 16px; border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--muted); font-size: .875rem; font-weight: 500;
  text-decoration: none; transition: all .2s;
}
.btn-ghost-sm:hover { border-color: rgba(255,255,255,.2); color: var(--text); }

.btn-primary-sm {
  padding: 7px 16px; border-radius: 8px;
  background: var(--accent);
  color: #fff; font-size: .875rem; font-weight: 600;
  text-decoration: none; transition: all .2s;
}
.btn-primary-sm:hover { background: #6b4de0; }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
  padding: 140px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 800px; height: 500px;
  background: radial-gradient(ellipse at 50% 0%, rgba(124,92,252,.2) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-block;
  padding: 5px 14px; border-radius: 20px;
  border: 1px solid rgba(124,92,252,.4);
  background: rgba(124,92,252,.1);
  color: var(--accent2); font-size: .8rem; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900; line-height: 1.12;
  letter-spacing: -.03em;
  margin-bottom: 20px;
}
.hero-accent {
  background: linear-gradient(135deg, #7c5cfc, #a78bfa, #c4b5fd);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.1rem; color: var(--muted); max-width: 540px;
  margin: 0 auto 36px;
}
.hero-btns {
  display: flex; gap: 14px; justify-content: center;
  flex-wrap: wrap; margin-bottom: 64px;
}
.btn-hero-primary {
  padding: 14px 28px; border-radius: 12px;
  background: var(--accent); color: #fff;
  font-size: 1rem; font-weight: 700;
  text-decoration: none; transition: all .2s;
  box-shadow: 0 0 40px rgba(124,92,252,.35);
}
.btn-hero-primary:hover { background: #6b4de0; box-shadow: 0 0 60px rgba(124,92,252,.5); }
.btn-hero-ghost {
  padding: 14px 28px; border-radius: 12px;
  border: 1px solid var(--border);
  color: var(--muted); font-size: 1rem; font-weight: 600;
  text-decoration: none; transition: all .2s;
}
.btn-hero-ghost:hover { border-color: rgba(255,255,255,.2); color: var(--text); }

/* ── Mockup visual ──────────────────────────────────────────────────── */
.hero-visual { max-width: 900px; margin: 0 auto; position: relative; }
.mockup-wrap { display: flex; gap: 24px; align-items: flex-start; justify-content: center; }

.mockup-screen {
  flex: 1; max-width: 520px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,.5);
}
.mockup-bar {
  background: var(--bg2); padding: 10px 16px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--border);
}
.mockup-dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.mockup-dot.r { background: #ff5f57; }
.mockup-dot.y { background: #febc2e; }
.mockup-dot.g { background: #28c840; }
.mockup-url {
  margin-left: 8px; font-size: .75rem; color: var(--muted);
  background: rgba(255,255,255,.06); padding: 3px 12px; border-radius: 6px;
}
.mockup-body { padding: 20px; }
.mockup-step {
  font-size: .82rem; padding: 6px 12px;
  border-radius: 8px; margin-bottom: 6px; color: var(--muted);
}
.mockup-step.done { color: #4ade80; background: rgba(74,222,128,.08); }
.mockup-step.active { color: var(--accent2); background: rgba(124,92,252,.1); }

.mockup-clips { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.mockup-clip {
  display: flex; gap: 12px; align-items: center;
  background: var(--bg2); border-radius: 10px;
  padding: 10px; border: 1px solid var(--border);
}
.mockup-clip-thumb {
  width: 48px; height: 72px; border-radius: 6px; flex-shrink: 0;
  overflow: hidden; background: #111; position: relative;
}
/* iframe nativo 480x270, escalado para preencher 48x72 (portrait crop) */
/* scale = 72/270 ≈ 0.267 → width resultante = 480*0.267 ≈ 128px        */
/* offset horizontal = -(128-48)/2 = -40px para centralizar              */
.mockup-clip-thumb iframe {
  position: absolute;
  width: 480px; height: 270px;
  transform: scale(0.267);
  transform-origin: top left;
  top: 0; left: -40px;
  border: none; pointer-events: none;
}
.mockup-clip-title { font-size: .85rem; font-weight: 600; margin-bottom: 4px; }
.mockup-clip-meta { font-size: .75rem; color: var(--muted); }

/* ── Phone mockups ────────────────────────────────────────────────────── */
.mockup-phones { display: flex; flex-direction: column; gap: 20px; }
.phone {
  width: 148px;
  border-radius: 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08);
}
.phone.p2 { transform: translateX(24px); }
.phone-inner {
  border-radius: 28px; overflow: hidden;
  background: #000; position: relative;
}
.phone-notch {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 50px; height: 8px; background: #000;
  border-radius: 4px; z-index: 10;
}
.phone-vid {
  height: 260px; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: #000;
}

/* iframe ocupa mais que o phone (16:9 → cropado para 9:16) */
.phone-iframe-wrap {
  position: absolute; inset: 0;
  overflow: hidden; pointer-events: none;
}
.phone-iframe-wrap iframe {
  position: absolute;
  /* largura mínima para cobrir a altura: h=260 → w=260*(16/9)≈462 */
  width: 462px; height: 260px;
  /* centraliza horizontalmente */
  left: 50%; transform: translateX(-50%);
  border: none;
}

.phone-vid-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(
    to bottom,
    transparent 30%,
    rgba(0,0,0,.55) 70%,
    rgba(0,0,0,.88) 100%
  );
}

.phone-caption-block {
  position: relative; z-index: 5;
  padding: 0 10px 4px;
}
.phone-caption-line {
  font-size: .72rem; font-weight: 800; color: #fff;
  line-height: 1.2; text-shadow: 0 1px 4px rgba(0,0,0,.6);
}
.phone-caption-line.hi {
  background: #fff; color: #000;
  display: inline-block; padding: 0 4px; border-radius: 3px;
  margin-top: 2px;
}

.phone-progress {
  position: relative; z-index: 5;
  height: 2px; background: rgba(255,255,255,.2);
  margin: 6px 10px 0;
}
.phone-bar-fill {
  height: 100%; background: #fff; border-radius: 1px;
}

.phone-sidebar {
  position: absolute; right: 8px; bottom: 8px; z-index: 5;
  display: flex; flex-direction: column; gap: 6px; align-items: center;
}
.phone-action {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  font-size: .75rem; color: rgba(255,255,255,.95);
  text-shadow: 0 1px 4px rgba(0,0,0,.9), 0 0 8px rgba(0,0,0,.9);
}
.phone-action span {
  font-size: .55rem; font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,.9);
}

/* ── Stats ──────────────────────────────────────────────────────────── */
.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
}
.stats-inner {
  max-width: 900px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  padding: 32px 24px; gap: 0;
}
.stat { text-align: center; padding: 0 48px; }
.stat-n { font-size: 2.2rem; font-weight: 900; color: var(--accent2); letter-spacing: -.04em; }
.stat-l { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.stat-sep {
  width: 1px; height: 48px; background: var(--border); flex-shrink: 0;
}

/* ── Sections ───────────────────────────────────────────────────────── */
.section-inner {
  max-width: 1120px; margin: 0 auto;
  padding: 96px 24px; text-align: center;
}
.section-badge {
  display: inline-block;
  padding: 4px 14px; border-radius: 20px;
  background: rgba(124,92,252,.12); border: 1px solid rgba(124,92,252,.25);
  color: var(--accent2); font-size: .78rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800; letter-spacing: -.03em;
  margin-bottom: 56px;
}

/* ── Steps (how it works) ────────────────────────────────────────────── */
.how { background: var(--bg2); }
.steps-grid {
  display: flex; align-items: center; justify-content: center;
  gap: 0; flex-wrap: wrap;
}
.step-card {
  flex: 1; min-width: 220px; max-width: 300px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 20px; padding: 36px 28px;
  text-align: left; position: relative;
}
.step-num {
  font-size: 3rem; font-weight: 900; letter-spacing: -.04em;
  color: rgba(124,92,252,.25); line-height: 1;
  margin-bottom: 16px;
}
.step-icon { font-size: 2rem; margin-bottom: 14px; }
.step-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.step-card p { font-size: .875rem; color: var(--muted); line-height: 1.6; }
.step-arrow {
  font-size: 1.5rem; color: rgba(124,92,252,.5);
  padding: 0 16px; flex-shrink: 0;
}
.step-platforms {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px;
}
.step-plat {
  font-size: .68rem; font-weight: 700; padding: 3px 9px;
  border-radius: 20px; border: 1px solid;
}
.step-plat.yt  { background: rgba(255,0,0,.1);    border-color: rgba(255,0,0,.3);    color: #ff6b6b; }
.step-plat.ig  { background: rgba(225,48,108,.1);  border-color: rgba(225,48,108,.3); color: #f77ab0; }
.step-plat.tt  { background: rgba(0,0,0,.3);       border-color: rgba(255,255,255,.15); color: #fff; }
.step-plat.x   { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.15); color: #ccc; }
.step-plat.dl  { background: rgba(124,92,252,.1);  border-color: rgba(124,92,252,.3); color: var(--accent2); }

/* ── Features ───────────────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px; text-align: left;
}
.feature-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px;
  transition: border-color .2s, transform .2s;
}
.feature-card:hover {
  border-color: rgba(124,92,252,.35);
  transform: translateY(-2px);
}
.feature-icon { font-size: 1.8rem; margin-bottom: 14px; }
.feature-card h3 { font-size: .95rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: .85rem; color: var(--muted); line-height: 1.6; }

/* ── Analytics section ──────────────────────────────────────────────── */
.analytics-section {
  padding: 100px 24px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 50%, var(--bg) 100%);
}
.section-sub {
  font-size: .95rem; color: var(--muted);
  max-width: 580px; margin: 0 auto 52px; text-align: center; line-height: 1.7;
}

.analytics-mockup {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  max-width: 900px;
  margin: 0 auto 32px;
  box-shadow: 0 24px 80px rgba(0,0,0,.4);
}

.am-totals {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
@media (max-width: 640px) { .am-totals { grid-template-columns: repeat(2,1fr); } }

.am-total-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
}
.am-total-icon { font-size: 1.3rem; }
.am-total-val { font-size: 1.2rem; font-weight: 800; color: var(--text); }
.am-total-label { font-size: .72rem; color: var(--muted); margin-top: 1px; }

.am-platforms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 768px) { .am-platforms { grid-template-columns: 1fr; } }

.am-platform-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}
.am-plat-header {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px;
}
.am-plat-logo {
  width: 34px; height: 34px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.am-plat-name { font-size: .82rem; font-weight: 700; color: var(--text); }
.am-plat-status { display: flex; align-items: center; gap: 5px; font-size: .7rem; color: var(--muted); margin-top: 2px; }
.am-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.am-dot--ok { background: #22c55e; box-shadow: 0 0 6px rgba(34,197,94,.5); }

.am-bars { display: flex; flex-direction: column; gap: 8px; }
.am-bar-row {
  display: flex; align-items: center; gap: 8px;
  font-size: .7rem; color: var(--muted);
}
.am-bar-row > span:first-child { width: 44px; flex-shrink: 0; }
.am-bar-row > span:last-child  { width: 36px; flex-shrink: 0; text-align: right; }
.am-bar-track {
  flex: 1; height: 6px; background: rgba(255,255,255,.06);
  border-radius: 99px; overflow: hidden;
}
.am-bar-fill { height: 100%; border-radius: 99px; opacity: .85; }

.analytics-pills {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  max-width: 900px; margin: 0 auto;
}
.a-pill {
  display: flex; align-items: center; gap: 7px;
  font-size: .75rem; color: var(--muted);
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 99px; padding: 5px 14px;
}
.a-pill-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }

/* ── CTA ─────────────────────────────────────────────────────────────── */
.cta {
  background: linear-gradient(135deg, rgba(124,92,252,.12), rgba(167,139,250,.08));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-inner {
  max-width: 600px; margin: 0 auto;
  padding: 96px 24px; text-align: center;
}
.cta-inner h2 {
  font-size: 2.2rem; font-weight: 800;
  letter-spacing: -.03em; margin-bottom: 12px;
}
.cta-inner p { color: var(--muted); margin-bottom: 32px; }

/* ── Footer ─────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg2);
}
.footer-inner {
  max-width: 1120px; margin: 0 auto;
  padding: 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  color: var(--muted); text-decoration: none; font-size: .85rem;
  transition: color .2s;
}
.footer-links a:hover { color: var(--text); }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero { padding: 120px 20px 60px; }
  .mockup-phones { display: none; }
  .steps-grid { gap: 16px; }
  .step-arrow { transform: rotate(90deg); }
  .stat { padding: 0 24px; }
  .stat-n { font-size: 1.6rem; }
}
