:root {
  --bg-deep: #0b0f19;
  --bg-card: rgba(30, 37, 53, 0.6);
  --bg-card-solid: #1a2030;
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-em: rgba(52, 211, 153, 0.3);
  --border-vi: rgba(167, 139, 250, 0.25);

  --em-400: #34d399;
  --em-500: #10b981;
  --em-600: #059669;
  --vi-400: #a78bfa;
  --vi-500: #8b5cf6;
  --vi-600: #7c3aed;
  --amber: #fbbf24;
  --red-soft: rgba(239, 68, 68, 0.12);
  --red-border: rgba(239, 68, 68, 0.2);

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #475569;

  --radius-card: 20px;
  --radius-btn: 14px;
  --radius-xl: 24px;

  --shadow-em: 0 0 32px rgba(52, 211, 153, 0.25);
  --shadow-vi: 0 0 28px rgba(139, 92, 246, 0.2);
  --shadow-card: 0 24px 48px rgba(0, 0, 0, 0.45);

  --font-display: "Syne", sans-serif;
  --font-body: "Plus Jakarta Sans", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-deep);
  color: var(--text-primary);
  overflow-x: hidden;
  min-height: 100vh;
}

/* Noise grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 180px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

/* Override Bootstrap defaults */
a {
  text-decoration: none;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
}

/* MESH BLOBS */
.mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

/* GLASS CARD */
.glass {
  background: var(--bg-card);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
}

/* BADGE PILL */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    rgba(52, 211, 153, 0.12),
    rgba(139, 92, 246, 0.12)
  );
  border: 1px solid rgba(52, 211, 153, 0.28);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
}
.badge-pill.vi {
  background: linear-gradient(
    135deg,
    rgba(167, 139, 250, 0.12),
    rgba(52, 211, 153, 0.08)
  );
  border-color: rgba(167, 139, 250, 0.28);
  color: var(--vi-400);
}
.badge-pill.amber {
  background: rgba(251, 191, 36, 0.08);
  border-color: rgba(251, 191, 36, 0.22);
  color: var(--amber);
}

/* Pulse dot */
.dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--em-400);
  display: inline-block;
  animation: dotPulse 1.8s ease-in-out infinite;
}

/* TYPOGRAPHY */
.display-hero {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -0.02em;
  color: #fff;
}
.display-hero .em {
  background: linear-gradient(90deg, var(--em-400), #6ee7b7, var(--vi-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.display-hero .dim {
  color: #94a3b8;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}
.grad-text {
  background: linear-gradient(90deg, var(--em-400), var(--vi-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-em {
  color: var(--em-400) !important;
}
.text-vi {
  color: var(--vi-400) !important;
}
.text-mute {
  color: var(--text-muted) !important;
}
.text-sec {
  color: var(--text-secondary) !important;
}

/* NAVBAR */
.cd-nav {
  position: relative;
  z-index: 20;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(11, 15, 25, 0.7);
  backdrop-filter: blur(16px);
}
.cd-nav .brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--em-400), var(--em-600));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 18px rgba(52, 211, 153, 0.3);
  flex-shrink: 0;
}
.cd-nav .brand-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}
.cd-nav .brand-text span {
  color: var(--em-400);
}
.nav-cta {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
}
.nav-cta:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
}

/* BUTTONS */
.btn-em {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 0.9rem;
  font-family: var(--font-body);
  color: #fff;
  background: linear-gradient(135deg, var(--em-500), var(--em-600));
  border: none;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
  box-shadow: 0 8px 24px rgba(52, 211, 153, 0.28);
  text-decoration: none;
}
.btn-em:hover {
  background: linear-gradient(135deg, var(--em-400), var(--em-500));
  box-shadow: var(--shadow-em);
  color: #fff;
  transform: translateY(-1px);
}
.btn-em:active {
  transform: scale(0.97);
}

