:root {
  --blue: #0079BF;
  --blue-hover: #0067A3;
  --blue-dark: #004D7A;
  --blue-deep: #0A2540;
  --blue-light: #F0F7FC;
  --blue-subtle: #E2F0FB;
  --blue-border: #CBE3F5;
  
  --surface: #FFFFFF;
  --surface-alt: #F8FAFC;
  --surface-muted: #F1F5F9;
  --card-bg: #FFFFFF;
  
  --ink: #0F172A;
  --ink-heading: #091E42;
  --muted: #475569;
  --subtle: #64748B;
  
  --line: #E2E8F0;
  --line-dark: rgba(255, 255, 255, 0.12);
  
  --ok: #10B981;
  --warn: #F59E0B;
  --risk: #EF4444;
  
  --font-h: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --font-b: "Inter", system-ui, -apple-system, sans-serif;
  --font-m: "JetBrains Mono", ui-monospace, monospace;
  
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 25px -5px rgba(0, 121, 191, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 40px -10px rgba(0, 121, 191, 0.14), 0 12px 16px -8px rgba(0, 0, 0, 0.04);
  
  --wrap: min(1200px, calc(100% - 2.5rem));
}

/* Base resets & typography optimization */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}
[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: var(--font-b);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-h);
  color: var(--ink-heading);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 0.6em;
  font-weight: 700;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }

p { margin: 0 0 1rem; }
a { color: var(--blue); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--blue-hover); }

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

.skip {
  position: absolute;
  left: -9999px;
  background: var(--blue-deep);
  color: #FFFFFF;
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--r);
  background: var(--blue);
  color: #FFFFFF !important;
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  text-decoration: none;
  border: 2px solid var(--blue);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 121, 191, 0.28);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn:hover {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 121, 191, 0.35);
}
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.btn--ghost {
  background: transparent;
  color: var(--blue) !important;
  border-color: var(--blue-border);
  box-shadow: none;
}
.btn--ghost:hover {
  background: var(--blue-light);
  border-color: var(--blue);
  color: var(--blue-hover) !important;
  box-shadow: none;
}

.btn--sm { padding: 0.6rem 1.1rem; font-size: 0.875rem; border-radius: var(--r-sm); }
.btn--block { width: 100%; }

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.top__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink-heading);
  font-family: var(--font-h);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.brand img { border-radius: 6px; }
.brand strong { color: var(--blue); }

.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a:not(.btn) {
  font-family: var(--font-h);
  font-weight: 600;
  font-size: 0.938rem;
  color: var(--muted);
  transition: color 0.15s ease;
}
.nav a:not(.btn):hover { color: var(--blue); }

/* Mobile Menu */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #FFFFFF;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-mobile {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.25rem 1.5rem;
  background: #FFFFFF;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.nav-mobile[hidden] { display: none !important; }
.nav-mobile a {
  font-family: var(--font-h);
  font-weight: 600;
  color: var(--ink);
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--surface-muted);
}
.nav-mobile a:hover { color: var(--blue); }
.nav-mobile .btn { margin-top: 1rem; border-bottom: none; }

@media (max-width: 860px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (min-width: 861px) {
  .nav-mobile { display: none !important; }
}

/* Hero Section — Alinhamento vertical do Kanban */
.hero {
  background: radial-gradient(100% 100% at 50% 0%, var(--blue-light) 0%, #FFFFFF 100%);
  padding: clamp(3rem, 5vw, 4.5rem) 0;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
}
.eyebrow {
  font-family: var(--font-m);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--blue-subtle);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
}
.hero h1 em { font-style: normal; color: var(--blue); }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 36rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.85rem; margin: 2rem 0 1.75rem; }

.hero__meta {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}
.hero__meta li {
  font-family: var(--font-h);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--subtle);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.hero__meta li::before {
  content: "✓";
  color: var(--blue);
  font-weight: 800;
}

