/* ============================================================
   VitrinePesada — landing.css
   Design system corporativo robusto (estilo enterprise/AWS/Cloudflare)
   ============================================================ */

/* --- Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Marca */
    --brand: #1D4ED8;
    --brand-700: #1E40AF;
    --brand-600: #2563EB;
    --brand-50: #EFF4FF;
    --brand-25: #F8FBFF;

    /* Status */
    --ok: #10B981;
    --ok-50: #ECFDF5;
    --warn: #F59E0B;

    /* Neutros (Slate) */
    --ink-900: #0B1220;
    --ink-800: #111827;
    --ink-700: #1F2937;
    --ink-600: #334155;
    --ink-500: #475569;
    --ink-400: #64748B;
    --ink-300: #94A3B8;
    --line: #E2E8F0;
    --line-strong: #CBD5E1;
    --surface: #FFFFFF;
    --surface-2: #F8FAFC;
    --surface-3: #F1F5F9;

    /* Tipografia */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', ui-monospace, Menlo, monospace;

    /* Raios (mais sóbrios que 20px) */
    --r-sm: 4px;
    --r-md: 6px;
    --r-lg: 10px;
    --r-pill: 999px;

    /* Sombras discretas (enterprise = menos sombra, mais borda) */
    --sh-1: 0 1px 2px rgba(15, 23, 42, 0.06);
    --sh-2: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
    --sh-3: 0 4px 12px -2px rgba(15, 23, 42, 0.10), 0 2px 4px -1px rgba(15, 23, 42, 0.05);
    --sh-pop: 0 12px 32px -8px rgba(15, 23, 42, 0.18);

    /* Espaçamento */
    --s-1: 0.25rem;
    --s-2: 0.5rem;
    --s-3: 0.75rem;
    --s-4: 1rem;
    --s-5: 1.5rem;
    --s-6: 2rem;
    --s-7: 3rem;
    --s-8: 4rem;
    --s-9: 6rem;

    /* Layout */
    --container: 1200px;
    --header-h: 64px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    background: var(--surface);
    color: var(--ink-800);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.55;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

a {
    text-decoration: none;
    color: inherit;
    transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}

ul {
    list-style: none;
}

img,
svg {
    display: block;
    max-width: 100%;
}

::selection {
    background: var(--brand);
    color: #fff;
}

/* --- Layout --- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--s-5);
}

.section {
    padding: var(--s-9) 0;
    border-top: 1px solid var(--line);
}

.section--tint {
    background: var(--surface-2);
}

.section--dark {
    background: var(--ink-900);
    color: #E2E8F0;
    border-top: none;
}

/* --- Tipografia utilitária --- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brand-700);
    margin-bottom: var(--s-3);
}

.eyebrow::before {
    content: "";
    width: 18px;
    height: 1px;
    background: var(--brand);
    display: inline-block;
}

.h2 {
    font-size: clamp(1.75rem, 3.2vw, 2.375rem);
    font-weight: 700;
    color: var(--ink-900);
    letter-spacing: -0.025em;
    line-height: 1.15;
    max-width: 18ch;
}

.h2--center {
    margin-inline: auto;
}

.lead {
    font-size: 1.0625rem;
    color: var(--ink-500);
    max-width: 60ch;
    line-height: 1.65;
}

.lead--center {
    margin-inline: auto;
}

.mono {
    font-family: var(--font-mono);
    font-feature-settings: 'tnum';
}

/* --- Botões --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-2);
    padding: 10px 18px;
    border-radius: var(--r-md);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all .18s ease;
    white-space: nowrap;
}

.btn .icon {
    width: 16px;
    height: 16px;
}

.btn-primary {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
    box-shadow: var(--sh-1);
}

.btn-primary:hover {
    background: var(--brand-700);
    border-color: var(--brand-700);
    box-shadow: var(--sh-3);
}

.btn-secondary {
    background: var(--surface);
    color: var(--ink-800);
    border-color: var(--line-strong);
}

.btn-secondary:hover {
    border-color: var(--ink-400);
    background: var(--surface-2);
}

.btn-ghost {
    background: transparent;
    color: var(--ink-600);
    border-color: transparent;
    padding-inline: var(--s-3);
}

.btn-ghost:hover {
    color: var(--ink-900);
    background: var(--surface-3);
}

.btn-dark {
    background: var(--ink-900);
    color: #fff;
    border-color: var(--ink-900);
}

.btn-dark:hover {
    background: #000;
    box-shadow: var(--sh-3);
}

.btn-lg {
    padding: 13px 22px;
    font-size: 0.9375rem;
}

/* --- Pills / Badges / Status --- */
.pill {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    padding: 4px 10px;
    border-radius: var(--r-pill);
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink-600);
}