.btn-vi {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 0.9rem;
  font-family: var(--font-body);
  color: #fff;
  background: linear-gradient(135deg, var(--vi-600), var(--vi-500));
  border: none;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease;
  box-shadow: var(--shadow-vi);
  text-decoration: none;
  width: 100%;
  justify-content: center;
}
.btn-vi:hover {
  background: linear-gradient(135deg, var(--vi-500), var(--vi-400));
  color: #fff;
  transform: translateY(-1px);
}
.btn-vi:active {
  transform: scale(0.97);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 0.9rem;
  font-family: var(--font-body);
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  width: 100%;
  justify-content: center;
}
.btn-ghost:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.btn-submit {
  width: 100%;
  padding: 16px 24px;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 1rem;
  font-family: var(--font-body);
  color: #fff;
  background: linear-gradient(135deg, #10b981, #059669);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition:
    transform 0.15s,
    box-shadow 0.2s;
  box-shadow: 0 8px 28px rgba(52, 211, 153, 0.3);
}
.btn-submit:hover {
  background: linear-gradient(135deg, var(--em-400), var(--em-500));
  box-shadow: var(--shadow-em);
  transform: translateY(-1px);
}
.btn-submit:active {
  transform: scale(0.97);
}

/* 
HERO
     */
.hero-section {
  position: relative;
  z-index: 10;
  padding: 64px 0 80px;
}

/* Squiggly underline */
.squig-wrap {
  position: relative;
  display: inline-block;
}
.squig-wrap svg {
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
}

/* Floating mockup card */
.mockup-card {
  animation: floatY 4s ease-in-out infinite;
}
.mockup-top-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}
.dot-red {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.65);
}
.dot-amber {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(251, 191, 36, 0.65);
}
.dot-green {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.65);
}
.mockup-filename {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-family: monospace;
  margin-left: 6px;
}

/* Paper note simulation */
.paper-note {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, #1e2535, #1a1f2e);
  border: 1px solid rgba(255, 255, 255, 0.06);
  aspect-ratio: 4/3;
  margin-bottom: 12px;
}
.paper-lines {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 23px,
      rgba(255, 255, 255, 0.05) 23px,
      rgba(255, 255, 255, 0.05) 24px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 50px,
      rgba(255, 255, 255, 0.015) 50px,
      rgba(255, 255, 255, 0.015) 51px
    );
}
.paper-content {
  position: absolute;
  inset: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.paper-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.paper-line {
  height: 9px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.22);
}
.paper-line.em {
  background: rgba(52, 211, 153, 0.38);
}
.paper-line.red {
  background: rgba(239, 68, 68, 0.45);
}
.paper-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
  margin: 2px 0;
}
.paper-error-row {
  background: rgba(239, 68, 68, 0.13);
  border-radius: 8px;
  padding: 6px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.scan-line-overlay {
  position: absolute;
  inset: 0;
}
.scan-line-overlay::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--em-400), transparent);
  box-shadow:
    0 0 20px var(--em-400),
    0 0 40px rgba(52, 211, 153, 0.4);
  animation: scanLine 1.8s ease-in infinite;
}
.ai-processing-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(167, 139, 250, 0.3);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--vi-400);
}

/* Mockup result */
.mockup-result {
  background: rgba(15, 20, 32, 0.8);
  border-radius: 14px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.result-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.result-check {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--em-400), var(--em-600));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.result-cell {
  background: rgba(26, 32, 48, 0.8);
  border-radius: 10px;
  padding: 10px 6px;
  text-align: center;
}
.result-num {
  font-family: var(--font-display);
  font-size: 1.1rem;
  text-shadow: 0 0 20px rgba(52, 211, 153, 0.5);
}
.result-lbl {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 3px;
}

/* Social proof */
.avatar-stack {
  display: flex;
}
.avatar-item {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  margin-left: -8px;
}
.avatar-item:first-child {
  margin-left: 0;
}

