:root {
  color-scheme: light;
  --bg: #fafaf9;
  --panel: #ffffff;
  --ink: #17171a;
  --muted: #6b7280;
  --muted-2: #4b5058;
  --line: #e5e5e3;
  --line-strong: #c7ccd5;
  --soft: #f5f3f1;
  --soft-2: #faf9f7;
  --accent: #6366f1;
  --accent-strong: #4f46e5;
  --accent-tint: #eef2ff;
  --blue: #2563eb;
  --green: #138a5e;
  --amber: #b54708;
  --red: #c0372b;
  --purple: #6941c6;
  --shadow: 0 10px 30px rgba(16, 24, 40, 0.06);
  --code-bg: #0d1117;
  --code-bg-2: #05070d;
  --code-key: #e5c07b;
  --code-string: #98c379;
  --code-number: #d19a66;
  --code-keyword: #818cf8;
  --code-punct: #8b93a7;
  --code-comment: #5c6370;
  --radius-lg: 14px;
  --radius-md: 10px;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --panel-glass: rgba(255, 255, 255, 0.92);
  --hero-glass: rgba(255, 255, 255, 0.78);
  --hero-core: rgba(255, 255, 255, 0.96);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c0c10;
  --panel: #16161c;
  --ink: #f2f2f0;
  --muted: #9ca3af;
  --muted-2: #b2b8c4;
  --line: #26262e;
  --line-strong: #3a3a45;
  --soft: #1b1b22;
  --soft-2: #1e1e26;
  --accent: #818cf8;
  --accent-strong: #a5b4fc;
  --accent-tint: #1e1b4b;
  --blue: #60a5fa;
  --green: #34d399;
  --amber: #fbbf24;
  --red: #f87171;
  --purple: #a78bfa;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --panel-glass: rgba(12, 12, 16, 0.82);
  --hero-glass: rgba(22, 22, 28, 0.7);
  --hero-core: rgba(12, 12, 16, 0.9);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, var(--panel) 0, var(--soft-2) 420px, var(--bg) 100%);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  transition: background-color 200ms ease, color 200ms ease;
}

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

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

button {
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: 54px;
  line-height: 1.03;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.35;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 68px;
  padding: 0 clamp(18px, 4vw, 48px);
  background: var(--panel-glass);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: var(--accent);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
  color: var(--ink);
  font-size: 16px;
}

.theme-toggle:hover {
  border-color: var(--line-strong);
}

.theme-toggle .icon-dark,
:root[data-theme="dark"] .theme-toggle .icon-light {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .icon-dark {
  display: inline;
}

.brand-name {
  color: var(--ink);
  font-weight: 750;
  white-space: nowrap;
}

.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links {
  justify-content: center;
  color: var(--muted-2);
  font-size: 14px;
}

.nav-actions {
  justify-content: flex-end;
}

.nav-links a,
.ghost-link {
  border: 0;
  background: transparent;
  color: var(--muted-2);
  font-size: 14px;
}

.nav-links a:hover,
.ghost-link:hover,
.nav-links .active-link {
  color: var(--ink);
}

.nav-links .active-link {
  font-weight: 800;
}

.whatsapp-button,
.floating-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid #16a34a;
  border-radius: var(--radius-lg);
  background: #16a34a;
  color: #ffffff;
  font-weight: 800;
}

.whatsapp-button {
  padding: 0 14px;
}

.whatsapp-button:hover,
.floating-whatsapp:hover {
  background: #138a3d;
}

.whatsapp-action {
  border-color: #a7f3d0;
  color: #067647;
}

.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  padding: 0 18px;
  box-shadow: 0 12px 34px rgba(22, 163, 74, 0.26);
}

.source-pill,
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.source-pill.ready {
  border-color: #b7e4cf;
  background: #ecfdf3;
  color: var(--green);
}

.source-pill.error,
.badge.hot {
  border-color: #fecdca;
  background: #fef3f2;
  color: var(--red);
}

:root[data-theme="dark"] .source-pill.ready {
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.14);
  color: #6ee7b7;
}

:root[data-theme="dark"] .source-pill.error,
:root[data-theme="dark"] .badge.hot {
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.14);
  color: #fca5a5;
}

:root[data-theme="dark"] .badge.warn {
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.14);
  color: #fcd34d;
}

