/* ========================================
   Kadima Payments — Styles
   Dark fintech / Apple-level polish
   Green-blue gradient accent system
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --white: #ffffff;
  --black: #000000;

  /* Dark backgrounds */
  --bg-primary: #0b0b0b;
  --bg-secondary: #0f1114;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --bg-elevated: #141418;
  --bg-surface: #1a1a1f;

  /* Text */
  --text-primary: #ffffff;
  --text-secondary: #cfd6dd;
  --text-muted: #7a8490;
  --text-dim: rgba(255, 255, 255, 0.4);

  /* Kadima accent colors */
  --green: #31be72;
  --blue: #27a9e2;
  --gradient: linear-gradient(90deg, #31be72, #27a9e2);
  --gradient-135: linear-gradient(135deg, #31be72, #27a9e2);
  --gradient-border: linear-gradient(90deg, #00c47d, #00b3cc, #3d8eff);

  /* Glows */
  --glow-green: rgba(49, 190, 114, 0.18);
  --glow-blue: rgba(39, 169, 226, 0.15);
  --glow-soft: 0 0 18px rgba(0, 255, 255, 0.05);
  --glow-hover: 0 0 28px rgba(0, 255, 255, 0.12);

  /* Borders */
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.14);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 22px 48px rgba(0, 0, 0, 0.55);

  --nav-height: 64px;
  --container-max: 1200px;
  --section-padding: 120px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* --- Container --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  text-decoration: none;
}

.btn-sm {
  padding: 10px 22px;
  font-size: 14px;
}

.btn-lg {
  padding: 18px 36px;
  font-size: 16px;
}

.btn-primary {
  background: var(--gradient);
  color: var(--black);
  box-shadow: 0 8px 30px rgba(39, 169, 226, 0.25);
  animation: glow-pulse 3s ease-in-out infinite;
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 40px rgba(39, 169, 226, 0.4),
              0 0 20px rgba(49, 190, 114, 0.15);
  animation: none;
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 8px 30px rgba(39, 169, 226, 0.25); }
  50% { box-shadow: 0 8px 30px rgba(39, 169, 226, 0.4), 0 0 20px rgba(49, 190, 114, 0.15); }
}

.btn-outline {
  background: rgba(0, 0, 0, 0.27);
  color: var(--text-primary);
  border: 1.2px solid transparent;
  background-clip: padding-box;
  position: relative;
}
.btn-outline::before {
  content: '';
  position: absolute;
  inset: -1.2px;
  border-radius: 10px;
  background: var(--gradient-border);
  z-index: -1;
}
.btn-outline:hover {
  background: rgba(0, 0, 0, 0.45);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--green);
  padding-left: 0;
}
.btn-ghost:hover {
  gap: 12px;
}

.btn-white {
  background: var(--white);
  color: var(--bg-primary);
  font-weight: 700;
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.15);
}

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-color: var(--border-hover);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav.scrolled {
  background: rgba(11, 11, 11, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  z-index: 10;
}

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

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-links .mobile-apply {
  display: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.nav-links a.active {
  color: var(--white);
  position: relative;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
  border-radius: 1px;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--white);
  transition: all 0.3s;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + 40px) 24px 80px;
  overflow: hidden;
  background: var(--bg-primary);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-gradient {
  position: absolute;
  top: -20%;
  right: -15%;
  width: 70%;
  height: 70%;
  background: radial-gradient(ellipse, rgba(39, 169, 226, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 100%);
}

.floating-geo {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(49, 190, 114, 0.08);
  pointer-events: none;
}

.geo-1 {
  width: 400px;
  height: 400px;
  top: 10%;
  right: -5%;
  animation: float-slow 20s ease-in-out infinite;
}

.geo-2 {
  width: 200px;
  height: 200px;
  bottom: 20%;
  left: -3%;
  border-color: rgba(39, 169, 226, 0.06);
  animation: float-slow 15s ease-in-out infinite reverse;
}

.geo-3 {
  width: 120px;
  height: 120px;
  top: 25%;
  left: 15%;
  border-radius: var(--radius-lg);
  transform: rotate(45deg);
  border-color: rgba(49, 190, 114, 0.05);
  animation: float-slow 18s ease-in-out infinite;
}

.geo-4 {
  width: 80px;
  height: 80px;
  bottom: 30%;
  right: 20%;
  border-radius: var(--radius-md);
  transform: rotate(30deg);
  border-color: rgba(39, 169, 226, 0.05);
  animation: float-slow 12s ease-in-out infinite reverse;
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-20px) rotate(var(--r, 0deg)); }
}

.geo-3 { --r: 45deg; }
.geo-4 { --r: 30deg; }

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(49, 190, 114, 0.1);
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
  border-radius: 980px;
  border: 1px solid rgba(49, 190, 114, 0.15);
  margin-bottom: 24px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding-bottom: .1em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 580px;
  margin: 20px auto 0;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 36px;
}

.hero-friction {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 12px;
  opacity: 0.7;
  letter-spacing: 0.02em;
}

.hero-metrics {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-top: 60px;
}

.metric {
  text-align: center;
}

.metric-value {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--white);
}

.metric-suffix {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-muted);
}

.metric-label {
  display: block;
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 4px;
}

.metric-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* --- Hero Visual (Payment Flow Card) --- */
.hero-visual {
  position: relative;
  z-index: 1;
  margin-top: 60px;
  width: 100%;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.payment-flow-card {
  background: var(--bg-elevated);
  border: 1px solid transparent;
  background-clip: padding-box;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl), var(--glow-soft);
  position: relative;
}

