:root {
  --bg-primary: #0C1F1A;
  --bg-secondary: #0F2A22;
  --bg-card: rgba(29, 158, 117, 0.06);
  --border-card: rgba(29, 158, 117, 0.12);
  --border-subtle: rgba(29, 158, 117, 0.15);
  --accent: #1D9E75;
  --accent-light: #5DCAA5;
  --accent-glow: rgba(29, 158, 117, 0.12);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.55);
  --text-muted: rgba(255, 255, 255, 0.35);
  --text-accent: #9FE1CB;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --sysbar-h: 26px;
  --content-narrow: 880px;
  --content-wide: 1200px;
  --content-ultra: 1440px;
  --section-px: 40px;
  --section-py: 100px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--sysbar-h) + 90px);
  -webkit-text-size-adjust: 100%;
  scrollbar-width: thin;
  scrollbar-color: rgba(29, 158, 117, 0.35) transparent;
}

::selection {
  background: rgba(29, 158, 117, 0.38);
  color: #ffffff;
  text-shadow: none;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(29, 158, 117, 0.28);
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(93, 202, 165, 0.45);
  background-clip: content-box;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: var(--sysbar-h);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(29, 158, 117, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 158, 117, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 0;
  pointer-events: none;
}

.glow-orb {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  z-index: 0;
  pointer-events: none;
  animation: orb-drift 14s ease-in-out infinite alternate;
  will-change: transform;
}

.glow-orb-2 {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(93, 202, 165, 0.06) 0%, transparent 70%);
  bottom: 100px;
  left: -200px;
  z-index: 0;
  pointer-events: none;
  animation: orb-drift 18s ease-in-out infinite alternate-reverse;
  will-change: transform;
}

@keyframes orb-drift {
  from { transform: translate(0, 0); }
  to   { transform: translate(40px, 30px); }
}

/* Subtle scanline overlay */
.scanlines {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(29, 158, 117, 0.025) 0px,
    rgba(29, 158, 117, 0.025) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: screen;
  opacity: 0.4;
}

/* ── System status bar ── */

.sysbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--sysbar-h);
  z-index: 101;
  background: rgba(8, 21, 17, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 16px;
  overflow: hidden;
  white-space: nowrap;
}

.sysbar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-light);
  box-shadow: 0 0 8px var(--accent-light);
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.85); }
}

.sysbar-label { color: var(--accent-light); font-weight: 500; }
.sysbar-sep { color: rgba(93, 202, 165, 0.3); }
.sysbar-status { color: var(--text-secondary); }

/* ── Navigation ── */

nav {
  position: fixed;
  top: var(--sysbar-h);
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background 0.3s, backdrop-filter 0.3s;
}

nav.scrolled {
  background: rgba(12, 31, 26, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: 0 var(--section-px);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: transform 0.25s;
}

.logo:hover { transform: translateX(1px); }

.logo-chevrons {
  font-family: var(--font-mono);
  font-size: 20px;
  letter-spacing: -2px;
}

.chev1 { color: #0F6E56; animation: chev-flicker 3s ease-in-out infinite; transition: text-shadow 0.3s; }
.chev2 { color: #1D9E75; opacity: 0.7; animation: chev-flicker 3s ease-in-out infinite 0.2s; transition: text-shadow 0.3s; }
.chev3 { color: #5DCAA5; animation: chev-flicker 3s ease-in-out infinite 0.4s; transition: text-shadow 0.3s; }

.logo:hover .chev1 { text-shadow: 0 0 8px rgba(15, 110, 86, 0.8); }
.logo:hover .chev2 { text-shadow: 0 0 10px rgba(29, 158, 117, 0.85); }
.logo:hover .chev3 { text-shadow: 0 0 12px rgba(93, 202, 165, 0.9); }

@keyframes chev-flicker {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

.logo-text {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 5px;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

.nav-links > li > a:not(.nav-cta) {
  position: relative;
  padding: 4px 0;
}

.nav-links > li > a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-light), transparent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease;
}

.nav-links > li > a:not(.nav-cta):hover::after,
.nav-links > li > a:not(.nav-cta):focus-visible::after {
  transform: scaleX(1);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--accent-light);
}

.nav-cta {
  font-family: var(--font-mono);
  font-size: 13px !important;
  color: var(--accent-light) !important;
  border: 1px solid rgba(93, 202, 165, 0.3);
  padding: 10px 20px;
  border-radius: 100px;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: rgba(93, 202, 165, 0.1);
  border-color: var(--accent-light);
  box-shadow: 0 0 0 4px rgba(93, 202, 165, 0.08);
}

.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-card);
  border-radius: 10px;
  cursor: pointer;
  width: 44px;
  height: 44px;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  transition: border-color 0.2s, background 0.2s;
}

.mobile-toggle:hover { border-color: rgba(93, 202, 165, 0.4); }

.mobile-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--accent-light);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.mobile-toggle.open .mobile-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-toggle.open .mobile-toggle-bar:nth-child(2) { opacity: 0; }
.mobile-toggle.open .mobile-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Hero ── */

