/* ============================================================
   Novidda — Landing Page
   Tokens de claude/specs/DESIGN.md · mobile-first · sem libs
   ============================================================ */

:root {
    --primary: #7B61FF;
    --primary-active: #9D8FFF;
    --primary-neutral: #C4BAFF;
    --primary-pale: #E8E4FF;
    --on-primary: #F5F5F0;
    --ink: #16213E;
    --ink-deep: #0A0F1E;
    --body: #3D3D5C;
    --mute: #8B8BA0;
    --canvas: #F5F5F0;
    --canvas-soft: #E0DCFF;
    --positive: #2EB87A;
    --warning: #FFB347;
    --accent-cyan: #38B8E0;
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-xl: 24px;
    --r-pill: 9999px;
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.5;
    color: var(--body);
    background: var(--canvas);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }

h1, h2, h3 { color: var(--ink); margin: 0; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Ícones (SVG inline via sprite) */
.icon {
    width: 1.25em;
    height: 1.25em;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: none;
    vertical-align: -0.25em;
}

/* ------------------------------------------------------------
   Botões
   ------------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 24px;
    border-radius: var(--r-xl);
    border: 1px solid transparent;
    font: 600 16px/1.5 var(--font);
    text-decoration: none;
    cursor: pointer;
    transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.btn-primary {
    background: var(--primary);
    color: var(--on-primary);
}
.btn-primary:hover {
    background: #6a4ff2;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 24px rgba(123, 97, 255, .32);
}

.btn-tertiary {
    background: var(--canvas);
    color: var(--ink);
    border-color: var(--ink);
}
.btn-tertiary:hover { background: var(--primary-pale); transform: translateY(-2px); }

.btn-ghost {
    background: transparent;
    color: var(--ink);
}
.btn-ghost:hover { background: var(--primary-pale); }

.btn-lg { min-height: 56px; padding: 16px 32px; font-size: 18px; }

/* ------------------------------------------------------------
   Nav
   ------------------------------------------------------------ */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(245, 245, 240, .85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: box-shadow .25s ease;
}
.nav.scrolled { box-shadow: 0 1px 0 rgba(22, 33, 62, .08), 0 8px 24px rgba(22, 33, 62, .06); }

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 72px;
}

.nav-logo img { display: block; width: 132px; height: 33px; }

.nav-links {
    display: none;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-links a {
    display: inline-block;
    padding: 8px 14px;
    border-radius: var(--r-pill);
    color: var(--ink);
    font: 600 14px/1.4 var(--font);
    text-decoration: none;
    transition: background-color .18s ease;
}
.nav-links a:hover { background: var(--primary-pale); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-actions .btn { min-height: 44px; padding: 10px 20px; font-size: 14px; }
.nav-actions .btn-ghost { display: none; }

@media (min-width: 768px) {
    .nav-links { display: flex; }
    .nav-actions .btn-ghost { display: inline-flex; }
}

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--canvas-soft);
    padding: 64px 0 72px;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .55;
    pointer-events: none;
    will-change: transform;
}
.blob-a {
    width: 480px; height: 480px;
    left: -140px; top: -160px;
    background: radial-gradient(circle, rgba(123, 97, 255, .45), transparent 70%);
    animation: float 18s ease-in-out infinite alternate;
}
.blob-b {
    width: 560px; height: 560px;
    right: -180px; bottom: -220px;
    background: radial-gradient(circle, rgba(157, 143, 255, .5), transparent 70%);
    animation: float 22s ease-in-out infinite alternate-reverse;
}

@keyframes float {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to   { transform: translate3d(40px, 32px, 0) scale(1.08); }
}

.hero-inner {
    position: relative;
    display: grid;
    gap: 48px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: var(--r-pill);
    background: var(--canvas);
    color: var(--ink);
    font: 600 13px/1.4 var(--font);
    box-shadow: 0 2px 8px rgba(22, 33, 62, .08);
}
.hero-badge .icon { color: var(--primary); }

