/* =====================================================
   MAN4IND — Site CSS
   Tokens herdados do sistema interno
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;600;700;800&display=swap');

:root {
  --color-primary:        #1f58c7;
  --color-primary-dark:   #1748a8;
  --color-hero-start:     #0f1e42;
  --color-hero-end:       #0c1420;
  --color-bg:             #f8f9fb;
  --color-card:           #ffffff;
  --color-text:           #282c2f;
  --color-muted:          #6c757d;
  --color-success:        #28b765;
  --color-warning:        #f4c238;
  --color-danger:         #ed5555;
  --color-border:         #e2e8f0;
  --font-main:            'IBM Plex Sans', sans-serif;
  --radius:               10px;
  --radius-lg:            16px;
  --shadow-sm:            0 1px 3px rgba(0,0,0,.08);
  --shadow-md:            0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:            0 8px 32px rgba(0,0,0,.14);
  --transition:           .2s ease;
}

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

/* Content protection */
body { user-select: none; -webkit-user-select: none; }
input, textarea, select, [contenteditable] { user-select: text; -webkit-user-select: text; }
img { pointer-events: none; -webkit-user-drag: none; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: var(--color-bg);
  color: var(--color-text);
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-dark); }

/* ---- Navbar ---- */
.site-navbar {
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow var(--transition);
}

.site-navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.site-navbar .navbar-brand {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -.5px;
  color: var(--color-primary) !important;
}

.site-navbar .navbar-brand span {
  color: var(--color-text);
}

.site-navbar .nav-link {
  font-weight: 600;
  font-size: .92rem;
  color: var(--color-text) !important;
  padding: .5rem .85rem !important;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
  background: #f0f4fd;
  color: var(--color-primary) !important;
}

.site-navbar .dropdown-menu {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: .5rem;
  min-width: 200px;
}

.site-navbar .dropdown-item {
  border-radius: 6px;
  font-size: .9rem;
  font-weight: 600;
  padding: .45rem .75rem;
  color: var(--color-text);
}

.site-navbar .dropdown-item:hover {
  background: #f0f4fd;
  color: var(--color-primary);
}

/* ---- Buttons ---- */
.btn-primary-site {
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: .65rem 1.4rem;
  font-weight: 700;
  font-size: .95rem;
  font-family: var(--font-main);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  text-decoration: none;
}

.btn-primary-site:hover {
  background: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(31,88,199,.35);
}

.btn-ghost-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.45);
  border-radius: 8px;
  padding: .62rem 1.35rem;
  font-weight: 700;
  font-size: .95rem;
  font-family: var(--font-main);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  text-decoration: none;
}

.btn-ghost-white:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.75);
  color: #fff;
}

.btn-outline-site {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  border-radius: 8px;
  padding: .62rem 1.35rem;
  font-weight: 700;
  font-size: .95rem;
  font-family: var(--font-main);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  text-decoration: none;
}

.btn-outline-site:hover {
  background: var(--color-primary);
  color: #fff;
}

/* ---- Hero ---- */
.hero-section {
  background: linear-gradient(135deg, var(--color-hero-start) 0%, var(--color-hero-end) 100%);
  min-height: 92vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4rem;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(31,88,199,.18) 0%, transparent 60%),
                    radial-gradient(circle at 80% 20%, rgba(31,88,199,.12) 0%, transparent 50%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(31,88,199,.22);
  border: 1px solid rgba(31,88,199,.4);
  color: #93b8f8;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .35rem .85rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero-badge i { font-size: .95rem; }

.hero-section h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 1.35rem;
  letter-spacing: -.02em;
}

.hero-section h1 em {
  font-style: normal;
  color: #93b8f8;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,.72);
  max-width: 520px;
  line-height: 1.65;
  margin-bottom: 2rem;
}

