@import url("./tokens.css");

/* Dasfabri site — Cirrus Uiverse + Flowbite Community + marca Dasfabri */
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  overflow-x: clip;
  background: var(--df-color-bg);
  color: var(--df-color-text);
  font-family: var(--df-font-sans);
}
details summary::-webkit-details-marker { display: none; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--df-color-ring);
  outline-offset: 3px;
}

.grid-bg {
  background-image:
    radial-gradient(circle at 12% 15%, rgba(255, 255, 255, 0.96) 0 10%, transparent 28%),
    radial-gradient(circle at 86% 12%, rgba(255, 255, 255, 0.8) 0 9%, transparent 24%),
    radial-gradient(circle at 48% 84%, rgba(228, 239, 255, 0.9) 0 8%, transparent 28%),
    linear-gradient(145deg, #f8fbff 0%, #edf5ff 48%, #f7fbff 100%);
}

/* Cirrus surfaces */
.cirrus-hero {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse 42% 30% at 12% 28%, rgba(255, 255, 255, 0.92), transparent 70%),
    radial-gradient(ellipse 38% 28% at 88% 16%, rgba(255, 255, 255, 0.86), transparent 70%),
    linear-gradient(150deg, var(--df-blue-50), #eaf4ff 52%, #f8fbff);
}
.cirrus-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto -8% -12rem;
  height: 18rem;
  background: var(--df-white);
  border-radius: 50% 50% 0 0 / 35% 35% 0 0;
  filter: blur(2px);
}
.cirrus-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--df-color-border);
  border-radius: var(--df-radius-pill);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--df-shadow-xs);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--df-color-primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cirrus-accent {
  color: var(--df-color-primary);
  font-family: var(--df-font-accent);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.04em;
}
.cirrus-surface {
  border: 1px solid var(--df-card-border);
  border-radius: var(--df-card-radius);
  background: var(--df-card-bg);
  box-shadow: var(--df-card-shadow);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.cirrus-pill {
  border-radius: var(--df-radius-pill) !important;
}
.cirrus-btn-primary,
.cirrus-btn-secondary {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--df-button-radius);
  padding: 0 1.6rem;
  font-size: 0.875rem;
  font-weight: 700;
  transition:
    transform var(--df-duration-normal) var(--df-ease),
    box-shadow var(--df-duration-normal) var(--df-ease),
    background-color var(--df-duration-fast);
}
.cirrus-btn-primary {
  background: var(--df-color-primary);
  color: var(--df-white);
  box-shadow: 0 10px 28px -14px rgba(0, 89, 200, 0.75);
}
.cirrus-btn-primary:hover {
  background: var(--df-color-primary-hover);
  box-shadow: 0 16px 34px -15px rgba(0, 60, 133, 0.7);
  transform: translateY(-2px);
}
.cirrus-btn-secondary {
  border: 1px solid var(--df-color-border);
  background: rgba(255, 255, 255, 0.8);
  color: var(--df-slate-700);
  box-shadow: var(--df-shadow-xs);
}
.cirrus-btn-secondary:hover {
  border-color: rgba(0, 89, 200, 0.35);
  color: var(--df-color-primary);
  box-shadow: var(--df-shadow-sm);
  transform: translateY(-2px);
}
.cirrus-cloud {
  position: absolute;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.7);
  filter: blur(1px);
  box-shadow:
    2.6rem 0.4rem 0 0.4rem rgba(255, 255, 255, 0.6),
    5rem -0.25rem 0 -0.15rem rgba(255, 255, 255, 0.52);
  pointer-events: none;
}

