@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Fraunces:opsz,wght@9..144,700;9..144,800&display=swap");

/* Nexiqor Billing Solutions - Shared stylesheet */
:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #f2f6fb;
  --text: #1f2d3a;
  --text-muted: #576b7f;
  --brand: #ff6633;
  --brand-dark: #d84c1f;
  --accent: #1f7a8c;
  --border: #dbe5ef;
  --shadow: 0 12px 30px rgba(31, 45, 58, 0.12);
  --radius: 14px;
  --radius-lg: 20px;
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Segoe UI", Tahoma, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: none;
  opacity: 0;
  z-index: -1;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 16px;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.section {
  padding: 4.1rem 0;
}

.section-tight {
  padding: 2.5rem 0;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.75rem;
  line-height: 1.18;
}

h1,
h2 {
  font-family: "Fraunces", "Cambria", Georgia, serif;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  max-width: 72ch;
}

.lead {
  font-size: 1.1rem;
  line-height: 1.75;
}

.eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background: #ff6633;
  color: #fff;
  box-shadow: 0 8px 18px rgba(255, 102, 51, 0.28);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-1px);
  background: #e45727;
  box-shadow: 0 12px 24px rgba(228, 87, 39, 0.3);
}


.btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(31, 45, 58, 0.2);
}

.btn:focus-visible {
  outline: 3px solid rgba(255, 102, 51, 0.22);
  outline-offset: 2px;
}

.btn-secondary {
  border-color: var(--brand);
  color: var(--brand);
  background: #fff;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  transform: translateY(-1px);
  border-color: var(--brand-dark);
  color: var(--brand-dark);
  box-shadow: 0 8px 18px rgba(216, 76, 31, 0.16);
}

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.75);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  transform: translateY(-1px);
  border-color: #c7d6e4;
  background: #ffffff;
  box-shadow: 0 8px 16px rgba(31, 45, 58, 0.12);
}

.card-grid {
  display: grid;
  gap: 1.35rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.45rem;
  box-shadow: 0 10px 25px rgba(100, 42, 20, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 100%;
}

.card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: #ff6633;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(100, 42, 20, 0.12);
}

.card:hover::before {
  opacity: 1;
}

.card h3 {
  margin-bottom: 0.5rem;
}

.highlight {
  color: var(--accent);
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(255, 248, 244, 0.86);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 14px rgba(94, 39, 19, 0.06);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #21364b;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--brand);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.9rem;
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--border);
  padding: 3px;
}

.nav-toggle {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  padding: 0.4rem 0.6rem;
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-link {
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  font-weight: 600;
  color: #6c4f44;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0.6rem;
  right: 0.6rem;
  bottom: 0.2rem;
  height: 2px;
  background: #ff6633;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.active {
  background: #eef4fa;
  color: #b33a17;
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.hero {
  padding: 5.4rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  z-index: 0;
}

.hero::before {
  width: 460px;
  height: 460px;
  right: -140px;
  top: -180px;
  background: rgba(255, 102, 51, 0.08);
  animation: floatBlob 9s ease-in-out infinite;
}

.hero::after {
  width: 400px;
  height: 400px;
  left: -160px;
  bottom: -210px;
  background: rgba(31, 122, 140, 0.08);
  animation: floatBlob 11s ease-in-out infinite reverse;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-layout > div:first-child {
  max-width: 620px;
}

.hero-panel {
  background: #ffffff;
  border: 1px solid #dbe6f1;
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  box-shadow: var(--shadow);
  position: relative;
}

.hero-panel img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-float {
  position: absolute;
  background: rgba(255, 255, 255, 0.93);
  border: 1px solid #d8e6f1;
  border-radius: 12px;
  padding: 0.45rem 0.65rem;
  box-shadow: 0 12px 20px rgba(31, 45, 58, 0.14);
  font-size: 0.78rem;
  color: #3f566c;
  font-weight: 700;
  backdrop-filter: blur(8px);
  z-index: 3;
  pointer-events: none;
}

.hero-float.one {
  left: 1.1rem;
  top: 1.1rem;
  animation: drift 4.5s ease-in-out infinite;
}

.hero-float.two {
  right: 1.1rem;
  top: 1.1rem;
  animation: drift 5.6s ease-in-out infinite reverse;
}

.kpis {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.kpi {
  background: #f5f9fd;
  border-radius: 12px;
  padding: 0.85rem;
  text-align: center;
  border: 1px solid #dae6f1;
}

.kpi strong {
  display: block;
  color: #b33a17;
  font-size: 1.25rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.badge {
  border: 1px solid var(--border);
  background: #f5f9fd;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.86rem;
  color: #7f4e3f;
}

.split {
  display: grid;
  gap: 1.45rem;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.split-3 {
  grid-template-columns: 1fr 1fr;
}

.split-3 > :nth-child(3) {
  grid-column: 1 / -1;
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.checklist li {
  margin-bottom: 0.7rem;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-muted);
}

.checklist li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--accent);
  position: absolute;
  left: 0;
  top: 0.6rem;
}

.page-hero {
  padding: 3.6rem 0 1.7rem;
}

.page-hero .hero-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.1rem;
  box-shadow: 0 12px 26px rgba(86, 35, 17, 0.08);
}

.cta-banner {
  background: #223a52;
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2.5rem 0;
  display: grid;
  gap: 1rem;
  align-items: center;
  grid-template-columns: 1.5fr auto;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: -100% -40% auto auto;
  width: 340px;
  height: 340px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.9);
}

.cta-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.cta-banner .btn-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.75);
  background: transparent;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 24px rgba(105, 48, 25, 0.08);
  margin-top: 0.8rem;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 0.95rem;
  border-bottom: 1px solid var(--border);
}