.hero h1 {
    margin: 20px 0 16px;
    font-size: clamp(2.5rem, 6.5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.04;
    letter-spacing: -0.02em;
}

/* Palavra digitada/apagada no headline */
.typewriter-wrap { color: var(--primary); white-space: nowrap; }
.typewriter { display: inline-block; }
.typewriter-cursor {
    display: inline-block;
    width: 3px;
    height: 0.78em;
    margin-left: 3px;
    background: currentColor;
    vertical-align: -0.08em;
    animation: caret-blink 1s steps(1) infinite;
}
@keyframes caret-blink {
    0%, 49%  { opacity: 1; }
    50%, 100% { opacity: 0; }
}

/* Texto acessível — visível apenas para leitores de tela */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hero-sub {
    max-width: 34em;
    margin: 0 0 28px;
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    line-height: 1.55;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-note {
    margin: 16px 0 0;
    font-size: 13px;
    color: var(--body);
    opacity: .8;
}

/* Entrada em cascata do hero */
.hero-stagger > * {
    opacity: 0;
    transform: translateY(18px);
    animation: rise .7s cubic-bezier(.22, .8, .3, 1) forwards;
}
.hero-stagger > *:nth-child(1) { animation-delay: .05s; }
.hero-stagger > *:nth-child(2) { animation-delay: .15s; }
.hero-stagger > *:nth-child(3) { animation-delay: .25s; }
.hero-stagger > *:nth-child(4) { animation-delay: .35s; }
.hero-stagger > *:nth-child(5) { animation-delay: .45s; }

@keyframes rise {
    to { opacity: 1; transform: translateY(0); }
}

/* Mockup do widget (HTML/CSS puro) */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    opacity: 0;
    animation: rise .8s cubic-bezier(.22, .8, .3, 1) .3s forwards;
}

.mock-panel {
    width: min(380px, 100%);
    background: var(--canvas);
    border-radius: var(--r-xl);
    box-shadow: 0 24px 60px rgba(22, 33, 62, .18);
    padding: 20px;
    animation: hover-float 7s ease-in-out infinite;
}

@keyframes hover-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

.mock-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.mock-head strong { color: var(--ink); font-size: 15px; }
.mock-pill {
    padding: 3px 10px;
    border-radius: var(--r-pill);
    background: var(--primary-pale);
    color: var(--primary);
    font: 600 11px/1.5 var(--font);
}

.mock-card {
    border-radius: var(--r-lg);
    background: var(--canvas-soft);
    padding: 14px;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(14px);
    animation: rise .6s cubic-bezier(.22, .8, .3, 1) forwards;
}
.mock-card:nth-child(2) { animation-delay: .7s; }
.mock-card:nth-child(3) { animation-delay: 1.0s; background: var(--canvas); box-shadow: inset 0 0 0 1px rgba(22,33,62,.07); }
.mock-card:nth-child(4) { animation-delay: 1.3s; background: var(--canvas); box-shadow: inset 0 0 0 1px rgba(22,33,62,.07); margin-bottom: 0; }

.mock-tag {
    display: inline-block;
    padding: 2px 9px;
    border-radius: var(--r-pill);
    font: 600 10px/1.6 var(--font);
    margin-bottom: 8px;
}
.mock-tag-new { background: var(--primary); color: var(--on-primary); }
.mock-tag-improve { background: rgba(46, 184, 122, .16); color: #0A6647; }
.mock-tag-fix { background: rgba(255, 179, 71, .22); color: #9C6200; }

.mock-title { height: 11px; border-radius: 6px; background: var(--ink); opacity: .82; width: 72%; margin-bottom: 8px; }
.mock-line  { height: 8px;  border-radius: 6px; background: var(--mute); opacity: .45; margin-bottom: 6px; }
.mock-line.short { width: 55%; }

.mock-reactions { display: flex; gap: 6px; margin-top: 10px; }
.mock-reactions span {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--canvas);
    box-shadow: 0 1px 4px rgba(22, 33, 62, .12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}
.mock-reactions .icon { width: 13px; height: 13px; }

.mock-launcher {
    position: absolute;
    right: 4px;
    bottom: -18px;
    width: 56px; height: 56px;
    border: 0;
    border-radius: 50%;
    background: var(--primary);
    color: var(--on-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 28px rgba(123, 97, 255, .45);
}
.mock-launcher .icon { width: 22px; height: 22px; }

.mock-badge {
    position: absolute;
    top: -4px; right: -2px;
    min-width: 22px; height: 22px;
    padding: 0 6px;
    border-radius: var(--r-pill);
    background: #D03060;
    color: #fff;
    font: 700 11px/22px var(--font);
    text-align: center;
    animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.18); }
}

@media (min-width: 1024px) {
    .hero { padding: 88px 0 96px; }
    .hero-inner { grid-template-columns: 1.1fr .9fr; gap: 56px; }
}

/* ------------------------------------------------------------
   Barra de confiança (stats)
   ------------------------------------------------------------ */
.stats {
    background: var(--canvas);
    padding: 40px 0;
    border-bottom: 1px solid rgba(22, 33, 62, .06);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    text-align: center;
}
.stat strong {
    display: block;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 900;
    color: var(--ink);
    letter-spacing: -0.02em;
}
.stat span { font-size: 14px; color: var(--body); }

@media (min-width: 768px) {
    .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ------------------------------------------------------------
   Seções genéricas
   ------------------------------------------------------------ */
.section { padding: 72px 0; }
.section-soft { background: var(--canvas-soft); }
.section-dark { background: var(--ink); }

.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head h2 {
    font-size: clamp(1.9rem, 4vw, 2.75rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 14px;
}
.section-head p { margin: 0; font-size: 17px; }

.eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    font: 600 12px/1.5 var(--font);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--primary);
}

@media (min-width: 1024px) {
    .section { padding: 96px 0; }
}

/* ------------------------------------------------------------
   Como funciona
   ------------------------------------------------------------ */
.steps {
    display: grid;
    gap: 20px;
    margin-bottom: 40px;
}
.step {
    background: var(--canvas);
    border-radius: var(--r-xl);
    padding: 24px;
    box-shadow: inset 0 0 0 1px rgba(22, 33, 62, .07);
}
.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--primary-pale);
    color: var(--primary);
    font: 900 16px/1 var(--font);
    margin-bottom: 14px;
}
.step h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.step p { margin: 0; font-size: 14px; }

