/* ===== Empfly Top-Notch Polish - all pages ===== */

:root {
  --max: 1160px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 28px 70px rgba(5, 11, 24, 0.14);
  --shadow-sm: 0 12px 36px rgba(5, 11, 24, 0.08);
  --shadow-glow: 0 20px 50px rgba(26, 95, 219, 0.22);
}

body {
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(59, 130, 246, 0.06), transparent 55%),
    #f7f9fc;
  font-size: 17px;
  letter-spacing: 0.005em;
}

.container { width: min(100% - 3rem, var(--max)); margin-inline: auto; }

/* Stronger type hierarchy sitewide */
.h-display {
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.h2 { font-size: clamp(1.95rem, 3.5vw, 2.85rem); }
.h3 {
  font-size: clamp(1.12rem, 1.7vw, 1.28rem);
  letter-spacing: -0.025em;
}

.lede {
  font-size: clamp(1.08rem, 1.45vw, 1.2rem);
  line-height: 1.72;
  color: #5b6b7f;
}

.kicker {
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 1rem;
}

/* Buttons - crisper */
.btn {
  padding: 1rem 1.7rem;
  font-size: 0.94rem;
  letter-spacing: 0.01em;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background 0.25s ease, border-color 0.25s ease;
}
.btn-primary {
  box-shadow: 0 16px 40px rgba(26, 95, 219, 0.38), inset 0 1px 0 rgba(255,255,255,0.28);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 48px rgba(26, 95, 219, 0.48), inset 0 1px 0 rgba(255,255,255,0.28);
}

/* Header polish */
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06), 0 14px 40px rgba(15, 23, 42, 0.06);
}
.nav-link {
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}
.btn-nav {
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* Sections - premium rhythm */
.section {
  padding: 3.5rem 0;
}
.section-head {
  margin-bottom: 1.75rem;
}
.section-head,
.section-head.center {
  text-align: center;
  max-width: min(56rem, 100%);
  margin-inline: auto;
  margin-bottom: 1.75rem;
}
.section-head .h2,
.section-head.center .h2 {
  margin-inline: auto;
  max-width: min(52rem, 100%);
  text-align: center;
  font-size: clamp(1.35rem, 2.1vw, 1.95rem);
  line-height: 1.25;
  text-wrap: balance;
}

/* Interior page content bands */
main > .section.page-sections,
main .page-sections {
  padding-top: 4rem;
}
main .section-block {
  margin-bottom: 4rem;
  padding: 2.5rem 0;
  border-top: 1px solid transparent;
}
main .section-block:first-child { padding-top: 0; }
main .section-block + .section-block {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding-top: 3.5rem;
}

/* Soft band rhythm for interior sections — keep shared content edges */
main .section-block:nth-child(even) {
  padding-top: 2.75rem;
  padding-bottom: 2.75rem;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.55), rgba(245,248,252,0.9));
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  padding-left: 0;
  padding-right: 0;
  box-shadow: 0 10px 40px rgba(5, 11, 24, 0.03);
}

/* Cards - enterprise polish */
.persona,
.feature-group,
.workflow-step,
.problem-card,
.hub-card,
.security-item,
.case-card,
.sol-card,
.plat-layer,
.why-card,
.industry,
.cap,
.proof-card,
.related-grid a {
  border-radius: 20px;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.3s ease;
}
.persona:hover,
.feature-group:hover,
.workflow-step:hover,
.problem-card:hover,
.hub-card:hover,
.security-item:hover,
.case-card:hover,
.sol-card:hover,
.plat-layer:hover,
.industry:hover,
.proof-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(26, 95, 219, 0.28);
}

.persona,
.feature-group,
.workflow-step,
.problem-card,
.security-item {
  padding: 1.65rem 1.45rem;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: var(--shadow-sm);
}

.persona-icon,
.fg-icon {
  box-shadow: 0 8px 20px rgba(26, 95, 219, 0.2);
}

.workflow-step .num {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}

/* Check list - cleaner */
.check-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.5rem;
}
.check-list li {
  position: relative;
  padding: 0.95rem 1.1rem 0.95rem 2.85rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.2);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--slate);
  line-height: 1.5;
  box-shadow: 0 6px 18px rgba(5, 11, 24, 0.03);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ecfdf5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2312a066' stroke-width='2'%3E%3Cpath d='M3.5 8.5l3 3 6-6'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* FAQ polish */
