/* ------------------------------------------------------------------
   Logitrack — páginas de apresentação e acesso
   Ficheiro independente: não altera o painel nem a app do motorista.
   Paleta: navy #0b1f3a · azul #2563eb · ciano #37c4ff · laranja #f26b2e
   ------------------------------------------------------------------ */

:root {
    --navy: #0b1f3a;
    --navy-2: #102a4c;
    --navy-3: #17385f;
    --ink: #14213d;
    --muted: #6b7a90;
    --line: #e4e9f0;
    --bg: #f4f6f9;
    --card: #ffffff;
    --orange: #f26b2e;
    --orange-soft: #fff1e9;
    --cyan: #37c4ff;
    --blue: #2563eb;
    --blue-soft: #eaf0ff;
    --green: #1c8058;
    --green-soft: #e7f6ef;
    --radius: 16px;
    --shadow: 0 1px 2px rgba(11, 31, 58, .04), 0 10px 30px rgba(11, 31, 58, .07);
    --shadow-lg: 0 24px 70px rgba(11, 31, 58, .22);
    --font: "Segoe UI", "Inter", "Helvetica Neue", Arial, system-ui, sans-serif;
    --mono: "Cascadia Mono", "Consolas", ui-monospace, monospace;
    --wrap: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.site {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

.site a { color: inherit; }

.site img { max-width: 100%; display: block; }

.wrap {
    width: min(calc(100% - 40px), var(--wrap));
    margin-inline: auto;
}

/* ---------- Navegação ---------- */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(8, 23, 44, .88);
    border-bottom: 1px solid rgba(255, 255, 255, .09);
    backdrop-filter: blur(14px);
}

.site-nav .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 68px;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #eaf1fb;
}

.site-brand .mark {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: .5px;
    color: #fff;
    background: linear-gradient(145deg, #00b8ff, #007beb);
    box-shadow: 0 8px 20px rgba(0, 123, 235, .35);
}

.site-brand .name {
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -.2px;
}

.site-brand .name span { color: var(--cyan); }

.site-brand .sub {
    display: block;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: .16em;
    color: rgba(234, 241, 251, .55);
    margin-top: -2px;
}

.nav-links {
    display: none;
    align-items: center;
    gap: 26px;
    font-size: 14px;
}

.nav-links a {
    color: rgba(234, 241, 251, .72);
    text-decoration: none;
    transition: color .15s;
}

.nav-links a:hover { color: #fff; }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ---------- Botões ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 22px;
    border-radius: 11px;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s, background .15s, border-color .15s;
}

.btn:active { transform: scale(.985); }

.btn-primary {
    color: #fff;
    background: linear-gradient(125deg, #00b8ff, #007beb 60%, #005fc6);
    box-shadow: 0 9px 24px rgba(0, 123, 235, .3);
}

.btn-primary:hover { filter: brightness(1.05); }

.btn-ghost {
    color: #eaf1fb;
    border-color: rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .05);
}

.btn-ghost:hover { background: rgba(255, 255, 255, .1); }

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

.btn-outline:hover { border-color: #c9d6e4; background: #fbfdff; }

.btn-orange {
    color: #fff;
    background: linear-gradient(125deg, #ff8a4c, var(--orange) 55%, #d9551d);
    box-shadow: 0 9px 24px rgba(242, 107, 46, .28);
}

.btn-sm { padding: 9px 16px; font-size: 13.5px; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    color: #eaf1fb;
    background:
        radial-gradient(900px 520px at 82% 6%, rgba(242, 107, 46, .24), transparent 62%),
        radial-gradient(760px 620px at 2% 92%, rgba(37, 99, 235, .26), transparent 62%),
        linear-gradient(145deg, #08172c 0%, #0b1f3a 48%, #12345b 100%);
    padding: 74px 0 86px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(circle at 62% 36%, #000 18%, transparent 76%);
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    width: 430px;
    height: 430px;
    border-radius: 50%;
    border: 1px dashed rgba(242, 107, 46, .32);
    right: -150px;
    bottom: -170px;
    box-shadow: 0 0 0 60px rgba(242, 107, 46, .04), 0 0 0 120px rgba(242, 107, 46, .025);
    pointer-events: none;
}

.hero .wrap { position: relative; z-index: 1; }

.hero-grid {
    display: grid;
    gap: 54px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 15px;
    border-radius: 999px;
    border: 1px solid rgba(55, 196, 255, .32);
    background: rgba(55, 196, 255, .09);
    color: #bfe9ff;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 20px 0 0;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.06;
    letter-spacing: -1.4px;
    font-weight: 800;
}

.hero h1 em {
    font-style: normal;
    color: var(--cyan);
}

.hero p.lead {
    margin: 20px 0 0;
    max-width: 34rem;
    font-size: 17px;
    color: rgba(234, 241, 251, .78);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    margin-top: 30px;
    padding: 0;
    list-style: none;
    font-size: 13px;
    color: rgba(234, 241, 251, .66);
}

.hero-facts li { display: flex; align-items: center; gap: 8px; }

.hero-facts li::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 0 4px rgba(55, 196, 255, .14);
}

/* Mock do painel */
.mock {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 20px;
    padding: 18px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(8px);
}

.mock-bar {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
}

.mock-bar span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .22);
}

.mock-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    color: #eaf1fb;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .7;
    margin-bottom: 14px;
}

.mock-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.mock-kpi {
    background: rgba(8, 23, 44, .5);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    padding: 12px;
}

.mock-kpi b {
    display: block;
    font-size: 20px;
    color: #fff;
    letter-spacing: -.5px;
}

.mock-kpi small {
    font-size: 10.5px;
    color: rgba(234, 241, 251, .58);
    text-transform: uppercase;
    letter-spacing: .08em;
}

.mock-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(8, 23, 44, .42);
    border: 1px solid rgba(255, 255, 255, .07);
    font-size: 12.5px;
    color: rgba(234, 241, 251, .82);
}

