:root {
    color-scheme: dark;
    --bg: #050b16;
    --bg-soft: #071426;
    --bg-elevated: #0a1b33;
    --surface: rgba(11, 27, 51, 0.72);
    --surface-solid: #0b1b33;
    --surface-2: #102542;
    --input-bg: rgba(5, 11, 22, 0.55);
    --header-bg: rgba(5, 11, 22, 0.78);
    --footer-bg: rgba(5, 11, 22, 0.85);
    --border: rgba(143, 163, 191, 0.18);
    --border-strong: rgba(107, 224, 95, 0.38);
    --text: #f3f7fb;
    --muted: #8fa3bf;
    --primary: #43b649;
    --primary-strong: #2e8b3e;
    --primary-glow: #6be05f;
    --accent: #2f80ed;
    --accent-soft: #8fc4ff;
    --danger: #ff6b6b;
    --warning: #ffc857;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.28);
    --glow: 0 0 40px rgba(107, 224, 95, 0.16);
    --radius: 22px;
    --radius-sm: 14px;
    --radius-xs: 10px;
    --header-h: 78px;
    --ticker-h: 44px;
    --font-body: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

[data-theme="light"] {
    color-scheme: light;
    --bg: #edf3ee;
    --bg-soft: #e4ece6;
    --bg-elevated: #ffffff;
    --surface: rgba(255, 255, 255, 0.82);
    --surface-solid: #ffffff;
    --surface-2: #f3f8f4;
    --input-bg: rgba(255, 255, 255, 0.9);
    --header-bg: rgba(247, 251, 248, 0.86);
    --footer-bg: rgba(232, 240, 234, 0.92);
    --border: rgba(10, 27, 51, 0.12);
    --border-strong: rgba(46, 139, 62, 0.38);
    --text: #08182e;
    --muted: #4a5a70;
    --primary: #2e8b3e;
    --primary-strong: #226b2f;
    --primary-glow: #43b649;
    --accent: #1565c0;
    --accent-soft: #1565c0;
    --shadow: 0 24px 60px rgba(10, 27, 51, 0.12);
    --shadow-soft: 0 12px 30px rgba(10, 27, 51, 0.08);
    --glow: 0 0 40px rgba(67, 182, 73, 0.18);
    --input-bg: #ffffff;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + var(--ticker-h) + 18px);
}

body:not(:has(.ticker)) {
    --ticker-h: 0px;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 12% -10%, rgba(67, 182, 73, 0.16), transparent 32rem),
        radial-gradient(circle at 88% 8%, rgba(47, 128, 237, 0.14), transparent 30rem),
        var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    content: "";
    pointer-events: none;
    background-image:
        linear-gradient(rgba(143, 163, 191, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(143, 163, 191, 0.055) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 75%);
}

[data-theme="light"] body::before {
    background-image:
        linear-gradient(rgba(10, 27, 51, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(10, 27, 51, 0.05) 1px, transparent 1px);
}

[hidden] {
    display: none !important;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

button {
    color: inherit;
}

a {
    color: var(--primary-glow);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

a:hover {
    color: var(--text);
}

p,
ul,
ol,
dl {
    margin: 0 0 1em;
}

ul,
ol {
    padding-left: 1.25rem;
}

h1,
h2,
h3,
h4 {
    margin: 0 0 0.5em;
    color: var(--text);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

h1 {
    font-size: clamp(2.35rem, 5.6vw, 4.9rem);
}

h2 {
    font-size: clamp(1.75rem, 3.3vw, 2.65rem);
}

h3 {
    font-size: clamp(1.1rem, 1.8vw, 1.35rem);
}

small {
    color: var(--muted);
}

strong {
    color: var(--text);
}

hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 2rem 0;
}

:focus-visible {
    outline: 2px solid var(--primary-glow);
    outline-offset: 3px;
}

::selection {
    background: rgba(107, 224, 95, 0.32);
    color: var(--text);
}

.container {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--primary-glow);
    color: #04120a;
    font-weight: 800;
    text-decoration: none;
    transform: translateY(-150%);
    transition: transform 160ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--border);
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.header-inner {
    display: flex;
    min-height: var(--header-h);
    align-items: center;
    gap: 24px;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
    color: var(--text);
    text-decoration: none;
}

.brand:hover {
    color: var(--text);
}

.brand-logo {
    width: auto;
    height: 72px;
    flex: 0 0 auto;
    object-fit: contain;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.main-nav a {
    position: relative;
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    padding: 0 14px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.main-nav a::after {
    position: absolute;
    right: 14px;
    bottom: 7px;
    left: 14px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--primary), var(--primary-glow));
    content: "";
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 220ms ease;
}

.main-nav a:hover,
.main-nav a.is-active {
    color: var(--text);
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
    transform: scaleX(1);
}

.main-nav .nav-app {
    margin-left: 6px;
    border: 1px solid var(--border);
    color: var(--text);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-button {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.icon-button:hover {
    border-color: var(--border-strong);
    background: var(--surface-2);
    transform: translateY(-1px);
}

.icon-button svg {
    width: 19px;
    height: 19px;
}

.theme-toggle .icon-sun {
    display: none;
}

.theme-toggle .icon-moon {
    display: block;
}

[data-theme="light"] .theme-toggle .icon-sun {
    display: block;
}

[data-theme="light"] .theme-toggle .icon-moon {
    display: none;
}

.menu-toggle {
    display: none;
}

.menu-bars {
    position: relative;
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.menu-bars::before,
.menu-bars::after {
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    content: "";
    transition: transform 180ms ease, top 180ms ease;
}

.menu-bars::before {
    top: -6px;
}

.menu-bars::after {
    top: 6px;
}

body.nav-open .menu-bars {
    background: transparent;
}

body.nav-open .menu-bars::before {
    top: 0;
    transform: rotate(45deg);
}

body.nav-open .menu-bars::after {
    top: 0;
    transform: rotate(-45deg);
}

.ticker {
    display: flex;
    height: var(--ticker-h);
    align-items: stretch;
    overflow: hidden;
    border-top: 1px solid var(--border);
    background: rgba(5, 11, 22, 0.55);
}

[data-theme="light"] .ticker {
    background: rgba(255, 255, 255, 0.62);
}

.ticker-label {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    padding: 0 18px;
    background: linear-gradient(135deg, var(--primary-strong), var(--primary));
    color: #04120a;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.ticker-label .live-dot {
    background: #04120a;
    box-shadow: 0 0 0 4px rgba(4, 18, 10, 0.14);
}

.ticker-viewport {
    display: flex;
    min-width: 0;
    flex: 1;
    align-items: center;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 20px), transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 20px), transparent);
}

.ticker-track {
    display: flex;
    width: max-content;
    animation: ticker-scroll 150s linear infinite;
    will-change: transform;
}

.ticker:hover .ticker-track,
.ticker:focus-within .ticker-track,
body.nav-open .ticker-track {
    animation-play-state: paused;
}

.ticker-group {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 18px;
    border-right: 1px solid var(--border);
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.ticker-item:hover {
    color: var(--primary-glow);
}

.ticker-type {
    padding: 2px 7px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ticker-type.is-embarque {
    border-color: rgba(107, 224, 95, 0.4);
    background: rgba(67, 182, 73, 0.14);
    color: var(--primary-glow);
}

.ticker-type.is-desembarque {
    border-color: rgba(47, 128, 237, 0.4);
    background: rgba(47, 128, 237, 0.14);
    color: var(--accent-soft);
}

.ticker-city {
    font-weight: 800;
}

.ticker-muted {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 500;
}

.ticker-sep {
    color: var(--primary);
    font-size: 0.55rem;
}

.ticker-empty {
    display: inline-flex;
    align-items: center;
    padding: 0 20px;
    color: var(--muted);
    font-size: 0.82rem;
}

.live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--primary-glow);
    box-shadow: 0 0 0 4px rgba(107, 224, 95, 0.15);
    animation: live-pulse 1.8s ease-in-out infinite;
}

main {
    display: block;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(54px, 8vw, 104px) 0 clamp(48px, 7vw, 86px);
}

.hero::before {
    position: absolute;
    top: -30%;
    left: 50%;
    width: min(900px, 100vw);
    height: min(900px, 100vw);
    border: 1px solid rgba(107, 224, 95, 0.1);
    border-radius: 50%;
    content: "";
    pointer-events: none;
    transform: translateX(-50%);
}

.hero::after {
    position: absolute;
    top: 8%;
    left: 50%;
    width: min(620px, 80vw);
    height: min(620px, 80vw);
    border: 1px dashed rgba(47, 128, 237, 0.14);
    border-radius: 50%;
    content: "";
    pointer-events: none;
    transform: translateX(-50%);
    animation: spin-centered 80s linear infinite;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 20px;
    padding: 7px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 13ch;
    margin-bottom: 22px;
}

.text-gradient {
    background: linear-gradient(115deg, var(--primary-glow), #8ff5d2 42%, var(--accent-soft));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-lede {
    max-width: 62ch;
    margin-bottom: 28px;
    color: var(--muted);
    font-size: clamp(1rem, 1.35vw, 1.13rem);
}

.hero-actions,
.form-actions,
.section-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.btn {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.1;
    text-decoration: none;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

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

.btn-primary {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary), var(--primary-glow));
    color: #04120a;
    box-shadow: 0 12px 30px rgba(67, 182, 73, 0.26);
}

.btn-primary::after {
    position: absolute;
    top: 0;
    left: -80%;
    width: 55%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    content: "";
    transform: skewX(-20deg);
    transition: left 500ms ease;
}

.btn-primary:hover {
    color: #04120a;
    box-shadow: 0 16px 38px rgba(67, 182, 73, 0.36);
    transform: translateY(-2px);
}

.btn-primary:hover::after {
    left: 130%;
}

.btn-ghost {
    border-color: var(--border);
    background: var(--surface);
    color: var(--text);
}

.btn-ghost:hover {
    border-color: var(--border-strong);
    color: var(--primary-glow);
    transform: translateY(-2px);
}

.btn-small {
    min-height: 38px;
    padding: 0 15px;
    font-size: 0.82rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 34px 0 0;
}

.hero-stat {
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    backdrop-filter: blur(12px);
}

.hero-stat dt {
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 0.61rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.hero-stat dd {
    margin: 0;
    color: var(--text);
    font-size: clamp(1.05rem, 1.7vw, 1.45rem);
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.03em;
}

.hero-stat-history dd {
    font-size: clamp(0.9rem, 1.3vw, 1.18rem);
    white-space: nowrap;
}

.hero-visual {
    position: relative;
    display: grid;
    min-height: 430px;
    place-items: center;
}

.hero-ring {
    position: absolute;
    border: 1px solid var(--border);
    border-radius: 50%;
    pointer-events: none;
}

.hero-ring-1 {
    width: min(360px, 82%);
    aspect-ratio: 1;
    border-color: rgba(107, 224, 95, 0.24);
    animation: spin 36s linear infinite;
}

.hero-ring-1::before {
    position: absolute;
    top: 9%;
    left: 9%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-glow);
    box-shadow: 0 0 18px var(--primary-glow);
    content: "";
}

.hero-ring-2 {
    width: min(470px, 100%);
    aspect-ratio: 1;
    border-style: dashed;
    border-color: rgba(47, 128, 237, 0.22);
    animation: spin-reverse 52s linear infinite;
}

.app-showcase {
    position: relative;
    z-index: 2;
    display: flex;
    width: min(290px, 72%);
    flex-direction: column;
    align-items: center;
    padding: 26px 24px 24px;
    border: 1px solid var(--border-strong);
    border-radius: 34px;
    background:
        linear-gradient(160deg, rgba(107, 224, 95, 0.09), transparent 42%),
        var(--surface);
    box-shadow: var(--shadow), var(--glow);
    color: var(--text);
    text-align: center;
    text-decoration: none;
    transform: rotate(-2deg);
    transition: transform 260ms ease, box-shadow 260ms ease;
    backdrop-filter: blur(18px);
}

.app-showcase:hover {
    color: var(--text);
    box-shadow: 0 32px 70px rgba(0, 0, 0, 0.55), var(--glow);
    transform: rotate(0) translateY(-5px);
}

.app-showcase img {
    width: 128px;
    height: 128px;
    margin-bottom: 18px;
    border: 1px solid var(--border-strong);
    border-radius: 28px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
    object-fit: cover;
}

.app-showcase-label {
    margin-bottom: 4px;
    color: var(--primary-glow);
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.app-showcase strong {
    font-size: 1.5rem;
    letter-spacing: 0.08em;
}

.app-showcase small {
    margin-top: 4px;
    font-size: 0.78rem;
}

.floating-chip {
    position: absolute;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-solid);
    box-shadow: var(--shadow-soft);
    color: var(--text);
    font-size: 0.71rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    animation: float 6s ease-in-out infinite;
}

.floating-chip-1 {
    top: 13%;
    left: 0;
}

.floating-chip-2 {
    right: 0;
    bottom: 17%;
    animation-delay: -3s;
}

.hero-route {
    position: absolute;
    z-index: 1;
    right: -4%;
    bottom: 6%;
    width: 58%;
    opacity: 0.7;
    pointer-events: none;
}

.hero-route path {
    fill: none;
    stroke: url("#route-gradient");
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 8 12;
    animation: dash 18s linear infinite;
}

.section {
    position: relative;
    padding: clamp(38px, 6vw, 76px) 0;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}

.section-heading > div {
    min-width: 0;
}

.section-heading h2 {
    margin-bottom: 6px;
}

.section-heading p {
    max-width: 65ch;
    margin: 0;
    color: var(--muted);
}

.section-heading .eyebrow {
    margin-bottom: 10px;
}

.panel {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.panel::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-glow), transparent);
    content: "";
    opacity: 0.5;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: clamp(18px, 3vw, 28px);
    border-bottom: 1px solid var(--border);
}

.panel-header h2,
.panel-header h3 {
    margin: 0;
}

.panel-header p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.panel-body {
    padding: clamp(18px, 3vw, 30px);
}

.chart-panel {
    padding: clamp(12px, 2.5vw, 24px);
}

.chart-canvas {
    width: 100%;
    min-height: 420px;
}

.chart-loading {
    margin: 0;
    padding: clamp(28px, 6vw, 64px) 0;
    color: var(--muted);
    text-align: center;
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.chart-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.3;
}

.chart-legend-swatch {
    width: 12px;
    height: 12px;
    flex: none;
    border-radius: 3px;
}

.chart-legend-swatch.is-line {
    width: 16px;
    height: 3px;
    border-radius: 999px;
}

.chart-note {
    margin: 12px 4px 0;
    color: var(--muted);
    font-size: 0.85rem;
}

.movement-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.movement-card {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background:
        linear-gradient(150deg, rgba(67, 182, 73, 0.08), transparent 42%),
        var(--surface);
    color: var(--text);
    text-decoration: none;
    transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.movement-card::after {
    position: absolute;
    top: -45px;
    right: -45px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: rgba(107, 224, 95, 0.12);
    content: "";
    filter: blur(22px);
    opacity: 0;
    transition: opacity 220ms ease;
}

.movement-card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-soft), var(--glow);
    color: var(--text);
    transform: translateY(-4px);
}

