:root {
  --bg: #f4f8ff;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: #ffffff;
  --text: #10213d;
  --muted: #60708f;
  --line: rgba(16, 33, 61, 0.1);
  --primary: #0d3b87;
  --primary-deep: #09295f;
  --accent: #7bff67;
  --accent-deep: #0d8b40;
  --shadow: 0 24px 70px rgba(13, 59, 135, 0.14);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --container: min(1280px, calc(100% - 32px));
  --ease: 220ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(123, 255, 103, 0.24), transparent 28%),
    radial-gradient(circle at top right, rgba(13, 59, 135, 0.18), transparent 30%),
    linear-gradient(180deg, #f9fbff 0%, #eef4ff 100%);
}

body.app-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(123, 255, 103, 0.16), transparent 22%),
    radial-gradient(circle at top right, rgba(13, 59, 135, 0.18), transparent 24%),
    linear-gradient(180deg, #edf4ff 0%, #f7fbff 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

.container {
  width: var(--container);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(249, 251, 255, 0.82);
  border-bottom: 1px solid rgba(16, 33, 61, 0.06);
  box-shadow: 0 10px 35px rgba(13, 59, 135, 0.05);
}

.nav-bar,
.footer-grid,
.hero-grid,
.stats-grid,
.grid-3,
.grid-2,
.pricing-grid,
.blog-grid,
.app-shell,
.panel-grid,
.metrics-grid,
.support-grid,
.market-grid,
.detail-grid {
  display: grid;
  gap: 24px;
}

.nav-bar {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  min-height: 84px;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.03em;
  min-width: 0;
  flex-shrink: 0;
}

.brand-mark {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #1d69da);
  box-shadow: 0 18px 40px rgba(13, 59, 135, 0.25);
}

.brand > span:last-child {
  min-width: 0;
  line-height: 1;
  display: grid;
  gap: 4px;
}

.brand > span:last-child:not(small) {
  font-size: 0.96rem;
}

.brand small {
  display: block;
  margin-top: 0;
  font-size: 0.64rem;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-links,
.inline-links,
.pill-tabs,
.chips {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.nav-links {
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
}

.nav-links a,
.inline-links a,
.pill-tabs button,
.role-switch button,
.ghost-btn,
.topbar-action {
  color: var(--muted);
  border: 1px solid transparent;
  padding: 10px 12px;
  border-radius: 999px;
  transition: var(--ease);
  background: transparent;
  cursor: pointer;
}

.nav-links a {
  font-size: 0.96rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 10px 11px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.nav-actions .btn,
.nav-actions .btn-ghost {
  padding: 12px 18px;
  white-space: nowrap;
}

.nav-actions .btn {
  box-shadow: 0 14px 28px rgba(13, 59, 135, 0.18);
}

.nav-actions .btn-ghost {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(13, 59, 135, 0.1);
}

.nav-links a:hover,
.nav-links a.active,
.inline-links a:hover,
.pill-tabs button.active,
.role-switch button.active,
.ghost-btn:hover,
.topbar-action:hover {
  color: var(--primary);
  background: rgba(13, 59, 135, 0.08);
  border-color: rgba(13, 59, 135, 0.08);
}

.cta-group,
.app-actions,
.form-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease);
}

.btn {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #1b66d3);
  box-shadow: 0 16px 30px rgba(13, 59, 135, 0.22);
}

.btn-secondary {
  color: var(--text);
  background: linear-gradient(135deg, rgba(123, 255, 103, 0.92), #d3ffc5);
  box-shadow: 0 16px 30px rgba(123, 255, 103, 0.22);
}

.btn-ghost {
  color: var(--primary);
  border: 1px solid rgba(13, 59, 135, 0.12);
  background: rgba(255, 255, 255, 0.7);
}

.btn:hover,
.btn-secondary:hover,
.btn-ghost:hover {
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
}

.hero,
.section,
.cta-band,
.page-hero {
  padding: 92px 0;
}

.hero-grid,
.detail-grid {
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(13, 59, 135, 0.08);
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 700;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  letter-spacing: -0.04em;
}

h1 {
  font-size: clamp(2.8rem, 5vw, 5.3rem);
  line-height: 0.95;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.lede {
  font-size: 1.08rem;
  max-width: 62ch;
}

.hero-copy,
.stack {
  display: grid;
  gap: 24px;
}

.glass-card,
.card,
.stat-card,
.pricing-card,
.feature-card,
.testimonial,
.faq-item,
.contact-card,
.table-card,
.sidebar,
.topbar,
.market-card,
.product-detail-card,
.form-card,
.popup-card {
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: var(--surface);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
}

.hero-visual {
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.hero-visual::before,
.cta-band::before {
  content: "";
  position: absolute;
  inset: auto auto -60px -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123, 255, 103, 0.6), transparent 65%);
}

.dashboard-preview,
.funnel-preview,
.report-preview {
  padding: 22px;
  background: rgba(9, 41, 95, 0.92);
  color: #fff;
  border-radius: 24px;
  display: grid;
  gap: 18px;
}

.preview-top,
.mini-row,
.metric-head,
.app-topbar,
.invoice-row,
.support-item,
.market-top,
.detail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.bars,
.mini-bars,
.chart-bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  align-items: end;
  min-height: 160px;
}

.bars span,
.mini-bars span,
.chart-bars span {
  border-radius: 999px 999px 14px 14px;
  background: linear-gradient(180deg, var(--accent), #39d84a);
}

.mini-bars {
  min-height: 90px;
}

.mini-bars span {
  background: linear-gradient(180deg, #8db8ff, #2e7df2);
}

.badge,
.status,
.mini-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}

.badge,
.mini-badge {
  background: rgba(123, 255, 103, 0.2);
  color: var(--accent-deep);
}

.status {
  background: rgba(13, 59, 135, 0.1);
  color: var(--primary);
}

.stats-grid,
.grid-3,
.pricing-grid,
.blog-grid,
.metrics-grid,
.market-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.stat-card,
.feature-card,
.testimonial,
.faq-item,
.pricing-card,
.market-card,
.contact-card,
.table-card,
.form-card {
  padding: 28px;
}

.stat-card strong,
.metric-card strong {
  display: block;
  font-size: 2.3rem;
  color: var(--text);
  margin-bottom: 8px;
}

.section-head {
  display: grid;
  gap: 14px;
  margin-bottom: 32px;
  max-width: 760px;
}

.list,
.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.check-list li,
.list li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
}

.check-list li::before,
.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #54d85b);
  box-shadow: 0 0 0 6px rgba(123, 255, 103, 0.13);
}

.pricing-card.featured {
  background: linear-gradient(180deg, rgba(13, 59, 135, 0.94), rgba(9, 41, 95, 0.98));
  color: #fff;
}

.pricing-card.featured p,
.pricing-card.featured .price-note,
.pricing-card.featured .check-list li {
  color: rgba(255, 255, 255, 0.76);
}

.price {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  margin: 16px 0 18px;
}

.price strong {
  font-size: 3rem;
  line-height: 1;
}

.logo-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 30px;
}