.faq-item {
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: #fff;
  margin-bottom: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.faq-q {
  width: 100%;
  text-align: left;
  padding: 1.2rem 1.35rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.faq-q span {
  color: var(--blue);
  font-size: 1.25rem;
  font-weight: 500;
}
.faq-a {
  padding: 0 1.35rem 1.25rem;
  color: var(--muted);
  line-height: 1.65;
}
.faq-item:not(.open) .faq-a { display: none; }

/* Page hero - cinematic */
.page-hero {
  padding: calc(var(--nav-h) + 4rem) 0 4rem;
}
.page-hero-grid {
  gap: 3rem;
  align-items: center;
}
.page-hero h1,
.page-hero .h1 {
  font-size: clamp(2.25rem, 4.8vw, 3.55rem);
  font-weight: 600;
  letter-spacing: -0.038em;
  line-height: 1.08;
  max-width: 17ch;
  text-wrap: balance;
  text-align: left;
  margin-inline: 0;
}
.page-hero .lede {
  margin-top: 1.35rem;
  color: rgba(226, 232, 240, 0.84);
  font-size: clamp(1.06rem, 1.4vw, 1.18rem);
}
.page-hero .kicker {
  margin-bottom: 1.1rem;
}
.page-hero .cta-row { margin-top: 2rem; }
.page-hero-visual {
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.35));
}
.page-hero .insight-strip {
  margin-top: 2.75rem;
}
.page-hero .insight-pill {
  backdrop-filter: blur(12px);
  transition: transform 0.35s var(--ease-out);
}
.page-hero .insight-pill:hover {
  transform: translateY(-4px);
}

/* Product screens - gallery feel */
.shot-grid.premium {
  gap: 1.5rem;
}
.shot-card {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.shot-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow), var(--shadow-glow);
}
.shot-card figcaption {
  padding: 1rem 1.15rem 1.2rem;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  background: linear-gradient(180deg, #fff, #f8fafc);
}

/* App mock polish */
.app-window {
  border-radius: 18px;
}
.app-title {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}
.app-kpi b {
  font-size: 1.05rem;
  font-weight: 700;
}
.app-row strong {
  font-family: var(--font-display);
  letter-spacing: -0.015em;
}

/* Related links */
.related-grid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.25rem;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.22);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  box-shadow: var(--shadow-sm);
}
.related-grid a::after {
  content: "→";
  color: var(--blue);
  opacity: 0.7;
  transition: transform 0.3s var(--ease-out);
}
.related-grid a:hover::after { transform: translateX(4px); opacity: 1; }