.hero-ctas {
  display: flex;
  gap: .85rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-mockup {
  position: relative;
  display: flex;
  justify-content: flex-start;
  /* Sai levemente do container para ganhar espaço visual */
  margin-right: -3vw;
}

/* Halo de brilho atrás do mockup */
.hero-mockup::before {
  content: '';
  position: absolute;
  inset: -40px -60px -60px -40px;
  background: radial-gradient(ellipse at 50% 50%, rgba(31,88,199,.35) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(30px);
}

/* Wrapper com perspectiva 3D */
.mockup-browser {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.10),
    0 24px 60px rgba(0,0,0,.55),
    0 8px 20px rgba(0,0,0,.35);
  transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
  transform-origin: left center;
  transition: transform .5s ease, box-shadow .5s ease;
  background: #0f1e42;
}

.hero-mockup:hover .mockup-browser {
  transform: perspective(1200px) rotateY(-2deg) rotateX(1deg);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.13),
    0 32px 80px rgba(0,0,0,.6),
    0 12px 30px rgba(31,88,199,.25);
}

/* Barra do "browser" falso */
.mockup-bar {
  background: #1a2d52;
  padding: .5rem .85rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
}

.mockup-dots {
  display: flex;
  gap: .3rem;
}

.mockup-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mockup-dots span:nth-child(1) { background: #ed5555; }
.mockup-dots span:nth-child(2) { background: #f4c238; }
.mockup-dots span:nth-child(3) { background: #28b765; }

.mockup-url {
  flex: 1;
  background: rgba(255,255,255,.07);
  border-radius: 6px;
  height: 22px;
  max-width: 260px;
  display: flex;
  align-items: center;
  padding: 0 .6rem;
  gap: .4rem;
}

.mockup-url i {
  font-size: .7rem;
  color: #28b765;
  opacity: .8;
}

.mockup-url span {
  font-size: .68rem;
  color: rgba(255,255,255,.45);
  font-family: var(--font-main);
  letter-spacing: .02em;
}

/* Screenshot dentro do browser */
.mockup-browser img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}

/* ---- Particles canvas ---- */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .45;
  display: block;
}

/* ---- Stat Cards ---- */
.stats-section {
  background: #fff;
  padding: 4rem 0;
  border-bottom: 1px solid var(--color-border);
}

.stat-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  height: 100%;
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.stat-card .stat-icon {
  width: 52px;
  height: 52px;
  background: #f0f4fd;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: var(--color-primary);
}

.stat-card .stat-value {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: .35rem;
}

.stat-card .stat-label {
  font-size: .88rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: .3rem;
}

.stat-card .stat-desc {
  font-size: .82rem;
  color: var(--color-muted);
  line-height: 1.4;
}

/* ---- Value Proposition ---- */
.value-section {
  padding: 5rem 0;
}

.problem-box {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  height: 100%;
  box-shadow: var(--shadow-sm);
}

.problem-box blockquote {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
  border-left: 4px solid var(--color-warning);
  padding-left: 1rem;
  margin: 0 0 1.5rem;
  font-style: normal;
  line-height: 1.4;
}

.pain-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.pain-list li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-size: .94rem;
  color: var(--color-text);
}

.pain-list li i {
  color: var(--color-danger);
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.solution-box {
  background: linear-gradient(135deg, #0f1e42 0%, #0c1420 100%);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  height: 100%;
}

.solution-box h3 {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.solution-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .85rem;
}

.solution-list li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-size: .94rem;
  color: rgba(255,255,255,.85);
}

.solution-list li i {
  color: var(--color-success);
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---- Modules Grid ---- */
.modules-section {
  padding: 5rem 0;
  background: var(--color-bg);
}

.market-card-header {
  background: linear-gradient(135deg,#1a2d5a,#0f1e42);
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 110px;
}
.market-card-header .market-card-icon {
  width: 3rem;
  height: 3rem;
  font-size: 3rem;
  line-height: 1;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.market-card-header .market-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.module-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  height: 100%;
  cursor: default;
}

.module-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--color-primary);
}

.module-card .module-icon {
  width: 48px;
  height: 48px;
  background: #f0f4fd;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
  transition: background var(--transition);
}

.module-card:hover .module-icon {
  background: var(--color-primary);
  color: #fff;
}

.module-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .4rem;
  color: var(--color-text);
}

.module-card p {
  font-size: .87rem;
  color: var(--color-muted);
  line-height: 1.5;
  margin: 0;
}

.badge-soon {
  display: inline-block;
  background: #fff3cd;
  color: #856404;
  font-size: .7rem;
  font-weight: 700;
  padding: .15rem .5rem;
  border-radius: 100px;
  margin-left: .4rem;
  vertical-align: middle;
  letter-spacing: .02em;
}