.pill--brand {
    background: var(--brand-50);
    color: var(--brand-700);
    border-color: #DBE7FF;
}

.pill--ok {
    background: var(--ok-50);
    color: #047857;
    border-color: #BBF7D0;
}

.pill--mono {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ok);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
    flex-shrink: 0;
}

.status-dot--pulse {
    animation: pulse 2.4s ease-in-out infinite;
}

/* --- Header --- */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
}

.nav {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-5);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    font-weight: 700;
    font-size: 1rem;
    color: var(--ink-900);
    letter-spacing: -0.02em;
}

.brand-mark {
    width: 26px;
    height: 26px;
    border-radius: var(--r-sm);
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-700) 100%);
    display: grid;
    place-items: center;
    color: #fff;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.8125rem;
    box-shadow: var(--sh-1);
}

.brand-mark svg {
    width: 14px;
    height: 14px;
}

.brand-suffix {
    color: var(--ink-400);
    font-weight: 500;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    margin-left: 2px;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: var(--s-2);
}

.nav-link {
    padding: 8px 12px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ink-600);
    border-radius: var(--r-sm);
}

.nav-link:hover {
    color: var(--ink-900);
    background: var(--surface-3);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--s-2);
}

.nav-sep {
    width: 1px;
    height: 22px;
    background: var(--line);
    margin: 0 var(--s-1);
}

/* --- Hero --- */
.hero {
    padding: var(--s-9) 0 var(--s-8);
    background:
        linear-gradient(180deg, var(--brand-25) 0%, var(--surface) 55%),
        var(--surface);
    border-bottom: 1px solid var(--line);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 64px 64px;
    background-position: -1px -1px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
    opacity: 0.5;
    pointer-events: none;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--s-8);
    align-items: center;
}

.hero-eyebrow-row {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    margin-bottom: var(--s-5);
    flex-wrap: wrap;
}

.hero-title {
    font-size: clamp(2.25rem, 4.6vw, 3.5rem);
    font-weight: 700;
    color: var(--ink-900);
    letter-spacing: -0.035em;
    line-height: 1.05;
    margin-bottom: var(--s-5);
}

.hero-title em {
    font-style: normal;
    color: var(--brand);
}

.hero-sub {
    font-size: 1.125rem;
    color: var(--ink-500);
    max-width: 52ch;
    line-height: 1.6;
    margin-bottom: var(--s-6);
}

.hero-actions {
    display: flex;
    gap: var(--s-3);
    flex-wrap: wrap;
    margin-bottom: var(--s-6);
}

.hero-meta {
    display: flex;
    gap: var(--s-5);
    flex-wrap: wrap;
    font-size: 0.8125rem;
    color: var(--ink-500);
}

.hero-meta-item {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
}

.hero-meta-item .icon {
    width: 15px;
    height: 15px;
    color: var(--ok);
}

/* Hero visual: console mockup */
.console {
    background: var(--ink-900);
    border-radius: var(--r-lg);
    border: 1px solid #1E293B;
    box-shadow: var(--sh-pop);
    overflow: hidden;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: #CBD5E1;
}

.console-bar {
    display: flex;
    align-items: center;
    gap: var(--s-2);
    padding: 10px 14px;
    background: #0B1220;
    border-bottom: 1px solid #1E293B;
}

