:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --accent: #16a34a;
  --accent-dark: #15803d;
  --hero-tint-top: rgba(245, 247, 250, 0.24);
  --hero-tint-bottom: rgba(245, 247, 250, 0.78);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  overflow-x: hidden;
}

.container {
  width: min(1160px, 92%);
  margin: 0 auto;
}

.bg-orb {
  position: fixed;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.24;
  animation: floatOrb 12s ease-in-out infinite;
}

.orb-1 { top: -120px; right: -100px; background: #4ade80; }
.orb-2 { bottom: -130px; left: -100px; background: #38bdf8; animation-delay: -6s; }

@keyframes floatOrb {
  0%, 100% { transform: translateY(0) translateX(0) scale(1); }
  50% { transform: translateY(-14px) translateX(8px) scale(1.05); }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
  position: sticky;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  font-size: 19px;
  letter-spacing: 0.2px;
}

.logo-img { height: 34px; width: auto; display: block; }
.logo-dark { display: none; }

.nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.nav a, .footer-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.nav a:hover, .footer-nav a:hover { color: var(--text); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  z-index: 80;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.nav-toggle:hover {
  transform: translateY(-1px);
  border-color: #94a3b8;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.14);
}

.nav-toggle .burger-icon {
  width: 18px;
  height: 14px;
  position: relative;
  display: inline-block;
}

.nav-toggle .burger-icon::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  box-shadow: 0 6px 0 currentColor, 0 12px 0 currentColor;
}

.lang-dd { position: relative; }
.lang-btn {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  min-width: 58px;
  height: 40px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
}
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 150px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
  padding: 6px;
  display: none;
  z-index: 60;
}
.lang-menu.open { display: block; }
.lang-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--text);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 14px;
}
.lang-item:hover { background: rgba(148, 163, 184, 0.14); }

.theme-toggle {
  border: 1px solid var(--line);
  background: var(--surface);
  width: 40px;
  height: 40px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.theme-toggle:hover { transform: translateY(-1px) scale(1.03); border-color: #94a3b8; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 11px 16px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.24);
}
.btn-primary:hover { background: var(--accent-dark); }

.btn-secondary {
  background: #fff;
  color: var(--text);
  border-color: var(--line);
}
.btn-secondary:hover { background: #f8fafc; border-color: #cbd5e1; }

.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--hero-tint-top) 0%, var(--hero-tint-bottom) 78%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 90px 0 68px;
}

/* Stats section background video (behind widgets) */
#stats {
  position: relative;
  overflow: hidden;
}

.stats-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: brightness(1.12) saturate(1.05);
  transform: scale(1.04);
  z-index: 0;
  pointer-events: none;
}

.stats-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(9, 13, 24, 0.25) 0%,
    rgba(9, 13, 24, 0.55) 70%,
    rgba(9, 13, 24, 0.72) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.stats-container {
  position: relative;
  z-index: 2;
}

body.theme-dark .stats-video-overlay {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.25) 0%,
    rgba(0, 0, 0, 0.62) 70%,
    rgba(0, 0, 0, 0.78) 100%
  );
}

.eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 15px;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(6px);
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 6vw, 54px);
  max-width: 980px;
}

.lead {
  max-width: 860px;
  color: var(--muted);
  margin-bottom: 22px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.trust-line {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 820px;
  color: #1e293b;
  font-size: 14px;
}

.trust-line li {
  position: relative;
  padding: 10px 12px 10px 38px;
  border-radius: 14px;
  border: 1px solid #cfe9d8;
  background: linear-gradient(120deg, rgba(220, 252, 231, 0.85), rgba(186, 230, 253, 0.7));
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  font-weight: 600;
  animation: pulseChip 6.4s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
}

.trust-line li:nth-child(2) { animation-delay: 0.5s; }
.trust-line li:nth-child(3) { animation-delay: 1s; }
.trust-line li:nth-child(4) { animation-delay: 1.5s; }

.trust-line li::before {
  content: "✦";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #16a34a, #0ea5e9);
}

@keyframes pulseChip {
  0%, 100% { transform: translateY(0); box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06); }
  50% { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08); }
}

.section { padding: 74px 0; }
.section-alt { background: #edf2f7; }

h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.15;
}

.section-header {
  margin-bottom: 30px;
  max-width: 920px;
}

.section-lead {
  margin: 0 0 24px;
  color: var(--muted);
  max-width: 920px;
}

.section-stats-cta {
  margin: 0 0 8px;
}

.section-stats-cta .btn {
  display: inline-flex;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 6px 22px rgba(2, 8, 23, 0.04);
  height: 100%;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
  position: relative;
  z-index: 1;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 34px rgba(2, 8, 23, 0.1);
  border-color: #cbd5e1;
}

.card h3 { margin-top: 0; margin-bottom: 10px; }
.card p { color: var(--muted); }
.card ul, .card ol { margin: 0 0 12px 20px; color: var(--muted); }
.card-column { display: flex; flex-direction: column; }
.card-column .card-actions { margin-top: auto; padding-top: 10px; }
.card-note { margin: 0 0 12px; font-size: 14px; }
.article-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.article-link-more {
  display: inline-block;
  margin-top: 10px;
  font-weight: 700;
  color: var(--accent-dark);
}