/* Full gradient border */
.payment-flow-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  background: var(--gradient-border);
  z-index: -1;
  opacity: 0.6;
}

.pf-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.pf-dots {
  display: flex;
  gap: 6px;
}

.pf-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.pf-dots span:first-child { background: #ff5f57; }
.pf-dots span:nth-child(2) { background: #ffbd2e; }
.pf-dots span:last-child { background: #28ca42; }

.pf-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.pf-body {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 32px 24px;
}

.pf-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.pf-node-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all 0.3s;
}

.pf-node-mid .pf-node-icon {
  background: rgba(49, 190, 114, 0.1);
  border-color: rgba(49, 190, 114, 0.2);
  color: var(--green);
  box-shadow: 0 0 20px rgba(49, 190, 114, 0.1);
}

.pf-node-icon-emblem {
  padding: 8px;
}

.pf-emblem {
  width: 24px;
  height: auto;
  display: block;
}

.pf-node-end .pf-node-icon {
  background: rgba(39, 169, 226, 0.1);
  border-color: rgba(39, 169, 226, 0.2);
  color: var(--blue);
  box-shadow: 0 0 20px rgba(39, 169, 226, 0.1);
}

.pf-node span {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
}

.pf-line {
  width: 80px;
  height: 2px;
  background: var(--border);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 23px; /* Center of 48px icon = 24px, minus 1px for half of 2px line */
}

.pf-line-pulse {
  position: absolute;
  top: 0;
  left: -30%;
  width: 30%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--green), var(--blue), transparent);
  animation: line-pulse 2.5s ease-in-out infinite;
}

.pf-line:nth-of-type(4) .pf-line-pulse {
  animation-delay: 0.6s;
}

@keyframes line-pulse {
  0% { left: -30%; }
  100% { left: 100%; }
}

.pf-footer {
  display: flex;
  justify-content: space-between;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.pf-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pf-stat-label {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pf-stat-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.pf-stat-success {
  color: var(--green);
}

/* --- Diagonal Divider --- */
.diagonal-divider {
  width: 100%;
  height: 100px;
  background: var(--bg-secondary);
  clip-path: polygon(0 0, 100% 60%, 100% 100%, 0 100%);
  margin-top: -1px;
  position: relative;
  z-index: 2;
}

.diagonal-divider::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
  opacity: 0.3;
  z-index: 3;
}

.diagonal-reverse {
  clip-path: polygon(0 60%, 100% 0, 100% 100%, 0 100%);
  background: var(--bg-primary);
}

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

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 72px;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gradient-border);
  margin: 20px auto 0;
  border-radius: 2px;
  opacity: 0.6;
}

.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.section-tag-light {
  color: rgba(255, 255, 255, 0.5);
  background: none;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.5);
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-top: 16px;
  line-height: 1.65;
}

/* --- Tension Section (Post-Hero) --- */
.tension-section {
  background: var(--bg-primary);
  padding-top: 0;
  padding-bottom: 80px;
  position: relative;
}

.tension-divider {
  width: 120px;
  height: 2px;
  margin: 0 auto 72px;
  background: linear-gradient(90deg, var(--green), var(--blue));
  border-radius: 2px;
}

.tension-inner {
  max-width: 900px;
  margin: 0 auto;
}

.tension-headline {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text-primary);
  text-align: center;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.tension-sub {
  text-align: center;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 600px;
  margin: 0 auto 48px;
}

.tension-list {
  max-width: 640px;
  margin: 0 auto 40px;
}

.tension-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.tension-item:last-child {
  border-bottom: none;
}

.tension-marker {
  width: 6px;
  height: 6px;
  min-width: 6px;
  margin-top: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--blue));
}

.tension-item p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.tension-closing {
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-muted);
  opacity: 0.55;
  margin-bottom: 48px;
  font-style: italic;
}

.tension-cta {
  text-align: center;
  padding-top: 8px;
}

.tension-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--green);
  text-decoration: none;
  transition: color 0.2s;
}

.tension-link:hover {
  text-decoration: underline;
  color: var(--blue);
}

@media (max-width: 768px) {
  .tension-headline {
    font-size: 1.75rem;
  }
  .tension-divider {
    margin-bottom: 48px;
  }
  .tension-section {
    padding-bottom: 56px;
  }
}


/* --- Solutions Grid --- */
.section-solutions {
  background: var(--bg-secondary);
  padding-top: 80px;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.solution-card {
  background: var(--bg-card);
  border: 1px solid transparent;
  background-clip: padding-box;
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.solution-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  background: var(--gradient-border);
  z-index: -1;
  opacity: 0.25;
  transition: opacity 0.35s;
}

.solution-card:hover {
  transform: translateY(-6px);
  background: rgba(20, 22, 28, 0.97);
  border-color: var(--border-hover);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.solution-card:hover::before {
  opacity: 0.40;
}

.solution-card:hover h3 { color: var(--text-primary); }
.solution-card:hover p { color: var(--text-secondary); }

.solution-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(49, 190, 114, 0.08);
  color: var(--green);
  border-radius: var(--radius-md);
  border: 1px solid rgba(49, 190, 114, 0.12);
  margin-bottom: 20px;
}

.solution-card h3 {
  margin-bottom: 10px;
}

.solution-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.solution-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
  transition: gap 0.2s, color 0.2s;
}

.solution-link:hover {
  gap: 10px;
  color: var(--blue);
}

/* --- Infrastructure Section --- */
.section-infra {
  background: var(--bg-primary);
}

.infra-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.infra-features {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 40px;
}

.infra-feature {
  display: flex;
  gap: 16px;
}

.infra-feature-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(39, 169, 226, 0.08);
  color: var(--blue);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(39, 169, 226, 0.12);
  flex-shrink: 0;
}

