/* Base layout */
:root {
  --bg-main: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-ui: #e5e7eb;
  --primary: #4da3ff;
  --primary-soft: rgba(77, 163, 255, 0.18);
  --secondary: #7cffb2;
  --ok: #59e390;
  --warn: #ffc857;
  --error: #ff5c5c;
  --text-main: #0f172a;
  --text-muted: #6b7280;
  --border-subtle: #e5e7eb;
  --shadow-soft: 0 2px 6px rgba(15, 23, 42, 0.06);
  --radius-card: 4px;
  --radius-pill: 999px;
  --radius-btn: 6px;
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  background: var(--bg-main);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

body,
html {
  scroll-behavior: smooth;
}

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 18px 40px;
}

/* Top navigation */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px;
  background: #ffffff;
  border-radius: 0;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 16px;
  z-index: 20;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand-logo {
  height: 26px;
  width: auto;
  display: block;
}

.brand-name {
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: 0.98rem;
}

.brand-dot {
  color: var(--text-muted);
  font-weight: 400;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.9rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 4px 0;
  position: relative;
  transition: color 150ms ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width 160ms ease;
}

.nav-links a:hover {
  color: var(--text-main);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-btn);
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease, box-shadow 150ms ease,
    transform 120ms ease, border-color 150ms ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  background: #63b0ff;
  box-shadow: 0 4px 16px rgba(2, 6, 23, 0.85);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 1px solid #cbd5f5;
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: rgba(20, 24, 34, 0.95);
}

.btn-ghost {
  background: #f3f4f6;
  color: var(--text-muted);
  border: 1px solid #e5e7eb;
}

.btn-ghost:hover {
  color: var(--text-main);
  border-color: rgba(113, 143, 197, 0.9);
  background: rgba(63, 70, 89, 0.96);
}

.icon-whatsapp {
  width: 16px;
  height: 16px;
  display: inline-block;
  border-radius: 50%;
  background: #25d366;
  position: relative;
}

.icon-whatsapp::before,
.icon-whatsapp::after {
  content: "";
  position: absolute;
  background: #ffffff;
}

.icon-whatsapp::before {
  inset: 3px 4px 4px 3px;
  border-radius: 50%;
  mask-image: radial-gradient(circle at 50% 35%, transparent 0 55%, black 56%);
  -webkit-mask-image: radial-gradient(circle at 50% 35%, transparent 0 55%, black 56%);
}

.icon-whatsapp::after {
  width: 6px;
  height: 5px;
  border-radius: 2px;
  border-left: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(40deg);
  left: 5px;
  top: 5px;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px;
  margin-top: 40px;
  min-height: calc(100vh - 120px);
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.2rem, 3vw, 2.8rem);
  margin: 10px 0 12px;
  letter-spacing: -0.03em;
}

.eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

.hero-subtitle {
  color: var(--text-muted);
  max-width: 34rem;
  font-size: 0.98rem;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 10px;
}

.hero-note {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.accent {
  color: var(--secondary);
}

/* Hero panel / dashboard */
.hero-panel {
  background: #ffffff;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #f3f4f6;
  border-bottom: 1px solid #e5e7eb;
}

.panel-dots {
  display: flex;
  gap: 6px;
}

.panel-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2b3142;
}

.panel-dots span:nth-child(1) {
  background: #f87171;
}
.panel-dots span:nth-child(2) {
  background: #fbbf24;
}
.panel-dots span:nth-child(3) {
  background: #34d399;
}

.panel-title {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.panel-body {
  padding: 16px 16px 14px;
  background: #ffffff;
}

.panel-row {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
}

.metric {
  flex: 1;
}

.metric-label {
  display: block;
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.metric-bar {
  position: relative;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}

.metric-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: inherit;
  transform-origin: left;
  animation: metricPulse 4s ease-in-out infinite;
}

.metric-fill.ok {
  background: linear-gradient(to right, var(--ok), var(--secondary));
}

.metric-fill.warn {
  background: linear-gradient(to right, var(--warn), #ff9f43);
}

.metric-fill.error {
  background: linear-gradient(to right, var(--error), #fb7185);
}

.metric-value {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.metric-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  border: 1px solid #d1fae5;
  color: var(--text-muted);
}

.metric-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px rgba(89, 227, 144, 0.9);
}

.badge-ok {
  border-color: rgba(22, 163, 74, 0.4);
  color: #15803d;
  background: #ecfdf3;
}

.status-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.status-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  background: #f9fafb;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}

.status-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 0.72rem;
  border: 1px solid transparent;
}

.status-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
}

.status-pill.ok {
  color: #166534;
  border-color: rgba(34, 197, 94, 0.3);
  background: #dcfce7;
}