/* ---- Markets Section ---- */
.markets-section {
  background: linear-gradient(135deg, var(--color-hero-start) 0%, var(--color-hero-end) 100%);
  padding: 5rem 0;
}

.markets-section h2 {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  text-align: center;
  margin-bottom: .75rem;
}

.markets-section .section-subtitle {
  color: rgba(255,255,255,.65);
  text-align: center;
  font-size: 1rem;
  margin-bottom: 3rem;
}

.market-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: background var(--transition), transform var(--transition);
  height: 100%;
  cursor: pointer;
}

.market-card:hover {
  background: rgba(255,255,255,.13);
  transform: translateY(-4px);
}

.market-card .market-emoji {
  font-size: 2.5rem;
  display: block;
  margin-bottom: .85rem;
}

.market-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .4rem;
}

.market-card p {
  font-size: .85rem;
  color: rgba(255,255,255,.6);
  margin: 0;
  line-height: 1.4;
}

/* ---- How it works ---- */
.howitworks-section {
  padding: 5rem 0;
  background: #fff;
}

.steps-row {
  position: relative;
  display: flex;
  gap: 0;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: nowrap;
}

.step-item {
  flex: 1;
  text-align: center;
  padding: 0 1.25rem;
  position: relative;
}

.step-item::after {
  content: '';
  position: absolute;
  top: 28px;
  right: -1px;
  width: 50%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), rgba(31,88,199,.2));
}

.step-item:last-child::after { display: none; }

.step-num {
  width: 56px;
  height: 56px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 auto 1.1rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 14px rgba(31,88,199,.3);
}

.step-item h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .4rem;
}

.step-item p {
  font-size: .87rem;
  color: var(--color-muted);
  line-height: 1.5;
  margin: 0;
}

/* ---- CTA Section ---- */
.cta-section {
  background: var(--color-primary);
  padding: 5rem 0;
  text-align: center;
}

.cta-section h2 {
  color: #fff;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  margin-bottom: .85rem;
}

.cta-section p {
  color: rgba(255,255,255,.82);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.65;
}

.cta-section .btn-white {
  background: #fff;
  color: var(--color-primary);
  border: none;
  border-radius: 8px;
  padding: .85rem 2rem;
  font-weight: 800;
  font-size: 1.05rem;
  font-family: var(--font-main);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  text-decoration: none;
}

.cta-section .btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.2);
  color: var(--color-primary-dark);
}

.cta-trust {
  display: flex;
  justify-content: center;
  gap: 1.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.cta-trust span {
  color: rgba(255,255,255,.75);
  font-size: .88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: .3rem;
}

.cta-trust span i { color: rgba(255,255,255,.9); }

/* ---- FAQ ---- */
.faq-section {
  padding: 5rem 0;
  background: var(--color-bg);
}

.faq-section .accordion-button {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: .97rem;
  color: var(--color-text);
  background: #fff;
  border-radius: 10px !important;
}

.faq-section .accordion-button:not(.collapsed) {
  color: var(--color-primary);
  background: #f0f4fd;
  box-shadow: none;
}

.faq-section .accordion-button:focus { box-shadow: none; }

.faq-section .accordion-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius) !important;
  overflow: hidden;
  margin-bottom: .6rem;
  background: #fff;
}

.faq-section .accordion-body {
  font-size: .94rem;
  color: var(--color-muted);
  line-height: 1.65;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--color-hero-end);
  color: rgba(255,255,255,.7);
  padding: 4rem 0 1.5rem;
  border-top: 1px solid rgba(255,255,255,.06);
}

.site-footer .footer-brand {
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.5px;
  margin-bottom: .5rem;
  display: inline-block;
}