.hero {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - var(--sysbar-h));
  display: flex;
  align-items: center;
  padding: 120px var(--section-px) 80px;
}

.hero-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  width: 100%;
}

.hero-pretitle {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent-light);
  letter-spacing: 2px;
  margin-bottom: 24px;
  opacity: 0;
  animation: fade-up 0.6s ease-out 0.1s forwards;
}

.hero-title {
  font-size: clamp(36px, 5.4vw, 88px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -1.2px;
  margin-bottom: 18px;
  max-width: 700px;
  opacity: 0;
  animation: fade-up 0.7s ease-out 0.25s forwards;
}

.hero-title .accent {
  color: var(--accent);
  position: relative;
  text-shadow: 0 0 32px rgba(29, 158, 117, 0.35);
}

.cursor {
  display: inline-block;
  width: 0.55ch;
  height: 1em;
  background: var(--accent-light);
  vertical-align: -0.12em;
  margin-left: 6px;
  animation: blink 1.05s steps(1) infinite;
  box-shadow: 0 0 10px rgba(93, 202, 165, 0.55);
}

@keyframes blink {
  0%, 50%   { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

.hero-tagline {
  font-size: clamp(18px, 1.6vw, 26px);
  font-weight: 300;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  margin-bottom: 40px;
  max-width: 720px;
  opacity: 0;
  animation: fade-up 0.7s ease-out 0.4s forwards;
}

.accent-bar {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 4px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.accent-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
  transform: translateX(-100%);
  animation: shimmer 3.2s ease-in-out infinite;
}

@keyframes shimmer {
  0%   { transform: translateX(-100%); }
  60%  { transform: translateX(200%); }
  100% { transform: translateX(200%); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fade-up 0.7s ease-out 0.55s forwards;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent);
  color: white;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  padding: 16px 32px;
  min-height: 48px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #24b888;
  transform: translateY(-1px);
  box-shadow: 0 10px 30px -8px rgba(29, 158, 117, 0.6);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 4px 14px -6px rgba(29, 158, 117, 0.5);
  transition-duration: 60ms;
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-arrow {
  font-family: var(--font-mono);
  transition: transform 0.2s;
}

.btn-primary:hover .btn-arrow { transform: translateX(3px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  font-family: var(--font-mono);
  font-size: 14px;
  padding: 14px 28px;
  min-height: 48px;
  border-radius: 100px;
  border: 1px solid rgba(93, 202, 165, 0.3);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(93, 202, 165, 0.1);
  border-color: var(--accent-light);
  box-shadow: 0 0 0 4px rgba(93, 202, 165, 0.08);
}

.btn-secondary:active {
  background: rgba(93, 202, 165, 0.18);
  transition-duration: 60ms;
}

.nav-cta:active {
  background: rgba(93, 202, 165, 0.18) !important;
  transition-duration: 60ms;
}

/* ── Sections ── */

section {
  position: relative;
  z-index: 1;
  padding: var(--section-py) var(--section-px);
}

.section-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-light);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 3vw, 52px);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.6px;
  line-height: 1.12;
}

.section-subtitle {
  font-size: clamp(16px, 1.2vw, 19px);
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 60px;
  line-height: 1.6;
}

/* ── Services ── */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.service-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 36px 28px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  transition: border-color 0.25s, transform 0.25s, background 0.25s, box-shadow 0.25s;
  overflow: hidden;
}

/* Corner bracket detail */
.service-card::before,
.service-card::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--accent-light);
  border-style: solid;
  opacity: 0;
  transition: opacity 0.25s;
}
.service-card::before {
  top: 10px; left: 10px;
  border-width: 1px 0 0 1px;
}
.service-card::after {
  bottom: 10px; right: 10px;
  border-width: 0 1px 1px 0;
}

.service-card:hover {
  border-color: rgba(29, 158, 117, 0.35);
  transform: translateY(-3px);
  background: rgba(29, 158, 117, 0.08);
  box-shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(93, 202, 165, 0.05) inset;
}

.service-card:hover::before,
.service-card:hover::after {
  opacity: 0.7;
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(29, 158, 117, 0.09);
  border: 1px solid rgba(29, 158, 117, 0.18);
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--accent-light);
  margin-bottom: 20px;
  opacity: 0.88;
  transition: opacity 0.25s, border-color 0.25s, background 0.25s, text-shadow 0.25s, transform 0.25s;
}

.service-card:hover .service-icon {
  opacity: 1;
  border-color: rgba(93, 202, 165, 0.35);
  background: rgba(29, 158, 117, 0.14);
  transform: rotate(-4deg);
  text-shadow: 0 0 14px rgba(93, 202, 165, 0.6);
}

.service-title {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--text-primary);
  text-decoration: none;
}

.service-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  text-decoration: none;
}

.section-cta {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

/* ── About ── */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 80px;
  align-items: center;
}

.about-text {
  max-width: 640px;
}

.about-text p {
  color: var(--text-secondary);
  font-size: clamp(16px, 1.05vw, 17px);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}

.stat-card:hover {
  border-color: rgba(29, 158, 117, 0.3);
  transform: translateY(-2px);
}