.status-pill.ok .dot {
  background: var(--ok);
  box-shadow: 0 0 6px rgba(89, 227, 144, 0.9);
}

.status-pill.warn {
  color: #92400e;
  border-color: rgba(245, 158, 11, 0.35);
  background: #fef3c7;
}

.status-pill.warn .dot {
  background: var(--warn);
  box-shadow: 0 0 6px rgba(252, 211, 77, 0.9);
}

.status-pill.error {
  color: #b91c1c;
  border-color: rgba(239, 68, 68, 0.35);
  background: #fee2e2;
}

.status-pill.error .dot {
  background: var(--error);
  box-shadow: 0 0 6px rgba(248, 113, 113, 0.9);
}

/* Impact section */
.impact {
  margin-top: 56px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: center;
}

.impact-text h2 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.impact-text p {
  color: var(--text-muted);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.card {
  background: var(--bg-secondary);
  border-radius: var(--radius-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  padding: 16px 18px;
}

.impact-card h3 {
  margin-top: 0;
  margin-bottom: 6px;
}

.impact-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Generic sections */
.section {
  margin-top: 64px;
}

.section-header {
  text-align: center;
  margin-bottom: 22px;
}

.section-header h2 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.section-header.align-left {
  text-align: left;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  position: relative;
}

.card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.card-header h3 {
  margin: 0;
  font-size: 1.05rem;
}

.price {
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid #e5e7eb;
  background: #f9fafb;
}

.card-lead {
  margin: 4px 0 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.card-content h4 {
  margin: 0 0 6px;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.card-list {
  padding-left: 16px;
  margin: 0 0 6px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.card-list li + li {
  margin-top: 2px;
}

.card-footnote {
  margin: 8px 0 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.card-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
  margin-top: 6px;
}

.card-columns h4 {
  margin: 0 0 4px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

/* Differentiator */
.grid-2col {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.panel-card {
  padding: 0;
  overflow: hidden;
}

.panel-body-dense {
  padding: 10px 14px 12px;
  background: #f9fafb;
}

.incident-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.incident-row:last-child {
  border-bottom: none;
}

.incident-row p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  border: 1px solid rgba(148, 163, 184, 0.8);
  color: var(--text-muted);
}

.badge-ok {
  border-color: rgba(22, 163, 74, 0.5);
  color: #166534;
  background: #ecfdf3;
}

.badge-warn {
  border-color: rgba(245, 158, 11, 0.5);
  color: #92400e;
  background: #fffbeb;
}

.badge-error {
  border-color: rgba(239, 68, 68, 0.5);
  color: #b91c1c;
  background: #fef2f2;
}

/* Designed for */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.chip {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* Design philosophy */
.section-muted {
  background: #f3f4f6;
  border-radius: 4px;
  padding: 24px 20px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 8px;
}

.pill {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: #e5e7eb;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.muted-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.palette-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.swatches {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.swatch {
  display: flex;
  gap: 8px;
  align-items: center;
}

.swatch-color {
  width: 32px;
  height: 22px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}

.bg-main {
  background: #ffffff;
}
.bg-secondary {
  background: #f9fafb;
}
.bg-ui {
  background: #e5e7eb;
}
.bg-primary {
  background: #4da3ff;
}
.bg-ok {
  background: #59e390;
}
.bg-warn {
  background: #ffc857;
}
.bg-error {
  background: #ff5c5c;
}

.swatch-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Contact */
.contact-section {
  margin-top: 56px;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  background: #ffffff;
}

.contact-main h2 {
  margin: 0 0 8px;
}

.contact-main p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.contact-footnote {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Footer */
.footer {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-note {
  margin-left: 8px;
}

.footer-left {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}

.footer-right {
  text-align: right;
}

/* Animations */
@keyframes metricPulse {
  0%,
  100% {
    transform: scaleX(1);
  }
  50% {
    transform: scaleX(0.94);
  }
}

/* Responsive */
@media (max-width: 900px) {
  .page {
    padding: 18px 14px 32px;
  }

  .top-nav {
    border-radius: 0;
    padding-inline: 12px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-panel {
    order: -1;
  }

  .impact {
    grid-template-columns: minmax(0, 1fr);
  }

  .impact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .services-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .grid-2col {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-muted {
    padding: 18px 14px;
  }

  .contact-card {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .page {
    padding-inline: 12px;
  }

  .top-nav {
    position: static;
  }

  .panel-body {
    padding-inline: 12px;
  }

  .panel-row {
    flex-direction: column;
  }

  .status-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .swatches {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-right {
    text-align: left;
  }
}