.site-footer .footer-tagline {
  font-size: .86rem;
  color: rgba(255,255,255,.45);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.site-footer h6 {
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.45);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.footer-links a {
  font-size: .9rem;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  transition: color var(--transition);
}

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

.footer-contact p {
  font-size: .9rem;
  color: rgba(255,255,255,.65);
  margin-bottom: .4rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.footer-contact p i { color: rgba(255,255,255,.45); }

.footer-social {
  display: flex;
  gap: .6rem;
  margin-top: .75rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.1);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  font-size: 1.1rem;
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
}

.footer-social a:hover {
  background: var(--color-primary);
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 3rem;
  padding-top: 1.25rem;
  font-size: .83rem;
  color: rgba(255,255,255,.35);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
}

/* ---- Section Headers ---- */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header .section-badge {
  display: inline-block;
  background: #f0f4fd;
  color: var(--color-primary);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: .3rem .8rem;
  border-radius: 100px;
  margin-bottom: .85rem;
}
.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: .6rem;
  letter-spacing: -.02em;
}
.section-header p {
  color: var(--color-muted);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ---- Page Header (inner pages) ---- */
.page-header {
  background: linear-gradient(135deg, var(--color-hero-start) 0%, var(--color-hero-end) 100%);
  padding: 4.5rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 15% 50%, rgba(31,88,199,.2) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

.page-header .container { position: relative; z-index: 2; }

/* Industrial — foto de fundo com gradiente azul sobreposto */
.page-header-industrial {
  background:
    linear-gradient(135deg, rgba(15,30,66,.88) 0%, rgba(12,20,32,.94) 100%),
    url('/assets/img/industrial.jpg') center / cover no-repeat;
}

.page-header-industrial::before {
  background-image: radial-gradient(circle at 15% 50%, rgba(31,88,199,.25) 0%, transparent 60%);
}

/* Utilities / Energia — parque eólico offshore com gradiente azul-marinho */
.page-header-energia {
  background:
    linear-gradient(135deg, rgba(10,22,58,.90) 0%, rgba(8,16,38,.95) 100%),
    url('/assets/img/energia.jpg') center / cover no-repeat;
}

.page-header-energia::before {
  background-image: radial-gradient(circle at 10% 40%, rgba(31,88,199,.28) 0%, transparent 60%);
}

/* Locação — frota de máquinas pesadas com gradiente azul sobreposto */
.page-header-locacao {
  background:
    linear-gradient(135deg, rgba(15,30,66,.84) 0%, rgba(12,20,32,.92) 100%),
    url('/assets/img/locacao.png') center / cover no-repeat;
}

.page-header-locacao::before {
  background-image: radial-gradient(circle at 80% 50%, rgba(31,88,199,.22) 0%, transparent 60%);
}

/* Portuário — foto noturna do terminal com gradiente azul-marinho */
.page-header-portuario {
  background:
    linear-gradient(135deg, rgba(10,20,50,.85) 0%, rgba(8,15,35,.93) 100%),
    url('/assets/img/portuario.jpg') center / cover no-repeat;
}

.page-header-portuario::before {
  background-image: radial-gradient(circle at 20% 60%, rgba(31,88,199,.3) 0%, transparent 65%);
}

/* Hospitalar — ambiente clínico com gradiente azul-aço */
.page-header-hospitalar {
  background:
    linear-gradient(135deg, rgba(12,26,60,.88) 0%, rgba(8,18,40,.95) 100%),
    url('/assets/img/hospital.png') center / cover no-repeat;
}

.page-header-hospitalar::before {
  background-image: radial-gradient(circle at 20% 55%, rgba(31,88,199,.26) 0%, transparent 60%);
}

.page-header .hero-badge { margin-bottom: 1rem; }

.page-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: .85rem;
  letter-spacing: -.02em;
}

.page-header p {
  color: rgba(255,255,255,.72);
  font-size: 1.05rem;
  max-width: 580px;
  line-height: 1.65;
  margin: 0;
}

/* ---- Feature List (funcionalidades page) ---- */
.feature-group { margin-bottom: 3rem; }
.feature-group-title {
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: .4rem;
  margin-bottom: 1.5rem;
  display: inline-block;
}

/* ---- Blog ---- */
.blog-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  height: 100%;
}

.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.blog-card .blog-img {
  height: 200px;
  background: linear-gradient(135deg, #0f1e42 0%, #1f58c7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.3);
  font-size: 3rem;
}

.blog-card .blog-body {
  padding: 1.5rem;
}

.blog-card .blog-tag {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--color-primary);
  margin-bottom: .5rem;
}

.blog-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .5rem;
  line-height: 1.35;
}

.blog-card h3 a { color: var(--color-text); }
.blog-card h3 a:hover { color: var(--color-primary); }

.blog-card .blog-meta {
  font-size: .82rem;
  color: var(--color-muted);
  margin-bottom: .5rem;
}

.blog-card p {
  font-size: .88rem;
  color: var(--color-muted);
  line-height: 1.5;
  margin: 0;
}