.mock-row .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3ddc97;
    flex: none;
}

.mock-row .dot.warn { background: #ffcc66; }

.mock-row .tag {
    margin-left: auto;
    font-size: 10.5px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--cyan);
}

/* ---------- Secções ---------- */
.section { padding: 74px 0; }

.section.alt { background: #fff; border-block: 1px solid var(--line); }

.section-head { max-width: 720px; }

.section-kicker {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--blue);
}

.section h2 {
    margin: 10px 0 0;
    font-size: clamp(26px, 3.4vw, 38px);
    line-height: 1.14;
    letter-spacing: -.9px;
}

.section p.sub {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 16px;
}

.grid {
    display: grid;
    gap: 18px;
    margin-top: 38px;
}

.grid-3 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: 1fr; }

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.card h3 {
    margin: 0 0 6px;
    font-size: 17px;
    letter-spacing: -.2px;
}

.card p {
    margin: 0;
    color: var(--muted);
    font-size: 14.5px;
}

.card .icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    background: var(--blue-soft);
    color: var(--blue);
}

.card .icon.orange { background: var(--orange-soft); color: var(--orange); }

.card .icon.green { background: var(--green-soft); color: var(--green); }

.card .num {
    display: block;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .12em;
    color: var(--orange);
    margin-bottom: 10px;
}

/* Passos */
.steps {
    display: grid;
    gap: 16px;
    margin-top: 38px;
    counter-reset: step;
}

.step {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 24px 22px 68px;
    box-shadow: var(--shadow);
}

.step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 22px;
    top: 22px;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 14px;
    color: #fff;
    background: linear-gradient(135deg, #00b8ff, #007beb);
}

.step h3 { margin: 0 0 4px; font-size: 16px; }

.step p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* Tabela de acessos */
.table-wrap {
    margin-top: 34px;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

table.access {
    width: 100%;
    border-collapse: collapse;
    font-size: 14.5px;
    min-width: 620px;
}

table.access th,
table.access td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--line);
}

table.access thead th {
    background: #f8fafc;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--muted);
    white-space: nowrap;
}

table.access tbody tr:last-child td { border-bottom: 0; }

table.access td.yes { color: var(--green); font-weight: 700; }

table.access td.no { color: #c3ccd8; }

table.access td:not(:first-child) { text-align: center; }

/* Perfis */
.profiles { display: grid; gap: 18px; margin-top: 38px; }

.profile {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    border-top: 3px solid var(--blue);
}

.profile.admin { border-top-color: var(--orange); }
.profile.operador { border-top-color: var(--blue); }
.profile.motorista { border-top-color: var(--green); }

.profile h3 { margin: 0; font-size: 18px; }

.profile .where {
    display: inline-block;
    margin: 8px 0 12px;
    font-size: 11.5px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}

.profile ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14.5px; }