.stat-number {
  font-family: var(--font-mono);
  font-size: clamp(28px, 3.5vw, 36px);
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: 4px;
  filter: drop-shadow(0 0 14px rgba(93, 202, 165, 0.22));
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ── Process ── */

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.step {
  position: relative;
  padding: 28px 24px;
  border-left: 1px solid var(--border-card);
}

.step::before {
  content: '';
  position: absolute;
  top: 36px;
  left: -5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(29, 158, 117, 0.14), 0 0 14px rgba(29, 158, 117, 0.55);
}

.step-number {
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 700;
  color: rgba(29, 158, 117, 0.18);
  margin-bottom: 12px;
  letter-spacing: -1px;
}

.step-title {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Featured Integration (Finlock partnership) ── */

.partner-section {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.partner-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 40px 36px;
  overflow: hidden;
}

.partner-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-light), transparent);
  opacity: 0.45;
}

.partner-card-header {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.partner-logo {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  flex-shrink: 0;
}

.partner-logo:hover,
.partner-logo:focus-visible {
  border-color: rgba(29, 158, 117, 0.35);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
  outline: none;
}

.partner-logo img {
  display: block;
  height: 48px;
  width: auto;
}

.partner-heading {
  flex: 1;
  min-width: 240px;
}

.partner-title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.partner-tagline {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-accent);
  letter-spacing: 0.3px;
}

.partner-tagline a,
.partner-body a,
.inline-link {
  color: var(--accent-light);
  text-decoration: none;
  border-bottom: 1px dashed rgba(93, 202, 165, 0.45);
  transition: color 0.2s, border-color 0.2s;
}

.partner-tagline a:hover,
.partner-body a:hover,
.inline-link:hover,
.partner-tagline a:focus-visible,
.partner-body a:focus-visible,
.inline-link:focus-visible {
  color: #aef0d3;
  border-bottom-color: var(--accent-light);
  outline: none;
}

.partner-body {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 24px;
}

.partner-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.partner-chip {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-light);
  background: rgba(29, 158, 117, 0.08);
  border: 1px solid rgba(29, 158, 117, 0.25);
  padding: 6px 12px;
  border-radius: 999px;
}

.partner-link {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-light);
  text-decoration: none;
  padding: 10px 16px;
  border: 1px solid rgba(29, 158, 117, 0.35);
  border-radius: 10px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.partner-link:hover,
.partner-link:focus-visible {
  background: rgba(29, 158, 117, 0.12);
  border-color: var(--accent-light);
  color: #aef0d3;
  outline: none;
}

/* ── At-a-glance overview card ── */

.overview-section {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.overview-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 40px 36px;
  overflow: hidden;
}

.overview-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-light), transparent);
  opacity: 0.45;
}

.overview-card .section-label {
  margin-bottom: 18px;
}

.overview-heading {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  letter-spacing: -0.4px;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 20px;
  max-width: 820px;
}

.overview-lede {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 820px;
}

.overview-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 0;
}

.overview-fact {
  background: rgba(29, 158, 117, 0.05);
  border: 1px solid rgba(29, 158, 117, 0.15);
  border-radius: 12px;
  padding: 16px 18px;
}

.overview-fact dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 8px;
}

.overview-fact dd {
  margin: 0;
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.55;
}

@media (max-width: 640px) {
  .overview-card { padding: 28px 22px; }
  .overview-heading { font-size: 22px; }
  .overview-lede { font-size: 15px; line-height: 1.7; }
  .overview-facts { gap: 10px; }
  .overview-fact { padding: 14px 16px; }
}

/* ── Secondary pages ── */

.page-hero {
  position: relative;
  z-index: 1;
  padding: 160px var(--section-px) 60px;
  min-height: auto;
}

.breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 24px;
  padding: 6px 14px;
  background: rgba(29, 158, 117, 0.05);
  border: 1px solid var(--border-card);
  border-radius: 999px;
  line-height: 1;
}

.breadcrumbs a {
  color: var(--accent-light);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
  color: #aef0d3;
}

.breadcrumbs .crumb-sep {
  color: rgba(93, 202, 165, 0.35);
  margin: 0;
}

.page-title {
  font-size: clamp(32px, 4.2vw, 68px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -1px;
  margin-bottom: 20px;
  max-width: 900px;
}

.page-lead {
  font-size: clamp(16px, 1.4vw, 21px);
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 760px;
}

.page-region {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-light);
  letter-spacing: 0.5px;
  margin-top: -16px;
  margin-bottom: 28px;
  max-width: 760px;
  opacity: 0.85;
}

.page-hero .accent-bar {
  margin-bottom: 32px;
}

.page-hero .hero-actions {
  animation: none;
  opacity: 1;
}