/* STATS STRIP */
.stats-strip {
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.018);
  backdrop-filter: blur(10px);
  padding: 28px 0;
  margin-bottom: 80px;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 0 28px rgba(52, 211, 153, 0.4);
  line-height: 1;
}
.stat-lbl {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* UPLOAD SECTION */
.upload-section {
  position: relative;
  z-index: 10;
  margin-bottom: 96px;
}

.upload-card {
  padding: 36px;
}
@media (max-width: 576px) {
  .upload-card {
    padding: 22px;
  }
}

/* Dropzone */
.dropzone {
  position: relative;
  border-radius: 18px;
  padding: 56px 24px;
  text-align: center;
  cursor: pointer;
  transition:
    background 0.25s ease,
    box-shadow 0.25s ease;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(52, 211, 153, 0.35),
      rgba(52, 211, 153, 0.35) 12px,
      transparent 12px,
      transparent 22px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(52, 211, 153, 0.35),
      rgba(52, 211, 153, 0.35) 12px,
      transparent 12px,
      transparent 22px
    ),
    repeating-linear-gradient(
      180deg,
      rgba(52, 211, 153, 0.35),
      rgba(52, 211, 153, 0.35) 12px,
      transparent 12px,
      transparent 22px
    ),
    repeating-linear-gradient(
      270deg,
      rgba(52, 211, 153, 0.35),
      rgba(52, 211, 153, 0.35) 12px,
      transparent 12px,
      transparent 22px
    );
  background-size:
    1px 100%,
    100% 1px,
    1px 100%,
    100% 1px;
  background-position:
    0 0,
    0 0,
    100% 0,
    0 100%;
  background-repeat: no-repeat;
  margin-bottom: 20px;
}
.dropzone:hover,
.dropzone.drag-over {
  background-color: rgba(52, 211, 153, 0.05);
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(52, 211, 153, 0.9),
      rgba(52, 211, 153, 0.9) 12px,
      transparent 12px,
      transparent 22px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(52, 211, 153, 0.9),
      rgba(52, 211, 153, 0.9) 12px,
      transparent 12px,
      transparent 22px
    ),
    repeating-linear-gradient(
      180deg,
      rgba(52, 211, 153, 0.9),
      rgba(52, 211, 153, 0.9) 12px,
      transparent 12px,
      transparent 22px
    ),
    repeating-linear-gradient(
      270deg,
      rgba(52, 211, 153, 0.9),
      rgba(52, 211, 153, 0.9) 12px,
      transparent 12px,
      transparent 22px
    );
}
.dz-ring-1,
.dz-ring-2 {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(52, 211, 153, 0.1);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: border-color 0.25s;
}
.dz-ring-1 {
  width: 120px;
  height: 120px;
}
.dz-ring-2 {
  width: 180px;
  height: 180px;
}
.dropzone:hover .dz-ring-1,
.dropzone:hover .dz-ring-2 {
  border-color: rgba(52, 211, 153, 0.2);
}

.dz-icon-wrap {
  position: relative;
  z-index: 2;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, #2d3748, #1e2535);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition:
    transform 0.25s,
    border-color 0.25s;
}
.dropzone:hover .dz-icon-wrap {
  transform: scale(1.1);
  border-color: rgba(52, 211, 153, 0.3);
}

.dz-title {
  position: relative;
  z-index: 2;
  font-weight: 700;
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 4px;
  transition: color 0.2s;
}
.dropzone:hover .dz-title {
  color: var(--em-400);
}
.dz-sub {
  position: relative;
  z-index: 2;
  color: var(--text-muted);
  font-size: 0.83rem;
  margin-bottom: 18px;
}