/* ---- Demo Page ---- */
.demo-page {
  background: linear-gradient(135deg, var(--color-hero-start) 0%, var(--color-hero-end) 100%);
  min-height: 100vh;
  padding: 4rem 0;
}

.demo-form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.demo-form-card h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--color-text);
}

.form-label {
  font-size: .88rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: .35rem;
}

.form-control, .form-select {
  font-family: var(--font-main);
  font-size: .93rem;
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  padding: .6rem .85rem;
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
  background: #fff;
}

.form-control:focus, .form-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(31,88,199,.12);
  outline: none;
}

.demo-left,
.demo-left h1,
h1.demo-left {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: .75rem;
  line-height: 1.15;
}

.demo-subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,.72) !important;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.demo-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.demo-checklist li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-size: .94rem;
  color: rgba(255,255,255,.82);
}

.demo-checklist li i {
  color: var(--color-success);
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 1.05rem;
}

.demo-segments {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.demo-segment-badge {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.75);
  font-size: .8rem;
  font-weight: 600;
  padding: .3rem .75rem;
  border-radius: 100px;
}

/* ---- Obrigado Page ---- */
.obrigado-page {
  background: linear-gradient(135deg, var(--color-hero-start) 0%, var(--color-hero-end) 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 4rem 0;
}

.obrigado-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  max-width: 560px;
  margin: 0 auto;
}

.obrigado-icon {
  width: 72px;
  height: 72px;
  background: var(--color-success);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  margin: 0 auto 1.5rem;
}

.obrigado-card h1 {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: .5rem;
}

.obrigado-card p {
  color: rgba(255,255,255,.72);
  font-size: .98rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

/* ---- About page ---- */
.about-mission {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-primary);
  border-left: 4px solid var(--color-primary);
  padding-left: 1.25rem;
  line-height: 1.5;
}

/* ---- Breadcrumb ---- */
.breadcrumb-bar {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  padding: .6rem 0;
}

.breadcrumb-bar .breadcrumb {
  margin: 0;
  font-size: .85rem;
}

.breadcrumb-bar .breadcrumb-item a { color: var(--color-primary); }
.breadcrumb-bar .breadcrumb-item.active { color: var(--color-muted); }

/* ---- Portuário specific ---- */
.asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.asset-item {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
  font-size: .9rem;
  color: rgba(255,255,255,.8);
  font-weight: 600;
}

.asset-item i {
  display: block;
  font-size: 1.8rem;
  margin-bottom: .5rem;
  color: #93b8f8;
}

/* ---- Utility ---- */
.section-divider { height: 1px; background: var(--color-border); margin: 0; }

.text-primary-site { color: var(--color-primary) !important; }
.text-success-site { color: var(--color-success) !important; }
.text-muted-site   { color: var(--color-muted) !important; }
.fw-800 { font-weight: 800 !important; }
.bg-hero { background: linear-gradient(135deg, var(--color-hero-start) 0%, var(--color-hero-end) 100%); }

/* ---- Scroll animations ---- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Mockup slides & label ---- */

/* Label flutuante acima do browser */
.mockup-screen-label {
  position: absolute;
  top: -38px;
  left: 12px;
  background: rgba(31,88,199,.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(147,184,248,.3);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: .3rem .75rem;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  letter-spacing: .03em;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 10;
  pointer-events: none;
}

.mockup-screen-label.updating {
  opacity: 0;
  transform: translateY(-6px);
}

/* Wrapper relativo das slides */
.mockup-slides {
  position: relative;
  width: 100%;
  aspect-ratio: 1919 / 1045;
  overflow: hidden;
  display: block;
  background: #0a1628;
}

.mockup-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity .65s cubic-bezier(.4,0,.2,1),
              transform .65s cubic-bezier(.4,0,.2,1);
  will-change: opacity, transform;
}

.mockup-slide.active {
  opacity: 1;
  transform: scale(1);
}

.mockup-slide.leaving {
  opacity: 0;
  transform: scale(.97);
}

/* Scan line */
.mockup-scanline {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(147,184,248,.7), transparent);
  z-index: 5;
  opacity: 0;
  pointer-events: none;
}

.mockup-scanline.scanning {
  animation: scanDown .55s ease-in-out forwards;
}