/* Linked service cards on /services hub */
.service-link,
.service-link:link,
.service-link:visited,
.service-link:hover,
.service-link:active,
.service-link:focus {
  display: block;
  text-decoration: none;
  color: var(--text-primary);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.service-link *,
.service-link:visited * {
  text-decoration: none;
}

.service-link .service-icon { color: var(--accent-light); }
.service-link .service-title { color: var(--text-primary); }
.service-link .service-desc { color: var(--text-secondary); }
.service-link .service-more { color: var(--accent-light); }

.service-more {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-top: 18px;
  opacity: 0.85;
  transition: opacity 0.2s, letter-spacing 0.2s;
}

.service-link:hover .service-more,
.service-link:focus-visible .service-more {
  opacity: 1;
  letter-spacing: 1.3px;
}

/* Feature grid used on service detail pages */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.feature-block {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 28px 26px;
  transition: border-color 0.2s, background 0.2s;
}

.feature-block:hover {
  border-color: rgba(29, 158, 117, 0.3);
  background: rgba(29, 158, 117, 0.08);
}

.feature-mark {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-light);
  letter-spacing: 2px;
  margin-bottom: 14px;
  opacity: 0.85;
}

.feature-block h3 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}

.feature-block p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Darker section variant (visually breaks up long pages) */
.dark-section {
  background: rgba(0, 0, 0, 0.18);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

/* CTA band at bottom of each page */
.cta-section {
  padding: 80px var(--section-px);
  border-top: 1px solid var(--border-subtle);
}

.cta-inner {
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}

.cta-inner h2 {
  font-size: clamp(26px, 2.6vw, 44px);
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.cta-inner p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
}

/* Detailed process steps on /process */
.process-steps-detailed {
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 880px;
}

.process-steps-detailed .step {
  padding: 36px 28px;
  border-left: 1px solid var(--border-card);
}

.process-steps-detailed .step + .step {
  border-top: 0;
}

.step-detail {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed rgba(29, 158, 117, 0.2);
}

.step-detail p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 10px;
}

.step-detail p strong {
  color: var(--text-accent);
  font-weight: 500;
}

/* ── FAQ ── */

#faq {
  border-top: 1px solid var(--border-subtle);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 820px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s;
}

.faq-item[open] {
  border-color: rgba(29, 158, 117, 0.35);
  background: rgba(29, 158, 117, 0.08);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: -2px;
}

.faq-q {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0.2px;
  flex: 1;
}

.faq-icon {
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--accent-light);
  transition: transform 0.25s;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
  line-height: 1;
}

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

.faq-a {
  padding: 0 24px 22px 24px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
  margin-top: -1px;
}

.faq-item[open] .faq-a {
  animation: faq-reveal 0.28s ease-out;
}

@keyframes faq-reveal {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.faq-a p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

.faq-a a {
  color: var(--accent-light);
  text-decoration: none;
  border-bottom: 1px dashed rgba(93, 202, 165, 0.45);
}

.faq-a a:hover,
.faq-a a:focus-visible {
  color: #aef0d3;
  border-bottom-color: var(--accent-light);
}

/* ── Contact ── */

#contact {
  border-top: 1px solid var(--border-subtle);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 80px;
  align-items: start;
}

.contact-info {
  max-width: 520px;
}

.contact-info h3 {
  font-size: 24px;
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  color: var(--accent-light);
}

.contact-item-text {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--text-accent);
  text-decoration: none;
  transition: color 0.2s;
  word-break: break-all;
}

a.contact-item-text:hover,
a.contact-item-text:focus-visible {
  color: var(--accent-light);
}

.contact-item-address {
  font-style: normal;
  word-break: normal;
  line-height: 1.5;
  display: block;
}

.contact-item-sub {
  font-size: 13px;
  color: var(--text-muted);
}

.contact-item-label {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.contact-note {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.contact-note p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 36px;
  position: relative;
  overflow: hidden;
  max-width: 620px;
  width: 100%;
}

.contact-form::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-light), transparent);
  opacity: 0.35;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-light);
  letter-spacing: 1px;
  margin-bottom: 8px;
  opacity: 0.8;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: rgba(12, 31, 26, 0.6);
  border: 1px solid var(--border-card);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px; /* 16px prevents iOS zoom on focus */
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  min-height: 48px;
}

.form-group textarea {
  font-family: var(--font-mono);
  font-size: 14px;
  min-height: 140px;
  resize: vertical;
  line-height: 1.5;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(29, 158, 117, 0.18);
  background: rgba(12, 31, 26, 0.85);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235DCAA5' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}

.form-group select option {
  background: var(--bg-primary);
}

.form-submit {
  width: 100%;
  margin-top: 8px;
}

.form-message {
  text-align: center;
  padding: 14px;
  border-radius: 10px;
  margin-top: 16px;
  font-size: 14px;
  display: none;
  font-family: var(--font-mono);
  letter-spacing: 0.3px;
}

.form-message.success {
  display: block;
  background: rgba(29, 158, 117, 0.15);
  color: var(--accent-light);
  border: 1px solid rgba(29, 158, 117, 0.3);
}

.form-message.error {
  display: block;
  background: rgba(220, 53, 69, 0.15);
  color: #ff6b7a;
  border: 1px solid rgba(220, 53, 69, 0.3);
}

/* ── Contact form v2: chips, validation, counter, honeypot, draft hint ── */

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.field-hint {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  margin-left: 6px;
}

.char-counter {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.3px;
  transition: color 0.15s ease;
}
.char-counter.warn { color: #e0b44c; }
.char-counter.over { color: #ff6b7a; font-weight: 700; }

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.chip {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.2px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-card);
  background: rgba(12, 31, 26, 0.55);
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
  user-select: none;
}
.chip:hover {
  border-color: var(--accent);
  color: var(--accent-light);
}
.chip:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 2px;
}
.chip:active { transform: translateY(1px); }
.chip.active {
  background: rgba(29, 158, 117, 0.18);
  border-color: var(--accent);
  color: var(--accent-light);
  box-shadow: inset 0 0 0 1px rgba(93, 202, 165, 0.35);
}
.chip.active::before {
  content: '✓ ';
  font-weight: 700;
  opacity: 0.9;
}

.field-error {
  display: none;
  margin-top: 6px;
  color: #ff6b7a;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2px;
}
.field-error.visible { display: block; }

.form-group input.invalid,
.form-group textarea.invalid,
.form-group select.invalid {
  border-color: rgba(220, 53, 69, 0.55);
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.12);
}