.movement-card:hover::after {
    opacity: 1;
}

.movement-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.movement-time {
    color: var(--muted);
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

.movement-city {
    overflow: hidden;
    margin: 0;
    font-size: 1.15rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.movement-company {
    overflow: hidden;
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.movement-bus {
    display: block;
    margin-top: 2px;
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em;
}

.movement-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}

.badge,
.chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1.3;
    text-transform: uppercase;
}

.badge-embarque {
    border-color: rgba(107, 224, 95, 0.38);
    background: rgba(67, 182, 73, 0.13);
    color: var(--primary-glow);
}

.badge-desembarque {
    border-color: rgba(47, 128, 237, 0.38);
    background: rgba(47, 128, 237, 0.13);
    color: var(--accent-soft);
}

.chip {
    border-color: var(--border);
    background: var(--surface-2);
    color: var(--muted);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: none;
}

.empty-state {
    grid-column: 1 / -1;
    padding: 34px 20px;
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    color: var(--muted);
    text-align: center;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 8px;
}

.field-wide {
    grid-column: 1 / -1;
}

.field label,
.field-label,
legend {
    color: var(--muted);
    font-size: 0.71rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.field small {
    font-size: 0.73rem;
}

input[type="text"],
input[type="search"],
input[type="date"],
input[type="number"],
select,
textarea {
    width: 100%;
    min-height: 48px;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    background: var(--input-bg);
    color: var(--text);
    font-size: 16px;
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

input[type="text"]:hover,
input[type="search"]:hover,
input[type="date"]:hover,
input[type="number"]:hover,
select:hover,
textarea:hover {
    border-color: rgba(143, 163, 191, 0.34);
}

input[type="text"]:focus,
input[type="search"]:focus,
input[type="date"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 182, 73, 0.18);
    outline: 0;
}

input::placeholder {
    color: color-mix(in srgb, var(--muted) 72%, transparent);
}

select {
    padding-right: 42px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238fa3bf' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

legend {
    margin-bottom: 8px;
    padding: 0;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.radio-pill {
    position: relative;
    display: inline-flex;
    min-height: 44px;
    align-items: center;
}

.radio-pill input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.radio-pill span {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding: 0 15px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--input-bg);
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.radio-pill input:checked + span {
    border-color: var(--border-strong);
    background: rgba(67, 182, 73, 0.13);
    box-shadow: inset 0 0 0 1px rgba(107, 224, 95, 0.18);
    color: var(--primary-glow);
}

.radio-pill input:focus-visible + span {
    outline: 2px solid var(--primary-glow);
    outline-offset: 2px;
}

.form-actions {
    justify-content: space-between;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.form-actions small {
    max-width: 48ch;
    font-size: 0.76rem;
}

.explore-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.explore-card {
    position: relative;
    display: flex;
    min-height: 170px;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
    transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.explore-card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-soft), var(--glow);
    color: var(--text);
    transform: translateY(-4px);
}

.explore-icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    background: rgba(67, 182, 73, 0.1);
    color: var(--primary-glow);
}

.explore-icon svg {
    width: 20px;
    height: 20px;
}

.explore-card strong {
    font-size: 1.02rem;
}

.explore-card small {
    margin-top: auto;
    font-size: 0.78rem;
    line-height: 1.5;
}

.app-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    margin-top: 28px;
    padding: clamp(22px, 4vw, 36px);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 80% 20%, rgba(47, 128, 237, 0.2), transparent 45%),
        linear-gradient(135deg, rgba(67, 182, 73, 0.14), transparent 55%),
        var(--surface);
    box-shadow: var(--shadow);
}

.app-cta h2 {
    margin-bottom: 6px;
}

.app-cta p {
    max-width: 62ch;
    margin: 0;
    color: var(--muted);
}

.page-hero {
    position: relative;
    padding: clamp(44px, 7vw, 78px) 0 clamp(28px, 4vw, 44px);
}

.page-hero .eyebrow {
    margin-bottom: 14px;
}

.page-hero h1 {
    max-width: 20ch;
    margin-bottom: 14px;
}

.page-hero .lede {
    max-width: 72ch;
    margin: 0;
    color: var(--muted);
    font-size: clamp(1rem, 1.3vw, 1.1rem);
}

.page-hero .hero-actions {
    margin-top: 22px;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.filter-bar .search-field {
    min-width: 220px;
    flex: 1;
}

.filter-bar input[type="search"] {
    background: var(--surface);
}

.entity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.entity-card {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    background: var(--surface);
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.entity-card:hover {
    border-color: var(--border-strong);
    background: var(--surface-2);
    color: var(--primary-glow);
    transform: translateY(-2px);
}

.entity-card::after {
    color: var(--primary);
    content: "→";
    font-size: 1rem;
    line-height: 1;
}

.entity-card span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.summary-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.summary-list li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    font-size: 0.77rem;
}

.summary-list strong {
    font-weight: 800;
}

.table-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.table-toolbar {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
}

.table-toolbar small {
    font-size: 0.74rem;
}

.table-wrap {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
    text-align: left;
}

.data-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 13px 18px;
    border-bottom: 1px solid var(--border);
    background: var(--surface-solid);
    color: var(--muted);
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    white-space: nowrap;
}

.data-table td {
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    vertical-align: top;
}

.data-table tbody tr {
    transition: background-color 160ms ease;
}

.data-table tbody tr:hover {
    background: rgba(107, 224, 95, 0.045);
}

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

.cell-city-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-bottom: 3px;
}