@media (min-width: 768px) {
    .steps { grid-template-columns: repeat(3, 1fr); }
}

.code-wrap { max-width: 760px; margin: 0 auto; }
.code-block {
    position: relative;
    background: var(--ink-deep);
    border-radius: var(--r-lg);
    padding: 20px 56px 20px 20px;
    overflow-x: auto;
}
.code-block code {
    font: 500 13.5px/1.6 'SF Mono', ui-monospace, Menlo, Consolas, monospace;
    color: #DCD7FF;
    white-space: pre;
}
.code-block .tk { color: var(--primary-active); }
.code-block .tv { color: #8FE3B4; }

.copy-btn {
    position: absolute;
    top: 10px; right: 10px;
    width: 38px; height: 38px;
    border: 0;
    border-radius: var(--r-md);
    background: rgba(245, 245, 240, .1);
    color: #DCD7FF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color .18s ease;
}
.copy-btn:hover { background: rgba(245, 245, 240, .22); }
.copy-btn.copied { color: var(--positive); }

.perf-callout {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    max-width: 760px;
    margin: 20px auto 0;
    background: var(--primary-pale);
    border-radius: var(--r-lg);
    padding: 18px 20px;
}
.perf-callout .icon { width: 22px; height: 22px; color: var(--primary); margin-top: 2px; }
.perf-callout p { margin: 0; font-size: 14.5px; color: var(--ink); }
.perf-callout strong { font-weight: 600; }

/* ------------------------------------------------------------
   Funcionalidades
   ------------------------------------------------------------ */
.features-grid {
    display: grid;
    gap: 20px;
}
.feature {
    background: var(--canvas);
    border-radius: var(--r-xl);
    padding: 28px 24px;
    transition: transform .22s ease, box-shadow .22s ease;
}
.feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(22, 33, 62, .1);
}
.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--primary-pale);
    color: var(--primary);
    margin-bottom: 16px;
}
.feature-icon .icon { width: 22px; height: 22px; }
.feature h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.01em; }
.feature p { margin: 0; font-size: 14.5px; line-height: 1.55; }

.feature-dark { background: var(--ink); }
.feature-dark h3 { color: var(--on-primary); }
.feature-dark p { color: var(--primary-neutral); }
.feature-dark .feature-icon { background: rgba(123, 97, 255, .22); color: var(--primary-active); }

@media (min-width: 768px)  { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }

/* ------------------------------------------------------------
   Demonstração — computador com o widget em uso
   ------------------------------------------------------------ */