/* Honeypot: visually hidden, kept accessible DOM-wise but off-screen.
   Real users never see it; bots filling every field will trip it. */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

.form-draft-hint {
  opacity: 0;
  transition: opacity 0.25s ease;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.3px;
  text-align: right;
  min-height: 16px;
}
.form-draft-hint.visible { opacity: 1; }

/* ── File uploads ── */

.file-drop {
  position: relative;
  border: 1px dashed rgba(93, 202, 165, 0.28);
  border-radius: 10px;
  background: rgba(12, 31, 26, 0.45);
  padding: 20px 18px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  cursor: pointer;
}
.file-drop:hover,
.file-drop.dragover {
  border-color: var(--accent-light);
  background: rgba(29, 158, 117, 0.07);
}
.file-drop.dragover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px -10px rgba(29, 158, 117, 0.35);
}
.file-drop input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.file-drop-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  pointer-events: none;
}
.file-drop-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(29, 158, 117, 0.12);
  border: 1px solid rgba(93, 202, 165, 0.28);
  color: var(--accent-light);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 16px;
}
.file-drop-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.file-drop-text strong {
  color: var(--text-primary);
  font-weight: 500;
}
.file-drop-browse {
  color: var(--accent-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.file-drop-hint {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3px;
  color: var(--text-muted);
}

.attachments-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.attachments-list:not(.has-files) { display: none; }

.attachment-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(29, 158, 117, 0.06);
  border: 1px solid rgba(93, 202, 165, 0.18);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}
.attachment-icon {
  color: var(--accent-light);
  font-family: var(--font-mono);
  font-size: 14px;
  opacity: 0.85;
}
.attachment-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-primary);
}
.attachment-size {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3px;
  color: var(--text-muted);
  flex: 0 0 auto;
}
.attachment-remove {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  border: 1px solid transparent;
  background: none;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.attachment-remove:hover {
  color: #ff6b7a;
  border-color: rgba(220, 53, 69, 0.35);
  background: rgba(220, 53, 69, 0.08);
}

@media (max-width: 560px) {
  .file-drop-hint { display: none; }
  .file-drop-inner { gap: 10px; }
}

/* ── Footer ── */

footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-subtle);
  padding: 32px var(--section-px);
}

.footer-inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.5px;
}

.footer-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-light);
  box-shadow: 0 0 8px var(--accent-light);
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

.footer-slogan {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-light);
  letter-spacing: 0.5px;
  opacity: 0.85;
  text-align: center;
  flex: 1 1 100%;
  order: 3;
  margin-top: 4px;
}

.footer-nap {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.4px;
  text-align: center;
  flex: 1 1 100%;
  order: 4;
  margin-top: 2px;
  opacity: 0.75;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0 10px;
  row-gap: 4px;
}

.footer-nap address {
  font-style: normal;
  display: inline;
}

.footer-nap a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nap a:hover,
.footer-nap a:focus-visible {
  color: var(--accent-light);
}

.footer-nap-sep {
  color: var(--accent);
  opacity: 0.5;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--accent-light);
}

/* ── Polish: focus-visible rings on interactive cards ── */

.service-link:focus-visible,
.partner-link:focus-visible,
.partner-logo:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 3px;
  border-radius: 16px;
}

.partner-link:focus-visible { border-radius: 10px; }
.partner-logo:focus-visible { border-radius: 12px; }

/* ── Polish: print stylesheet ── */