:root[data-theme="dark"] .badge.ok {
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.14);
  color: #6ee7b7;
}

:root[data-theme="dark"] .whatsapp-action {
  border-color: rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}

.shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 34px) 54px;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.72fr);
  gap: 26px;
  align-items: center;
  min-height: 430px;
  padding: 42px 0 26px;
}

.platform-hero {
  position: relative;
  display: block;
  min-height: 650px;
  overflow: hidden;
  padding: 72px 0 42px;
  text-align: center;
}

.hero-ambient {
  position: absolute;
  inset: -120px -18vw auto;
  height: 620px;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 10%, var(--hero-core), rgba(255, 255, 255, 0) 35%),
    radial-gradient(circle at 20% 35%, rgba(99, 102, 241, 0.14), rgba(99, 102, 241, 0) 32%),
    radial-gradient(circle at 78% 24%, rgba(37, 99, 235, 0.12), rgba(37, 99, 235, 0) 34%);
  filter: blur(2px);
}

.hero-copy-block {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.platform-hero .hero-copy-block {
  max-width: 1120px;
  margin: 0 auto;
}

.platform-hero h1 {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 76px;
  font-weight: 900;
  line-height: 1.05;
}

.glow-title {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  margin-bottom: 8px;
  color: rgba(99, 102, 241, 0.52);
  font-size: 68px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0 18px rgba(99, 102, 241, 0.35), 0 0 42px rgba(99, 102, 241, 0.16);
  animation: glowPulse 4.2s ease-in-out infinite;
  filter: blur(2.6px);
}

.focus-mark {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: var(--accent);
  opacity: 0.86;
  filter: blur(0);
}

.focus-mark.left {
  left: 34px;
  bottom: 30px;
  border-left: 4px solid;
  border-bottom: 4px solid;
}

.focus-mark.right {
  right: 34px;
  bottom: 30px;
  border-right: 4px solid;
  border-bottom: 4px solid;
}

.platform-hero .hero-copy {
  width: min(980px, 100%);
  margin: 0 auto;
  color: var(--muted);
  font-size: 25px;
  line-height: 1.68;
}

.platform-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 72px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-width: 210px;
  min-height: 76px;
  padding: 0 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--hero-glass);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(16, 24, 40, 0.02);
  font-size: 21px;
  font-weight: 850;
  backdrop-filter: blur(14px);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.hero-pill:hover {
  border-color: var(--line-strong);
  box-shadow: 0 16px 40px rgba(16, 24, 40, 0.08);
  transform: translateY(-2px);
}

.hero-pill.dark {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.hero-pill span {
  font-size: 30px;
  line-height: 1;
}

.hero-pill em {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 13px;
  font-style: normal;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 54px;
  color: var(--muted);
  font-size: 20px;
}

.hero-stats i {
  width: 7px;
  height: 7px;
  margin-top: 10px;
  border-radius: 999px;
  background: var(--line-strong);
}

@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.78;
    transform: translateY(0) scale(1);
  }
  50% {
    opacity: 0.94;
    transform: translateY(-4px) scale(1.015);
  }
}

.hero {
  max-width: 930px;
  margin: 0 auto;
  padding: clamp(58px, 10vw, 116px) 0 34px;
  text-align: center;
}

.hero-kicker,
.eyebrow {
  margin: 0 0 10px;
  color: var(--purple);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0;
}

.hero-copy {
  width: min(780px, 100%);
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.62;
}

.hero .hero-copy,
.page-hero .hero-copy {
  margin: 0 auto;
}

.hero-actions {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 22px;
}

.hero .hero-actions,
.page-hero .hero-actions {
  justify-content: center;
}

.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.hero-snapshot,
.company-panel,
.live-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-snapshot h2,
.company-panel h2,
.live-card h2 {
  margin-bottom: 14px;
  font-size: 22px;
}

.live-card {
  background: var(--code-bg);
  color: #ffffff;
}

.live-card .eyebrow {
  color: #93c5fd;
}

.live-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.live-card-head span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(183, 228, 207, 0.45);
  border-radius: 999px;
  background: rgba(19, 138, 94, 0.22);
  color: #bbf7d0;
  font-size: 12px;
  font-weight: 800;
}

.terminal-preview {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  background: var(--code-bg-2);
  color: #dbeafe;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
}

.company-panel p {
  margin-bottom: 18px;
  color: var(--muted);
  line-height: 1.65;
}