/* Kanban Preview Card */
.hero__board {
  background: var(--card-bg);
  border: 1px solid var(--blue-border);
  border-radius: var(--r-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-lg);
  width: 100%;
}
.board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
@media (max-width: 540px) {
  .board { grid-template-columns: 1fr; }
}
.board__col {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 0.75rem;
}
.board__col header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-h);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--subtle);
  margin-bottom: 0.75rem;
}
.board__col header em {
  font-style: normal;
  background: var(--blue-light);
  color: var(--blue);
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
  font-size: 0.7rem;
}
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot--new { background: var(--blue); }
.dot--prog { background: #0284C7; }
.dot--risk { background: var(--risk); }

.ticket {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: var(--r-sm);
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.65rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.ticket:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.ticket:last-child { margin-bottom: 0; }
.ticket p { margin: 0.25rem 0 0.5rem; font-size: 0.8125rem; line-height: 1.35; font-weight: 600; color: var(--ink); }
.ticket__id { font-family: var(--font-m); font-size: 0.6875rem; font-weight: 600; color: var(--blue); }
.ticket--hot { border-left-color: var(--warn); }
.ticket--risk { border-left-color: var(--risk); }

.sla { height: 5px; border-radius: 3px; background: var(--surface-muted); overflow: hidden; }
.sla i { display: block; height: 100%; width: var(--p, 40%); background: var(--ok); border-radius: 3px; }
.sla--warn i { background: var(--warn); }
.sla--risk i { background: var(--risk); }

.board__ticker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.25rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--line);
  font-family: var(--font-m);
  font-size: 0.75rem;
  color: var(--subtle);
}
.board__ticker span::before { content: "• "; color: var(--blue); font-weight: bold; }

/* Metrics Strip */
.strip {
  background: var(--blue-deep);
  color: #FFFFFF;
  padding: 1.75rem 0;
}
.strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
@media (max-width: 860px) {
  .strip__grid { grid-template-columns: repeat(2, 1fr); }
}
.strip__grid > div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.strip__grid strong {
  font-family: var(--font-h);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: #38BDF8;
  letter-spacing: -0.03em;
}
.strip__grid span { font-size: 0.875rem; color: #94A3B8; line-height: 1.4; }

/* Sections */
.section { padding: clamp(4rem, 8vw, 6rem) 0; }
.section--dark { background: var(--blue-deep); color: #F1F5F9; }
.section--dark h2 { color: #FFFFFF; }
.section--muted { background: var(--surface-alt); border-block: 1px solid var(--line); }

.section__head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2rem;
  align-items: flex-end;
  margin-bottom: 3rem;
}
@media (max-width: 800px) {
  .section__head { grid-template-columns: 1fr; margin-bottom: 2rem; }
}

/* Features Ledger */
.ledger {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.ledger li {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 1.5rem;
  padding: 1.75rem 1rem;
  border-bottom: 1px solid var(--line);
  align-items: center;
  border-radius: var(--r-sm);
  transition: background 0.15s ease, transform 0.15s ease;
}
@media (max-width: 800px) {
  .ledger li { grid-template-columns: 1fr; gap: 0.5rem; padding: 1.25rem 0.5rem; }
}
.ledger li:hover { background: var(--blue-light); }
.ledger__code {
  font-family: var(--font-m);
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--blue);
  background: var(--blue-subtle);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  width: fit-content;
}
.ledger h3 { margin: 0; font-size: 1.15rem; }
.ledger p { margin: 0; color: var(--muted); font-size: 0.975rem; }

/* Modules Cards Grid */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 960px) {
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .modules-grid { grid-template-columns: 1fr; }
}

.module-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-lg);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
}
.module-card:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(56, 189, 248, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
}

