/* ============================================================
   Nexus Workflow Solutions — Main Stylesheet
   nexusworkflowsolutions.com
   ============================================================ */

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

:root {
  --blue-500:  #2563EB;
  --blue-600:  #1D4ED8;
  --blue-700:  #1E40AF;
  --cyan-400:  #22D3EE;
  --cyan-500:  #06B6D4;
  --navy:      #0F172A;
  --navy-80:   #1E293B;
  --slate-600: #475569;
  --slate-300: #CBD5E1;
  --slate-100: #F1F5F9;
  --white:     #FFFFFF;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(15,23,42,.08), 0 1px 2px rgba(15,23,42,.05);
  --shadow-md: 0 4px 16px rgba(15,23,42,.10), 0 1px 4px rgba(15,23,42,.06);
  --shadow-lg: 0 12px 40px rgba(15,23,42,.14), 0 4px 10px rgba(15,23,42,.08);
  --transition: 220ms cubic-bezier(.4,0,.2,1);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Typography ── */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); letter-spacing: -.015em; }
h3 { font-size: 1.2rem; }

/* ── Layout ── */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--blue-500);
  color: var(--white);
  border-color: var(--blue-500);
}
.btn-primary:hover {
  background: var(--blue-600);
  border-color: var(--blue-600);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37,99,235,.35);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--slate-300);
}
.btn-ghost:hover {
  border-color: var(--blue-500);
  color: var(--blue-500);
  transform: translateY(-1px);
}

.btn-sm  { padding: 8px 18px;  font-size: .875rem; }
.btn-lg  { padding: 14px 28px; font-size: 1rem; }
.btn-full { width: 100%; }

/* ── Section Headers ── */
.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cyan-500);
  margin-bottom: 12px;
}
.section-title  { margin-bottom: 16px; }
.section-sub    { color: var(--slate-600); font-size: 1.1rem; max-width: 580px; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header .section-sub { margin: 0 auto; }

/* ============================================================
   NAV
   ============================================================ */
.nav-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(203,213,225,.5);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
}
.nav-logo:hover { color: var(--blue-500); }
.logo-img  { width: 36px; height: 36px; object-fit: contain; }
.logo-text { white-space: nowrap; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links li a {
  font-size: .9375rem;
  font-weight: 500;
  color: var(--navy-80);
  transition: color var(--transition);
}
.nav-links li a:not(.btn):hover { color: var(--blue-500); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 100px 0 96px;
  overflow: hidden;
  background: linear-gradient(160deg, #EFF6FF 0%, #F8FAFF 60%, var(--white) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37,99,235,.08);
  color: var(--blue-600);
  border: 1px solid rgba(37,99,235,.2);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-headline {
  max-width: 860px;
  margin-bottom: 24px;
  color: var(--navy);
}

.highlight {
  color: var(--blue-500);
  position: relative;
}
.highlight::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--cyan-400), var(--blue-500));
  border-radius: 2px;
  opacity: .6;
}

.hero-sub {
  max-width: 620px;
  color: var(--slate-600);
  font-size: 1.15rem;
  margin-bottom: 36px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-md);
  padding: 20px 32px;
  box-shadow: var(--shadow-md);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 28px;
}
.stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--blue-500);
  line-height: 1;
}
.stat-label {
  font-size: .8125rem;
  color: var(--slate-600);
  margin-top: 4px;
  white-space: nowrap;
}
.stat-divider {
  width: 1px;
  height: 44px;
  background: var(--slate-300);
  flex-shrink: 0;
}

.hero-glow {
  position: absolute;
  top: -100px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(34,211,238,.18) 0%, rgba(37,99,235,.08) 50%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-it-works { background: var(--white); }

.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  justify-content: center;
}

.step {
  flex: 1;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 36px 28px;
  border-radius: var(--radius-md);
  background: var(--slate-100);
  border: 1px solid transparent;
  transition: var(--transition);
}
.step:hover {
  border-color: rgba(37,99,235,.2);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.step-number {
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--blue-500);
  margin-bottom: 12px;
  opacity: .7;
}
.step-icon {
  font-size: 2.25rem;
  margin-bottom: 16px;
  line-height: 1;
}
.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--navy);
}
.step-desc {
  font-size: .9375rem;
  color: var(--slate-600);
  line-height: 1.65;
}

.step-connector {
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: var(--blue-500);
  opacity: .5;
  flex-shrink: 0;
  margin-top: 60px;
}
.step-connector svg {
  width: 24px;
  height: 24px;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  background: linear-gradient(180deg, var(--slate-100) 0%, #EFF6FF 100%);
}

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

.service-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 36px 30px;
  border: 1px solid var(--slate-300);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: rgba(37,99,235,.2);
}
.service-card--featured {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 1px var(--blue-500), var(--shadow-md);
}
.service-card--featured:hover {
  box-shadow: 0 0 0 1px var(--blue-600), var(--shadow-lg);
}