.company-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.company-facts span {
  display: grid;
  min-height: 58px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--soft-2);
  color: var(--muted-2);
  font-weight: 800;
}

.snapshot-steps {
  display: grid;
  gap: 8px;
}

.snapshot-steps span {
  display: block;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--soft-2);
  color: var(--muted-2);
}

.page-hero {
  max-width: 860px;
  margin: 0 auto;
  padding: 46px 0 26px;
  text-align: center;
}

.compact-hero {
  padding: 38px 0 22px;
}

.page-hero h1 {
  font-size: 42px;
}

.service-entry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 6px 0 26px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 10px 0 14px;
}

.section-head h2 {
  font-size: 26px;
}

.section-head > span {
  color: var(--muted);
}

.tight-head {
  margin-top: 22px;
}

.business-intro-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 30px;
}

.business-intro-grid article {
  min-height: 154px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.business-intro-grid strong {
  display: block;
  margin-bottom: 12px;
  font-size: 18px;
}

.business-intro-grid p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.58;
}

.service-entry {
  display: flex;
  min-height: 172px;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.service-entry:hover {
  border-color: var(--line-strong);
  box-shadow: 0 16px 46px rgba(16, 24, 40, 0.1);
  transform: translateY(-2px);
}

.service-entry strong {
  font-size: 20px;
  line-height: 1.18;
}

.service-entry > span:last-child {
  color: var(--muted);
  line-height: 1.6;
}

.seo-entry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 6px 0 30px;
}

.seo-entry,
.seo-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.seo-entry {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.seo-entry:hover {
  border-color: var(--line-strong);
  box-shadow: 0 16px 46px rgba(16, 24, 40, 0.1);
  transform: translateY(-2px);
}

.seo-entry strong {
  font-size: 20px;
  line-height: 1.22;
}

.seo-entry > span:last-child {
  color: var(--muted);
  line-height: 1.6;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--ink);
  font-weight: 750;
}

.compact-actions {
  justify-content: center;
  margin-top: 28px;
}

.seo-content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.seo-panel {
  min-height: 260px;
  padding: 22px;
}

.seo-panel h2 {
  margin-bottom: 12px;
  font-size: 23px;
}

.seo-panel p,
.seo-list {
  color: var(--muted-2);
  line-height: 1.68;
}

.seo-list {
  margin: 0;
  padding-left: 20px;
}

.seo-list li + li {
  margin-top: 10px;
}

.code-sample {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--soft-2);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}

.faq-section {
  margin-bottom: 34px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.faq-list summary {
  min-height: 56px;
  padding: 17px 20px;
  font-weight: 800;
  cursor: pointer;
}

.faq-list p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--muted-2);
  line-height: 1.65;
}

.primary-entry {
  background: var(--accent);
  color: #ffffff;
}

.primary-entry .demo-category,
.primary-entry > span:last-child {
  color: #d0d5dd;
}

.preview-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(360px, 1fr);
  gap: 18px;
  align-items: stretch;
  margin: 4px 0 30px;
}

.preview-copy {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 22px;
}

.preview-copy h2 {
  margin-bottom: 10px;
  font-size: 26px;
}

.preview-copy p:not(.eyebrow) {
  margin-bottom: 18px;
  color: var(--muted);
}

.preview-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.preview-tabs button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  color: var(--muted-2);
  font-weight: 750;
}

.preview-tabs button.active,
.preview-tabs button:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.chat-window {
  display: flex;
  flex-direction: column;
  min-height: 260px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: #1f7a5c;
  color: #ffffff;
}

.chat-avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  font-weight: 800;
}

.chat-header strong {
  display: block;
  font-size: 14px;
}

.chat-header span {
  display: block;
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
}

.chat-body {
  flex: 1;
  padding: 20px;
  background: #e9ded0;
}

:root[data-theme="dark"] .chat-body {
  background: #14181a;
}

.chat-bubble {
  max-width: 88%;
  margin-left: auto;
  padding: 10px 14px;
  border-radius: 12px 12px 2px 12px;
  background: #d7f2c2;
  color: #1a1a1a;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

:root[data-theme="dark"] .chat-bubble {
  background: #1f4b34;
  color: #eafbe7;
}

.chat-meta {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.conversion-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 0 0 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--line);
  box-shadow: var(--shadow);
}