.console-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #334155;
}

.console-dot--r { background: #EF4444; }
.console-dot--y { background: #F59E0B; }
.console-dot--g { background: #10B981; }

.console-url {
    margin-left: var(--s-3);
    color: #64748B;
    font-size: 0.75rem;
}

.console-body {
    padding: var(--s-4) var(--s-4) var(--s-5);
    display: flex;
    flex-direction: column;
    gap: var(--s-2);
}

.console-line {
    display: flex;
    gap: var(--s-3);
    align-items: baseline;
}

.console-prompt { color: #475569; }
.console-k { color: #93C5FD; }
.console-v { color: #E2E8F0; }
.console-ok { color: #34D399; }
.console-muted { color: #64748B; }

.console-card {
    margin-top: var(--s-3);
    background: #0F172A;
    border: 1px solid #1E293B;
    border-radius: var(--r-md);
    padding: var(--s-3);
}

.console-card-title {
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #64748B;
    margin-bottom: var(--s-2);
}

.console-stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-3);
}

.console-stat-num {
    font-size: 1.125rem;
    font-weight: 700;
    color: #F1F5F9;
}

.console-stat-lbl {
    font-size: 0.6875rem;
    color: #64748B;
    margin-top: 2px;
}

/* --- Status bar (substitui tenants-bar) --- */
.statusbar {
    background: var(--ink-900);
    color: #CBD5E1;
    font-size: 0.8125rem;
    border-bottom: 1px solid #1E293B;
}

.statusbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-4);
    padding-block: var(--s-3);
    flex-wrap: wrap;
}

.statusbar-left {
    display: flex;
    align-items: center;
    gap: var(--s-4);
    flex-wrap: wrap;
}

.statusbar-item {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    color: #94A3B8;
}

.statusbar-item strong {
    color: #E2E8F0;
    font-weight: 600;
}

.statusbar-right {
    display: flex;
    align-items: center;
    gap: var(--s-2);
    color: #64748B;
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.tenant-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px;
    background: #1E293B;
    border: 1px solid #334155;
    border-radius: var(--r-sm);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #CBD5E1;
}

.tenant-chip .icon {
    width: 12px;
    height: 12px;
    color: #64748B;
}

/* --- Section header (centered) --- */
.section-head {
    max-width: 720px;
    margin: 0 auto var(--s-7);
    text-align: center;
}

.section-head .eyebrow {
    justify-content: center;
}

.section-head .eyebrow::before {
    display: none;
}

.section-head .lead {
    margin-inline: auto;
}

.section-head--left {
    text-align: left;
    margin-inline: 0;
}

.section-head--left .eyebrow::before {
    display: inline-block;
}

.section-head--left .lead {
    margin-inline: 0;
}

/* --- Steps (Arquitetura) --- */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--surface);
}

.step {
    padding: var(--s-5);
    border-right: 1px solid var(--line);
    background: var(--surface);
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
    position: relative;
    transition: background .2s ease;
}

.step:last-child {
    border-right: none;
}

.step:hover {
    background: var(--surface-2);
}

.step-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.step-num {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--ink-400);
    letter-spacing: 0.08em;
}

.step-icon {
    width: 34px;
    height: 34px;
    border-radius: var(--r-md);
    background: var(--brand-50);
    color: var(--brand-700);
    display: grid;
    place-items: center;
    border: 1px solid #DBE7FF;
}

.step-icon .icon {
    width: 18px;
    height: 18px;
}

.step-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink-900);
    letter-spacing: -0.01em;
}

.step-desc {
    font-size: 0.875rem;
    color: var(--ink-500);
    line-height: 1.6;
    flex: 1;
}

.step-arrow {
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: var(--surface);
    border-top: 1px solid var(--line);
    border-right: 1px solid var(--line);
    transform: translateY(-50%) rotate(45deg);
    z-index: 1;
}

.step:last-child .step-arrow {
    display: none;
}

/* --- Features --- */
.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
}