.format-badge {
  display: inline-flex;
  gap: 6px;
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
  justify-content: center;
}
.format-badge span {
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

/* Divider or */
.or-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
}
.or-divider::before,
.or-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}
.or-divider span {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

/* Camera label buttons */
.cam-btn-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
@media (max-width: 480px) {
  .cam-btn-wrap {
    grid-template-columns: 1fr;
  }
}

.cam-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}
.cam-label.vi-cam {
  background: linear-gradient(135deg, var(--vi-600), var(--vi-500));
  color: #fff;
  box-shadow: var(--shadow-vi);
}
.cam-label.vi-cam:hover {
  background: linear-gradient(135deg, var(--vi-500), var(--vi-400));
  transform: translateY(-1px);
}

.cam-label.ghost-cam {
  background: rgba(30, 37, 53, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}
.cam-label.ghost-cam:hover {
  border-color: rgba(52, 211, 153, 0.3);
  color: #fff;
}

/* Preview */
.preview-area {
  display: none;
  margin-bottom: 20px;
}
.preview-area.show {
  display: block;
}
.preview-inner {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(52, 211, 153, 0.3);
  background: var(--bg-card-solid);
  max-height: 280px;
}
.preview-inner img {
  width: 100%;
  object-fit: contain;
  max-height: 280px;
  display: block;
}
.preview-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.2s;
}
.preview-close:hover {
  color: #fff;
  border-color: rgba(239, 68, 68, 0.4);
}
.preview-ready {
  position: absolute;
  bottom: 10px;
  left: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--em-400);
}

/* Form fields */
.cd-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 20, 32, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 12px 16px;
  transition: border-color 0.2s;
}
.cd-input-wrap:focus-within {
  border-color: rgba(52, 211, 153, 0.4);
}
.cd-input-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.88rem;
}
.cd-input-wrap input::placeholder {
  color: var(--text-muted);
}
.field-label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.field-hint {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.75rem;
  margin-left: 6px;
}

.trust-note {
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 14px;
  line-height: 1.6;
}

/* LOADING OVERLAY */
#loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(11, 15, 25, 0.96);
  backdrop-filter: blur(18px);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px;
}
#loading-overlay.active {
  display: flex;
}

.spinner-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  margin-bottom: 32px;
}
.spinner-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}
.ring-outer {
  border: 2px solid rgba(52, 211, 153, 0.18);
  animation: spinSlow 8s linear infinite;
}
.ring-mid {
  inset: 8px;
  border: 2px solid transparent;
  border-top-color: var(--em-400);
  border-right-color: rgba(52, 211, 153, 0.4);
  animation: spin 1.2s linear infinite;
}
.ring-inner {
  inset: 18px;
  border: 2px solid transparent;
  border-bottom-color: var(--vi-400);
  animation: spin 2s linear infinite reverse;
}
.spinner-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.load-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 6px;
  transition: opacity 0.3s;
}
.load-sub {
  color: var(--text-muted);
  font-size: 0.85rem;
  max-width: 280px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.progress-track {
  width: 100%;
  max-width: 340px;
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin: 0 auto 24px;
}
.progress-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--em-400), var(--vi-400));
  animation: progressFill 3.5s ease-out forwards;
  width: 0;
}

