/* Design tokens — HetrixTools-inspired */
:root {
  --primary: #50A1FF;
  --accent-hover: #3A8AE6;
  --accent-soft: #96C7FF;
  --accent-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;
  --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;
  --section-pad: 88px;
  --hero-pad: 96px;
  --container: 1140px;
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: "Open Sans", Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--body);
  background-color: var(--canvas);
}

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

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

a:hover {
  color: var(--accent-hover);
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

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

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}

.logo {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.logo span {
  color: var(--primary);
}

.nav-links {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 24px;
  align-items: center;
}

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

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

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

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 16px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav a {
  padding: 12px 0;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }

  .nav-links {
    display: flex;
  }

  .mobile-nav {
    display: none !important;
  }
}

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

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

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

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

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

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

/* Hero */
.hero {
  padding: 48px 0 var(--hero-pad);
  background: linear-gradient(180deg, var(--accent-wash) 0%, var(--canvas) 55%);
}

.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin: 0 0 12px;
}

.hero-title {
  margin: 0 0 16px;
  font-size: clamp(36px, 6vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero-title .product-name {
  display: block;
  color: var(--primary);
}

.hero-lead {
  margin: 0 0 24px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--body);
  max-width: 540px;
}

.hero-bullets {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
}

.hero-bullets li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  font-size: 16px;
}

.hero-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  background: var(--success);
  border-radius: 50%;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='white' d='M6.5 11.5L3 8l1-1 2.5 2.5L12 4l1 1z'/%3E%3C/svg%3E") center / 12px no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='white' d='M6.5 11.5L3 8l1-1 2.5 2.5L12 4l1 1z'/%3E%3C/svg%3E") center / 12px no-repeat;
  background-color: var(--success);
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-note {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.hero-visual {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: 0 4px 24px rgba(9, 32, 63, 0.06);
}

.sync-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

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

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

.status-pill--up::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
}

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

.file-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  margin-bottom: 8px;
  background: var(--surface-alt);
  border-radius: var(--radius-lg);
  font-size: 14px;
  color: var(--ink);
}

.file-list .tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: var(--accent-wash);
  color: var(--primary);
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Sections */
.section {
  padding: var(--section-pad) 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: 720px;
  margin: 0 auto 48px;
}

.section-header h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.section-header p {
  margin: 0;
  font-size: 18px;
  color: var(--muted);
}

.pillar-grid {
  display: grid;
  gap: 24px;
}

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

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

.product-card h3 {
  margin: 12px 0 8px;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
}

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

.product-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--body);
  font-size: 15px;
}

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-wash);
  border-radius: var(--radius-lg);
  color: var(--primary);
}

.feature-grid {
  display: grid;
  gap: 20px;
}

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

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

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

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

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

/* Trust */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  padding: 32px;
  background: var(--surface-soft);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
}

.trust-item {
  text-align: center;
  min-width: 120px;
}

.trust-item strong {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.trust-item span {
  font-size: 13px;
  color: var(--muted);
}

.testimonial-grid {
  display: grid;
  gap: 24px;
}

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

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.testimonial-card blockquote {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--body);
}

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

.testimonial-card .role {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 13px;
}

/* Pricing */
.pricing-grid {
  display: grid;
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

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

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
}

.pricing-card--featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.pricing-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
  color: var(--ink);
}

.pricing-card .plan-desc {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--muted);
  min-height: 40px;
}

.pricing-card .price-note {
  font-size: 15px;
  color: var(--body);
  margin-bottom: 20px;
}

.pricing-card .btn {
  width: 100%;
}

.pricing-footnote {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--muted);
}

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

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

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

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

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-pill);
  background: var(--accent-wash);
  color: var(--primary);
  font-size: 18px;
  line-height: 24px;
  text-align: center;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 200;
  padding: 12px 16px;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: var(--radius-md);
  text-decoration: none;
}

.faq-answer {
  padding: 0 20px 18px;
  font-size: 15px;
  color: var(--body);
  line-height: 1.55;
}

.faq-answer p {
  margin: 0;
}

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

.cta-band h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  color: var(--on-dark);
}

.cta-band p {
  margin: 0 auto 28px;
  max-width: 560px;
  font-size: 18px;
  opacity: 0.9;
}

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

.footer-grid {
  display: grid;
  gap: 32px;
  margin-bottom: 32px;
}

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

.site-footer h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
}

.site-footer p,
.site-footer a {
  color: rgba(248, 249, 250, 0.75);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--on-dark);
}

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

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

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: rgba(248, 249, 250, 0.5);
}

.disclaimer {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(248, 249, 250, 0.45);
}
