/* ProcMar Landing — Custom CSS */
:root {
  --brand-blue: #0F4574;
  --brand-blue-light: #1d6bb0;
  --brand-red: #D30000;
  --brand-dark: #0A1E35;
  --brand-gray: #F8FAFC;
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: #0f172a;
  background: #ffffff;
}

/* ─── ANIMATED GRADIENT TEXT ─── */
.gradient-text {
  background: linear-gradient(135deg, #0F4574, #1a7fd4, #0a6abf, #0F4574);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {
  0%   { background-position: 0%   50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0%   50%; }
}

/* ─── DOT GRID ─── */
.dot-grid {
  background-image: radial-gradient(circle, rgba(15, 69, 116, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ─── HERO BLOBS ─── */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.45;
}
.blob-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(15,69,116,0.25), transparent 70%);
  top: -120px; right: -100px;
  animation: floatBlob1 14s ease-in-out infinite;
}
.blob-2 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(211,0,0,0.12), transparent 70%);
  bottom: -80px; left: -80px;
  animation: floatBlob2 18s ease-in-out infinite;
}
.blob-3 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(15,69,116,0.15), transparent 70%);
  top: 40%; left: 30%;
  animation: floatBlob3 22s ease-in-out infinite;
}

@keyframes floatBlob1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(-40px, 30px) scale(1.06); }
  66%  { transform: translate(20px, -20px) scale(0.94); }
}
@keyframes floatBlob2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40%  { transform: translate(50px, -40px) scale(1.08); }
  70%  { transform: translate(-30px, 20px) scale(0.96); }
}
@keyframes floatBlob3 {
  0%, 100% { transform: translate(0, 0); }
  50%  { transform: translate(30px, -50px); }
}

/* ─── HERO WAVE ─── */
.hero-wave {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 80px;
  pointer-events: none;
}

/* ─── NAVBAR ─── */
.navbar {
  transition: background-color 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  background-color: rgba(255, 255, 255, 0);
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  box-shadow: 0 4px 24px -8px rgba(15, 69, 116, 0.18);
  border-bottom-color: rgba(15, 69, 116, 0.08);
}

/* Animated nav underline */
.nav-link {
  position: relative;
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
  transition: color 0.2s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--brand-blue);
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-link:hover { color: var(--brand-blue); }
.nav-link:hover::after { width: 100%; }

/* ─── LOGO ─── */
.logo-text {
  font-weight: 800;
  font-size: 40px;
  letter-spacing: -0.02em;
}
.logo-text .proc { color: var(--brand-blue); }
.logo-text .mar  { color: var(--brand-red); }

/* ─── SECTION EYEBROW ─── */
.section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-blue);
  background: rgba(15, 69, 116, 0.08);
  padding: 0.35rem 0.875rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.section-eyebrow-light {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.15);
  padding: 0.35rem 0.875rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  border: 1px solid rgba(255,255,255,0.2);
}

/* ─── FADE IN UP ─── */
.fade-in-up {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }
.delay-600 { transition-delay: 0.6s; }
.delay-700 { transition-delay: 0.7s; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.625rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 0.75rem;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.22s ease,
              background-color 0.2s ease,
              color 0.2s ease,
              border-color 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.btn:hover::after { opacity: 1; }

.btn-primary {
  background-color: var(--brand-blue);
  color: #fff;
  animation: pulseShadow 3.5s ease-in-out infinite;
}
.btn-primary:hover {
  background-color: #0c3a62;
  transform: translateY(-2px) scale(1.03);
  animation: none;
  box-shadow: 0 14px 28px -8px rgba(15, 69, 116, 0.55);
}

@keyframes pulseShadow {
  0%, 100% { box-shadow: 0 6px 18px -6px rgba(15, 69, 116, 0.45); }
  50%       { box-shadow: 0 8px 30px -4px rgba(15, 69, 116, 0.70), 0 0 0 5px rgba(15, 69, 116, 0.1); }
}

.btn-outline {
  border: 1.5px solid #cbd5e1;
  color: #0f172a;
  background: #fff;
}
.btn-outline:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 20px -8px rgba(15, 69, 116, 0.2);
}

.btn-red {
  background-color: var(--brand-red);
  color: #fff;
  box-shadow: 0 6px 18px -6px rgba(211, 0, 0, 0.5);
}
.btn-red:hover {
  background-color: #b00000;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 24px -6px rgba(211, 0, 0, 0.55);
}
.btn-red:disabled {
  opacity: 0.75;
  cursor: wait;
  transform: none;
  animation: none;
}

/* ─── FEATURE CARDS ─── */
.feature-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1.125rem;
  padding: 1.625rem;
  transition: border-color 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}