tbody tr:hover {
  background: #f6faff;
}

th {
  background: #f1f6fb;
  color: #2d4a64;
}

details {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  background: #fff;
}

details + details {
  margin-top: 0.8rem;
}

summary {
  cursor: pointer;
  font-weight: 700;
  color: #2d4a64;
}

summary::marker {
  color: var(--brand);
}

.form-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field.full {
  grid-column: 1 / -1;
}

label {
  font-weight: 700;
  color: #2f4e68;
}

input,
select,
textarea {
  font: inherit;
  border: 1px solid #bfd1df;
  border-radius: 10px;
  padding: 0.68rem 0.75rem;
  background: #fff;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(255, 102, 51, 0.22);
  border-color: var(--brand);
}

.alert {
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  background: #e6f7f2;
  color: #1f5a4c;
  border: 1px solid #acdcca;
  display: none;
  margin-top: 0.8rem;
}

.alert.is-error {
  background: #feecec;
  color: #7b1d1d;
  border-color: #f6c2c2;
}

.site-footer {
  margin-top: 2.5rem;
  background: #1b334b;
  color: #dbe7f1;
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
}

.site-footer p,
.site-footer a {
  color: #dbe7f1;
}

.footer-title {
  margin-bottom: 0.55rem;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid rgba(195, 217, 233, 0.36);
  background: rgba(255, 255, 255, 0.08);
  padding: 2px;
}

.footer-kicker {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9fc5e2;
  margin-bottom: 0.45rem;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.footer-badge {
  border: 1px solid rgba(188, 214, 232, 0.38);
  background: rgba(255, 255, 255, 0.08);
  color: #eef5fb;
  border-radius: 999px;
  padding: 0.28rem 0.62rem;
  font-size: 0.8rem;
}

.footer-links a {
  display: block;
  margin-bottom: 0.5rem;
  color: #dbe7f1;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #ffb99f;
}

.footer-note {
  margin-top: 0.7rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(183, 211, 230, 0.35);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
}

.footer-cta {
  margin-top: 0.85rem;
}

.copyright {
  margin: 0;
  font-size: 0.92rem;
  color: #b8d2e5;
}

.copyright-row {
  border-top: 1px solid rgba(179, 210, 232, 0.24);
  margin-top: 1.6rem;
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.copyright-links {
  margin: 0;
  font-size: 0.92rem;
  color: #dbe7f1;
}

.copyright-links a {
  color: #dbe7f1;
  font-weight: 600;
}

.copyright-links a:hover,
.copyright-links a:focus-visible {
  color: #ffffff;
}

.animate-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.animate-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.card-grid .animate-reveal:nth-child(1) { transition-delay: 0.02s; }
.card-grid .animate-reveal:nth-child(2) { transition-delay: 0.08s; }
.card-grid .animate-reveal:nth-child(3) { transition-delay: 0.14s; }
.card-grid .animate-reveal:nth-child(4) { transition-delay: 0.2s; }
.card-grid .animate-reveal:nth-child(5) { transition-delay: 0.26s; }
.card-grid .animate-reveal:nth-child(6) { transition-delay: 0.32s; }

@keyframes floatBlob {
  0% { transform: translateY(0); }
  50% { transform: translateY(20px); }
  100% { transform: translateY(0); }
}

@keyframes drift {
  0% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}

@media (max-width: 960px) {
  .hero-layout,
  .split,
  .footer-grid,
  .cta-banner {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 4.5rem;
  }

  .cta-banner {
    text-align: left;
  }

  .hero-float {
    display: none;
  }

  .split-3 > :nth-child(3) {
    grid-column: auto;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    inset: 74px 0 auto 0;
    background: rgba(250, 252, 254, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 0.9rem 1rem 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links.open {
    display: flex;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .kpis {
    grid-template-columns: 1fr;
  }

  .hero-float {
    display: none;
  }
}