.module-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.module-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.12);
  color: #38BDF8;
  display: flex;
  align-items: center;
  justify-content: center;
}
.module-card__num {
  font-family: var(--font-m);
  font-weight: 700;
  font-size: 0.8125rem;
  color: #64748B;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
}
.module-card h3 {
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 1.25rem;
  color: #FFFFFF;
  margin: 0;
}
.module-card p {
  color: #CBD5E1;
  font-size: 0.9375rem;
  line-height: 1.55;
  margin: 0;
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
@media (max-width: 800px) {
  .steps { grid-template-columns: 1fr; }
}
.steps li {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.steps__n {
  font-family: var(--font-m);
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--blue);
  background: var(--blue-light);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 1.25rem;
}

.cta-box {
  margin-top: 3rem;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #FFFFFF;
  border-radius: var(--r-lg);
  padding: 2.5rem 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: var(--shadow-lg);
}
.cta-box h3 { color: #FFFFFF; font-size: 1.5rem; margin-bottom: 0.4rem; }
.cta-box p { color: #E0F2FE; margin: 0; }
.cta-box .btn { background: #FFFFFF; color: var(--blue-dark) !important; border-color: #FFFFFF; }
.cta-box .btn:hover { background: var(--blue-deep); color: #FFFFFF !important; border-color: var(--blue-deep); }

/* FAQ Accordion */
details {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--r);
  margin-bottom: 0.75rem;
  padding: 0 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
details[open] { border-color: var(--blue); box-shadow: var(--shadow-md); }
details summary {
  cursor: pointer;
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink-heading);
  padding: 1.25rem 2rem 1.25rem 0;
  list-style: none;
  position: relative;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--blue);
  font-size: 1.5rem;
  font-weight: 700;
}
details[open] summary::after { content: "–"; }
details p { color: var(--muted); padding-bottom: 1.25rem; margin: 0; line-height: 1.6; }

/* Contact Section & Form */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

.form {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: var(--r-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 1.25rem;
}
.form label {
  display: grid;
  gap: 0.4rem;
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--ink-heading);
}
.form input, .form textarea {
  font-family: var(--font-b);
  font-size: 0.975rem;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 0.85rem 1rem;
  background: var(--surface-alt);
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.form input:focus, .form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 121, 191, 0.15);
  background: #FFFFFF;
}
.form__ok, .form__err {
  margin: 0;
  padding: 0.75rem 1rem;
  border-radius: var(--r-sm);
  font-family: var(--font-h);
  font-weight: 600;
  font-size: 0.9rem;
}
.form__ok { background: #ECFDF5; color: #047857; border: 1px solid #A7F3D0; }
.form__err { background: #FEF2F2; color: #B91C1C; border: 1px solid #FECACA; }

/* Footer Redesign */
.footer {
  background: var(--blue-deep);
  color: #94A3B8;
  padding: 4rem 0 2rem;
  border-top: 4px solid var(--blue);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer__brand-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.brand--footer {
  color: #FFFFFF;
  font-size: 1.2rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}
.brand--footer strong { color: #38BDF8; }

.footer__desc {
  color: #94A3B8;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
  max-width: 28rem;
}

.footer__nav-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-end;
}
@media (max-width: 768px) {
  .footer__nav-col { align-items: flex-start; }
}

.footer__heading {
  font-family: var(--font-h);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #E2E8F0;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}
@media (max-width: 768px) {
  .footer__links { justify-content: flex-start; }
}

.footer__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--r-sm);
  color: #E2E8F0;
  font-family: var(--font-h);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.footer__links a:hover {
  color: #FFFFFF;
  border-color: #38BDF8;
  background: rgba(0, 121, 191, 0.3);
  transform: translateY(-2px);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.75rem;
  font-size: 0.85rem;
  color: #64748B;
}
.footer__copy {
  margin: 0;
  color: #94A3B8;
}
.footer__disclaimer {
  margin: 0;
  color: #64748B;
  max-width: 36rem;
  text-align: right;
  line-height: 1.45;
}
@media (max-width: 768px) {
  .footer__disclaimer { text-align: left; }
}
.footer__disclaimer a {
  color: #38BDF8;
  text-decoration: underline;
}
.footer__disclaimer a:hover {
  color: #FFFFFF;
}

/* WhatsApp Floating Button */
.wa-float {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 99;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #25D366;
  color: #FFFFFF;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease, box-shadow 0.2s ease;
}
.wa-float:hover {
  background: #1EBE5A;
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.5);
}