.infra-feature h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.infra-feature p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* --- Infrastructure Dashboard Visual --- */
.infra-dashboard {
  background: var(--bg-elevated);
  border: 1px solid transparent;
  background-clip: padding-box;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl), 0 0 60px rgba(49, 190, 114, 0.05);
  position: relative;
}

.infra-dashboard::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  background: var(--gradient-border);
  z-index: -1;
  opacity: 0.5;
}

.id-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
}

.id-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.id-live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-dim);
}

.id-live-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
  box-shadow: 0 0 8px var(--glow-green);
}

.id-chart {
  padding: 24px 24px 8px;
}

.id-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 140px;
}

.id-bar {
  flex: 1;
  height: var(--h);
  background: linear-gradient(180deg, var(--green), rgba(39, 169, 226, 0.4));
  border-radius: 4px 4px 0 0;
  position: relative;
  animation: bar-grow 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  transform-origin: bottom;
  box-shadow: 0 0 12px rgba(49, 190, 114, 0.15);
}

.id-bar span {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: var(--text-dim);
}

@keyframes bar-grow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

.id-stats {
  display: flex;
  justify-content: space-between;
  padding: 20px 24px;
  margin-top: 20px;
  border-top: 1px solid var(--border);
}

.id-stat-label {
  display: block;
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.id-stat-value {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-top: 4px;
}

/* --- Industries --- */
.section-industries {
  background: var(--bg-secondary);
  padding-top: 80px;
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.industry-card {
  background: var(--bg-card);
  border: 1px solid transparent;
  background-clip: padding-box;
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
}

.industry-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  background: var(--gradient-border);
  z-index: -1;
  opacity: 0.2;
  transition: opacity 0.35s;
}

.industry-card:hover {
  transform: translateY(-6px);
  background: rgba(20, 22, 28, 0.97);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.industry-card:hover::before {
  opacity: 0.35;
}

.industry-card:hover h3 { color: var(--text-primary); }
.industry-card:hover p { color: var(--text-secondary); }

.industry-number {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.06);
  line-height: 1;
  margin-bottom: 16px;
  transition: all 0.35s;
}

.industry-card:hover .industry-number {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.industry-card h3 {
  margin-bottom: 10px;
}

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

/* --- CTA Section --- */
.section-cta {
  padding: 0;
  background: var(--bg-primary);
}

.cta-block {
  background: var(--bg-surface);
  border: 1px solid transparent;
  background-clip: padding-box;
  border-radius: var(--radius-xl);
  padding: 80px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-block::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 29px;
  background: var(--gradient-border);
  z-index: -1;
  opacity: 0.4;
}

.cta-geo {
  position: absolute;
  border: 1px solid rgba(49, 190, 114, 0.06);
  border-radius: 50%;
  pointer-events: none;
}

.cta-geo-1 {
  width: 300px;
  height: 300px;
  top: -80px;
  right: -60px;
}

.cta-geo-2 {
  width: 200px;
  height: 200px;
  bottom: -50px;
  left: -40px;
  border-color: rgba(39, 169, 226, 0.06);
}

.cta-block h2 {
  position: relative;
  z-index: 1;
}

.cta-block p {
  position: relative;
  z-index: 1;
  max-width: 540px;
  margin: 16px auto 0;
  color: var(--text-muted);
  line-height: 1.65;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 36px;
  position: relative;
  z-index: 1;
}

/* --- Contact Section --- */
.section-contact {
  background: var(--bg-primary);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 15px;
}

.contact-item svg {
  color: var(--text-dim);
  flex-shrink: 0;
}

/* --- Form --- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-primary);
  transition: all 0.2s;
  outline: none;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(49, 190, 114, 0.15),
              0 0 12px rgba(49, 190, 114, 0.08);
  background: rgba(255, 255, 255, 0.06);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%237a8490' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-consent {
  flex-direction: row !important;
  gap: 0 !important;
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px !important;
  font-weight: 400 !important;
  color: var(--text-dim) !important;
  line-height: 1.5;
  cursor: pointer;
}

.consent-label input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--green);
}

.form-file-input {
  font-size: 13px !important;
  padding: 10px 14px !important;
  border-style: dashed !important;
}

/* Hide fields with data-show when not matching */
.form-group[data-show] {
  transition: opacity 0.2s, max-height 0.3s;
}
.form-group[data-show].field-hidden {
  display: none !important;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

/* --- Footer --- */
.footer {
  background: var(--bg-secondary);
  color: var(--text-muted);
  padding: 80px 0 40px;
  border-top: 1px solid var(--border);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.footer-brand .nav-logo {
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  max-width: 260px;
  color: var(--text-dim);
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 12px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--green);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  font-size: 13px;
  color: var(--text-dim);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  color: var(--text-dim);
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: var(--green);
}

/* --- Integrations Marquee --- */
.section-integrations {
  background: var(--bg-primary);
  padding-bottom: 60px;
  overflow: hidden;
}

.marquee-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 4px 0;
}

/* Edge fade masks */
.marquee-wrap::before,
.marquee-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.marquee-wrap::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-primary), transparent);
}

.marquee-wrap::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg-primary), transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 40s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-content {
  display: flex;
  gap: 16px;
  padding-right: 16px;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: all 0.3s;
  flex-shrink: 0;
}

.marquee-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  box-shadow: var(--glow-hover);
  color: var(--white);
}

.mi-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  flex-shrink: 0;
}

.marquee-logo {
  height: 28px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.7;
  transition: opacity 0.3s;
}