.article-page-main {
  padding: 56px 0 74px;
}
.article-wrap {
  max-width: 900px;
  margin: 0 auto;
}
.article-content {
  font-size: 17px;
  line-height: 1.72;
}
.article-content h2 {
  font-size: clamp(23px, 3.2vw, 32px);
  margin-top: 28px;
}
.article-content ul,
.article-content ol {
  margin: 0 0 18px 22px;
}
.article-content li {
  margin-bottom: 8px;
}
.article-back {
  margin-bottom: 16px;
}
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}
.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}
.breadcrumbs a:hover {
  color: var(--text);
}

.badge {
  display: inline-block;
  margin-bottom: 10px;
  color: #0f5132;
  background: #c7f7db;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
}

.card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.strategy-actions {
  flex-wrap: nowrap;
}

.strategy-actions .btn {
  flex: 1 1 0;
  min-height: 42px;
  padding: 10px 12px;
  font-size: 13px;
  white-space: nowrap;
}

.widgets img {
  max-width: 100%;
  height: auto;
  display: block;
}

.widget-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 210px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid var(--line);
}

.faq-wrap {
  max-width: 900px;
}

details summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
details summary::-webkit-details-marker { display: none; }
details p { margin-top: 12px; margin-bottom: 0; }
.faq-wrap details + details { margin-top: 14px; }

.disclaimer {
  margin-top: 22px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 12px 14px;
  color: #334155;
  background: #f8fafc;
}

.section-cta .cta {
  background: #ecfdf3;
  border: 1px solid #bbf7d0;
  border-radius: 24px;
  padding: 36px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 42px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 12px;
}

.site-footer p {
  color: var(--muted);
  margin: 0;
}

.cursor-aura {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  position: fixed;
  left: 0;
  top: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(22, 163, 74, 0.2) 0%, rgba(22, 163, 74, 0) 70%);
  z-index: 3;
  transition: width 0.25s ease, height 0.25s ease, background 0.25s ease;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

body.theme-dark {
  --bg: #0b1220;
  --surface: #121b2d;
  --text: #e5edf9;
  --muted: #9fb1cc;
  --line: #23324a;
  --accent: #22c55e;
  --accent-dark: #16a34a;
  --hero-tint-top: rgba(9, 13, 24, 0.35);
  --hero-tint-bottom: rgba(9, 13, 24, 0.76);
}

body.theme-dark .section-alt { background: #10192a; }
body.theme-dark .site-header { background: rgba(10, 16, 29, 0.84); }
body.theme-dark .disclaimer { background: #0f1a2e; border-color: #2a3b57; color: #c6d4ea; }
body.theme-dark .btn-secondary { background: #10192a; border-color: #2a3b57; color: #dce7f6; }
body.theme-dark .btn-secondary:hover { background: #15213a; border-color: #39537c; }
body.theme-dark .logo-light { display: none; }
body.theme-dark .logo-dark { display: block; }
body.theme-dark .badge { background: #14532d; color: #ffffff; }
body.theme-dark .section-cta .cta { background: #10261b; border-color: #1f4d37; }
body.theme-dark .section-cta .cta p { color: #b9cfbf; }
body.theme-dark .eyebrow {
  background: rgba(15, 23, 42, 0.9);
  border-color: #334155;
  color: #f8fafc;
  box-shadow: 0 8px 22px rgba(2, 8, 23, 0.35);
}
body.theme-dark .trust-line li {
  color: #d6e7ff;
  border-color: #28503d;
  background: linear-gradient(120deg, rgba(20, 83, 45, 0.9), rgba(30, 58, 138, 0.68));
}
body.theme-dark .trust-line li::before {
  background: linear-gradient(135deg, #22c55e, #38bdf8);
}

body.theme-dark .nav-toggle {
  background: rgba(18, 27, 45, 0.9);
  border-color: #334155;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
}

body.theme-dark .nav-toggle:hover {
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.35);
  border-color: #475569;
}

@media (max-width: 980px) {
  .nav-wrap { flex-wrap: wrap; align-items: flex-start; }
  .nav-toggle { display: inline-flex; }
  .nav { display: none; width: 100%; }
  .nav.open {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.18);
    z-index: 80;
    width: min(520px, 100%);
    margin-left: auto;
  }
  .nav a { font-size: 15px; padding: 6px 0; }
  .grid-4, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding: 64px 0; }
}

@media (max-width: 680px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .trust-line { grid-template-columns: 1fr; }
  .section-cta .cta { padding: 24px; }
  .hero-actions .btn { width: 100%; }
  .header-actions .btn { display: none; }
  .cursor-aura { display: none; }
  .stats-video { opacity: 0.28; }
  .strategy-actions { flex-wrap: wrap; }
  .strategy-actions .btn { flex: 1 1 100%; }
}