/* shimmer sweep on hover */
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(15,69,116,0.05), transparent);
  transition: none;
  pointer-events: none;
}
.feature-card:hover::before {
  animation: shimmerSweep 0.65s ease forwards;
}
@keyframes shimmerSweep {
  0%   { left: -80%; }
  100% { left: 120%; }
}
.feature-card:hover {
  border-color: var(--brand-blue);
  transform: translateY(-8px);
  box-shadow: 0 20px 48px -16px rgba(15, 69, 116, 0.28);
}
.feature-card:hover .feature-icon {
  background-color: var(--brand-blue);
  color: #fff;
  transform: scale(1.1) rotate(-5deg);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background-color: rgba(15, 69, 116, 0.08);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  margin-bottom: 1.125rem;
}

/* ─── HOW IT WORKS ─── */
.step-card {
  position: relative;
  text-align: center;
  padding: 2.5rem 1.5rem;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.step-card:hover { transform: translateY(-6px); }
.step-number {
  position: absolute;
  top: -8px; left: 50%;
  transform: translateX(-50%);
  font-size: 7rem;
  font-weight: 800;
  color: rgba(15, 69, 116, 0.06);
  line-height: 1;
  pointer-events: none;
  letter-spacing: -0.04em;
  z-index: 0;
}
.step-icon {
  position: relative;
  z-index: 1;
  width: 76px; height: 76px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: #fff;
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px -10px rgba(15, 69, 116, 0.3);
  border: 1px solid rgba(15, 69, 116, 0.1);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s ease,
              background-color 0.3s ease,
              color 0.3s ease;
}
.step-card:hover .step-icon {
  transform: scale(1.12) translateY(-4px);
  box-shadow: 0 16px 36px -10px rgba(15, 69, 116, 0.4);
  background-color: var(--brand-blue);
  color: #fff;
}
.steps-grid { position: relative; }
@media (min-width: 768px) {
  .steps-grid::before {
    content: "";
    position: absolute;
    top: 80px;
    left: 16.66%; right: 16.66%;
    border-top: 2px dashed rgba(15, 69, 116, 0.18);
    z-index: 0;
    animation: drawLine 1.2s ease forwards;
  }
}
@keyframes drawLine {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0% 0 0); }
}

/* ─── TRUST SECTION ─── */
.trust-item {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 1.25rem;
  transition: background 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}
.trust-item:hover {
  background: #F8FAFC;
  transform: translateY(-6px);
  box-shadow: 0 16px 40px -16px rgba(15, 69, 116, 0.15);
}
.trust-icon {
  width: 68px; height: 68px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(15, 69, 116, 0.1), rgba(15, 69, 116, 0.03));
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  transition: background 0.3s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
  border: 1px solid rgba(15,69,116,0.08);
}
.trust-item:hover .trust-icon {
  background: linear-gradient(135deg, var(--brand-blue), #1d6bb0);
  color: #fff;
  transform: rotate(-6deg) scale(1.08);
  border-color: transparent;
}
.trust-accent {
  width: 36px; height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-red));
  margin: 0.75rem auto 1rem;
  transition: width 0.3s ease;
}
.trust-item:hover .trust-accent { width: 56px; }

/* ─── DASHBOARD BROWSER FRAME ─── */
.browser-frame {
  background: #fff;
  border-radius: 16px;
  box-shadow:
    0 30px 60px -20px rgba(15, 69, 116, 0.35),
    0 18px 36px -18px rgba(15, 69, 116, 0.25);
  overflow: hidden;
  border: 1px solid rgba(15, 69, 116, 0.1);
  animation: floatDash 6s ease-in-out infinite;
  transform: rotate(-2deg);
}
@keyframes floatDash {
  0%, 100% { transform: rotate(-2deg) translateY(0); }
  50%       { transform: rotate(-2deg) translateY(-10px); }
}

