/* =========================================================
   LINKBIO TEMPLATE — DEMOS COMPARTILHADAS
   Cada demo sobrescreve as variáveis em :root via <style> inline
   ========================================================= */
:root {
    --purple:  #8B5CF6;
    --cyan:    #06B6D4;
    --pink:    #EC4899;
    --bg:      #09090f;
    --card-bg: rgba(255,255,255,0.04);
    --card-br: rgba(255,255,255,0.08);
    --muted:   rgba(255,255,255,0.55);
    --ease:    cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body {
    height: 100%;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: #fff;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 60% at 15% 50%, rgba(139,92,246,.15) 0%, transparent 70%),
        radial-gradient(ellipse 70% 60% at 85% 50%, rgba(6,182,212,.10) 0%, transparent 70%);
}

.gradient-text {
    background: linear-gradient(135deg, var(--purple), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Demo banner (volta para a landing) */
.demo-banner {
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 300;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--card-br);
    border-radius: 999px;
    padding: 8px 16px;
    color: #fff;
    text-decoration: none;
    font-size: .78rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all .25s var(--ease);
}
.demo-banner:hover { color: #fff; border-color: var(--purple); transform: translateX(-2px); }
.demo-banner i { color: var(--cyan); }

/* Nav dots */
.nav-dots {
    position: fixed;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 200;
}
.nav-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid rgba(255,255,255,.25);
    cursor: pointer;
    padding: 0;
    transition: all .3s var(--ease);
}
.nav-dot.active { background: var(--purple); border-color: var(--purple); box-shadow: 0 0 12px rgba(139,92,246,.6); }
.nav-dot:hover:not(.active) { border-color: var(--cyan); transform: scale(1.35); }

/* Section counter */
.section-counter {
    position: fixed;
    bottom: 28px;
    left: 28px;
    z-index: 200;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1;
}
.counter-current {
    font-size: 1.6rem;
    background: linear-gradient(135deg, var(--purple), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.counter-rest { font-size: .95rem; color: rgba(255,255,255,.3); }

/* Scroll hint */
.scroll-hint {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: rgba(255,255,255,.4);
    font-size: .62rem;
    letter-spacing: 2.5px;
    transition: opacity .5s;
    pointer-events: none;
}
.scroll-hint.hidden { opacity: 0; }
.scroll-hint i:first-child { font-size: 1.1rem; }

/* Sections */
.main-wrapper {
    position: relative;
    height: 100dvh;
    overflow: hidden;
    z-index: 1;
}
.section {
    position: absolute;
    inset: 0;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    will-change: transform, opacity;
}
.section.active { pointer-events: all; }
#s0 { opacity: 1; }

/* Hero */
.hero-content { max-width: 600px; width: 100%; }

/* Avatar (foto ou iniciais) */
.avatar-circle {
    width: 158px;
    height: 158px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, var(--purple), var(--cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 3rem;
    font-weight: 800;
    margin: 0 auto 1.25rem;
    letter-spacing: -2px;
    box-shadow: 0 12px 40px rgba(139,92,246,.25);
}
.avatar-circle img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bg);
    display: block;
}

.hero-name  { font-size: clamp(2rem, 7vw, 3.6rem); font-weight: 800; line-height: 1.1; margin-bottom: .75rem; }
.hero-roles { color: rgba(255,255,255,.65); font-size: .88rem; letter-spacing: 1.8px; text-transform: uppercase; margin-bottom: 1.25rem; }
.hero-bio   { color: rgba(255,255,255,.72); font-size: 1.05rem; line-height: 1.65; max-width: 480px; margin: 0 auto; }

/* Card panel */
.card-panel {
    background: rgba(255,255,255,.035);
    border: 1px solid var(--card-br);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    max-width: 680px;
    width: 100%;
    text-align: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
}

.panel-icon {
    width: 66px;
    height: 66px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--purple), var(--cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
    margin: 0 auto 1.5rem;
}

.panel-title { font-size: clamp(1.8rem, 5vw, 2.75rem); font-weight: 800; margin-bottom: 1rem; line-height: 1.15; }
.panel-desc  { color: var(--muted); font-size: .95rem; line-height: 1.75; margin-bottom: 1.75rem; }

.features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 1.75rem; }

.feat-card {
    background: rgba(255,255,255,.05);
    border: 1px solid var(--card-br);
    border-radius: 12px;
    padding: 13px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .88rem;
    font-weight: 500;
    transition: background .25s var(--ease), border-color .25s var(--ease);
    text-align: left;
}
.feat-card:hover { background: rgba(139,92,246,.12); border-color: rgba(139,92,246,.3); }
.feat-card i { color: var(--pink); font-size: 1rem; flex-shrink: 0; }

.insta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 32px;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: .9rem;
    letter-spacing: .4px;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.insta-btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(236,72,153,.4); }

/* Links */
.links-wrap { max-width: 560px; width: 100%; text-align: center; }
.links-heading { font-size: clamp(2rem, 6vw, 3rem); font-weight: 800; margin-bottom: 2rem; }
.links-list { display: flex; flex-direction: column; gap: 12px; }

.link-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--card-br);
    border-radius: 16px;
    padding: 15px 20px;
    text-decoration: none;
    color: #fff;
    font-size: .95rem;
    font-weight: 500;
    transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.link-card:hover { color: #fff; background: rgba(255,255,255,.08); border-color: rgba(139,92,246,.4); transform: translateX(5px); }

.lk-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.lk-whatsapp  { background: linear-gradient(135deg, #25D366, #128C7E); }
.lk-instagram { background: linear-gradient(135deg, #E1306C, #833AB4); }
.lk-linkedin  { background: linear-gradient(135deg, #0077B5, #004d80); }
.lk-calendar  { background: linear-gradient(135deg, var(--purple), var(--cyan)); }
.lk-site      { background: linear-gradient(135deg, #f59e0b, #ef4444); }

/* Footer */
.footer-wrap { max-width: 560px; width: 100%; }
.footer-title { font-size: clamp(1.9rem, 6vw, 3rem); font-weight: 800; margin-bottom: 1rem; }
.footer-sub   { color: rgba(255,255,255,.6); font-size: 1rem; line-height: 1.65; margin-bottom: 2.5rem; }
.social-row { display: flex; justify-content: center; gap: 14px; margin-bottom: 2.5rem; }

.social-icon {
    width: 52px; height: 52px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.65);
    text-decoration: none;
    font-size: 1.2rem;
    transition: border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.social-icon:hover { border-color: var(--purple); color: var(--purple); transform: translateY(-3px); }

.footer-divider { width: 56px; height: 3px; background: linear-gradient(90deg, var(--purple), var(--cyan)); border-radius: 2px; margin: 0 auto 1.25rem; }
.footer-by  { font-size: 1rem; font-weight: 500; margin-bottom: .5rem; }
.footer-dev { font-size: .78rem; color: rgba(255,255,255,.35); }
.dev-link   { color: rgba(139,92,246,.7); text-decoration: none; transition: color .2s; }
.dev-link:hover { color: var(--purple); }

/* Modo autoplay (iframe da landing) — esconde UI extra */
html.autoplay-mode .nav-dots,
html.autoplay-mode .section-counter,
html.autoplay-mode .scroll-hint,
html.autoplay-mode .demo-banner { display: none !important; }
html.autoplay-mode body { overflow: hidden; }
html.autoplay-mode .section {
    overflow: hidden;
    padding: 1.35rem 1.05rem;
}
html.autoplay-mode .avatar-circle {
    width: 126px;
    height: 126px;
    margin-bottom: 1rem;
}
html.autoplay-mode .hero-name {
    font-size: clamp(1.8rem, 13vw, 3rem);
    line-height: 1.08;
}
html.autoplay-mode .hero-roles {
    font-size: .78rem;
    letter-spacing: 1.3px;
    margin-bottom: 1rem;
}
html.autoplay-mode .hero-bio {
    font-size: .96rem;
    line-height: 1.55;
}
html.autoplay-mode .card-panel {
    padding: 1.7rem 1.15rem;
}
html.autoplay-mode .panel-title,
html.autoplay-mode .links-heading,
html.autoplay-mode .footer-title {
    font-size: clamp(1.7rem, 11vw, 2.55rem);
}
html.autoplay-mode .features-grid {
    gap: 9px;
}
html.autoplay-mode .features-grid > * { min-width: 0; }
html.autoplay-mode .feat-card {
    min-width: 0;
    padding: 10px 9px;
    font-size: .72rem;
    line-height: 1.28;
    overflow-wrap: anywhere;
}
html.autoplay-mode .feat-card span { min-width: 0; }
html.autoplay-mode .insta-btn {
    max-width: 100%;
    justify-content: center;
    padding: 12px 14px;
    font-size: .78rem;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
}

@media (max-width: 480px) {
    .card-panel { padding: 1.75rem 1.25rem; border-radius: 18px; }
    .nav-dots   { right: 12px; gap: 12px; }
    .section-counter { left: 16px; bottom: 20px; }
    .features-grid { gap: 10px; }
    .feat-card { font-size: .82rem; padding: 11px 12px; }
    .demo-banner { font-size: .72rem; padding: 7px 12px; top: 10px; left: 10px; }
    .avatar-circle { width: 130px; height: 130px; font-size: 2.6rem; }
}

/* O preview da landing renderiza as demos em uma viewport mobile real e apenas escala o iframe. */
html.autoplay-mode .section { padding: 2rem 1.5rem; }
html.autoplay-mode .avatar-circle { width: 158px; height: 158px; margin-bottom: 1.25rem; }
html.autoplay-mode .hero-name { font-size: clamp(2rem, 7vw, 3.6rem); line-height: 1.1; }
html.autoplay-mode .hero-roles { font-size: .88rem; letter-spacing: 1.8px; margin-bottom: 1.25rem; }
html.autoplay-mode .hero-bio { font-size: 1.05rem; line-height: 1.65; }
html.autoplay-mode .card-panel { padding: 2.5rem 2rem; }
html.autoplay-mode .panel-title,
html.autoplay-mode .links-heading,
html.autoplay-mode .footer-title { font-size: clamp(1.8rem, 5vw, 2.75rem); }
html.autoplay-mode .features-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
html.autoplay-mode .feat-card { padding: 13px 15px; font-size: .88rem; line-height: inherit; overflow-wrap: normal; }
html.autoplay-mode .insta-btn { padding: 13px 32px; font-size: .9rem; line-height: normal; white-space: nowrap; }
