/* Design tokens — HetrixTools-inspired */
:root {
  --primary: #50a1ff;
  --primary-hover: #3a8ae6;
  --primary-soft: #96c7ff;
  --primary-wash: #eaf0ff;
  --ink: #191919;
  --body: #323d47;
  --muted: #757575;
  --muted-soft: #868e96;
  --canvas: #f8f9fa;
  --surface: #ffffff;
  --surface-alt: #f1f2f3;
  --surface-soft: #eaeff4;
  --border: #dee2e6;
  --border-strong: #c9ccce;
  --link: #50a1ff;
  --success: #3cd458;
  --warning: #ffba00;
  --error: #ff4954;
  --on-primary: #ffffff;
  --on-dark: #f8f9fa;
  --footer-bg: #262a37;
  --dark-navy: #09203f;
  --radius-sm: 3px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --radius-xl: 16px;
  --radius-pill: 10rem;
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 64px;
  --section: 88px;
  --hero-pad: 96px;
  --container: 1140px;
  --nav-h: 64px;
  --font: "Open Sans", Helvetica, Arial, sans-serif;
  --font-display: Dosis, "Open Sans", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--body);
  background: var(--canvas);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--link);
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: var(--space-sm);
  z-index: 100;
  padding: var(--space-xs) var(--space-sm);
  background: var(--ink);
  color: var(--on-dark);
  border-radius: var(--radius-md);
}

.skip-link:focus {
  left: var(--space-sm);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--space-md);
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.brand-mark__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-lg);
  background: var(--primary-wash);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-mark__icon svg {
  width: 22px;
  height: 22px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav-list {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--space-lg);
}

.nav-list a {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.nav-list a:hover {
  color: var(--primary);
}

@media (min-width: 768px) {
  .nav-list {
    display: flex;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-pill);
  padding: 12px 24px;
  transition: background-color 0.15s ease;
}

.btn--primary {
  background: var(--primary);
  color: var(--on-primary);
}

.btn--primary:hover {
  background: var(--primary-hover);
  color: var(--on-primary);
}

.btn--secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border-strong);
}

.btn--secondary:hover {
  background: var(--surface-alt);
}

.btn--lg {
  padding: 14px 28px;
  font-size: 16px;
}

/* Hero */
.hero {
  padding: var(--hero-pad) 0 var(--section);
  background: linear-gradient(180deg, var(--surface) 0%, var(--canvas) 100%);
  border-bottom: 1px solid var(--border);
}

.hero__grid {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
}

@media (min-width: 992px) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: var(--space-sm);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--on-primary);
  background: var(--success);
}

.status-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.9;
}

.hero__title {
  margin: 0 0 var(--space-md);
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero__title strong {
  color: var(--primary-hover);
  font-weight: 700;
}

.hero__lead {
  margin: 0 0 var(--space-lg);
  font-size: 18px;
  line-height: 1.55;
  color: var(--body);
  max-width: 36em;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.hero__checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-xs);
}

.hero__checks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
}

.hero__checks svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--success);
}

/* Dashboard preview */
.dashboard-preview {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-md);
  box-shadow: 0 4px 24px rgba(9, 32, 63, 0.06);
}

.dashboard-preview__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border);
}

.dashboard-preview__title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.dashboard-preview__badge {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--primary-wash);
  color: var(--primary-hover);
}

.metric-row {
  display: grid;
  gap: var(--space-sm);
}

@media (min-width: 480px) {
  .metric-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.metric-card {
  background: var(--surface-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-sm);
  border: 1px solid var(--border);
}

.metric-card__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 4px;
}

.metric-card__value {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.metric-card__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
}

.metric-card__status--up {
  color: var(--success);
}

.metric-card__status--warn {
  color: #c49200;
}

.uptime-bars {
  display: flex;
  gap: 3px;
  margin-top: var(--space-sm);
  height: 8px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-alt);
}

.uptime-bars span {
  flex: 1;
}

.uptime-bars .seg--up {
  background: var(--success);
}

.uptime-bars .seg--down {
  background: var(--error);
}

.uptime-bars .seg--warn {
  background: var(--warning);
}

.uptime-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
  font-size: 12px;
  color: var(--muted);
}

.uptime-legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  display: inline-block;
}

.dot--up {
  background: var(--success);
}

.dot--warn {
  background: var(--warning);
}

.dot--down {
  background: var(--error);
}

/* Sections */
.section {
  padding: var(--section) 0;
}

.section--alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section__header {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto var(--space-xl);
}

.section__title {
  margin: 0 0 var(--space-sm);
  font-size: clamp(1.5rem, 3vw, 1.75rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}

.section__subtitle {
  margin: 0;
  font-size: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.pillars {
  display: grid;
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .pillars {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  height: 100%;
}

.section--alt .product-card {
  background: var(--canvas);
}

.product-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: var(--primary-wash);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
  color: var(--primary-hover);
}

.product-card h3 {
  margin: 0 0 var(--space-xs);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}

.product-card p {
  margin: 0 0 var(--space-sm);
  font-size: 15px;
  color: var(--body);
}

.product-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-card li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--muted-soft);
}

.product-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
  font-size: 13px;
}

.features-grid {
  display: grid;
  gap: var(--space-md);
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-tile {
  padding: var(--space-md);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.feature-tile h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.feature-tile p {
  margin: 0;
  font-size: 15px;
  color: var(--body);
}

/* Trust */
.trust-panel {
  display: grid;
  gap: var(--space-lg);
  align-items: start;
}

@media (min-width: 768px) {
  .trust-panel {
    grid-template-columns: 1fr 1fr;
  }
}

.quote-card {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.quote-card blockquote {
  margin: 0 0 var(--space-md);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  font-style: normal;
}

.quote-card cite {
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  color: var(--muted);
}

.trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.trust-list li {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}

.trust-list li:last-child {
  border-bottom: none;
}

/* FAQ */
.faq {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-sm);
  background: var(--surface);
  overflow: hidden;
}

.faq-item button {
  width: 100%;
  text-align: left;
  padding: var(--space-md);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
}

.faq-item button:hover {
  background: var(--surface-alt);
}

.faq-item__panel {
  padding: 0 var(--space-md) var(--space-md);
  font-size: 15px;
  color: var(--body);
  display: none;
}

.faq-item.is-open .faq-item__panel {
  display: block;
}

.faq-item.is-open button .faq-chevron {
  transform: rotate(180deg);
}

.faq-chevron {
  transition: transform 0.2s ease;
  flex-shrink: 0;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .faq-chevron {
    transition: none;
  }
}

/* CTA band */
.cta-band {
  background: var(--dark-navy);
  color: var(--on-dark);
  padding: var(--section) 0;
  text-align: center;
}

.cta-band h2 {
  margin: 0 0 var(--space-sm);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--on-dark);
}

.cta-band p {
  margin: 0 auto var(--space-lg);
  max-width: 36em;
  font-size: 18px;
  opacity: 0.92;
}

/* Footer */
.site-footer {
  background: var(--footer-bg);
  color: var(--on-dark);
  padding: 48px 0 var(--space-lg);
  font-size: 14px;
}

.footer-grid {
  display: grid;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.site-footer h2 {
  margin: 0 0 var(--space-sm);
  font-size: 16px;
  font-weight: 600;
}

.site-footer a {
  color: var(--primary-soft);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 8px;
}

.footer-bottom {
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted-soft);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: space-between;
}