.browser-bar {
  background: #f1f5f9;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid #e2e8f0;
}
.browser-dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-red    { background: #ff6058; }
.dot-yellow { background: #ffbd2e; }
.dot-green  { background: #28ca42; }

.mock-shell {
  display: flex;
  min-height: 340px;
  background: #fff;
}
.mock-sidebar {
  background: #0A1E35;
  width: 56px;
  padding: 18px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.mock-sidebar .nav-circle {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: background 0.3s, color 0.3s;
}
.mock-sidebar .nav-circle.active {
  background: var(--brand-blue);
  color: #fff;
}
.mock-main {
  flex: 1;
  padding: 18px;
  background: #f8fafc;
}
.mock-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.mock-stat {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px;
}
.mock-stat .label { font-size: 10px; color: #64748b; font-weight: 500; }
.mock-stat .value { font-size: 16px; font-weight: 700; color: #0f172a; margin-top: 2px; }
.mock-stat .delta { font-size: 9px; color: #16a34a; font-weight: 600; margin-top: 2px; }
.mock-stat.accent     { border-top: 3px solid var(--brand-blue); }
.mock-stat.accent-red { border-top: 3px solid var(--brand-red); }

.mock-table {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}
.mock-table .row {
  display: grid;
  grid-template-columns: 1fr 70px 60px;
  padding: 9px 12px;
  font-size: 10px;
  border-bottom: 1px solid #f1f5f9;
  align-items: center;
}
.mock-table .row:last-child { border-bottom: 0; }
.mock-table .row.head {
  background: #f8fafc;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  font-size: 9px;
}
.mock-table .row .name { font-weight: 600; color: #0f172a; }
.mock-table .badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 600;
}
.badge-paid    { background: rgba(22,163,74,0.12); color: #16a34a; }
.badge-pending { background: rgba(234,179,8,0.15); color: #b45309; }
.badge-quote   { background: rgba(15,69,116,0.1); color: var(--brand-blue); }

/* ─── CONTACT SECTION ─── */
.contact-section {
  background: linear-gradient(135deg, #0A1E35 0%, #0F4574 50%, #0d3a68 100%);
  background-size: 200% 200%;
  animation: contactBgShift 12s ease infinite;
}
@keyframes contactBgShift {
  0%   { background-position: 0%   0%; }
  50%  { background-position: 100% 100%; }
  100% { background-position: 0%   0%; }
}

.contact-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.contact-orb-1 {
  width: 450px; height: 450px;
  background: rgba(29,107,176,0.35);
  top: -180px; right: -100px;
  animation: floatOrb1 16s ease-in-out infinite;
}
.contact-orb-2 {
  width: 350px; height: 350px;
  background: rgba(211,0,0,0.15);
  bottom: -120px; left: -80px;
  animation: floatOrb2 20s ease-in-out infinite;
}
.contact-orb-3 {
  width: 250px; height: 250px;
  background: rgba(15,69,116,0.4);
  top: 50%; left: 40%;
  animation: floatOrb3 24s ease-in-out infinite;
}
@keyframes floatOrb1 {
  0%, 100% { transform: translate(0, 0); }
  50%  { transform: translate(-60px, 40px); }
}
@keyframes floatOrb2 {
  0%, 100% { transform: translate(0, 0); }
  50%  { transform: translate(50px, -50px); }
}
@keyframes floatOrb3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-30px, -40px) scale(1.15); }
}

/* Glassmorphism card */
.glass-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 1.5rem;
  box-shadow:
    0 24px 48px rgba(0,0,0,0.25),
    inset 0 1px 0 rgba(255,255,255,0.3);
}

/* Glass form inputs */
.glass-input {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 0.625rem;
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.glass-input::placeholder { color: rgba(255,255,255,0.45); }
.glass-input:focus {
  outline: none;
  border-color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.16);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.1);
}

.glass-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
  color: rgba(255,255,255,0.85);
}
.glass-label .req { color: #ff8a8a; margin-left: 2px; }

/* Contact check bullets */
.check-bullet {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0;
}
.check-bullet-icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
}

/* Contact stats row */
.contact-stat {
  text-align: center;
}
.contact-stat .num {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.contact-stat .lbl {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  margin-top: 0.25rem;
}

/* ─── SPINNER ─── */
.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── FORM (standard, inside glass card) ─── */
.form-input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  color: #0f172a;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-input:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(15, 69, 116, 0.12);
}
.form-label {
  display: block;
  font-size: 0.825rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
  color: #334155;
}
.form-label .req { color: var(--brand-red); margin-left: 2px; }

/* ─── SUCCESS / ERROR states ─── */
.form-success {
  text-align: center;
  padding: 2.5rem 1rem;
}
.form-success .check-ring {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 2px solid rgba(255,255,255,0.4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  animation: checkPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes checkPop {
  from { transform: scale(0) rotate(-90deg); opacity: 0; }
  to   { transform: scale(1) rotate(0deg);   opacity: 1; }
}

.form-error {
  background: rgba(211,0,0,0.12);
  border: 1px solid rgba(211,0,0,0.3);
  color: #ff8a8a;
  padding: 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

/* ─── MOBILE MENU ─── */
.mobile-menu { display: none; }
.mobile-menu.open { display: block; }

/* ─── FOOTER ─── */
.footer-link {
  color: rgba(255,255,255,0.6);
  transition: color 0.2s ease;
}
.footer-link:hover { color: #fff; }

/* ─── RESPONSIVE ─── */
@media (max-width: 767px) {
  .browser-frame { transform: rotate(0deg); animation: floatDashMobile 6s ease-in-out infinite; }
  @keyframes floatDashMobile {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
  }
  .step-number { font-size: 5rem; }
  .blob-1 { width: 300px; height: 300px; }
  .blob-2 { width: 240px; height: 240px; }
  .blob-3 { display: none; }
}
