*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}
img { max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 247, 251, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  min-height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
  text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.85rem;
  font-family: var(--mono);
}
.main-nav ul {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a { color: var(--muted); font-weight: 600; font-size: 0.92rem; }
.main-nav a:hover { color: var(--navy); text-decoration: none; }
.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 0.7rem 1.15rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: transparent;
  font-weight: 600;
}
.btn-ghost:hover { background: #eef1f7; }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-outline {
  background: #fff;
  color: var(--navy);
  border-color: var(--line);
}
.btn-outline:hover { border-color: var(--navy); }

.hero {
  padding: 4.5rem 0 2.5rem;
}
.hero-inner { max-width: 720px; }
.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}
h1 {
  font-size: clamp(2rem, 4.4vw, 3.35rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
  margin: 0 0 1rem;
}
.lede { color: var(--muted); font-size: 1.08rem; margin: 0 0 1.6rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.note {
  margin-top: 1.2rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.dash-wrap { padding: 0 0 4rem; }
.dash {
  background: var(--navy);
  color: #d7deea;
  border-radius: 22px;
  padding: 1rem;
  box-shadow: var(--shadow);
}
.dash-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.4rem 0.6rem 0.9rem;
}
.dash-brand { font-weight: 800; color: #fff; }
.dash-brand span { color: #7dd3fc; font-family: var(--mono); font-size: 0.78rem; margin-left: 0.4rem; }
.dash-tabs { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.dash-tabs button {
  background: transparent;
  color: #9aa8bd;
  border: 0;
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}
.dash-tabs button.active { background: #1c2a44; color: #fff; }
.dash-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 0.75rem;
}
.panel {
  background: #162033;
  border: 1px solid #24324a;
  border-radius: 14px;
  padding: 1rem;
}
.panel h3 {
  margin: 0 0 0.8rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8ea0b8;
}
.bars { display: flex; align-items: flex-end; gap: 8px; height: 120px; }
.bars i {
  flex: 1;
  display: block;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, #38bdf8, #2563eb);
}
.kpi-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-top: 0.8rem; }
.kpi { background: #101a2c; border-radius: 10px; padding: 0.7rem; }
.kpi b { display: block; color: #fff; font-size: 1.15rem; }
.kpi span { font-size: 0.75rem; color: #8ea0b8; }
.table { width: 100%; border-collapse: collapse; font-size: 0.8rem; font-family: var(--mono); }
.table td { padding: 0.45rem 0; border-bottom: 1px solid #24324a; }
.table td:last-child { text-align: right; color: #7dd3fc; }
.pill {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  background: #134e4a;
  color: #5eead4;
}
.pill.warn { background: #422006; color: #fbbf24; }
.log { font-family: var(--mono); font-size: 0.72rem; line-height: 1.7; color: #9fb0c6; }
.log em { color: #5eead4; font-style: normal; }

.section { padding: 4rem 0; }
.section h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.4rem;
  text-align: center;
}
.section .sub { text-align: center; color: var(--muted); margin: 0 auto 2.2rem; max-width: 560px; }

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.feature {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 0.9rem;
}
.feature h3 { margin: 0 0 0.45rem; font-size: 1.05rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: stretch;
}
.pricing-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.pricing-card.popular {
  border-color: var(--accent);
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.16);
}
.pricing-card.selected { outline: 2px solid var(--accent-2); }
.badge {
  align-self: flex-start;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
}
.price { font-size: 2rem; font-weight: 800; letter-spacing: -0.04em; margin: 0.3rem 0 1rem; }
.price span { font-size: 0.95rem; font-weight: 600; color: var(--muted); }
.pricing-card ul { margin: 0 0 1.3rem; padding-left: 1.1rem; color: var(--muted); flex: 1; }
.pricing-card li { margin: 0.35rem 0; }

.faq { max-width: 720px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); background: #fff; border-radius: 12px; margin-bottom: 0.7rem; overflow: hidden; }
.faq-item button {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  font: inherit;
  font-weight: 700;
  padding: 1rem 1.1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.faq-item button::after { content: "+"; color: var(--accent); font-size: 1.2rem; }
.faq-item.open button::after { content: "–"; }
.faq-item .ans { display: none; padding: 0 1.1rem 1.1rem; color: var(--muted); }
.faq-item.open .ans { display: block; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
}
label { display: block; font-size: 0.85rem; font-weight: 600; margin: 0.7rem 0 0.3rem; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  font: inherit;
  background: #fff;
}
textarea { min-height: 110px; resize: vertical; }

.site-footer {
  background: var(--navy);
  color: #c5d0e0;
  padding: 2.4rem 0 1.6rem;
  margin-top: 2rem;
}
.site-footer a { color: #93c5fd; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.2rem; font-size: 0.9rem; }
.legal-tiny {
  font-size: 0.72rem;
  line-height: 1.65;
  color: #8b98ab;
  max-width: 920px;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(14, 19, 32, 0.55);
  z-index: 80;
}
.modal {
  position: fixed;
  z-index: 81;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(420px, calc(100% - 2rem));
  background: #fff;
  border-radius: 16px;
  padding: 1.4rem;
  box-shadow: var(--shadow);
}
.modal h3 { margin: 0 0 0.4rem; }
.modal p { margin: 0 0 0.8rem; color: var(--muted); font-size: 0.9rem; }
.modal-close {
  position: absolute;
  top: 0.7rem;
  right: 0.8rem;
  border: 0;
  background: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--muted);
}

.toast {
  position: fixed;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 1.1rem;
  border-radius: 10px;
  z-index: 90;
  font-size: 0.9rem;
}

.page-header { padding: 3rem 0 1.2rem; }
.breadcrumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.6rem; }
.legal-content { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.6rem 1.8rem; margin-bottom: 3rem; }
.legal-content h2 { text-align: left; font-size: 1.15rem; margin: 1.4rem 0 0.5rem; }
.legal-content p, .legal-content li { color: var(--muted); }

@media (max-width: 900px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .main-nav { grid-column: 1 / -1; order: 3; }
  .main-nav ul { justify-content: flex-start; overflow-x: auto; padding-bottom: 0.6rem; }
  .features, .pricing, .dash-grid, .contact-grid { grid-template-columns: 1fr; }
  .btn { padding: 0.55rem 0.85rem; font-size: 0.85rem; white-space: nowrap; }
}