.fade-up {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.fade-up.vis { opacity: 1; transform: none; }

/* Mission tiles — LogComex pattern */
.mission-tile {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  padding: 16px;
  text-align: left;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
}
.mission-tile:hover,
.mission-tile.active {
  border-color: #0059C8;
  box-shadow: 0 0 0 1px rgba(0, 89, 200, 0.25), 0 8px 30px -12px rgba(0, 60, 133, 0.25);
  transform: translateY(-2px);
}
.mission-tile .mi {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #EDF3FC;
  color: #0059C8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

/* Command box hero */
.command-box {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 24px 60px -28px rgba(0, 60, 133, 0.28);
  transition: box-shadow 0.25s;
}
.command-box:focus-within {
  box-shadow: 0 0 0 2px rgba(0, 89, 200, 0.2), 0 24px 60px -28px rgba(0, 60, 133, 0.35);
}
.command-placeholder {
  color: #9ca3af;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.command-placeholder.typing::after {
  content: "|";
  animation: blink 1s step-end infinite;
  color: #0059C8;
  margin-left: 1px;
}
@keyframes blink { 50% { opacity: 0; } }

.cta-glow {
  box-shadow: 0 0 0 0 rgba(0, 89, 200, 0.35);
  animation: ctaPulse 2.4s ease-in-out infinite;
}
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 89, 200, 0.35); }
  50% { box-shadow: 0 0 0 8px rgba(0, 89, 200, 0); }
}

/* Layered mockups */
.mock-stack { position: relative; }
.mock-back {
  position: absolute;
  inset: 8% 12% auto auto;
  width: 58%;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: #fff;
  box-shadow: 0 16px 40px -20px rgba(0, 60, 133, 0.35);
  transform: rotate(-3deg);
  z-index: 1;
  overflow: hidden;
}
.mock-front {
  position: relative;
  z-index: 2;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  background: #fff;
  box-shadow: 0 24px 60px -28px rgba(0, 60, 133, 0.3);
}

/* Mission player */
.player-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  opacity: 0.35;
  transition: opacity 0.3s;
}
.player-step.done,
.player-step.active { opacity: 1; }
.player-step .dot {
  width: 22px;
  height: 22px;
  border-radius: 9999px;
  border: 2px solid #cbd5e1;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  margin-top: 1px;
}
.player-step.done .dot {
  background: #0059C8;
  border-color: #0059C8;
  color: #fff;
}
.player-step.active .dot {
  border-color: #0059C8;
  box-shadow: 0 0 0 3px rgba(0, 89, 200, 0.15);
}

/* Flow timeline (Import Full) */
.flow-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  width: 100%;
  max-width: 100%;
  overflow: visible; /* sem barra de rolagem interna */
  padding: 4px 2px; /* espaço p/ box-shadow do ativo */
}
.flow-node {
  flex: 1 1 0;
  min-width: 0;
  max-width: 6.5rem;
  text-align: center;
  opacity: 1; /* nunca apagar ícone com opacity no nó */
  transition: transform 0.35s;
}
.flow-node.active { transform: translateY(-3px); }
.flow-node .orb {
  width: 44px;
  height: 44px;
  margin: 0 auto 8px;
  border-radius: 12px;
  background: #EDF3FC;
  border: 2px solid #dbeafe;
  color: #0059C8;
  display: flex;
  align-items: center;
  justify-content: center;
}
.flow-node:not(.active):not(.done) p {
  color: #6b7280;
}
.flow-node.active .orb,
.flow-node.done .orb {
  background: #0059C8;
  border-color: #0059C8;
  color: #fff;
  box-shadow: 0 0 0 3px rgba(0, 89, 200, 0.15);
}
.flow-node .orb svg.ico {
  width: 1.2rem;
  height: 1.2rem;
  color: inherit;
  stroke: currentColor;
  fill: none;
}
.flow-node .orb svg.ico * {
  stroke: inherit !important;
  fill: none !important;
}
.flow-line {
  flex: 0.35 1 10px;
  height: 2px;
  background: #e5e7eb;
  min-width: 10px;
  max-width: 36px;
  position: relative;
  overflow: hidden;
  align-self: center;
  margin-bottom: 1.6rem; /* alinha com orbs, não com labels */
}
.flow-line .fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: #0059C8;
  transition: width 0.5s ease;
}
.flow-line.on .fill { width: 100%; }
@media (max-width: 700px) {
  .flow-track { flex-wrap: wrap; justify-content: center; gap: 0.75rem 0.25rem; }
  .flow-node { flex: 0 0 28%; max-width: none; }
  .flow-line { display: none; } /* no mobile: só grade de nós, sem trilha horizontal */
}