/* Hub cards */
.hub-card {
  min-height: 280px;
  padding: 1.25rem;
}
.hub-card .hub-visual {
  height: 128px;
  border-radius: 16px;
  background: linear-gradient(160deg, #0b1a36, #16325c);
}
.hub-card h3 { font-size: 1.15rem; margin-top: 0.15rem; }
.product-grid-premium { gap: 1.4rem; }

/* Platform layers */
.plat-layer {
  padding: 1.85rem 1.5rem;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: var(--shadow-sm);
}
.plat-layer .n {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}

/* Industries */
.industry {
  padding: 1.6rem 1.4rem;
  background: linear-gradient(165deg, #0b1628, #13233f);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  color: #fff;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.industry h3 { color: #fff; }
.industry p { color: rgba(226,232,240,0.7); flex: 1; }
.industry .link { color: #93c5fd; margin-top: auto; }

/* Case studies */
.case-card {
  padding: 1.85rem 1.55rem;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: var(--shadow-sm);
  min-height: 320px;
}
.case-card .result {
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

/* Final CTA */
.final-cta {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0;
  text-align: center;
}
.final-cta .h2 {
  max-width: 18ch;
  margin-inline: auto;
  color: #fff;
  font-size: clamp(2rem, 3.8vw, 3rem);
}
.final-cta .lede {
  margin-inline: auto;
  margin-top: 1.15rem;
}

/* Footer */
.site-footer {
  padding-top: 4rem;
}
.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(226, 232, 240, 0.65);
}
.footer-col a {
  transition: color 0.2s ease, transform 0.2s ease;
}
.footer-col a:hover {
  color: #93c5fd;
  transform: translateX(2px);
}

/* Reveal motion - smoother */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: 0.84rem;
  margin-bottom: 1.4rem;
  gap: 0.45rem;
}

/* Customer logos */
.customer-logo {
  transition: transform 0.3s var(--ease-out), border-color 0.3s ease, box-shadow 0.3s ease;
}
.customer-logo:hover {
  transform: translateY(-3px);
  border-color: rgba(26, 95, 219, 0.35);
  box-shadow: var(--shadow-sm);
}

/* Forms */
.form-card {
  border-radius: 24px;
  padding: 2.25rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(148, 163, 184, 0.2);
}
.form-group label {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}
.form-group input,
.form-group select,
.form-group textarea {
  border-radius: 14px;
  padding: 0.95rem 1.05rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(26, 95, 219, 0.12);
}

/* Homepage section alignment boost */
.stats {
  gap: 1rem;
}
.stat {
  border-radius: 20px;
  padding: 1.5rem 1.25rem;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: var(--shadow-sm);
}
.stat strong {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
}

@media (max-width: 900px) {
  main .section-block:nth-child(even) {
    margin-left: 0;
    margin-right: 0;
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }
  .page-hero { padding-bottom: 3rem; }
}


/* Mega menu - premium */
.mega {
  border-radius: 18px !important;
  border: 1px solid rgba(148, 163, 184, 0.22) !important;
  box-shadow: 0 28px 70px rgba(5, 11, 24, 0.16) !important;
  padding: 0.85rem !important;
}
.mega-link {
  border-radius: 12px !important;
  padding: 0.85rem 0.95rem !important;
  transition: background 0.25s ease, transform 0.25s ease !important;
}
.mega-link:hover {
  background: var(--blue-soft) !important;
  transform: translateX(2px);
}
.mega-link strong {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  font-size: 0.92rem;
}
.mega-link span {
  font-size: 0.78rem;
  color: var(--muted);
}

/* Trust pills */
.trust-pill {
  border-radius: 999px;
  padding: 0.65rem 1.05rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease-out);
}
.trust-pill:hover { transform: translateY(-2px); }

/* Solutions band */
.solutions-band .sol-card {
  min-height: 210px;
}

/* ===== Sitewide alignment system ===== */

/* Content sections: centered section titles */
main .section-head,
main .platform-intro,
main .brand-position .section-head,
main .clientele-head {
  text-align: center;
  margin-inline: auto;
  max-width: min(56rem, 100%);
}
main .section:not(.page-hero):not(.hero) .kicker,
main .section-block .kicker,
main .page-sections .kicker,
main .platform-intro .kicker,
main .section-head .kicker {
  justify-content: center;
  text-align: center;
}
main .section:not(.page-hero):not(.hero) h2.h-display,
main .section:not(.page-hero):not(.hero) .h-display.h2,
main .section-block > h2,
main .section-block .h-display.h2,
main .page-sections h2.h-display,
main .platform-intro .h-display,
main .clientele-title {
  text-align: center;
  margin-inline: auto;
  max-width: min(52rem, 100%);
  text-wrap: balance;
}
main .section-head .lede,
main .platform-intro .lede,
main .section-block > .lede,
main .page-sections > .lede,
main .section:not(.page-hero):not(.hero) > .container > .lede {
  text-align: center;
  margin-inline: auto;
}

/*
  Page heroes (2-col): ONE left edge for copy ONLY.
  Scope to the first grid column so insight strips / full-bleed
  siblings are not forced left by !important.
*/
.page-hero:not(.page-hero--center) .page-hero-grid > div:first-child {
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: 40rem;
}
.page-hero:not(.page-hero--center) .page-hero-grid > div:first-child .breadcrumbs,
.page-hero:not(.page-hero--center) .page-hero-grid > div:first-child .kicker,
.page-hero:not(.page-hero--center) .page-hero-grid > div:first-child h1,
.page-hero:not(.page-hero--center) .page-hero-grid > div:first-child .h1,
.page-hero:not(.page-hero--center) .page-hero-grid > div:first-child .h-display,
.page-hero:not(.page-hero--center) .page-hero-grid > div:first-child .h-display.h1,
.page-hero:not(.page-hero--center) .page-hero-grid > div:first-child .lede,
.page-hero:not(.page-hero--center) .page-hero-grid > div:first-child .cta-row,
.page-hero:not(.page-hero--center) .page-hero-grid > div:first-child .cta-paths,
.page-hero:not(.page-hero--center) .page-hero-grid > div:first-child .hero-proof,
.page-hero:not(.page-hero--center) .page-hero-grid > div:first-child .check-list {
  text-align: left !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-inline: 0 !important;
  max-width: 100%;
  width: auto;
  align-self: stretch;
}
.page-hero:not(.page-hero--center) .page-hero-grid > div:first-child .kicker {
  justify-content: flex-start !important;
  display: inline-flex;
  align-self: flex-start;
}
.page-hero:not(.page-hero--center) .page-hero-grid > div:first-child .cta-row,
.page-hero:not(.page-hero--center) .page-hero-grid > div:first-child .cta-paths {
  justify-content: flex-start !important;
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}
.page-hero:not(.page-hero--center) .page-hero-grid > div:first-child .hero-proof {
  justify-content: flex-start !important;
  display: inline-flex;
  align-self: flex-start;
}
.page-hero:not(.page-hero--center) .page-hero-grid > div:first-child h1,
.page-hero:not(.page-hero--center) .page-hero-grid > div:first-child .h1,
.page-hero:not(.page-hero--center) .page-hero-grid > div:first-child .h-display.h1 {
  max-width: 18ch;
}
.page-hero:not(.page-hero--center) .page-hero-grid > div:first-child .lede {
  max-width: 36rem;
}

/* Single-column / utility heroes that should stay centered */
.page-hero.page-hero--center > .container,
.page-hero.page-hero--center .page-hero-grid > div:first-child {
  text-align: center;
  align-items: center;
  margin-inline: auto;
  max-width: 40rem;
}
.page-hero.page-hero--center .breadcrumbs,
.page-hero.page-hero--center .kicker,
.page-hero.page-hero--center h1,
.page-hero.page-hero--center .h1,
.page-hero.page-hero--center .h-display,
.page-hero.page-hero--center .lede,
.page-hero.page-hero--center .cta-row,
.page-hero.page-hero--center .cta-paths,
.page-hero.page-hero--center .hero-proof {
  text-align: center !important;
  margin-inline: auto !important;
  justify-content: center !important;
  align-self: center !important;
}
.page-hero.page-hero--center .kicker {
  display: inline-flex;
}
.page-hero.page-hero--center .cta-row,
.page-hero.page-hero--center .cta-paths {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}
.page-hero.page-hero--center h1,
.page-hero.page-hero--center .h1,
.page-hero.page-hero--center .h-display.h1 {
  max-width: 22ch;
}
.page-hero.page-hero--center .lede {
  max-width: 36rem;
}

/* Hero insight strip: stay centered in the content rail (not left-forced) */
.page-hero > .container > .insight-strip,
.page-hero .insight-strip {
  text-align: left;
  margin-inline: auto !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100%;
  max-width: 100%;
}

/* Homepage dark hero: same left-edge discipline */
.hero .hero-grid > div:first-child {
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero .hero-eyebrow,
.hero h1,
.hero .lede,
.hero .cta-row {
  text-align: left;
  margin-inline: 0;
  align-self: flex-start;
}
.hero .cta-row {
  justify-content: flex-start;
  width: 100%;
}

/* Cards / tiles: centered titles, readable left body */
.problem-card,
.plat-layer,
.usecase-card,
.sol-card,
.how-step,
.trust-item,
.industry,
.feature-group,
.capability-card,
.persona-card,
.persona,
.workflow-step,
.industry-insight-card,
.hub-card,
.security-item,
.why-card,
.case-card,
.cap {
  text-align: center;
}
.problem-card h3,
.plat-layer h3,
.usecase-card h3,
.sol-card h3,
.how-step h3,
.industry h3,
.feature-group h3,
.capability-card h3,
.persona-card h3,
.persona h3,
.workflow-step h3,
.hub-card h3,
.security-item h3,
.trust-item h3,
.why-card h3,
.case-card h3,
.cap h3,
.metric h3 {
  text-align: center;
}
.problem-card p,
.plat-layer p,
.usecase-card p,
.sol-card p,
.how-step p,
.feature-group ul,
.capability-card p,
.capability-card ul,
.persona-card p,
.persona p,
.workflow-step p,
.hub-card p,
.security-item p,
.trust-item p,
.why-card p,
.case-card p,
.industry-insight-card span,
.check-list {
  text-align: left;
}
.industry-insight-card strong {
  text-align: center;
  display: block;
}
.capability-card .cap-tag,
.usecase-card .uc-tag {
  display: inline-block;
}
.section-block > .check-list {
  max-width: 40rem;
  margin-inline: auto;
}

/* Final CTA band */
.final-cta,
.final-cta .h2,
.final-cta .lede {
  text-align: center;
}
.final-cta .cta-row,
.final-cta .cta-paths {
  justify-content: center;
}