.step-indicators {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 320px;
  margin: 0 auto;
}
.step-ind {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: var(--bg-card-solid);
  transition: all 0.4s;
}
.step-circle.done {
  background: rgba(52, 211, 153, 0.15);
  border-color: rgba(52, 211, 153, 0.4);
}
.step-circle.active {
  background: rgba(167, 139, 250, 0.1);
  border-color: rgba(167, 139, 250, 0.4);
  animation: dotPulse 1.4s ease-in-out infinite;
}
.step-lbl {
  font-size: 0.65rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.step-connector {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 18px;
}

/* MODAL OVERLAY RESULT */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.modal-card {
  width: 90%;
  max-width: 440px;
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
.audit-summary-box {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 16px;
  margin: 20px 0;
  display: flex;
  justify-content: space-around;
}
.summary-item {
  display: flex;
  flex-direction: column;
}
.summary-label {
  font-size: 12px;
  color: #94a3b8;
}
.summary-val {
  font-size: 16px;
  font-weight: 700;
  color: #f8fafc;
  margin-top: 4px;
}
.res-notes {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 24px;
  text-align: left;
}
.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.btn-modal-primary {
  background: linear-gradient(135deg, #34d399 0%, #a78bfa 100%);
  color: #fff;
  padding: 12px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}
.btn-modal-secondary {
  background: transparent;
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
}
.btn-modal-danger {
  background: #ef4444;
  color: #fff;
  padding: 12px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

/* FEATURE CARDS */
.features-section {
  position: relative;
  z-index: 10;
  margin-bottom: 96px;
}

.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 991px) {
  .feat-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.feat-card {
  border-radius: var(--radius-card);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
}
.feat-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-card);
  border-color: rgba(52, 211, 153, 0.25);
}
.feat-card.hero {
  border-color: var(--border-vi);
  margin-top: -12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}
@media (max-width: 991px) {
  .feat-card.hero {
    margin-top: 0;
  }
}
.feat-card.hero:hover {
  border-color: rgba(167, 139, 250, 0.5);
}

.feat-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}
.feat-glow.em {
  width: 140px;
  height: 140px;
  background: var(--em-500);
  opacity: 0.06;
  top: -30px;
  right: -30px;
}
.feat-glow.vi {
  width: 160px;
  height: 160px;
  background: var(--vi-500);
  opacity: 0.07;
  top: -20px;
  left: -20px;
}
.feat-glow.em-b {
  width: 120px;
  height: 120px;
  background: var(--em-500);
  opacity: 0.05;
  bottom: -20px;
  right: -20px;
}

.feat-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.feat-icon-wrap.em {
  background: linear-gradient(
    135deg,
    rgba(52, 211, 153, 0.18),
    rgba(52, 211, 153, 0.06)
  );
  border-color: rgba(52, 211, 153, 0.2);
}
.feat-icon-wrap.vi {
  background: linear-gradient(
    135deg,
    rgba(167, 139, 250, 0.18),
    rgba(167, 139, 250, 0.06)
  );
  border-color: rgba(167, 139, 250, 0.2);
}

.feat-pillar {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 12px;
}
.feat-pillar.em {
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.25);
  color: var(--em-400);
}
.feat-pillar.vi {
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.25);
  color: var(--vi-400);
}

.feat-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 12px;
}
.feat-desc {
  color: var(--text-muted);
  font-size: 0.83rem;
  line-height: 1.65;
  margin-bottom: 20px;
}

.feat-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.feat-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.check-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.check-circle.em {
  background: rgba(52, 211, 153, 0.18);
}
.check-circle.vi {
  background: rgba(167, 139, 250, 0.18);
}

/* "Most popular" badge */
.popular-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: linear-gradient(135deg, var(--vi-600), var(--vi-500));
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Error example mini */
.error-example {
  background: rgba(15, 20, 32, 0.8);
  border-radius: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 20px;
}
.error-example .lbl {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.err-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  margin-bottom: 5px;
  color: var(--text-secondary);
}
.err-row .price {
  color: var(--em-400);
}
.err-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
  margin: 6px 0;
}
.err-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 700;
}
.err-total .strike {
  text-decoration: line-through;
  color: #f87171;
  font-size: 0.73rem;
  margin-right: 6px;
}
.err-total .fixed {
  color: var(--em-400);
}

/* Sheets mini */
.sheets-mini {
  background: rgba(15, 20, 32, 0.8);
  border-radius: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-family: monospace;
  margin-bottom: 20px;
}
.sh-header {
  display: grid;
  grid-template-columns: 1fr 1.2fr 0.9fr;
  gap: 4px;
  margin-bottom: 4px;
}
.sh-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr 0.9fr;
  gap: 4px;
  margin-bottom: 4px;
}
.sh-cell {
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 0.65rem;
}
.sh-cell.hd {
  background: rgba(52, 211, 153, 0.15);
  color: var(--em-400);
  font-weight: 700;
}
.sh-cell.bd {
  background: rgba(26, 32, 48, 0.7);
  color: var(--text-secondary);
}
.sh-cell.total {
  background: rgba(30, 37, 53, 0.5);
  color: var(--em-400);
  font-weight: 700;
}