@keyframes scanDown {
  0%   { top: 0;    opacity: .9; }
  100% { top: 100%; opacity: 0;  }
}

/* Indicadores na barra */
.mockup-slide-dots {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
}

.mockup-slide-dots span {
  width: 20px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,.2);
  cursor: pointer;
  transition: background .3s, width .3s;
}

.mockup-slide-dots span.active {
  background: rgba(147,184,248,.85);
  width: 28px;
}

/* Progress bar no topo da barra do browser */
.mockup-browser::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--color-primary), #93b8f8);
  z-index: 10;
  transition: none;
  border-radius: 0 2px 0 0;
}

.mockup-browser.progressing::after {
  transition: width 4s linear;
  width: 100%;
}

.mockup-browser.resetting::after {
  transition: none;
  width: 0%;
}

/* ---- Port icon ---- */
/* Fundo claro: mix-blend apaga o branco, mostra o azul */
.icon-port {
  display: inline-block;
  width: 1em;
  height: 1em;
  object-fit: contain;
  vertical-align: middle;
  mix-blend-mode: multiply;
  flex-shrink: 0;
}

/* Fundo escuro: inverte para branco */
.icon-port-inv {
  display: inline-block;
  width: 1em;
  height: 1em;
  object-fit: contain;
  vertical-align: middle;
  filter: brightness(0) invert(1);
  flex-shrink: 0;
}

/* Tamanhos específicos */
.icon-port-sm,  .icon-port-inv-sm  { width: 18px;  height: 18px;  }
.icon-port-md,  .icon-port-inv-md  { width: 28px;  height: 28px;  }
.icon-port-lg,  .icon-port-inv-lg  { width: 40px;  height: 40px;  }
.icon-port-xl,  .icon-port-inv-xl  { width: 52px;  height: 52px;  }

/* ---- Logo ---- */
.navbar-logo {
  height: 34px;
  width: auto;
  display: block;
}

.footer-logo {
  height: 30px;
  width: auto;
  display: block;
  margin-bottom: .5rem;
  opacity: .9;
}

/* ---- Screenshots section ---- */
.screenshots-section {
  padding: 5rem 0;
  background: #0a111f;
}

.screenshots-section .section-header h2,
.screenshots-section .section-header p { color: #fff; }

.screenshots-section .section-badge {
  background: rgba(31,88,199,.3);
  color: #93b8f8;
}

/* Grid uniforme — 5 colunas desktop, 2 mobile */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: .6rem;
}

@media (max-width: 1199px) { .screenshots-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 767px)  { .screenshots-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---- Screenshot frame ---- */
.screenshot-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.07);
  box-shadow: 0 3px 14px rgba(0,0,0,.35);
  background: #0f1e42;
  position: relative;
  cursor: zoom-in;
  display: flex;
  flex-direction: column;
}

.screenshot-frame:hover {
  border-color: rgba(31,88,199,.55);
  box-shadow: 0 6px 24px rgba(31,88,199,.28);
}

/* Re-enable pointer events for lightbox frames and interactive elements */
[data-lightbox], [data-lightbox] img, .screenshot-frame, .mockup-slide img,
a, button, label, .btn-primary-site, .nav-link, .dropdown-item,
#btn-scroll-top, #btn-whatsapp { pointer-events: auto; }

/* ── Floating action buttons ── */
#btn-scroll-top,
#btn-whatsapp {
  position: fixed;
  bottom: 2rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.22);
  cursor: pointer;
  z-index: 9999;
  transition: transform .2s ease, box-shadow .2s ease, opacity .25s ease;
  text-decoration: none;
  border: none;
  user-select: none;
  -webkit-user-select: none;
}
#btn-scroll-top:hover,
#btn-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
}

/* Scroll to top — right side */
#btn-scroll-top {
  right: 1.5rem;
  background: var(--color-primary);
  opacity: 0;
  pointer-events: none !important;
  transition: opacity .3s ease, transform .2s ease;
}
#btn-scroll-top.visible {
  opacity: 1;
  pointer-events: auto !important;
}
#btn-scroll-top i {
  font-size: 1.5rem;
  color: #fff;
  line-height: 1;
}