/* Drawback gauge */
.gauge-bar {
  height: 12px;
  border-radius: 9999px;
  background: #e5e7eb;
  overflow: hidden;
}
.gauge-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #0059C8, #4D8FE8);
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.gauge-fill.warn {
  background: linear-gradient(90deg, #d97706, #fbbf24);
}

/* Portal diagram */
.portal-lock {
  transition: transform 0.4s, opacity 0.4s;
}
.portal-lock.open {
  transform: translateY(-6px) rotate(-12deg);
  opacity: 0.35;
}
.portal-panel {
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  transition: border-color 0.4s, background 0.4s, box-shadow 0.4s;
}
.portal-panel.granted {
  border-style: solid;
  border-color: #0059C8;
  background: #EDF3FC;
  box-shadow: 0 0 0 4px rgba(0, 89, 200, 0.1);
}

/* Capacidades carousel */
.cap-card {
  min-width: 280px;
  scroll-snap-align: start;
}
.cap-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
}

.tl-dot::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 6px;
  width: 11px;
  height: 11px;
  border-radius: 9999px;
  background: #0059C8;
}

.nav-link-active { color: #0059C8 !important; }

.persona-tab {
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 9999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #4b5563;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.persona-tab:hover { border-color: #0059C8; color: #0059C8; }
.persona-tab.active {
  background: #0059C8;
  border-color: #0059C8;
  color: #fff;
}

/* Plataforma map blocks */
.plat-block {
  border: 1px solid #f3f4f6;
  border-radius: 1.25rem;
  padding: 1.5rem 1.75rem;
  background: #fff;
}
.plat-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 1rem;
}
.plat-head h2 {
  font-family: Poppins, system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.plat-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #4b5563;
}
@media (min-width: 768px) {
  .plat-list { grid-template-columns: 1fr 1fr; }
}
.plat-list li {
  padding: 0.55rem 0.75rem;
  border-radius: 0.65rem;
  background: #F5F7FA;
}
.plat-list li::before {
  content: "✓ ";
  color: #0059C8;
  font-weight: 700;
}
.plat-list li.is-partial::before { content: "~ "; color: #d97706; }
.plat-list li.is-wip::before { content: "… "; color: #9ca3af; }
.badge-ok {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.55rem;
  border-radius: 9999px;
  background: #ecfdf5;
  color: #047857;
}
.badge-partial {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.55rem;
  border-radius: 9999px;
  background: #fffbeb;
  color: #b45309;
}

/* Feature pillars (taxonomia Operação / Visibilidade / Inteligência) */
.feat-card {
  border: 1px solid #f3f4f6;
  border-radius: 1.25rem;
  padding: 1.75rem;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.feat-kicker {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #0059C8;
  margin-bottom: 0.5rem;
}
.feat-title {
  font-family: Poppins, system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.65rem;
}
.feat-desc {
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.55;
  margin-bottom: 1.1rem;
}
.feat-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: grid;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: #374151;
  flex: 1;
}
.feat-list li::before {
  content: "✓ ";
  color: #0059C8;
  font-weight: 700;
}
.feat-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: #0059C8;
}
.feat-link:hover { text-decoration: underline; }

/* Module grid — voz curta, coesa (site marketing) */
.mod-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  border: 1px solid var(--df-card-border);
  border-radius: var(--df-card-radius);
  padding: 1.25rem 1.35rem;
  background: var(--df-card-bg);
  box-shadow: var(--df-card-shadow);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition:
    border-color var(--df-duration-normal),
    box-shadow var(--df-duration-normal),
    transform var(--df-duration-normal) var(--df-ease);
}
a.mod-card:hover {
  border-color: rgba(0, 89, 200, 0.35);
  box-shadow: var(--df-shadow-md);
  transform: translateY(-3px);
}
.mod-ico {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: #EDF3FC;
  color: #0059C8;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mod-card.f-ops { box-shadow: inset 3px 0 0 #0059C8; }
.mod-card.f-vis { box-shadow: inset 3px 0 0 #4D8FE8; }
.mod-card.f-intel { box-shadow: inset 3px 0 0 #003C85; }
.mod-card.f-ops .mod-ico { background: #EDF3FC; color: #0059C8; }
.mod-card.f-vis .mod-ico { background: #E8F1FC; color: #4D8FE8; }
.mod-card.f-intel .mod-ico { background: #E6EEF8; color: #003C85; }
.sol-hero-export { background: linear-gradient(180deg, #EDF3FC 0%, #fff 55%); }
.sol-hero-po { background: linear-gradient(180deg, #F5F7FA 0%, #fff 55%); }
.sol-hero-ship { background: linear-gradient(180deg, #E8F1FC 0%, #fff 55%); }
.sol-hero-fin { background: linear-gradient(180deg, #EEF2FF 0%, #fff 55%); }
.mod-title {
  font-family: Poppins, system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}
.mod-desc {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.5;
}

/* Product screenshots */
.shot-frame {
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  background: #fff;
  box-shadow: 0 24px 60px -28px rgba(0, 60, 133, 0.28);
  overflow: hidden;
}
.shot-chrome {
  height: 2rem;
  background: linear-gradient(180deg, #f9fafb, #f3f4f6);
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0 0.85rem;
}
.shot-chrome i {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: #d1d5db;
}
.shot-chrome i:first-child { background: #fca5a5; }
.shot-chrome i:nth-child(2) { background: #fcd34d; }
.shot-chrome i:nth-child(3) { background: #86efac; }
.shot-frame img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}
.shot-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.shot-tab {
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 9999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #4b5563;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s, box-shadow 0.15s;
}
.shot-tab:hover { border-color: #0059C8; color: #0059C8; }
.shot-tab.active {
  background: #0059C8;
  border-color: #0059C8;
  color: #fff;
  box-shadow: 0 4px 14px -6px rgba(0, 89, 200, 0.55);
}
.shot-caption {
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 0.75rem;
  text-align: center;
}
.shot-mini {
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  box-shadow: 0 8px 24px -16px rgba(0, 60, 133, 0.22);
  transition: transform 0.25s, box-shadow 0.25s;
}
.shot-mini:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px -20px rgba(0, 60, 133, 0.3);
}
.shot-mini img { display: block; width: 100%; height: auto; }

/* Forms */
.form-banner {
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.form-banner.ok {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
}
.form-input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: var(--df-input-radius);
  padding: 0.85rem 1rem;
  font-size: 0.875rem;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input:focus {
  outline: none;
  border-color: #0059C8;
  box-shadow: 0 0 0 3px rgba(0, 89, 200, 0.15);
}
.contact-card {
  border: 1px solid var(--df-card-border);
  border-radius: var(--df-card-radius);
  padding: 1.5rem;
  background: var(--df-card-bg);
  box-shadow: var(--df-card-shadow);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.contact-card:hover {
  border-color: rgba(0, 89, 200, 0.25);
  box-shadow: 0 8px 30px -12px rgba(0, 60, 133, 0.15);
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
  .cta-glow { animation: none; }
  .command-placeholder.typing::after { animation: none; }
  .mission-tile:hover { transform: none; }
  .flow-node.active { transform: none; }
  .shot-mini:hover { transform: none; }
  .contact-card:hover { transform: none; }
}


/* Ícones monoline (SVG inline) — stroke nos filhos (Safari) */
svg.ico {
  width: 1.2rem;
  height: 1.2rem;
  display: block;
  color: inherit;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
svg.ico * {
  stroke: inherit;
  fill: none;
}
.mission-tile .mi { color: #0059C8; }
.mission-tile .mi svg.ico { width: 1.15rem; height: 1.15rem; }
.mod-ico { color: #0059C8; }
.mod-ico svg.ico { color: inherit; }