.feature {
    background: var(--surface);
    padding: var(--s-5);
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
    transition: background .2s ease;
    min-height: 180px;
}

.feature:hover {
    background: var(--surface-2);
}

.feature-icon {
    width: 34px;
    height: 34px;
    border-radius: var(--r-md);
    background: var(--surface-3);
    color: var(--ink-700);
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    transition: all .2s ease;
}

.feature:hover .feature-icon {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

.feature-icon .icon {
    width: 18px;
    height: 18px;
}

.feature-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--ink-900);
    letter-spacing: -0.01em;
}

.feature-desc {
    font-size: 0.8125rem;
    color: var(--ink-500);
    line-height: 1.6;
    flex: 1;
}

.feature-tag {
    align-self: flex-start;
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-400);
    padding-top: var(--s-2);
    border-top: 1px solid var(--line);
    margin-top: auto;
}

/* --- CTA final (dark) --- */
.cta {
    padding: var(--s-9) 0;
    background: var(--ink-900);
    color: #E2E8F0;
    border-top: 1px solid #1E293B;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000 20%, transparent 80%);
    pointer-events: none;
}

.cta-inner {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.cta .eyebrow {
    color: #93C5FD;
    justify-content: center;
}

.cta .eyebrow::before {
    display: none;
}

.cta-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin-bottom: var(--s-4);
}

.cta-sub {
    font-size: 1.0625rem;
    color: #94A3B8;
    margin-bottom: var(--s-6);
    max-width: 56ch;
    margin-inline: auto;
}

.cta-actions {
    display: flex;
    gap: var(--s-3);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--s-6);
}

.cta-note {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #64748B;
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
}

/* --- Footer --- */
.footer {
    background: var(--surface-2);
    border-top: 1px solid var(--line);
    padding: var(--s-7) 0 var(--s-6);
    color: var(--ink-500);
    font-size: 0.875rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: var(--s-7);
    margin-bottom: var(--s-7);
}

.footer-brand .brand {
    margin-bottom: var(--s-3);
}

.footer-desc {
    font-size: 0.8125rem;
    color: var(--ink-500);
    max-width: 32ch;
    line-height: 1.6;
}

.footer-col-title {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-400);
    margin-bottom: var(--s-3);
}

.footer-list {
    display: flex;
    flex-direction: column;
    gap: var(--s-2);
}

.footer-list a {
    color: var(--ink-600);
    font-size: 0.875rem;
}

.footer-list a:hover {
    color: var(--brand-700);
}

.footer-bottom {
    border-top: 1px solid var(--line);
    padding-top: var(--s-5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--s-4);
    flex-wrap: wrap;
    font-size: 0.8125rem;
    color: var(--ink-400);
}

.footer-bottom .mono {
    font-size: 0.75rem;
}

/* --- Ícones --- */
.icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke-width: 2;
}

/* --- Animações --- */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}

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

.reveal {
    animation: fadeUp .55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.d-1 { animation-delay: .08s; }
.d-2 { animation-delay: .16s; }
.d-3 { animation-delay: .24s; }
.d-4 { animation-delay: .32s; }

/* --- Responsivo --- */
@media (max-width: 960px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: var(--s-7);
    }

    .steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .step:nth-child(2) {
        border-right: none;
    }

    .step:nth-child(1),
    .step:nth-child(2) {
        border-bottom: 1px solid var(--line);
    }

    .step-arrow { display: none; }

    .features {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--s-5);
    }
}

@media (max-width: 720px) {
    :root { font-size: 15px; }

    .nav-list { display: none; }

    .section { padding: var(--s-8) 0; }

    .hero { padding: var(--s-8) 0 var(--s-7); }

    .hero-actions .btn { width: 100%; }

    .steps { grid-template-columns: 1fr; }

    .step {
        border-right: none;
        border-bottom: 1px solid var(--line);
    }

    .step:last-child { border-bottom: none; }

    .features { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr; }

    .footer-bottom { flex-direction: column; align-items: flex-start; }

    .statusbar .container { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}