.conversion-strip div {
  min-height: 118px;
  padding: 20px;
  background: var(--panel);
}

.conversion-strip strong {
  display: block;
  margin-bottom: 10px;
  font-size: 17px;
}

.conversion-strip span {
  display: block;
  color: var(--muted);
  line-height: 1.55;
}

.toolbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 6px 0 28px;
}

.tab-button {
  position: relative;
  display: flex;
  min-height: 238px;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  color: var(--ink);
  text-align: left;
  box-shadow: var(--shadow);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.tab-button:hover,
.tab-button.active {
  border-color: var(--line-strong);
  box-shadow: 0 16px 46px rgba(16, 24, 40, 0.1);
  transform: translateY(-2px);
}

.tab-button.active::after {
  position: absolute;
  inset: auto 22px 18px auto;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--green);
  content: "";
}

.demo-plus {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 18px;
  line-height: 1;
}

.demo-category {
  color: var(--blue);
  font-size: 13px;
  font-weight: 750;
}

.tab-button strong {
  font-size: 20px;
}

.tab-button > span:not(.demo-plus):not(.demo-category):not(.tag-row) {
  color: var(--muted);
  line-height: 1.55;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}

.tag-row em {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.metric-card,
.panel,
.business-card,
.risk-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.metric-card {
  min-height: 132px;
  padding: 20px;
}

.metric-value {
  margin: 0 0 8px;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0;
}

.metric-label,
.muted {
  color: var(--muted);
}

.split-layout {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 16px;
}

.panel {
  overflow: hidden;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.sticky-controls {
  align-items: flex-end;
}

.filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) minmax(160px, 0.85fr) minmax(160px, 0.85fr) minmax(170px, 0.9fr);
  gap: 10px;
  width: min(920px, 100%);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
  color: var(--ink);
  outline: 0;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-tint);
}

input,
select {
  min-height: 42px;
  padding: 0 12px;
}

textarea {
  min-height: 310px;
  padding: 13px;
  resize: vertical;
  line-height: 1.55;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.primary-button,
.secondary-button,
.icon-button,
.row-button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
  color: var(--ink);
}

.primary-button {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.primary-button,
.secondary-button {
  padding: 0 15px;
  font-weight: 750;
}

.secondary-button:hover,
.row-button:hover {
  border-color: var(--line-strong);
  background: var(--soft-2);
}

.primary-button:hover {
  background: var(--accent-strong);
}

.icon-button {
  width: 40px;
  padding: 0;
  font-size: 24px;
  line-height: 1;
}

.bars,
.watchlist,
.business-grid {
  padding: 20px;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.85fr) 1fr 42px;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.bar-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--soft);
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #22d3ee);
}

.watch-row {
  display: grid;
  grid-template-columns: minmax(160px, 1.2fr) 100px 92px 74px;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.watch-row:last-child {
  border-bottom: 0;
}

.chip-model {
  font-weight: 800;
  word-break: break-word;
}

.positive {
  color: var(--red);
  font-weight: 800;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

tr:hover td {
  background: var(--soft-2);
}

.reason {
  max-width: 270px;
  color: var(--muted);
}

.score {
  color: var(--blue);
  font-weight: 800;
}

.row-button {
  min-height: 34px;
  padding: 0 11px;
}

.bom-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1.1fr);
  gap: 18px;
  padding: 20px;
}

.consult-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 20px;
}

.intake-column {
  min-width: 0;
}

.file-upload-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.file-upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  white-space: nowrap;
}

.file-upload-status {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bom-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.bom-result {
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  background: var(--soft-2);
}

.risk-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.summary-cell {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
}

.summary-cell strong {
  display: block;
  margin-bottom: 4px;
  font-size: 20px;
}

.risk-item {
  padding: 15px;
  margin-bottom: 12px;
  box-shadow: none;
}

.risk-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.question-list {
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--muted-2);
  line-height: 1.65;
}

.question-list li + li {
  margin-top: 6px;
}

.badge.warn {
  border-color: #fedf89;
  background: #fffaeb;
  color: var(--amber);
}

.badge.ok {
  border-color: #b7e4cf;
  background: #ecfdf3;
  color: var(--green);
}

.business-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.business-card {
  min-height: 202px;
  padding: 18px;
  box-shadow: none;
}

.business-card strong {
  display: block;
  margin: 10px 0;
  font-size: 25px;
}