.marquee-item:hover .marquee-logo {
  opacity: 1;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.integrations-cta {
  text-align: center;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.integrations-cta p {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 480px;
}

/* --- Trust Signals --- */
.section-trust {
  background: var(--bg-primary);
  padding-top: 40px;
  padding-bottom: 80px;
}

.trust-layout {
  display: flex;
  align-items: flex-start;
  gap: 60px;
  padding: 40px 48px;
  background: var(--bg-card);
  border: 1px solid transparent;
  background-clip: padding-box;
  border-radius: var(--radius-lg);
  position: relative;
}

/* Full gradient border */
.trust-layout::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  background: var(--gradient-border);
  z-index: -1;
  opacity: 0.4;
}

.trust-block {
  flex: 1;
}

.trust-block h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.trust-badges {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 14px;
}

.trust-badge-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(49, 190, 114, 0.08);
  border: 1px solid rgba(49, 190, 114, 0.12);
  border-radius: var(--radius-sm);
  color: var(--green);
  flex-shrink: 0;
}

.trust-badge-title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.trust-badge-desc {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 1px;
}

.trust-divider {
  width: 1px;
  align-self: stretch;
  background: var(--border);
  flex-shrink: 0;
}

.trust-networks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.network-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  height: 38px;
  transition: all 0.25s;
}

.network-badge svg {
  height: 18px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.network-badge .network-logo {
  height: 24px;
  width: auto;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}

.network-badge:hover {
  border-color: var(--border-hover);
  box-shadow: var(--glow-soft);
  background: var(--bg-surface);
}

/* Trust responsive */
@media (max-width: 768px) {
  .trust-layout {
    flex-direction: column;
    gap: 32px;
    padding: 28px 24px;
  }

  .trust-divider {
    width: 100%;
    height: 1px;
  }
}

/* --- Inverted (Light) Section --- */
.section-inverted {
  background: #f5f5f7;
  padding: 120px 0;
}

.section-inverted .cta-block {
  background: #ffffff;
  border: 1px solid transparent;
  background-clip: padding-box;
}

.section-inverted .cta-block::before {
  opacity: 0.35;
}

.section-inverted .section-tag {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-inverted .cta-block h2 {
  color: #1d1d1f;
}

.section-inverted .cta-block p {
  color: #6e6e73;
}

.section-inverted .btn-white {
  background: #1d1d1f;
  color: #ffffff;
}

.section-inverted .btn-white:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.section-inverted .btn-ghost-light {
  color: #1d1d1f;
  border-color: rgba(0, 0, 0, 0.15);
  background: rgba(0, 0, 0, 0.04);
}

.section-inverted .btn-ghost-light:hover {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.25);
  color: #1d1d1f;
}

.section-inverted .cta-geo {
  border-color: rgba(49, 190, 114, 0.1);
}

/* --- Footer Social Links --- */
.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text-dim);
  transition: all 0.25s;
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
  color: var(--green);
}

.footer-address {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
  margin-top: 12px;
}

/* --- Industry Page Styles --- */
.industry-hero {
  padding: calc(var(--nav-height) + 60px) 0 80px;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.industry-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(39, 169, 226, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.industry-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-border);
  opacity: 0.4;
}

.industry-hero .container {
  position: relative;
  z-index: 1;
}

.industry-hero .section-tag {
  display: inline-block;
  margin-bottom: 16px;
}

.industry-hero h1 {
  margin-bottom: 20px;
}

.industry-hero .section-desc {
  max-width: 600px;
}

.industry-hero .hero-sub {
  margin-left: 0;
  margin-right: 0;
}

.industry-hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid transparent;
  background-clip: padding-box;
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  background: var(--gradient-border);
  z-index: -1;
  opacity: 0.2;
}

.feature-card::after {
  content: '';
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 0;
  width: 3px;
  background: var(--gradient-border);
  border-radius: 2px;
  opacity: 0.5;
}

.feature-card h3 {
  margin-bottom: 12px;
}

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

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(49, 190, 114, 0.08);
  color: var(--green);
  border-radius: var(--radius-md);
  border: 1px solid rgba(49, 190, 114, 0.12);
  margin-bottom: 20px;
}

.industry-integrations {
  padding: 80px 0;
  background: var(--bg-secondary);
}

.industry-integrations-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 40px;
}

.integration-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all 0.25s;
}

.integration-item:hover {
  border-color: var(--border-hover);
  box-shadow: var(--glow-soft);
}

.integration-item img {
  height: 24px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.integration-item span {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.industry-cta {
  padding: 80px 0;
  background: var(--bg-primary);
  text-align: center;
}

.industry-cta h2 {
  margin-bottom: 16px;
}

.industry-cta p {
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 32px;
  line-height: 1.65;
}

/* --- Animations --- */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

[data-animate="fade-left"] {
  transform: translateX(-40px);
}

[data-animate="fade-right"] {
  transform: translateX(40px);
}

[data-animate="scale-in"] {
  transform: scale(0.92);
}

[data-animate="blur-in"] {
  filter: blur(8px);
  transform: translateY(10px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              filter 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-animate="fade-left"].visible,
[data-animate="fade-right"].visible,
[data-animate="scale-in"].visible {
  opacity: 1;
  transform: none;
}

[data-animate="blur-in"].visible {
  opacity: 1;
  transform: none;
  filter: none;
}

/* Counter pop */
.metric-value.counted {
  animation: counter-pop 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes counter-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* ============================
   Legal Pages (Privacy, Terms)
   ============================ */
.legal-hero {
  padding: calc(var(--nav-height) + 60px) 0 40px;
  text-align: center;
}

.legal-hero::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: var(--gradient-border);
  margin: 24px auto 0;
  border-radius: 2px;
  opacity: 0.5;
}

.legal-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 8px;
}

.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px 120px;
}

.legal-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 48px 0 16px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  color: var(--text-primary);
}

