:root {
  color-scheme: dark;
  --bg: #08080a;
  --text: #fafafa;
  --muted: #a1a1aa;
  --muted-2: #d4d4d8;
  --border: rgba(255, 255, 255, 0.1);
  --border-2: rgba(255, 255, 255, 0.16);
  --card-bg: rgba(255, 255, 255, 0.035);
  --section-dark-bg: #050506;
  --accent: #ef1338;
  --accent-tint: rgba(239, 19, 56, 0.13);
  --accent-wash: rgba(239, 19, 56, 0.3);
  --font-display: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --tracking-heading: 0;
  --radius-card: 8px;
  --radius-input: 8px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f7f8;
  --text: #111114;
  --muted: #5f6068;
  --muted-2: #303038;
  --border: rgba(17, 17, 20, 0.12);
  --border-2: rgba(17, 17, 20, 0.18);
  --card-bg: rgba(255, 255, 255, 0.78);
  --section-dark-bg: #ffffff;
  --accent-tint: rgba(239, 19, 56, 0.1);
  --accent-wash: rgba(239, 19, 56, 0.24);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img, svg { display: block; max-width: 100%; }

.container, .container-sm {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.container-sm { width: min(860px, calc(100% - 40px)); }

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px);
}

.nav-inner {
  width: min(1180px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo { width: 156px; height: auto; }
:root[data-theme="light"] .brand-logo { filter: invert(1); }

.nav-links { gap: 8px; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nav-link:hover, .nav-link.active { color: var(--text); }

.service-menu-wrap { position: relative; }
.service-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 250px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--section-dark-bg);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}
.service-menu-wrap:hover .service-menu,
.service-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.service-menu-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-radius: 6px;
  color: var(--muted-2);
  font-size: 13px;
  text-decoration: none;
}
.service-menu-link:hover { background: var(--card-bg); color: var(--text); }
.service-menu-link span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.theme-toggle, .hb-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle-mobile, .hb-btn { display: none; }
.hb-line {
  width: 15px;
  height: 1px;
  background: currentColor;
  display: block;
  margin: 2px 0;
}

.mobile-menu {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}
.mobile-menu.open { display: block; }
.mobile-menu-link { display: block; text-decoration: none; }

.section { padding: 88px 0; }
.section-border { border-top: 1px solid var(--border); }
.section-dark { background: var(--section-dark-bg); }
.page-hero, .home-hero {
  position: relative;
  overflow: hidden;
  min-height: 440px;
}
.page-hero { padding: 132px 0 88px; }
.page-hero-inner { position: relative; z-index: 1; text-align: center; }

.bg-grid {
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
}
.glow-top, .glow-center {
  position: absolute;
  pointer-events: none;
  filter: blur(70px);
  background: radial-gradient(circle, rgba(239, 19, 56, 0.2), transparent 60%);
}
.glow-top {
  width: 520px;
  height: 220px;
  top: -90px;
  left: 50%;
  transform: translateX(-50%);
}
.glow-center {
  width: 580px;
  height: 320px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: var(--tracking-heading);
  color: var(--text);
  margin: 0;
}
.display-hero { font-size: clamp(42px, 7vw, 82px); line-height: 0.98; }
.display-xl { font-size: clamp(38px, 6vw, 72px); line-height: 1; }
.display-lg { font-size: clamp(30px, 4vw, 52px); line-height: 1.08; }
.display-md { font-size: clamp(24px, 3vw, 34px); }
.page-hero-title { margin-bottom: 20px; }
.page-hero-lead { margin: 0 auto; max-width: 720px; }

.body-lg, .body-md, .body-sm {
  color: var(--muted-2);
  line-height: 1.65;
  margin: 0;
}
.body-lg { font-size: clamp(17px, 2vw, 20px); }
.body-md { font-size: 16px; }
.body-sm { font-size: 14px; color: var(--muted); }

.eyebrow {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-input);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.btn-lg { min-height: 46px; padding: 12px 20px; }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-secondary, .btn-card-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-2);
}
.btn-secondary:hover, .btn-card-outline:hover { border-color: var(--accent-wash); }

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--card-bg);
}
.card-accent { border-color: var(--accent-wash); }
.tag, .badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}
.quote { color: var(--text); line-height: 1.45; margin: 0; }

.grid-2col { gap: 48px; }
.feature-grid-2 { border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; }
.feature-cell { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-heading-centered { text-align: center; margin-bottom: 42px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  color: var(--text);
  cursor: pointer;
}
.faq-body {
  display: none;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  padding: 0 0 18px;
}
.faq-item.open .faq-body, .faq-body.open { display: block; }
.faq-pb { padding-bottom: 4px; }

.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 60;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
}

.fade-up { animation: fadeUp 0.5s ease both; }
.delay-1 { animation-delay: 0.05s; }
.delay-2 { animation-delay: 0.1s; }
.delay-3 { animation-delay: 0.15s; }
.delay-4 { animation-delay: 0.2s; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .nav-links { display: none !important; }
  .theme-toggle-mobile, .hb-btn { display: inline-flex; }
  .nav-inner { height: 66px; }
  .brand-logo { width: 136px; }
  .section { padding: 64px 0; }
  .page-hero { padding: 112px 0 68px; }
  .grid-2col, .faq-2col { grid-template-columns: 1fr !important; gap: 28px !important; }
  .home-principles-grid { grid-template-columns: 1fr !important; }
  .display-lg[style*="white-space:nowrap"],
  .home-hero-title span { white-space: normal !important; }
  .hero-pillar-item { min-width: 100% !important; }
  .btn-stack { flex-direction: column; }
  .btn-stack .btn { width: 100%; }
}

@media (max-width: 560px) {
  .container, .container-sm, .nav-inner, .mobile-menu { width: min(100% - 28px, 1120px); }
  .display-hero { font-size: clamp(36px, 13vw, 54px); }
  .page-hero-lead { font-size: 16px; }
}