.logo-pill {
  padding: 18px;
  border-radius: 20px;
  text-align: center;
  color: var(--muted);
  font-weight: 800;
  border: 1px solid rgba(16, 33, 61, 0.08);
  background: rgba(255, 255, 255, 0.65);
}

.cta-band {
  position: relative;
  overflow: hidden;
}

.cta-shell {
  position: relative;
  padding: 42px;
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(13, 59, 135, 0.95), rgba(9, 41, 95, 0.98));
  color: #fff;
  box-shadow: var(--shadow);
}

.cta-shell p {
  color: rgba(255, 255, 255, 0.72);
}

.faq {
  display: grid;
  gap: 16px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin-top: 16px;
}

.site-footer {
  padding: 32px 0 40px;
}

.footer-grid {
  grid-template-columns: 1.2fr 0.8fr 0.8fr 0.8fr;
  padding: 34px;
}

.footer-grid h4 {
  margin-bottom: 14px;
}

.footer-grid a {
  display: block;
  padding: 6px 0;
  color: var(--muted);
}

.contact-form,
.mini-form,
.search-form,
.support-form {
  display: grid;
  gap: 14px;
}

.field-group,
.inline-form {
  display: grid;
  gap: 12px;
}

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

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(16, 33, 61, 0.08);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  border-radius: 18px;
  padding: 14px 16px;
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(13, 59, 135, 0.35);
  box-shadow: 0 0 0 4px rgba(13, 59, 135, 0.08);
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.page-hero {
  padding-bottom: 48px;
}