.legal-content h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 24px 0 8px;
  color: var(--text-secondary);
}

.legal-content p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 16px;
}

.legal-content ul, .legal-content ol {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content a {
  color: var(--green);
  text-decoration: underline;
}

.legal-last-updated {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ============================
   Blog Page
   ============================ */
.blog-hero {
  padding: calc(var(--nav-height) + 60px) 0 40px;
  text-align: center;
}

.blog-hero::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: var(--gradient-border);
  margin: 24px auto 0;
  border-radius: 2px;
  opacity: 0.5;
}

.blog-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 8px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 48px 24px 120px;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid transparent;
  background-clip: padding-box;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.blog-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  background: var(--gradient-border);
  z-index: -1;
  opacity: 0.15;
  transition: opacity 0.35s;
}

.blog-card:hover {
  transform: translateY(-6px);
  background: rgba(20, 22, 28, 0.97);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.blog-card:hover::before {
  opacity: 0.30;
}

.blog-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

.blog-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
  margin-bottom: 10px;
}

.blog-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.3;
}

.blog-card-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
  margin-top: 16px;
  transition: gap 0.2s;
}

.blog-card:hover .blog-card-link {
  gap: 10px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .solutions-grid,
  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .infra-layout,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 80px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: #0b0b0b;
    background: rgba(11, 11, 11, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 1000;
  }

  .nav-links.open {
    display: flex;
  }

  /* Force nav fully opaque when mobile menu is open */
  .nav:has(.nav-links.open) {
    background: #0b0b0b !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: none !important;
  }

  /* Lock body scroll when mobile menu open */
  body.nav-open {
    overflow: hidden;
  }

  .nav-links a {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
  }

  /* Apply Now CTA in mobile menu */
  .nav-links .mobile-apply {
    display: inline-flex !important;
    background: linear-gradient(135deg, #31be72, #27a9e2);
    color: #000;
    font-weight: 700;
    font-size: 18px;
    padding: 16px 48px;
    border-radius: 12px;
    text-decoration: none;
    margin-top: 16px;
    box-shadow: 0 0 30px rgba(49, 190, 114, 0.3);
    animation: pulse-glow 2s ease-in-out infinite;
  }

  .nav-actions .btn {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding-top: calc(var(--nav-height) + 20px);
    min-height: auto;
    padding-bottom: 60px;
  }

  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-metrics {
    gap: 24px;
    flex-wrap: wrap;
  }

  .metric-value {
    font-size: 1.5rem;
  }

  .solutions-grid,
  .industries-grid {
    grid-template-columns: 1fr;
  }

  .cta-block {
    padding: 48px 24px;
    border-radius: var(--radius-lg);
  }

  .cta-actions {
    flex-direction: column;
  }

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

  .footer-columns {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .pf-body {
    flex-direction: column;
    gap: 0;
  }

  .pf-line {
    width: 2px;
    height: 40px;
    align-self: center;
    margin-top: 0;
  }

  .pf-line-pulse {
    width: 100%;
    height: 30%;
    left: 0;
    top: -30%;
    background: linear-gradient(180deg, transparent, var(--green), var(--blue), transparent);
    animation: line-pulse-v 2.5s ease-in-out infinite;
  }

  @keyframes line-pulse-v {
    0% { top: -30%; }
    100% { top: 100%; }
  }
}

@media (max-width: 480px) {
  .hero-metrics {
    flex-direction: column;
    gap: 16px;
  }

  .metric-divider {
    width: 40px;
    height: 1px;
  }

  .footer-columns {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .industry-hero-actions {
    flex-direction: column;
  }
}

/* ============================
   RapidPayLink Section
   ============================ */
.section-rpl {
  padding: 120px 0;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.rpl-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.rpl-text .section-tag {
  margin-bottom: 20px;
}

.rpl-logo {
  height: 40px;
  width: auto;
  margin-bottom: 24px;
  display: block;
}

.rpl-text h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}

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

.rpl-features {
  list-style: none;
  padding: 0;
  margin: 0 0 36px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.rpl-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.rpl-features li svg {
  width: 18px;
  height: 18px;
  color: var(--green);
  flex-shrink: 0;
}

.rpl-actions {
  display: flex;
  gap: 16px;
}

.rpl-visual {
  position: relative;
}

.rpl-visual img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.rpl-visual::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  background: var(--gradient-border);
  z-index: -1;
  opacity: 0.3;
}

@media (max-width: 768px) {
  .rpl-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .rpl-features {
    grid-template-columns: 1fr;
  }

  .rpl-actions {
    flex-direction: column;
  }
}

/* ============================
   Login Portal Page
   ============================ */
.login-hero {
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
}

.login-hero h1 {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.login-hero .hero-sub {
  max-width: 500px;
  margin: 0 auto;
}

.login-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.login-tab {
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  transition: color 0.25s;
  font-family: 'Manrope', sans-serif;
}

.login-tab:hover {
  color: var(--text-primary);
}

.login-tab.active {
  color: var(--text-primary);
}

.login-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px 2px 0 0;
}

.login-tab-content {
  display: none;
}

.login-tab-content.active {
  display: block;
}

.login-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.login-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid transparent;
  background-clip: padding-box;
  border-radius: var(--radius-lg);
  position: relative;
  text-decoration: none;
  color: inherit;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  background: var(--gradient-border);
  z-index: -1;
  opacity: 0.15;
  transition: opacity 0.35s;
}

.login-card:hover {
  transform: translateY(-4px);
  background: rgba(20, 22, 28, 0.97);
  box-shadow: var(--glow-hover);
}

.login-card:hover::before {
  opacity: 0.5;
}

.login-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.login-card-emblem {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity 0.25s;
}

.login-card:hover .login-card-emblem {
  opacity: 1;
}

.login-card-title svg {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  transition: color 0.25s, transform 0.25s;
}

.login-card:hover .login-card-title svg {
  color: var(--green);
  transform: translateX(3px);
}

.login-card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.sandbox-section {
  max-width: 800px;
  margin: 48px auto 0;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.sandbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  margin-bottom: 0;
  transition: margin 0.3s;
}

.sandbox-header.open {
  margin-bottom: 24px;
}

.sandbox-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
}

.sandbox-header svg {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: transform 0.3s;
}

.sandbox-header.open svg {
  transform: rotate(180deg);
}

.sandbox-body {
  display: none;
}

.sandbox-body.open {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.sandbox-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: all 0.25s;
}

.sandbox-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--glow-soft);
}