.cell-city {
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.cell-time {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.77rem;
    font-variant-numeric: tabular-nums;
}

.cell-company {
    display: block;
    font-size: 0.86rem;
    font-weight: 700;
}

.cell-bus {
    display: inline-flex;
    margin-top: 5px;
    padding: 3px 8px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--text);
    font-size: 0.73rem;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-decoration: none;
}

a.cell-bus:hover {
    border-color: var(--border-strong);
    color: var(--primary-glow);
}

.cell-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.no-results {
    padding: 24px;
    color: var(--muted);
    text-align: center;
}

.prose {
    max-width: 78ch;
    padding: clamp(22px, 4vw, 40px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.prose h2 {
    margin-top: 2rem;
    font-size: clamp(1.3rem, 2vw, 1.6rem);
}

.prose h2:first-of-type {
    margin-top: 0;
}

.prose ul {
    padding-left: 1.2rem;
}

.prose li {
    margin-bottom: 0.35rem;
}

.site-footer {
    margin-top: clamp(48px, 8vw, 96px);
    border-top: 1px solid var(--border);
    background: var(--footer-bg);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
    gap: 32px;
    padding: clamp(34px, 6vw, 56px) 0 32px;
}

.footer-brand p {
    max-width: 38ch;
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 0.84rem;
}

.footer-col h2,
.footer-col h3 {
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.footer-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--text);
    font-size: 0.86rem;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--primary-glow);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 0 26px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.76rem;
}