.device { width: min(980px, 100%); margin: 0 auto; }

.device-monitor {
    position: relative;
    background: var(--ink);
    padding: 14px 14px 20px;
    border-radius: 20px;
    box-shadow: 0 40px 80px rgba(22, 33, 62, .22);
}
.device-cam {
    position: absolute;
    top: 6px; left: 50%;
    transform: translateX(-50%);
    width: 7px; height: 7px;
    border-radius: 50%;
    background: rgba(245, 245, 240, .25);
}

.device-screen {
    position: relative;
    aspect-ratio: 16 / 10;
    background: var(--canvas);
    border-radius: 8px;
    overflow: hidden;
    font-size: clamp(6.5px, 1.5vw, 13px);
}

.device-neck {
    width: 12%;
    height: 22px;
    margin: 0 auto;
    background: var(--ink);
    clip-path: polygon(28% 0, 72% 0, 100% 100%, 0% 100%);
}
.device-base {
    width: 30%;
    height: 12px;
    margin: -1px auto 0;
    background: var(--ink);
    border-radius: 0 0 10px 10px;
}

/* Fundo — sistema fictício por trás do widget */
.fakeapp { position: absolute; inset: 0; display: flex; }
.fakeapp-side {
    width: 4.6em;
    background: var(--ink);
    padding: 1em .8em;
    display: flex;
    flex-direction: column;
    gap: .7em;
    flex: none;
}
.fakeapp-dot { width: 1.1em; height: 1.1em; border-radius: 50%; background: var(--primary); margin-bottom: .4em; }
.fakeapp-nav { display: block; height: .55em; border-radius: 999px; background: rgba(245, 245, 240, .18); }
.fakeapp-nav.active { background: var(--primary-active); }

.fakeapp-main { flex: 1; display: flex; flex-direction: column; padding: 1.1em 1.4em; min-width: 0; }
.fakeapp-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.2em; flex: none; }
.fakeapp-search { width: 9em; height: 1.4em; border-radius: 999px; background: var(--canvas-soft); }
.fakeapp-avatar { width: 1.6em; height: 1.6em; border-radius: 50%; background: var(--primary-pale); flex: none; }

.fakeapp-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9em; flex: none; }
.fakeapp-card {
    background: var(--canvas);
    box-shadow: inset 0 0 0 1px rgba(22, 33, 62, .08);
    border-radius: .6em;
    padding: .9em;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 5.4em;
}
.fakeapp-num { font: 900 1.3em/1 var(--font); color: var(--ink); margin-bottom: .5em; }
.fakeapp-bar { display: block; height: .5em; width: var(--h); border-radius: 999px; background: var(--primary-active); }

.fakeapp-chart {
    flex: 1;
    min-height: 3em;
    margin-top: .9em;
    background: var(--canvas);
    box-shadow: inset 0 0 0 1px rgba(22, 33, 62, .08);
    border-radius: .6em;
    padding: .9em;
    display: flex;
    align-items: flex-end;
    gap: .7em;
}
.fakeapp-chart span {
    flex: 1;
    height: var(--h);
    border-radius: .3em .3em 0 0;
    background: var(--primary-neutral);
}
.fakeapp-chart span:nth-child(3n+1) { background: var(--primary-active); }
.fakeapp-chart span:last-child { background: var(--primary); }

/* Painel do widget, ancorado à direita — mesma estrutura do widget real */
.wf {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 46%;
    background: var(--canvas);
    box-shadow: -8px 0 24px rgba(22, 33, 62, .12);
    display: flex;
    flex-direction: column;
    font-size: 1em;
}
.wf-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1em 1.1em;
    border-bottom: 1px solid rgba(22, 33, 62, .08);
    flex: none;
}
.wf-head strong { font-size: 1.25em; color: var(--ink); }
.wf-head .icon { width: 1.1em; height: 1.1em; color: var(--mute); }

.wf-filters { display: flex; gap: .5em; padding: .8em 1.1em; flex: none; }
.wf-filter {
    display: inline-flex;
    align-items: center;
    gap: .3em;
    padding: .4em .8em;
    border-radius: 999px;
    background: var(--canvas);
    box-shadow: inset 0 0 0 1px rgba(22, 33, 62, .14);
    font: 600 .8em/1 var(--font);
    color: var(--ink);
}
.wf-filter .icon { width: .9em; height: .9em; }
.wf-filter.active { background: var(--primary); color: var(--on-primary); box-shadow: none; }