.sandbox-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.sandbox-card-desc {
  font-size: 12px;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .login-grid {
    grid-template-columns: 1fr;
  }

  .login-tabs {
    flex-direction: column;
    border-bottom: none;
    gap: 4px;
  }

  .login-tab {
    border-bottom: 1px solid var(--border);
  }

  .login-tab.active::after {
    left: 0;
    right: auto;
    top: 0;
    bottom: 0;
    width: 2px;
    height: auto;
    border-radius: 0 2px 2px 0;
  }
}

/* ============================
   RapidPayLink Dedicated Page
   ============================ */
.rpl-hero {
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
}

.rpl-hero .rpl-logo {
  height: 48px;
  margin: 0 auto 24px;
}

.rpl-hero h1 {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.rpl-hero .hero-sub {
  max-width: 600px;
  margin: 0 auto 32px;
}

.rpl-hero .container {
  position: relative;
  z-index: 1;
}

.rpl-hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.rpl-dashboard-section {
  padding: 80px 0;
  background: var(--bg-secondary);
}

.rpl-dashboard-wrap {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.rpl-dashboard-wrap img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.rpl-dashboard-wrap::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  background: var(--gradient-border);
  z-index: -1;
  opacity: 0.3;
}

.rpl-audience-section {
  padding: 100px 0;
}

.rpl-audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.rpl-audience-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid transparent;
  background-clip: padding-box;
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
}

.rpl-audience-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  background: var(--gradient-border);
  z-index: -1;
  opacity: 0.15;
}

.rpl-audience-card h3 {
  margin-bottom: 12px;
}

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

.rpl-audience-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(49, 190, 114, 0.08);
  color: var(--green);
  border-radius: var(--radius-md);
  border: 1px solid rgba(49, 190, 114, 0.12);
  margin: 0 auto 20px;
}

@media (max-width: 768px) {
  .rpl-hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .rpl-audience-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   APPLICATION FORM STYLES
   ============================================================ */

/* Application Hero */
.app-hero {
  padding: 160px 0 40px;
  text-align: center;
}

.app-hero-content {
  max-width: 640px;
  margin: 0 auto;
}

.app-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}

.app-hero-sub {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
}
.app-hero-resume {
  margin-top: 12px;
}
.app-hero-resume a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s;
}
.app-hero-resume a:hover {
  color: var(--accent);
}

/* Application Layout */
.section-application {
  padding-top: 20px;
  padding-bottom: 80px;
}

.app-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: start;
}

/* Sidebar */
.app-sidebar {
  position: sticky;
  top: 100px;
}

.app-progress {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.app-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.app-step:hover {
  background: rgba(255, 255, 255, 0.03);
}

.app-step.active {
  background: rgba(49, 190, 114, 0.10);
  border-color: rgba(49, 190, 114, 0.25);
  border-left: 3px solid var(--green);
  box-shadow: 0 0 12px rgba(49, 190, 114, 0.08);
}

.app-step.completed .app-step-num {
  background: var(--gradient-border);
  border-color: transparent;
  color: #fff;
}

.app-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all 0.2s;
}

.app-step.active .app-step-num {
  border-color: var(--green);
  color: var(--green);
  background: rgba(49, 190, 114, 0.1);
  box-shadow: 0 0 8px rgba(49, 190, 114, 0.15);
}

.app-step.active .app-step-title {
  color: var(--text-primary);
}

.app-step-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.app-step-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.app-step-desc {
  font-size: 12px;
  color: var(--text-muted);
}

.app-save-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.app-save-status.save-success { color: var(--green); }
.app-save-status.save-error { color: #ef4444; }
.app-save-status.save-pending { color: var(--blue); }

/* Agent Referral Banner */
.agent-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  margin-bottom: 16px;
  background: rgba(0, 102, 255, 0.08);
  border: 1px solid rgba(0, 102, 255, 0.2);
  border-radius: var(--radius-md);
  color: var(--blue);
  font-size: 0.9rem;
}
.agent-banner strong {
  color: var(--text-primary);
}

/* Form Card */
.app-form-card {
  background: var(--bg-elevated);
  border: 1px solid transparent;
  background-clip: padding-box;
  border-radius: var(--radius-lg);
  padding: 48px;
  position: relative;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.3);
}

.app-form-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  background: var(--gradient-border);
  z-index: -1;
  opacity: 0.25;
}

.app-form-card::after {
  content: '';
  position: absolute;
  top: 48px;
  left: 0;
  bottom: 48px;
  width: 3px;
  background: var(--gradient-135);
  border-radius: 0 3px 3px 0;
  opacity: 0.6;
}