.service-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue-500);
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

.service-icon { font-size: 2rem; line-height: 1; }
.service-title { font-size: 1.15rem; font-weight: 700; color: var(--navy); }
.service-desc  { font-size: .9375rem; color: var(--slate-600); line-height: 1.65; flex: 1; }

.service-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--slate-100);
}
.service-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .875rem;
  color: var(--slate-600);
  font-weight: 500;
}
.service-features li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan-500);
  flex-shrink: 0;
}

/* ============================================================
   WHY NWS
   ============================================================ */
.why-nws { background: var(--white); }

.why-inner {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 72px;
  align-items: center;
}

.why-content .section-title { max-width: 500px; }

.trust-signals {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 36px;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.trust-icon {
  font-size: 1.75rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}
.trust-text h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.trust-text p {
  font-size: .9rem;
  color: var(--slate-600);
  line-height: 1.6;
}

/* Visual panel */
.why-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 380px;
}

.metric-card {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-80) 100%);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.metric-ring {
  position: relative;
  width: 160px;
  height: 160px;
}
.metric-ring svg {
  width: 160px;
  height: 160px;
  transform: rotate(-90deg);
}
.ring-bg {
  fill: none;
  stroke: rgba(255,255,255,.08);
  stroke-width: 10;
}
.ring-progress {
  fill: none;
  stroke: url(#ringGrad);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 314;
  stroke-dashoffset: 79; /* 25% filled = 314 * .75 = 235.5 offset */
  animation: ringFill 1.4s ease-out both;
}
@keyframes ringFill {
  from { stroke-dashoffset: 314; }
  to   { stroke-dashoffset: 79; }
}

/* SVG gradient defined inline via defs */
.metric-ring svg::before { content: ''; }

.metric-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.metric-big {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.metric-small {
  font-size: .75rem;
  color: rgba(255,255,255,.6);
  margin-top: 4px;
}

.floating-badge {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--navy);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  animation: float 3s ease-in-out infinite;
}
.fb-1 { top: 20px;  right: 10px;  animation-delay: 0s; }
.fb-2 { bottom: 60px; left: -20px; animation-delay: .8s; }
.fb-3 { bottom: 10px; right: 0;    animation-delay: 1.6s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  background: linear-gradient(160deg, #EFF6FF 0%, #F8FAFF 60%, var(--white) 100%);
}

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

.contact-perks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 28px;
}
.contact-perks li {
  font-size: 1rem;
  font-weight: 500;
  color: var(--navy-80);
}

/* Form */
.contact-form-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--slate-300);
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: .875rem;
  font-weight: 600;
  color: var(--navy-80);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--slate-300);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: .9375rem;
  color: var(--navy);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #94A3B8; }

.form-note {
  font-size: .8125rem;
  color: var(--slate-600);
  text-align: center;
  margin-top: -6px;
}

/* Success state */
.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
  gap: 12px;
}
.success-icon { font-size: 3rem; }
.form-success h3 { font-size: 1.4rem; color: var(--navy); }
.form-success p  { color: var(--slate-600); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,.7);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}
.footer-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: .9;
}

.footer-copy    { font-size: .875rem; }
.footer-tagline { font-size: .8125rem; color: rgba(255,255,255,.4); }
.footer-url     { font-size: .875rem; }
.footer-url a   { color: var(--cyan-400); transition: opacity var(--transition); }
.footer-url a:hover { opacity: .75; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .why-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .why-visual {
    justify-content: center;
    height: 320px;
  }
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }

  /* Nav */
  .nav-toggle { display: flex; }
  .logo-text  { display: none; }

  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--slate-300);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 24px 24px;
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
  }
  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links li { border-bottom: 1px solid var(--slate-100); }
  .nav-links li:last-child { border-bottom: none; margin-top: 8px; }
  .nav-links li a:not(.btn) {
    display: block;
    padding: 14px 0;
    font-size: 1rem;
  }
  .nav-links li:last-child a { width: 100%; }

  /* Hero */
  .hero { padding: 72px 0 64px; }
  .hero-stats {
    flex-direction: column;
    gap: 16px;
    padding: 20px 24px;
  }
  .stat-divider { width: 80px; height: 1px; }

  /* Steps */
  .steps {
    flex-direction: column;
    align-items: center;
  }
  .step-connector {
    transform: rotate(90deg);
    margin: -4px 0;
    padding: 0;
  }
  .step { max-width: 100%; width: 100%; }

  /* Form */
  .contact-form-wrapper { padding: 28px 24px; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn { width: 100%; }
  .hero-stats { width: 100%; }
}