.wf-divider {
    display: flex;
    align-items: center;
    gap: .6em;
    padding: 0 1.1em;
    margin: .3em 0 .6em;
    flex: none;
}
.wf-divider::before, .wf-divider::after { content: ''; flex: 1; height: 1px; background: rgba(22, 33, 62, .1); }
.wf-divider span { font: 700 .68em/1 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }

.wf-feed {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, #000 85%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 85%, transparent 100%);
}
.wf-item {
    position: relative;
    padding: .75em 1.1em .75em 1.4em;
    border-bottom: 1px solid rgba(22, 33, 62, .07);
}
.wf-item::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--bar);
}
.wf-item-top { display: flex; align-items: center; gap: .5em; margin-bottom: .5em; }
.wf-item-top time { margin-left: auto; font-size: .72em; color: var(--mute); white-space: nowrap; }
.wf-item h4 { margin: 0 0 .35em; font-size: 1em; font-weight: 600; color: var(--ink); }
.wf-item p { margin: 0; font-size: .82em; line-height: 1.5; color: var(--body); }

.wf-tag {
    display: inline-flex;
    align-items: center;
    gap: .25em;
    padding: .2em .6em;
    border-radius: 999px;
    font: 700 .68em/1.6 var(--font);
    white-space: nowrap;
}
.wf-tag .icon { width: .85em; height: .85em; }
.wf-tag-announce { background: var(--primary-pale); color: var(--primary); }
.wf-tag-hotfix { background: rgba(208, 48, 96, .14); color: #D03060; }
.wf-tag-feature { background: rgba(56, 184, 224, .16); color: #1c7a99; }
.wf-tag-outline { box-shadow: inset 0 0 0 1px rgba(22, 33, 62, .18); color: var(--ink); }
.wf-tag-outline-primary { box-shadow: inset 0 0 0 1px var(--primary-neutral); color: var(--primary); }

.wf-reaction {
    display: inline-flex;
    align-items: center;
    gap: .3em;
    margin-top: .6em;
    padding: .25em .6em;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(22, 33, 62, .12);
    font: 700 .75em/1 var(--font);
    color: var(--ink);
}
.wf-reaction .icon { width: .9em; height: .9em; color: #D03060; }

.wf-video {
    position: relative;
    margin-top: .6em;
    height: 3.8em;
    border-radius: .6em;
    background: linear-gradient(135deg, #1c2338, var(--ink-deep));
    overflow: hidden;
}
.wf-play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 1.7em; height: 1.7em;
    border: 0;
    border-radius: 50%;
    background: rgba(245, 245, 240, .95);
    display: flex;
    align-items: center;
    justify-content: center;
}
.wf-play-triangle {
    width: 0; height: 0;
    margin-left: .12em;
    border-style: solid;
    border-width: .35em 0 .35em .58em;
    border-color: transparent transparent transparent var(--ink);
}

.wf-tabs {
    display: flex;
    gap: 1.4em;
    padding: .8em 1.1em;
    border-top: 1px solid rgba(22, 33, 62, .08);
    flex: none;
    font: 700 .82em/1 var(--font);
}
.wf-tabs span { color: var(--mute); padding-bottom: .5em; }
.wf-tabs span.active { color: var(--primary); box-shadow: 0 2px 0 var(--primary); }

.wf-footer {
    padding: .7em 1.1em .9em;
    text-align: center;
    font-size: .72em;
    color: var(--mute);
    border-top: 1px solid rgba(22, 33, 62, .06);
}
.wf-footer strong { color: var(--primary); }

@media (max-width: 767px) {
    .device-screen { aspect-ratio: 16 / 13; }
}

@media (min-width: 768px) {
    .device-screen { font-size: clamp(9px, 1.1vw, 14px); }
}

/* ------------------------------------------------------------
   Comparativo
   ------------------------------------------------------------ */
.compare-wrap { max-width: 820px; margin: 0 auto; overflow-x: auto; }
.compare {
    width: 100%;
    min-width: 560px;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--canvas);
    border-radius: var(--r-xl);
    box-shadow: inset 0 0 0 1px rgba(22, 33, 62, .08);
    overflow: hidden;
}
.compare th, .compare td {
    padding: 16px 20px;
    text-align: left;
    font-size: 14.5px;
    border-bottom: 1px solid rgba(22, 33, 62, .07);
}
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare thead th {
    background: var(--canvas-soft);
    font: 600 14px/1.4 var(--font);
    color: var(--ink);
}
.compare thead th:nth-child(2) { color: var(--primary); }
.compare tbody th { font-weight: 600; color: var(--ink); }
.compare td .icon { width: 17px; height: 17px; margin-right: 8px; }
.compare .yes { color: var(--ink); }
.compare .yes .icon { color: var(--positive); }
.compare .no { color: var(--mute); }
.compare .no .icon { color: var(--mute); }

.compare-note {
    max-width: 820px;
    margin: 18px auto 0;
    text-align: center;
    font-size: 14px;
    color: var(--body);
}

/* ------------------------------------------------------------
   Performance e segurança (banda dark)
   ------------------------------------------------------------ */
.section-dark .section-head h2 { color: var(--primary-active); }
.section-dark .section-head p { color: var(--primary-neutral); }

.pillars {
    display: grid;
    gap: 20px;
}
.pillar {
    background: rgba(245, 245, 240, .04);
    border: 1px solid rgba(157, 143, 255, .2);
    border-radius: var(--r-xl);
    padding: 28px 24px;
}
.pillar .feature-icon {
    background: rgba(123, 97, 255, .22);
    color: var(--primary-active);
}
.pillar h3 { color: var(--on-primary); font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.pillar p { margin: 0; color: var(--primary-neutral); font-size: 14.5px; line-height: 1.6; }

@media (min-width: 768px) { .pillars { grid-template-columns: repeat(3, 1fr); } }

/* ------------------------------------------------------------
   FAQ
   ------------------------------------------------------------ */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
    background: var(--canvas);
    border-radius: var(--r-lg);
    box-shadow: inset 0 0 0 1px rgba(22, 33, 62, .08);
    margin-bottom: 12px;
}
.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    cursor: pointer;
    list-style: none;
    font: 600 15.5px/1.45 var(--font);
    color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { color: var(--primary); transition: transform .25s ease; }
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-item p { margin: 0; padding: 0 20px 18px; font-size: 14.5px; line-height: 1.6; }

/* ------------------------------------------------------------
   CTA final
   ------------------------------------------------------------ */
.cta-final {
    position: relative;
    overflow: hidden;
    text-align: center;
}
.cta-final .blob-a { left: 50%; top: -260px; margin-left: -240px; }
.cta-final h2 {
    position: relative;
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.08;
    margin-bottom: 24px;
}
.cta-final .btn { position: relative; }
.cta-final .cta-micro {
    position: relative;
    margin: 14px 0 0;
    font-size: 13.5px;
    color: var(--body);
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.footer {
    background: var(--ink);
    color: var(--canvas-soft);
    padding: 56px 0 32px;
}
.footer-grid {
    display: grid;
    gap: 32px;
    margin-bottom: 40px;
}
.footer-brand img { width: 140px; height: 35px; margin-bottom: 14px; }
.footer-brand p { margin: 0; max-width: 30em; font-size: 14px; color: var(--primary-neutral); }

.footer h3 {
    color: var(--on-primary);
    font: 600 13px/1.5 var(--font);
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 10px; }
.footer a {
    color: var(--primary-neutral);
    text-decoration: none;
    font-size: 14px;
    transition: color .18s ease;
}
.footer a:hover { color: var(--on-primary); }

.footer-bottom {
    border-top: 1px solid rgba(157, 143, 255, .18);
    padding-top: 24px;
    font-size: 13px;
    color: var(--mute);
}

@media (min-width: 768px) {
    .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

/* ------------------------------------------------------------
   Scroll reveal
   ------------------------------------------------------------ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s cubic-bezier(.22, .8, .3, 1), transform .7s cubic-bezier(.22, .8, .3, 1);
    transition-delay: var(--reveal-delay, 0s);
}
.reveal.in { opacity: 1; transform: none; }

/* ------------------------------------------------------------
   Acessibilidade — movimento reduzido
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    .hero-stagger > *, .hero-visual, .mock-card, .reveal { opacity: 1; transform: none; }
    .typewriter-cursor { display: none; }
}