/* Progress bar at top of form */
.app-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 20px 20px 0 0;
  overflow: hidden;
}

.app-progress-fill {
  height: 100%;
  background: var(--gradient);
  border-radius: 20px 20px 0 0;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
  box-shadow: 0 0 8px rgba(49, 190, 114, 0.3);
}

.app-form-step {
  display: none;
  opacity: 0;
}

.app-form-step.active {
  display: block;
  animation: step-enter 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.app-form-step.active.step-back {
  animation: step-enter-back 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes step-enter {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes step-enter-back {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

.app-form-step h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.app-form-intro {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 32px;
}

.app-form-subhead {
  font-size: 16px;
  font-weight: 600;
  margin: 28px 0 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.app-form-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* Form Rows */
.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

/* Field Error */
.field-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.field-match-error {
  display: block;
  color: #ef4444;
  font-size: 12px;
  margin-top: 4px;
  font-weight: 500;
}

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

/* Section header inside form steps */
.form-section-header {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Required badge for documents */
.doc-required-badge {
  display: inline-block;
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
}

/* Upload zone status */
.app-upload-zone .upload-success {
  color: var(--green);
  font-size: 12px;
  font-weight: 500;
  margin-top: 4px;
}

.app-upload-zone .upload-error {
  color: #ef4444;
  font-size: 12px;
  font-weight: 500;
  margin-top: 4px;
}

.app-upload-zone .upload-progress {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  margin-top: 4px;
}

@media (max-width: 600px) {
  .form-row-4 {
    grid-template-columns: 1fr 1fr;
  }
}

/* Multi-Principal Entries */
.principal-entry {
  position: relative;
  padding: 24px;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.25s;
}

.principal-entry:hover {
  border-color: var(--border-hover);
}

.principal-entry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.principal-entry-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.principal-ownership-badge {
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  background: rgba(151, 210, 42, 0.1);
  padding: 3px 10px;
  border-radius: 20px;
}

.principal-remove-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #ef4444;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  transition: all 0.2s;
}

.principal-remove-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
}

.principal-management-row {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}

/* ACH Conditional Section */
.ach-conditional-section {
  margin-top: 24px;
  padding: 24px;
  background: rgba(1, 126, 255, 0.04);
  border: 1px solid rgba(1, 126, 255, 0.15);
  border-radius: var(--radius-md);
}

.checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}

/* Form Actions */
.app-form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.app-next-btn svg,
.app-prev-btn svg {
  vertical-align: middle;
}

/* MCC Search */
.mcc-search-wrap {
  position: relative;
}

.mcc-results {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #1a1d23;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  max-height: 220px;
  overflow-y: auto;
  z-index: 100;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}

.mcc-result-item {
  display: flex;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.15s;
  font-size: 14px;
}

.mcc-result-item:hover {
  background: rgba(49, 190, 114, 0.06);
}

.mcc-code {
  color: var(--green);
  font-weight: 600;
  flex-shrink: 0;
  width: 48px;
}

.mcc-desc {
  color: var(--text-muted);
}

.mcc-result-empty {
  padding: 14px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

/* Upload Zone */
.app-upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 12px;
}

.app-upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 32px 20px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  color: var(--text-muted);
}

.app-upload-zone:hover,
.app-upload-zone.drag-over {
  border-color: var(--green);
  background: rgba(49, 190, 114, 0.04);
  color: var(--green);
}

.app-upload-zone.has-file {
  border-color: var(--green);
  border-style: solid;
  background: rgba(49, 190, 114, 0.06);
}

.app-upload-zone.has-file span {
  color: var(--green);
  font-weight: 600;
}

.app-upload-zone span {
  font-size: 14px;
  font-weight: 500;
}

.app-upload-zone small {
  font-size: 12px;
  opacity: 0.6;
}

.app-upload-input {
  display: none;
}

/* Bank Note */
.app-bank-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(49, 190, 114, 0.04);
  border: 1px solid rgba(49, 190, 114, 0.1);
  border-radius: var(--radius-md);
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.app-bank-note svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--green);
}

/* Review */
.app-review {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 28px;
}

.app-review-section {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.app-review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
}

.app-review-header h3 {
  font-size: 15px;
  font-weight: 600;
}

.app-review-edit {
  background: none;
  border: none;
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.app-review-edit:hover {
  text-decoration: underline;
}

.app-review-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 16px 20px;
  gap: 12px 24px;
}

.app-review-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

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

.app-review-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  word-break: break-word;
}

/* Consent Checkbox */
.app-consent {
  margin-bottom: 8px;
}

.app-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.app-checkbox input[type="checkbox"] {
  display: none;
}

.app-checkbox-mark {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  margin-top: 2px;
  position: relative;
  transition: all 0.15s;
}

.app-checkbox input:checked + .app-checkbox-mark {
  background: var(--gradient-border);
  border-color: transparent;
}

.app-checkbox input:checked + .app-checkbox-mark::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Success State */
.app-success {
  text-align: center;
  padding: 40px 0;
}

.app-success-icon {
  color: var(--green);
  margin-bottom: 20px;
}

.app-success h2 {
  margin-bottom: 12px;
}

.app-success p {
  color: var(--text-muted);
  max-width: 420px;
  margin: 0 auto 8px;
  line-height: 1.7;
}

.app-success-id {
  font-size: 14px;
  margin-top: 20px;
  margin-bottom: 28px;
}

.app-success-id strong {
  color: var(--green);
  font-family: monospace;
}

/* Spinner */
.app-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-left: 8px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Toast */
.app-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s;
  pointer-events: none;
  font-family: var(--font);
}

.app-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.app-toast-error {
  background: #ef4444;
  color: #fff;
}