/* WhatsApp — left side */
#btn-whatsapp {
  left: 1.5rem;
  background: #25D366;
  gap: 0;
  width: auto;
  min-width: 52px;
  padding: 0 14px 0 14px;
  border-radius: 26px;
  overflow: hidden;
  max-width: 52px;
  transition: max-width .35s ease, padding .35s ease, transform .2s ease, box-shadow .2s ease;
}
#btn-whatsapp:hover {
  max-width: 260px;
  padding: 0 18px;
}
#btn-whatsapp svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}
#btn-whatsapp .wa-label {
  color: #fff;
  font-family: var(--font-main);
  font-size: .88rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  max-width: 0;
  opacity: 0;
  margin-left: 0;
  transition: max-width .35s ease, opacity .25s ease .1s, margin-left .35s ease;
}
#btn-whatsapp:hover .wa-label {
  max-width: 180px;
  opacity: 1;
  margin-left: 10px;
}

/* Wrapper com aspect-ratio fixo — equaliza altura de todos */
.screenshot-img-wrap {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  flex: 1;
}

.screenshot-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top left;
  transition: transform .4s ease;
}

.screenshot-frame:hover .screenshot-img {
  transform: scale(1.04);
}

.screenshot-caption {
  background: rgba(10,17,31,.9);
  color: rgba(255,255,255,.6);
  font-size: .72rem;
  font-weight: 600;
  padding: .4rem .75rem;
  display: flex;
  align-items: center;
  gap: .3rem;
  letter-spacing: .02em;
  border-top: 1px solid rgba(255,255,255,.05);
  transition: color .2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
}

.screenshot-frame:hover .screenshot-caption { color: rgba(255,255,255,.9); }
.screenshot-caption i { font-size: .85rem; color: #93b8f8; flex-shrink: 0; }

/* ---- Lightbox ---- */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  align-items: center;
  justify-content: center;
}

#lightbox.open { display: flex; }

#lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5,10,25,.88);
  backdrop-filter: blur(6px);
  cursor: zoom-out;
}

#lightbox-box {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  animation: lbIn .22s ease;
}

@keyframes lbIn {
  from { opacity: 0; transform: scale(.93); }
  to   { opacity: 1; transform: scale(1);   }
}

#lightbox-img {
  display: block;
  max-width: 50vw;
  max-height: 50vh;
  width: auto;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(0,0,0,.7);
  border: 1px solid rgba(255,255,255,.1);
  object-fit: contain;
}

#lightbox-caption {
  color: rgba(255,255,255,.65);
  font-size: .82rem;
  font-weight: 600;
  font-family: var(--font-main);
  letter-spacing: .04em;
}

#lightbox-close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 36px;
  height: 36px;
  background: var(--color-danger);
  border: 2px solid rgba(255,255,255,.25);
  border-radius: 50%;
  color: #fff;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, transform .15s;
  line-height: 1;
  z-index: 2;
}

#lightbox-close:hover {
  background: #c93d3d;
  transform: scale(1.1);
}

/* Setas de navegação */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  color: #fff;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, transform .15s;
  z-index: 2;
  user-select: none;
}

.lightbox-nav:hover {
  background: rgba(31,88,199,.7);
  transform: translateY(-50%) scale(1.1);
}

#lightbox-prev { left: -64px; }
#lightbox-next { right: -64px; }

/* Em telas menores, setas ficam fora da imagem mas dentro do viewport */
@media (max-width: 900px) {
  #lightbox-prev { left: -48px; }
  #lightbox-next { right: -48px; }
  .lightbox-nav { width: 36px; height: 36px; font-size: 1.1rem; }
}

/* Contador de slide */
#lightbox-counter {
  color: rgba(255,255,255,.4);
  font-size: .75rem;
  font-family: var(--font-main);
  font-weight: 600;
  letter-spacing: .08em;
  margin-top: .15rem;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
  .hero-section { min-height: auto; padding: 4rem 0 3rem; }
  .hero-mockup {
    margin-top: 2.5rem;
    margin-right: 0;
    justify-content: center;
  }
  .mockup-browser {
    transform: none;
    box-shadow: 0 16px 40px rgba(0,0,0,.5);
  }
  .hero-mockup:hover .mockup-browser { transform: none; }
  .steps-row { flex-wrap: wrap; gap: 1.5rem; }
  .step-item::after { display: none; }
  .step-item { flex: 0 0 45%; }
}

@media (max-width: 767px) {
  .step-item { flex: 0 0 100%; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas a { text-align: center; justify-content: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