.profile ul li + li { margin-top: 4px; }

/* Blocos escuros */
.dark-band {
    background:
        radial-gradient(700px 420px at 88% 10%, rgba(242, 107, 46, .2), transparent 60%),
        linear-gradient(145deg, #08172c, #0b1f3a 55%, #12345b);
    color: #eaf1fb;
    border-radius: 22px;
    padding: 42px;
    display: grid;
    gap: 26px;
    align-items: center;
    box-shadow: var(--shadow-lg);
}

.dark-band h2 { margin: 0; font-size: clamp(23px, 3vw, 32px); letter-spacing: -.7px; }

.dark-band p { margin: 8px 0 0; color: rgba(234, 241, 251, .72); }

/* Acesso / download */
.access-grid { display: grid; gap: 18px; margin-top: 34px; }

.access-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--shadow);
}

.access-card h2 {
    margin: 0 0 6px;
    font-size: 21px;
    letter-spacing: -.3px;
}

.access-card > p { margin: 0 0 18px; color: var(--muted); font-size: 14.5px; }

.access-card ol { margin: 0 0 20px; padding-left: 20px; color: var(--muted); font-size: 14.5px; }

.access-card ol li + li { margin-top: 6px; }

.access-card .actions { display: flex; flex-wrap: wrap; gap: 10px; }

.note {
    margin-top: 18px;
    padding: 12px 15px;
    border-radius: 11px;
    background: var(--orange-soft);
    border: 1px solid #ffd9c2;
    color: #8a4218;
    font-size: 13.5px;
}

.note.info {
    background: var(--blue-soft);
    border-color: #cfe0ff;
    color: #1d3f8f;
}

.note strong { color: inherit; }

details.demo {
    margin-top: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f9fbfd;
    padding: 0 16px;
}

details.demo summary {
    cursor: pointer;
    padding: 13px 0;
    font-weight: 600;
    font-size: 14px;
    color: var(--ink);
}

details.demo[open] { padding-bottom: 16px; }

table.creds {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
    margin-top: 4px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
}

table.creds th, table.creds td {
    padding: 9px 12px;
    text-align: left;
    border-bottom: 1px solid var(--line);
}

table.creds th { background: #f4f7fb; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

table.creds tr:last-child td { border-bottom: 0; }

code {
    font-family: var(--mono);
    font-size: .92em;
    background: #eef3f9;
    border: 1px solid #e0e8f1;
    border-radius: 5px;
    padding: 1px 6px;
    color: #1d3f8f;
}

datalist, .hero code { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .18); color: #cfeaff; }

/* Rodapé */
.site-footer {
    background: #08172c;
    color: rgba(234, 241, 251, .62);
    padding: 46px 0 34px;
    font-size: 13.5px;
}

.footer-grid {
    display: grid;
    gap: 26px;
    margin-bottom: 28px;
}

.footer-grid h4 {
    margin: 0 0 10px;
    color: #eaf1fb;
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.footer-grid a {
    display: block;
    color: rgba(234, 241, 251, .62);
    text-decoration: none;
    padding: 3px 0;
}

.footer-grid a:hover { color: #fff; }

.footer-base {
    border-top: 1px solid rgba(255, 255, 255, .09);
    padding-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
}

/* ---------- Responsivo ---------- */
@media (min-width: 760px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .profiles { grid-template-columns: repeat(3, 1fr); }
    .access-grid { grid-template-columns: 1fr 1fr; }
    .steps { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
    .dark-band { grid-template-columns: 1fr auto; padding: 48px 54px; }
}

@media (min-width: 980px) {
    .hero-grid { grid-template-columns: 1.08fr .92fr; }
    .nav-links { display: flex; }
    .hero { padding: 92px 0 104px; }
}

@media (max-width: 620px) {
    .nav-actions .btn-ghost { display: none; }
    .hero { padding: 52px 0 62px; }
    .mock-kpis { grid-template-columns: 1fr 1fr; }
    .mock-kpis .mock-kpi:last-child { display: none; }
    .step { padding-left: 60px; }
    .dark-band { padding: 32px 26px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