/* HOW IT WORKS */
.steps-section {
  position: relative;
  z-index: 10;
  margin-bottom: 96px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}
@media (max-width: 767px) {
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Desktop connector line */
.steps-connector {
  display: none;
  position: absolute;
  top: 27px;
  left: calc(33.33% + 10px);
  right: calc(33.33% + 10px);
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(52, 211, 153, 0.3),
    rgba(167, 139, 250, 0.3),
    rgba(52, 211, 153, 0.3)
  );
}
@media (min-width: 768px) {
  .steps-connector {
    display: block;
  }
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}
.step-circle-big {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  z-index: 2;
}
.step-num {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  border: 2px solid var(--bg-deep);
}
.step-title {
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 8px;
}
.step-desc {
  color: var(--text-muted);
  font-size: 0.83rem;
  line-height: 1.6;
}

/* Mobile step connectors */
.step-item:not(:last-child)::after {
  content: "";
  display: none;
}
@media (max-width: 767px) {
  .step-item:not(:last-child)::after {
    display: block;
    width: 2px;
    height: 28px;
    background: linear-gradient(
      to bottom,
      rgba(52, 211, 153, 0.4),
      transparent
    );
    margin: 12px auto 0;
  }
}

/* EMPATHY SECTION */
.empathy-section {
  position: relative;
  z-index: 10;
  margin-bottom: 96px;
}

.empathy-card {
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  position: relative;
  overflow: hidden;
}
@media (max-width: 767px) {
  .empathy-card {
    padding: 32px 22px;
  }
}

.emp-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.emp-blob-1 {
  width: 260px;
  height: 260px;
  background: var(--em-500);
  opacity: 0.05;
  top: -80px;
  right: -80px;
}
.emp-blob-2 {
  width: 200px;
  height: 200px;
  background: var(--vi-500);
  opacity: 0.05;
  bottom: -60px;
  left: -60px;
}

.pain-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 480px) {
  .pain-grid {
    grid-template-columns: 1fr;
  }
}

.pain-card {
  border-radius: 14px;
  padding: 16px;
  transition: transform 0.2s;
}
.pain-card:hover {
  transform: translateY(-3px);
}
.pain-card.bad {
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.15);
}
.pain-card.good {
  background: rgba(52, 211, 153, 0.05);
  border: 1px solid rgba(52, 211, 153, 0.15);
}
.pain-emoji {
  font-size: 1.6rem;
  margin-bottom: 8px;
}
.pain-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  margin-bottom: 4px;
}
.pain-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* FOOTER */
.cd-footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--border-subtle);
  padding: 36px 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.7;
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-links a:hover {
  color: #fff;
}

/* ANIMATIONS */
@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}
@keyframes scanLine {
  0% {
    top: 0%;
    opacity: 1;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}
@keyframes dotPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.92);
  }
}
@keyframes spinSlow {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes progressFill {
  0% {
    width: 0%;
  }
  20% {
    width: 28%;
  }
  50% {
    width: 62%;
  }
  80% {
    width: 84%;
  }
  100% {
    width: 95%;
  }
}
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(26px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.fade-up {
  opacity: 0;
}
.fade-up.visible {
  animation: fadeUp 0.7s ease-out forwards;
}
.fade-up.d1.visible {
  animation-delay: 0.12s;
}
.fade-up.d2.visible {
  animation-delay: 0.24s;
}
.fade-up.d3.visible {
  animation-delay: 0.36s;
}
.fade-up.d4.visible {
  animation-delay: 0.48s;
}

/* UTILITY OVERRIDES*/
.z-10 {
  z-index: 10;
  position: relative;
}
.w-100 {
  width: 100% !important;
}