.app-toast-success {
  background: var(--green);
  color: #fff;
}

.app-toast-info {
  background: var(--blue);
  color: #fff;
}

/* ─── IP Block Modal ────────────────────────────────────── */
.ip-block-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.3s ease;
  overflow: hidden;
}

.ip-block-overlay.visible {
  opacity: 1;
}

.ip-block-modal {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-xl);
}

.ip-block-icon {
  margin-bottom: 20px;
}

.ip-block-title {
  color: #ef4444;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.ip-block-body {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 28px;
}

.ip-block-actions {
  margin-bottom: 20px;
}

.ip-block-help {
  color: var(--text-muted);
  font-size: 13px;
}

.ip-block-help a {
  color: var(--blue);
  text-decoration: none;
}

.ip-block-help a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .ip-block-modal {
    padding: 32px 24px;
  }

  .ip-block-title {
    font-size: 20px;
  }
}

/* Resume Card */
.resume-card {
  max-width: 480px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.resume-or {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  margin: 20px 0;
  position: relative;
}

.resume-or::before,
.resume-or::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 20px);
  height: 1px;
  background: var(--border);
}

.resume-or::before { left: 0; }
.resume-or::after { right: 0; }

.resume-found,
.resume-not-found {
  text-align: center;
  padding: 20px 0;
}

.resume-found svg { color: var(--green); margin-bottom: 16px; }
.resume-not-found svg { color: #ef4444; margin-bottom: 16px; }

.resume-found h3,
.resume-not-found h3 {
  margin-bottom: 12px;
}

.resume-found p,
.resume-not-found p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

.resume-hint {
  margin-top: 12px;
  font-size: 13px !important;
  opacity: 0.7;
}

.resume-not-found a {
  color: var(--green);
  text-decoration: underline;
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .app-layout {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    position: static;
  }

  .app-progress {
    flex-direction: row;
    overflow-x: auto;
    gap: 2px;
    padding-bottom: 8px;
  }

  .app-step {
    flex-direction: column;
    text-align: center;
    padding: 10px;
    min-width: 80px;
  }

  .app-step-desc {
    display: none;
  }

  .app-form-card {
    padding: 28px 20px;
  }

  .app-upload-grid {
    grid-template-columns: 1fr;
  }

  .app-review-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 600px) {
  .app-hero {
    padding: 110px 0 16px;
  }

  .app-hero h1 {
    font-size: clamp(1.25rem, 5vw, 1.75rem);
  }

  .app-hero-content p {
    font-size: 14px;
  }

  .app-form-card {
    padding: 20px 16px;
  }

  .app-form-card h2 {
    font-size: clamp(1.1rem, 4vw, 1.5rem);
  }

  .app-form-intro {
    font-size: 13px;
  }

  .form-group label {
    font-size: 13px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 10px 12px;
    font-size: 14px;
  }

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

  .app-step {
    min-width: 64px;
    padding: 6px 4px;
  }

  .app-step-num {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .app-step-title {
    font-size: 10px;
  }

  .app-progress {
    scroll-snap-type: x mandatory;
  }

  .app-step {
    scroll-snap-align: center;
  }

  .app-form-actions {
    flex-direction: column;
    gap: 12px;
  }

  .app-form-actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* ============================
   Back Link (Industry + Blog)
   ============================ */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 16px 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 24px;
}

.back-link:hover {
  color: var(--green);
  border-color: rgba(49, 190, 114, 0.3);
  background: rgba(49, 190, 114, 0.06);
  gap: 12px;
}

/* ============================
   Blog Post Pages
   ============================ */
.blog-post-hero {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  margin-top: var(--nav-height);
}

.blog-post-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-post-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 11, 11, 0.3) 0%, rgba(11, 11, 11, 0.95) 100%);
}

.blog-post-header {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: -120px auto 0;
  padding: 0 24px;
}

.blog-post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.blog-post-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.blog-post-category {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blog-post-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
}

.blog-post-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.blog-post-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 48px 0 16px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  color: var(--text-primary);
}

.blog-post-content h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.blog-post-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 24px 0 8px;
  color: var(--text-secondary);
}

.blog-post-content p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 16px;
}

.blog-post-content ul, .blog-post-content ol {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 16px;
  padding-left: 24px;
}

.blog-post-content li {
  margin-bottom: 8px;
}

.blog-post-content a {
  color: var(--green);
  text-decoration: underline;
}

.blog-post-content blockquote {
  border-left: 3px solid;
  border-image: var(--gradient-border) 1;
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--bg-card);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-secondary);
  font-style: italic;
}

.blog-post-content strong {
  color: var(--text-primary);
}

.blog-related {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px 120px;
}

.blog-related h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.blog-related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  .blog-post-hero { height: 280px; }
  .blog-post-header { margin-top: -80px; }
  .blog-related-grid { grid-template-columns: 1fr; }
}

/* ============================
   FAQ Page
   ============================ */
.faq-hero {
  padding: calc(var(--nav-height) + 60px) 0 40px;
  text-align: center;
  background: var(--bg-primary);
}

.faq-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.faq-hero p {
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.faq-category {
  margin-bottom: 40px;
}

.faq-category h3 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

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

.faq-question:hover {
  color: var(--green);
}

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

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding-bottom: 20px;
}

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

.faq-answer a {
  color: var(--green);
  text-decoration: none;
}

.faq-answer a:hover {
  text-decoration: underline;
}

.faq-cta {
  text-align: center;
  padding: 60px 24px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.faq-cta h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 12px;
}

.faq-cta p {
  color: var(--text-muted);
  margin-bottom: 24px;
}