@media print {
  body {
    background: #ffffff;
    color: #111;
    padding-top: 0;
  }
  body::before,
  .glow-orb,
  .glow-orb-2,
  .scanlines,
  .sysbar,
  nav,
  .mobile-toggle,
  .footer-dot,
  .hero-actions,
  .form-submit,
  .cta-section,
  .nav-cta {
    display: none !important;
  }
  section,
  .hero,
  .page-hero {
    padding: 24px 0 !important;
    min-height: auto !important;
    page-break-inside: avoid;
  }
  .hero-title,
  .section-title,
  .page-title,
  .cta-inner h2,
  .partner-title,
  .faq-q,
  .step-title,
  h3 {
    color: #111 !important;
    text-shadow: none !important;
  }
  .hero-tagline,
  .section-subtitle,
  .page-lead,
  .about-text p,
  .service-desc,
  .step-desc,
  .partner-body,
  .faq-a p,
  p {
    color: #333 !important;
  }
  .section-label,
  .hero-pretitle,
  .breadcrumbs,
  .stat-number,
  .stat-label,
  .partner-chip,
  .service-more,
  .feature-mark {
    color: #1D9E75 !important;
    background: transparent !important;
    -webkit-text-fill-color: #1D9E75 !important;
    filter: none !important;
    border-color: #1D9E75 !important;
  }
  .service-card,
  .feature-block,
  .stat-card,
  .partner-card,
  .contact-form,
  .faq-item,
  .step {
    background: #fff !important;
    border: 1px solid #ccc !important;
    box-shadow: none !important;
    break-inside: avoid;
  }
  .service-icon {
    background: transparent !important;
    border: 1px solid #1D9E75 !important;
    color: #1D9E75 !important;
  }
  .accent-bar {
    background: #1D9E75 !important;
  }
  .accent-bar::after { display: none !important; }
  a { color: #1D9E75 !important; text-decoration: underline; }
  .faq-item { page-break-inside: avoid; }
  .faq-item:not([open]) .faq-a { display: block !important; }
  .faq-item .faq-icon { display: none !important; }
}

/* ── Blog ────────────────────────────────────────────────────────────────── */

/* Index: post cards grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
  margin-top: 36px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 28px 26px 26px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  text-decoration: none;
  color: var(--text-primary);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  overflow: hidden;
}

.blog-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent) 30%, var(--accent-light) 70%, transparent);
  opacity: 0.55;
  transition: opacity 0.2s;
}

.blog-card:hover,
.blog-card:focus-visible {
  border-color: rgba(29, 158, 117, 0.32);
  background: rgba(29, 158, 117, 0.09);
  transform: translateY(-2px);
}

.blog-card:hover::before,
.blog-card:focus-visible::before {
  opacity: 1;
}

.blog-card-tag {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--accent-light);
  background: rgba(29, 158, 117, 0.09);
  border: 1px solid var(--border-card);
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 18px;
}

.blog-card-title {
  font-size: 21px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.3px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.blog-card-excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 18px;
  flex: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

.blog-card-sep {
  color: rgba(93, 202, 165, 0.35);
}

.blog-card-more {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-light);
  opacity: 0.85;
  transition: opacity 0.2s, letter-spacing 0.2s;
}

.blog-card:hover .blog-card-more,
.blog-card:focus-visible .blog-card-more {
  opacity: 1;
  letter-spacing: 1.3px;
}

/* Post: hero meta + tags */
.post-hero .accent-bar {
  margin-bottom: 26px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.6px;
  color: var(--text-muted);
}

.post-meta li[aria-hidden="true"] {
  color: rgba(93, 202, 165, 0.35);
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-tags li {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--accent-light);
  background: rgba(29, 158, 117, 0.08);
  border: 1px solid var(--border-card);
  border-radius: 999px;
  padding: 4px 10px;
}

/* Post: long-form body typography */
.post-body {
  max-width: var(--content-narrow);
}

.post-body h2 {
  font-size: clamp(24px, 2.2vw, 30px);
  font-weight: 600;
  letter-spacing: -0.4px;
  margin: 48px 0 16px;
  color: var(--text-primary);
  scroll-margin-top: 120px;
}

.post-body h2:first-child {
  margin-top: 0;
}

.post-body h3 {
  font-size: clamp(18px, 1.5vw, 21px);
  font-weight: 500;
  letter-spacing: -0.2px;
  margin: 32px 0 12px;
  color: var(--text-primary);
  scroll-margin-top: 120px;
}

.post-body p {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.post-body strong {
  color: var(--text-primary);
  font-weight: 600;
}

.post-body ul,
.post-body ol {
  margin: 0 0 22px 22px;
  padding: 0;
}

.post-body ul li,
.post-body ol li {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 10px;
  padding-left: 6px;
}

.post-body ul li::marker {
  color: var(--accent-light);
}

.post-body ol li::marker {
  color: var(--accent-light);
  font-family: var(--font-mono);
  font-weight: 600;
}

.post-body a {
  color: var(--accent-light);
  text-decoration: underline;
  text-decoration-color: rgba(93, 202, 165, 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s, color 0.2s;
}

.post-body a:hover,
.post-body a:focus-visible {
  color: #aef0d3;
  text-decoration-color: var(--accent-light);
}

.post-body code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--text-accent);
  background: rgba(29, 158, 117, 0.08);
  border: 1px solid var(--border-card);
  border-radius: 6px;
  padding: 1px 6px;
}

/* ── Responsive: desktop (≥1280px) ── */

@media (min-width: 1280px) {
  :root {
    --section-px: 56px;
    --section-py: 120px;
  }

  .hero-inner { max-width: var(--content-ultra); }
  .hero-title { max-width: 860px; }
  .about-grid { gap: 96px; }
  .contact-grid { gap: 96px; }
  .services-grid { gap: 24px; }
  .process-steps { gap: 28px; }
  .service-card { padding: 40px 32px; }
  .feature-block { padding: 32px 30px; }
  .partner-card { padding: 48px 44px; }
}

/* ── Responsive: ultra-wide desktop (≥1600px) ── */

@media (min-width: 1600px) {
  :root {
    --content-wide: 1360px;
    --section-px: 72px;
    --section-py: 140px;
  }

  .hero-inner { max-width: 1680px; }
  .hero-title { max-width: 1040px; }
  .hero-tagline { max-width: 820px; }

  .section-subtitle { max-width: 720px; }

  .glow-orb { width: 760px; height: 760px; top: -260px; right: -260px; }
  .glow-orb-2 { width: 620px; height: 620px; }

  .about-grid { gap: 120px; }
  .contact-grid { gap: 120px; }

  /* Keep reading widths sane even on huge screens */
  .faq-list { max-width: 940px; }
  .process-steps-detailed { max-width: 960px; }
}

/* ── Responsive: 4K+ (≥2200px) ── */

@media (min-width: 2200px) {
  :root {
    --content-wide: 1600px;
    --section-px: 96px;
  }

  .hero-inner { max-width: 1880px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Responsive: tablet ── */

@media (max-width: 900px) {
  .about-grid { gap: 56px; }
  .contact-grid { gap: 56px; }
}

/* ── Responsive: mobile ── */

@media (max-width: 768px) {
  :root { --sysbar-h: 24px; }

  .sysbar { font-size: 10px; gap: 6px; padding: 0 10px; letter-spacing: 0.5px; }

  .nav-inner { padding: 0 20px; }
  .nav-links { display: none; }
  .mobile-toggle { display: inline-flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(8, 21, 17, 0.98);
    backdrop-filter: blur(20px);
    padding: 20px 24px;
    gap: 4px;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
  }

  .nav-links.open li {
    border-bottom: 1px solid var(--border-subtle);
  }
  .nav-links.open li:last-child { border-bottom: none; }

  .nav-links.open a {
    display: block;
    padding: 14px 4px;
    font-size: 15px;
  }

  .nav-links.open .nav-cta {
    margin-top: 8px;
    text-align: center;
    padding: 12px 20px;
  }

  .hero { padding: 100px 22px 60px; min-height: auto; }
  section { padding: 70px 22px; }

  .glow-orb { width: 360px; height: 360px; top: -120px; right: -120px; }
  .glow-orb-2 { width: 320px; height: 320px; left: -140px; bottom: 60px; }

  .hero-title { letter-spacing: -0.5px; }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100%;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .form-row { grid-template-columns: 1fr; }

  .contact-form { padding: 24px 20px; border-radius: 14px; }

  .footer-inner {
    flex-direction: column;
    gap: 14px;
    text-align: center;
    justify-content: center;
  }
  footer { padding: 28px 22px; }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .service-card { padding: 28px 22px; }

  .about-stats { gap: 14px; }
  .stat-card { padding: 22px 16px; }

  .process-steps { gap: 18px; }
  .step { padding: 22px 20px; }

  .faq-item summary { padding: 18px 18px; gap: 12px; }
  .faq-q { font-size: 15px; }
  .faq-a { padding: 14px 18px 18px; }
  .faq-a p { font-size: 14px; }

  .page-hero { padding: 130px 22px 40px; }
  .cta-section { padding: 60px 22px; }
  .feature-grid { grid-template-columns: 1fr; gap: 14px; }
  .feature-block { padding: 24px 22px; }
  .process-steps-detailed .step { padding: 24px 22px; }

  .partner-card { padding: 28px 22px; border-radius: 14px; }
  .partner-card-header { gap: 18px; margin-bottom: 16px; }
  .partner-logo { padding: 8px 10px; }
  .partner-logo img { height: 40px; }
  .partner-heading { min-width: 0; width: 100%; }
  .partner-title { font-size: 24px; }
  .partner-tagline { font-size: 13px; }
  .partner-body { font-size: 15px; line-height: 1.7; }
  .partner-chip { font-size: 11px; padding: 5px 10px; }
  .partner-link { width: 100%; justify-content: center; }

  .blog-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 28px; }
  .blog-card { padding: 24px 22px 22px; }
  .blog-card-title { font-size: 19px; }
  .post-body p,
  .post-body ul li,
  .post-body ol li { font-size: 15.5px; }
  .post-body h2 { margin-top: 36px; }
  .post-body h3 { margin-top: 26px; }
}

/* ── Responsive: small phones ── */

@media (max-width: 420px) {
  .sysbar { gap: 5px; padding: 0 8px; font-size: 9px; }
  .sysbar-status { display: none; }
  .nav-inner { padding: 0 16px; }
  .logo-text { font-size: 22px; letter-spacing: 4px; }
  .logo-chevrons { font-size: 18px; }

  .hero { padding: 90px 18px 50px; }
  section { padding: 56px 18px; }

  .hero-pretitle { font-size: 12px; letter-spacing: 1.5px; }

  .section-subtitle { margin-bottom: 40px; }

  .contact-form { padding: 22px 16px; }
  .form-group input,
  .form-group textarea,
  .form-group select { padding: 12px 14px; }

  .about-stats { grid-template-columns: 1fr 1fr; }

  .footer-links { gap: 18px; flex-wrap: wrap; justify-content: center; }

  .partner-card { padding: 24px 18px; }
  .partner-logo img { height: 36px; }
  .partner-title { font-size: 22px; }
}

/* ── Interactive tools: cost calculator & custom-vs-SaaS quiz ─────────── */

.calc-form {
  max-width: 780px;
  margin: 0 auto;
}

.calc-question {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 28px 26px 24px;
  margin-bottom: 20px;
  transition: border-color 0.2s, background 0.2s;
}

.calc-question:focus-within {
  border-color: rgba(29, 158, 117, 0.3);
  background: rgba(29, 158, 117, 0.08);
}

.calc-q-num {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-light);
  letter-spacing: 2px;
  margin-bottom: 12px;
  opacity: 0.85;
}

.calc-label {
  display: block;
  font-size: 17px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.45;
  letter-spacing: -0.15px;
}

.calc-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.calc-option {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 16px;
  background: rgba(12, 31, 26, 0.5);
  border: 1px solid var(--border-card);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  line-height: 1.5;
  font-size: 15px;
}

.calc-option:hover {
  border-color: rgba(29, 158, 117, 0.35);
  background: rgba(29, 158, 117, 0.06);
}

.calc-option input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  border: 1.5px solid var(--border-card);
  background: rgba(12, 31, 26, 0.7);
  cursor: pointer;
  position: relative;
  transition: border-color 0.15s, background 0.15s;
}