.footer-bottom p {
    margin: 0;
}

.footer-note {
    max-width: 62ch;
    color: var(--muted);
    font-size: 0.74rem;
    line-height: 1.55;
}

.footer-disclaimer {
    flex-basis: 100%;
    margin: 0 0 4px;
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.5;
}

.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 700ms ease, transform 700ms ease;
}

.js .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.js .reveal:nth-child(2) {
    transition-delay: 80ms;
}

.js .reveal:nth-child(3) {
    transition-delay: 140ms;
}

.js .reveal:nth-child(4) {
    transition-delay: 200ms;
}

@keyframes ticker-scroll {
    to {
        transform: translateX(-50%);
    }
}

@keyframes live-pulse {
    0%,
    100% {
        box-shadow: 0 0 0 4px rgba(107, 224, 95, 0.13);
        opacity: 1;
    }
    50% {
        box-shadow: 0 0 0 8px rgba(107, 224, 95, 0);
        opacity: 0.75;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes spin-centered {
    to {
        transform: translateX(-50%) rotate(360deg);
    }
}

@keyframes spin-reverse {
    to {
        transform: rotate(-360deg);
    }
}

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

@keyframes dash {
    to {
        stroke-dashoffset: -200;
    }
}

@media (max-width: 1080px) {
    .movement-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .hero-grid {
        grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    }
}

@media (max-width: 900px) {
    :root {
        --header-h: 70px;
        --ticker-h: 42px;
    }

    .container {
        width: min(1180px, calc(100% - 32px));
    }

    .menu-toggle {
        display: inline-flex;
    }

    .main-nav {
        position: fixed;
        top: calc(var(--header-h) + 10px);
        right: 16px;
        left: 16px;
        z-index: 60;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 12px;
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        background: var(--surface-solid);
        box-shadow: var(--shadow);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-12px);
        transition: opacity 180ms ease, transform 180ms ease;
        visibility: hidden;
    }

    body.nav-open .main-nav {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
        visibility: visible;
    }

    .main-nav a {
        min-height: 48px;
        padding: 0 14px;
        border-radius: var(--radius-xs);
    }

    .main-nav a::after {
        display: none;
    }

    .main-nav a:hover,
    .main-nav a.is-active {
        background: var(--surface-2);
    }

    .main-nav .nav-app {
        margin-left: 0;
    }

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

    .hero h1 {
        max-width: 18ch;
    }

    .hero-visual {
        min-height: 340px;
        order: -1;
    }

    .hero-ring-1 {
        width: min(300px, 70%);
    }

    .hero-ring-2 {
        width: min(390px, 92%);
    }

    .app-showcase {
        width: min(250px, 66%);
        padding: 20px;
    }

    .app-showcase img {
        width: 98px;
        height: 98px;
        border-radius: 22px;
    }

    .floating-chip-1 {
        top: 7%;
        left: 4%;
    }

    .floating-chip-2 {
        right: 3%;
        bottom: 9%;
    }

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

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

    .app-cta {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .container {
        width: min(1180px, calc(100% - 24px));
    }

    .chart-canvas {
        min-height: 340px;
    }

    .brand-logo {
        height: 54px;
    }

    .ticker-label {
        padding: 0 12px;
        font-size: 0.6rem;
    }

    .ticker-item {
        padding: 0 12px;
        font-size: 0.74rem;
    }

    .hero {
        padding-top: 28px;
    }

    .hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .form-actions {
        align-items: stretch;
        flex-direction: column;
    }

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

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

    .explore-card {
        min-height: 150px;
        padding: 18px;
    }

    .app-cta {
        gap: 18px;
    }

    .data-table {
        display: block;
        min-width: 0;
    }

    .data-table thead {
        display: none;
    }

    .data-table tbody,
    .data-table tr,
    .data-table td {
        display: block;
        width: 100%;
    }

    .data-table tr {
        margin: 12px;
        padding: 14px;
        border: 1px solid var(--border);
        border-radius: var(--radius-xs);
        background: var(--surface-solid);
    }

    .data-table td {
        padding: 5px 0;
        border: 0;
    }

    .data-table td + td {
        margin-top: 8px;
        padding-top: 10px;
        border-top: 1px solid var(--border);
    }

    .data-table td::before {
        display: block;
        margin-bottom: 4px;
        color: var(--muted);
        content: attr(data-label);
        font-size: 0.61rem;
        font-weight: 900;
        letter-spacing: 0.12em;
        text-transform: uppercase;
    }

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

@media (max-width: 520px) {
    .hero h1 {
        font-size: clamp(2.15rem, 10vw, 3rem);
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

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

    .hero-visual {
        min-height: 300px;
    }

    .app-showcase {
        width: min(225px, 75%);
    }

    .app-showcase img {
        width: 86px;
        height: 86px;
    }

    .floating-chip {
        font-size: 0.62rem;
        padding: 7px 10px;
    }

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

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

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

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

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .ticker-viewport {
        overflow-x: auto;
        mask-image: none;
        -webkit-mask-image: none;
    }

    .ticker-track {
        animation: none;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
    }
}