.status-line {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.footer {
  display: grid;
  grid-template-columns: 1.7fr repeat(3, 1fr);
  gap: 34px;
  width: min(1180px, 100%);
  margin: 14px auto 0;
  padding: 38px clamp(16px, 4vw, 34px) 50px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-brand {
  margin-bottom: 14px;
}

.br-number {
  margin-top: -8px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.reg-address {
  margin-top: -8px;
  color: var(--muted);
  font-size: 13px;
}

.privacy-note {
  margin: -6px 0 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.footer h3 {
  color: var(--ink);
}

.footer a {
  display: block;
  margin: 10px 0;
}

.footer a:hover {
  color: var(--ink);
}

.footer-bottom {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 20px clamp(16px, 4vw, 34px) 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.capability-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 6px 0 30px;
}

.capability-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted-2);
  font-size: 13px;
  font-weight: 700;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.capability-chip:hover {
  border-color: var(--accent);
  color: var(--ink);
  transform: translateY(-1px);
}

.capability-chip b {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent-tint);
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
}

dialog {
  width: min(880px, calc(100vw - 28px));
  padding: 0;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(16, 24, 40, 0.28);
}

dialog::backdrop {
  background: rgba(16, 24, 40, 0.46);
}

.detail-card {
  background: var(--panel);
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

#detailContent {
  padding: 20px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.detail-metric {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--soft-2);
}

.evidence {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--soft-2);
  color: var(--muted-2);
  line-height: 1.55;
  word-break: break-word;
}

@media (max-width: 1100px) {
  .topbar {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .nav-links,
  .nav-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .toolbar,
  .conversion-strip,
  .service-entry-grid,
  .business-intro-grid,
  .metric-grid,
  .business-grid,
  .seo-entry-grid,
  .seo-content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .platform-hero {
    min-height: 560px;
  }

  .platform-hero h1 {
    font-size: 58px;
  }

  .glow-title {
    min-height: 124px;
    font-size: 52px;
  }

  .platform-actions {
    gap: 14px;
    margin-top: 48px;
  }

  .hero-pill {
    min-width: 180px;
    min-height: 64px;
    font-size: 18px;
  }

  .split-layout,
  .bom-grid,
  .consult-grid,
  .preview-section,
  .footer {
    grid-template-columns: 1fr;
  }

  .filters {
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .panel-header {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .floating-whatsapp {
    right: 16px;
    bottom: 16px;
    min-height: 52px;
    width: 52px;
    padding: 0;
    border-radius: 999px;
    font-size: 0;
  }

  .floating-whatsapp::after {
    content: "💬";
    font-size: 22px;
  }

  h1 {
    font-size: 40px;
  }

  .page-hero h1 {
    font-size: 36px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .toolbar,
  .conversion-strip,
  .service-entry-grid,
  .business-intro-grid,
  .metric-grid,
  .business-grid,
  .seo-entry-grid,
  .seo-content-grid,
  .consult-grid,
  .preview-section,
  .filters,
  .risk-summary,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .bom-actions {
    flex-direction: column;
  }

  .service-entry {
    min-height: auto;
  }

  .landing-hero {
    padding-top: 30px;
  }

  .platform-hero {
    min-height: auto;
    padding: 46px 0 28px;
  }

  .platform-hero h1 {
    font-size: 42px;
  }

  .glow-title {
    min-height: 86px;
    font-size: 36px;
  }

  .focus-mark {
    width: 16px;
    height: 16px;
  }

  .focus-mark.left {
    left: 18px;
    bottom: 18px;
  }

  .focus-mark.right {
    right: 18px;
    bottom: 18px;
  }

  .platform-hero .hero-copy {
    font-size: 17px;
  }

  .platform-actions {
    display: grid;
    gap: 10px;
    margin-top: 28px;
  }

  .hero-pill {
    width: 100%;
    min-width: 0;
    min-height: 54px;
    padding: 0 18px;
    font-size: 16px;
  }

  .hero-stats {
    display: grid;
    gap: 9px;
    margin-top: 28px;
    font-size: 15px;
  }

  .hero-stats i {
    display: none;
  }

  .company-facts {
    grid-template-columns: 1fr;
  }

  .tab-button {
    min-height: 210px;
  }

  .watch-row {
    grid-template-columns: 1fr;
  }
}