.calc-option input[type="radio"]:checked {
  border-color: var(--accent);
  background: var(--accent);
}

.calc-option input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  background: #ffffff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.calc-option input[type="radio"]:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 2px;
}

.calc-option:has(input[type="radio"]:checked) {
  border-color: var(--accent);
  background: rgba(29, 158, 117, 0.1);
}

.calc-option span {
  color: var(--text-secondary);
  flex: 1;
}

.calc-option:has(input[type="radio"]:checked) span {
  color: var(--text-primary);
}

.calc-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

.calc-warn {
  background: rgba(255, 179, 71, 0.12);
  border: 1px solid rgba(255, 179, 71, 0.35);
  color: #ffcf8a;
  padding: 12px 16px;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  margin-top: 12px;
  text-align: center;
  letter-spacing: 0.3px;
}

.calc-result {
  max-width: 900px;
  margin: 48px auto 0;
  animation: fade-up 0.4s ease-out;
}

.calc-band {
  background: linear-gradient(180deg, rgba(29, 158, 117, 0.1), rgba(29, 158, 117, 0.04));
  border: 1px solid rgba(29, 158, 117, 0.35);
  border-radius: 18px;
  padding: 36px 32px;
  box-shadow: 0 10px 40px rgba(29, 158, 117, 0.08);
}