.app-shell {
  grid-template-columns: 280px 1fr;
  width: min(1380px, calc(100% - 24px));
  margin: 20px auto;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 20px;
  padding: 24px;
}

.sidebar-nav,
.sidebar-group {
  display: grid;
  gap: 8px;
}

.sidebar-link,
.tool-card,
.metric-card,
.timeline-item,
.ticket-card {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(16, 33, 61, 0.06);
  background: rgba(255, 255, 255, 0.72);
}

.sidebar-link.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #1859bc);
}

.topbar {
  padding: 20px 24px;
}

.content-stack,
.content-pane,
.tool-list {
  display: grid;
  gap: 24px;
}

.role-switch {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.role-pane {
  display: none;
}

.role-pane.active {
  display: grid;
  gap: 24px;
}

.metrics-grid {
  gap: 18px;
}

.metric-card {
  box-shadow: var(--shadow);
}

.metric-card strong {
  display: block;
  margin-top: 10px;
  font-size: 2rem;
}

.table-card table {
  width: 100%;
  border-collapse: collapse;
}

.table-card th,
.table-card td {
  text-align: left;
  padding: 14px 0;
  border-bottom: 1px solid rgba(16, 33, 61, 0.08);
  color: var(--muted);
}

.table-card th {
  color: var(--text);
  font-size: 0.95rem;
}

.progress {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: rgba(13, 59, 135, 0.08);
  overflow: hidden;
}

.progress span {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.market-card img,
.product-detail-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 18px;
  background: linear-gradient(135deg, #dfeaff, #eef6ff);
}

.product-detail-card {
  padding: 28px;
}

.popup-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 28, 61, 0.44);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 90;
}

.popup-backdrop.active {
  display: flex;
}

.popup-card {
  width: min(520px, 100%);
  padding: 28px;
}

.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 999px;
  color: #08341e;
  background: linear-gradient(135deg, var(--accent), #bcffb3);
  box-shadow: 0 18px 40px rgba(123, 255, 103, 0.38);
  font-weight: 800;
}

.mobile-only {
  display: none;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  animation: revealUp 700ms ease forwards;
}

.reveal:nth-child(2) { animation-delay: 80ms; }
.reveal:nth-child(3) { animation-delay: 160ms; }
.reveal:nth-child(4) { animation-delay: 240ms; }

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .hero-grid,
  .detail-grid,
  .app-shell,
  .footer-grid,
  .grid-2,
  .panel-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid,
  .grid-3,
  .pricing-grid,
  .blog-grid,
  .metrics-grid,
  .market-grid,
  .logo-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-bar {
    grid-template-columns: auto auto;
  }

  .nav-links,
  .nav-actions {
    display: none;
  }

  .nav-toggle,
  .mobile-only {
    display: inline-flex;
  }

  .site-header.open .nav-links,
  .site-header.open .nav-actions {
    display: flex;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 18px;
  }

  .site-header.open .nav-links a,
  .site-header.open .nav-actions a {
    width: 100%;
    text-align: left;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 1240px) {
  .nav-bar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
  }

  .brand small {
    display: none;
  }

  .brand > span:last-child {
    gap: 0;
  }

  .nav-links a {
    padding: 10px 10px;
    font-size: 0.94rem;
  }

  .nav-actions .btn,
  .nav-actions .btn-ghost {
    padding: 11px 16px;
  }
}

@media (min-width: 1025px) {
  .site-header .container {
    width: min(1380px, calc(100% - 32px));
  }

  .brand {
    max-width: 300px;
  }

  .nav-links {
    justify-self: center;
  }

  .nav-actions {
    justify-self: end;
  }
}

@media (max-width: 640px) {
  .hero,
  .section,
  .cta-band,
  .page-hero {
    padding: 72px 0;
  }

  .stats-grid,
  .grid-3,
  .pricing-grid,
  .blog-grid,
  .metrics-grid,
  .market-grid,
  .logo-strip,
  .inline-form {
    grid-template-columns: 1fr;
  }

  .cta-shell,
  .footer-grid {
    padding: 24px;
  }

  .hero-visual,
  .sidebar,
  .topbar,
  .stat-card,
  .feature-card,
  .testimonial,
  .faq-item,
  .pricing-card,
  .market-card,
  .contact-card,
  .table-card,
  .form-card,
  .product-detail-card {
    padding: 22px;
  }
}