.calc-band-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-light);
  letter-spacing: 2px;
  opacity: 0.85;
  margin-bottom: 10px;
  text-transform: lowercase;
}

.calc-band-price {
  font-family: var(--font-mono);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  color: var(--accent-light);
  letter-spacing: -0.5px;
  margin-bottom: 6px;
  line-height: 1.15;
}

.calc-band-price-quiz {
  font-family: var(--font-body);
  font-size: clamp(22px, 2.4vw, 32px);
  letter-spacing: -0.3px;
  color: var(--text-primary);
}

.calc-band-timeline {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 18px;
  letter-spacing: 0.3px;
}

.calc-band-timeline strong {
  color: var(--accent-light);
  font-weight: 500;
}

.calc-band-headline {
  font-size: 17px;
  color: var(--text-primary);
  line-height: 1.55;
  margin-bottom: 24px;
  font-weight: 400;
}

.calc-band-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 20px 0 24px;
}

.calc-band-col h4 {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-light);
  letter-spacing: 1.2px;
  margin-bottom: 12px;
  font-weight: 500;
  text-transform: uppercase;
}

.calc-band-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.calc-band-col li {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 8px 0 8px 20px;
  position: relative;
  line-height: 1.55;
  border-bottom: 1px solid var(--border-subtle);
}

.calc-band-col li:last-child {
  border-bottom: none;
}

.calc-band-col li::before {
  content: "›";
  position: absolute;
  left: 0;
  top: 8px;
  color: var(--accent-light);
  font-family: var(--font-mono);
  font-weight: 700;
}

.calc-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.calc-band-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  font-style: italic;
}

@media (max-width: 720px) {
  .calc-question { padding: 22px 18px 20px; }
  .calc-label { font-size: 16px; }
  .calc-option { padding: 11px 14px; font-size: 14.5px; }
  .calc-band { padding: 26px 20px; }
  .calc-band-grid { grid-template-columns: 1fr; gap: 18px; }
  .calc-actions { flex-direction: column; }
  .calc-actions .btn-primary,
  .calc-actions .btn-secondary { width: 100%; }
  .calc-band-actions { flex-direction: column; }
  .calc-band-actions .btn-primary,
  .calc-band-actions .btn-secondary { width: 100%; text-align: center; }
}
