/* style.css | Chapterfeed | Professional UI System */

/* =========================================================
   1. Design Tokens
   ========================================================= */

:root {
  --bg-main: #ffffff;
  --bg-soft: #f8fafc;
  --bg-muted: #f1f5f9;
  --bg-dark: #020617;

  --card-bg: #ffffff;
  --card-soft: rgba(255, 255, 255, 0.86);

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-soft: #64748b;
  --text-white: #ffffff;

  --accent-primary: #0284c7;
  --accent-secondary: #4f46e5;
  --accent-success: #10b981;
  --accent-warning: #f59e0b;

  --border-color: #e2e8f0;
  --border-strong: #cbd5e1;

  --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 18px 45px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 28px 70px rgba(15, 23, 42, 0.14);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 999px;

  --container: 1180px;
  --header-height: 74px;
  --transition: 220ms ease;
}

/* =========================================================
   2. Reset & Base
   ========================================================= */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at top left, rgba(2, 132, 199, 0.08), transparent 34rem),
    radial-gradient(circle at top right, rgba(79, 70, 229, 0.07), transparent 32rem),
    var(--bg-main);
  line-height: 1.68;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
svg,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

::selection {
  background: var(--accent-primary);
  color: #ffffff;
}

*:focus {
  outline: none;
}

*:focus-visible {
  outline: 3px solid rgba(2, 132, 199, 0.35);
  outline-offset: 3px;
  border-radius: 8px;
}

/* =========================================================
   3. Layout
   ========================================================= */

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(-140%);
  z-index: 9999;
  background: var(--accent-primary);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 0 0 12px 0;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

/* =========================================================
   4. Global Effects
   ========================================================= */

.noise-overlay,
.cursor-spotlight {
  pointer-events: none;
}

.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cursor-spotlight {
  position: fixed;
  top: -260px;
  left: -260px;
  width: 520px;
  height: 520px;
  z-index: 0;
  opacity: 0;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.13), transparent 64%);
  transition: opacity var(--transition);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 2000;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
}

/* =========================================================
   5. Buttons
   ========================================================= */

.btn,
.btn-outline,
.btn-light {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: var(--radius-full);
  padding: 0.72rem 1.15rem;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background var(--transition),
    border-color var(--transition),
    color var(--transition);
}

.btn {
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  box-shadow: 0 14px 34px rgba(79, 70, 229, 0.22);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(79, 70, 229, 0.28);
}

.btn-outline {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.82);
  border-color: var(--border-color);
}

.btn-outline:hover {
  color: var(--accent-primary);
  border-color: rgba(2, 132, 199, 0.36);
  background: rgba(2, 132, 199, 0.07);
  transform: translateY(-2px);
}

.btn-light {
  background: #ffffff;
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-light:hover {
  transform: translateY(-2px);
  background: rgba(248, 250, 252, 0.96);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.12);
}

.btn--full {
  width: 100%;
}

/* =========================================================
   6. Typography
   ========================================================= */

.gradient {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: inherit;
}

h1,
h2,
h3,
.hero-title,
.page-title,
.section-title,
.legal-content h1,
.cta-card h2 {
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.section-header {
  max-width: 760px;
  margin: 0 auto 2.4rem;
  text-align: center;
}

.section-tag,
.page-eyebrow,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 0.45rem;
  margin-bottom: 1rem;
  padding: 0.32rem 0.62rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(2, 132, 199, 0.18);
  background: rgba(2, 132, 199, 0.07);
  color: var(--accent-primary);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-title {
  margin: 0 0 1rem;
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.028em;
  font-weight: 900;
  color: var(--text-main);
}

.section-subtitle {
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
  max-width: 680px;
}

/* =========================================================
   7. Sections
   ========================================================= */

section {
  padding: 78px 0;
}

.bg-soft {
  background: var(--bg-soft);
}

/* =========================================================
   8. Header & Nav
   ========================================================= */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1500;
  padding: 0.7rem 0;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.82);
  transition: padding var(--transition), box-shadow var(--transition), background var(--transition);
}

.header.scrolled {
  padding: 0.55rem 0;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
}

.nav {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.logo-text-main {
  color: var(--text-main);
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 0;
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  transition: color var(--transition);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.1rem;
  width: 0;
  height: 2px;
  border-radius: var(--radius-full);
  background: var(--accent-primary);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.is-active,
.nav-links a[aria-current="page"] {
  color: var(--accent-primary);
}

.nav-links a:hover::after,
.nav-links a.is-active::after,
.nav-links a[aria-current="page"]::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.nav-actions .btn,
.nav-actions .btn-outline {
  min-height: 38px;
  padding: 0.5rem 0.9rem;
  font-size: 0.78rem;
}

.nav-phone {
  white-space: nowrap;
}

.nav-toggle,
.nav-close {
  display: none;
  border: 0;
  background: transparent;
  color: var(--text-main);
  padding: 0.5rem;
}

/* Desktop dropdown */

.has-dropdown {
  position: relative;
}

.dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 280px;
  margin: 0;
  padding: 0.75rem;
  list-style: none;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: var(--transition);
}

.dropdown::before {
  content: "";
  position: absolute;
  inset: -14px 0 auto;
  height: 14px;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown a {
  width: 100%;
  padding: 0.72rem 0.85rem;
  border-radius: 14px;
  font-size: 0.92rem;
}

.dropdown a::after {
  display: none;
}

.dropdown a:hover {
  background: var(--bg-soft);
}

/* Mobile nav */

.mobile-nav {
  position: fixed;
  top: 0;
  right: -105%;
  width: min(86vw, 380px);
  height: 100dvh;
  z-index: 1800;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-left: 1px solid var(--border-color);
  box-shadow: -24px 0 70px rgba(15, 23, 42, 0.18);
  transition: right 320ms ease;
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--border-color);
}

.mobile-nav-links {
  margin: 0;
  padding: 1rem 1.2rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  overflow-y: auto;
}

.mobile-nav-links a,
.mobile-dropdown-btn {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  background: transparent;
  color: var(--text-main);
  text-decoration: none;
  border-radius: 14px;
  padding: 0.72rem 0.85rem;
  font-weight: 600;
  text-align: left;
}

.mobile-nav-links a:hover,
.mobile-dropdown-btn:hover {
  background: var(--bg-soft);
  color: var(--accent-primary);
}

.mobile-sub-links {
  display: none;
  margin: 0.35rem 0 0.5rem;
  padding: 0.35rem 0 0.35rem 0.85rem;
  list-style: none;
  border-left: 2px solid var(--border-color);
}

.mobile-sub-links.open {
  display: block;
}

.mobile-sub-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
}

.mobile-chevron {
  transition: transform var(--transition);
}

.mobile-dropdown-btn[aria-expanded="true"] .mobile-chevron {
  transform: rotate(180deg);
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 1700;
  background: rgba(15, 23, 42, 0.52);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  backdrop-filter: blur(4px);
  transition: var(--transition);
}

.overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* =========================================================
   9. Hero
   ========================================================= */

.hero {
  position: relative;
  padding: clamp(112px, 10vw, 138px) 0 clamp(62px, 7vw, 86px);
  background:
    radial-gradient(circle at 18% 12%, rgba(2, 132, 199, 0.12), transparent 34rem),
    radial-gradient(circle at 86% 12%, rgba(79, 70, 229, 0.09), transparent 32rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.9));
  border-bottom: 1px solid rgba(226, 232, 240, 0.72);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 110px auto auto 50%;
  width: 760px;
  height: 420px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(2, 132, 199, 0.12), transparent 70%);
  pointer-events: none;
  opacity: 0.72;
}

.hero-container {
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(390px, 0.88fr);
  gap: clamp(2.25rem, 4.6vw, 4.2rem);
  align-items: center;
}

.hero-content {
  max-width: 760px;
  min-width: 0;
}

.hero-title {
  margin: 0 0 1.25rem;
  font-size: clamp(2.5rem, 3.6vw, 3.75rem);
  line-height: 1.1;
  letter-spacing: -0.028em;
  font-weight: 900;
}

.hero-subtitle {
  max-width: 660px;
  margin: 0 0 1.85rem;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.18vw, 1.14rem);
  line-height: 1.72;
}

.hero-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.58rem;
  margin-top: 1.25rem;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.62rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.035);
}

.trust-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent-success);
  flex-shrink: 0;
}

.hero-visual {
  position: relative;
  width: 100%;
  min-width: 0;
}

/* Hero mockup panel */

.software-panel {
  position: relative;
  width: min(100%, 560px);
  margin-left: auto;
  padding: clamp(0.85rem, 1.4vw, 1.05rem);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.94)),
    #ffffff;
  box-shadow: 0 30px 72px rgba(15, 23, 42, 0.16);
  min-width: 0;
}

.panel-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.panel-dots {
  display: flex;
  gap: 0.4rem;
}

.panel-dots span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #cbd5e1;
}

.panel-badge {
  border-radius: var(--radius-full);
  padding: 0.38rem 0.75rem;
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
  font-size: 0.8rem;
  font-weight: 700;
}

.panel-grid {
  display: grid;
  grid-template-columns: minmax(160px, 0.78fr) minmax(220px, 1.22fr);
  gap: 1rem;
  min-width: 0;
}

.phone-mockup {
  min-height: 350px;
  border-radius: 28px;
  border: 7px solid #0f172a;
  background: #ffffff;
  padding: 0.85rem;
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.2);
  min-width: 0;
}

.phone-notch {
  width: 84px;
  height: 18px;
  border-radius: 0 0 16px 16px;
  background: #0f172a;
  margin: -0.85rem auto 1rem;
}

.app-card {
  padding: 0.75rem;
  border-radius: 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border-color);
  margin-bottom: 0.6rem;
}

.app-card strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
}

.app-card span {
  display: block;
  color: var(--text-muted);
  font-size: 0.72rem;
}

.dashboard-mockup {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.dash-card {
  padding: 0.85rem;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  background: #ffffff;
}

.dash-card h4 {
  margin: 0 0 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.012em;
}

.dash-bar {
  height: 9px;
  border-radius: 99px;
  background: var(--bg-muted);
  overflow: hidden;
  margin: 0.6rem 0;
}

.dash-bar span {
  display: block;
  height: 100%;
  width: var(--w, 70%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
}

.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tech-pills span {
  padding: 0.28rem 0.48rem;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 600;
}

/* =========================================================
   10. Hero Stats (inside hero, below trust pills)
   ========================================================= */

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.25rem;
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border-color);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hero-stat strong {
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -0.024em;
  color: var(--text-main);
  line-height: 1.15;
}

.hero-stat span {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.35;
}

/* =========================================================
   11. Clients / Logo Strip
   ========================================================= */

.clients {
  padding: 36px 0;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

.clients-title {
  margin: 0 0 1.4rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.logo-grid,
.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.client-logo,
.logo-card {
  min-height: 72px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  padding: 1rem;
}

.client-logo img,
.logo-card img {
  width: 100%;
  height: 42px;
  object-fit: contain;
}

.marquee-wrapper {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: marquee 34s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* =========================================================
   12. Service & Feature Cards
   ========================================================= */

.services-grid,
.feature-grid,
.industries-grid,
.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}

.service-card,
.feature-card,
.industry-card,
.tech-card,
.related-card,
.case-card {
  position: relative;
  min-height: 100%;
  padding: 1.15rem;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.service-card:hover,
.feature-card:hover,
.industry-card:hover,
.tech-card:hover,
.related-card:hover,
.case-card:hover {
  transform: translateY(-5px);
  border-color: rgba(2, 132, 199, 0.28);
  box-shadow: var(--shadow-md);
}

.service-icon,
.feature-icon,
.industry-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin-bottom: 0.75rem;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.11), rgba(79, 70, 229, 0.11));
  color: var(--accent-primary);
}

.service-icon svg,
.feature-icon svg,
.industry-icon svg,
.why-icon svg {
  width: 22px;
  height: 22px;
  display: block;
  flex-shrink: 0;
}

/* Why-choose section (technology page) */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.why-card {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
}
.why-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin-bottom: 0.85rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.11), rgba(79, 70, 229, 0.11));
  color: var(--accent-primary);
}
.why-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.4rem;
}
.why-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.service-card h3,
.feature-card h3,
.industry-card h3,
.tech-card h3,
.related-card h3,
.case-card h3 {
  margin: 0 0 0.55rem;
  color: var(--text-main);
  line-height: 1.25;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.014em;
}

.service-card p,
.feature-card p,
.industry-card p,
.tech-card p,
.related-card p,
.case-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.card-link,
.service-link {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--accent-primary);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.82rem;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.three-col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

/* =========================================================
   13. Why / Split Section
   ========================================================= */

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 2.4rem;
  align-items: start;
}

.sticky-copy {
  position: sticky;
  top: 110px;
}

.check-list {
  display: grid;
  gap: 0.65rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.55;
}

.check-list li::before {
  content: "✓";
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  font-size: 0.8rem;
  font-weight: 900;
}

/* =========================================================
   14. Process Steps
   ========================================================= */

.process-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  counter-reset: process;
}

.process-step {
  position: relative;
  padding: 1rem;
  border-radius: 19px;
  border: 1px solid var(--border-color);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  counter-increment: process;
}

.process-step::before {
  content: counter(process, decimal-leading-zero);
  display: inline-flex;
  margin-bottom: 0.8rem;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: var(--bg-soft);
  color: var(--accent-primary);
  font-weight: 900;
  font-size: 0.75rem;
}

.process-step h3 {
  margin: 0 0 0.4rem;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.014em;
}

.process-step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

/* =========================================================
   15. Case Studies
   ========================================================= */

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.related-card {
  display: block;
  text-decoration: none;
}

.case-logo {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background: #ffffff;
  margin-bottom: 1rem;
  overflow: hidden;
}

.case-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.related-card > span,
.case-meta {
  display: inline-flex;
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 600;
}

/* =========================================================
   16. Stat Strip (page-level, e.g. case study pages)
   ========================================================= */

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.stat {
  padding: 1.2rem;
  border-radius: 22px;
  border: 1px solid var(--border-color);
  background: var(--bg-soft);
}

.stat-value {
  display: block;
  color: var(--text-main);
  font-weight: 900;
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.stat-label {
  display: block;
  margin-top: 0.25rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
}

/* =========================================================
   17. FAQ Accordion
   ========================================================= */

.faq-item + .faq-item {
  margin-top: 0.85rem;
}

.faq-item {
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.faq-item:hover {
  border-color: rgba(2, 132, 199, 0.28);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.075);
  transform: translateY(-1px);
}

.faq-question {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.1rem;
  border: 0;
  background: transparent;
  color: var(--text-main);
  padding: 1rem 1.15rem;
  text-align: left;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.014em;
  cursor: pointer;
}

.faq-question::after {
  content: "+";
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--accent-primary);
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1;
  transition: transform 180ms ease, background 180ms ease;
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  padding: 0 1.15rem;
  transition: grid-template-rows 220ms ease, opacity 180ms ease, padding 220ms ease;
}

.faq-answer > * {
  min-height: 0;
  overflow: hidden;
}

.faq-answer p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.faq-item.open .faq-answer,
.faq-item.active .faq-answer,
.faq-question[aria-expanded="true"] + .faq-answer {
  grid-template-rows: 1fr;
  opacity: 1;
  padding-bottom: 1.05rem;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.faq-item.open .faq-question::after,
.faq-item.active .faq-question::after,
.faq-question[aria-expanded="true"]::after {
  content: "−";
  background: rgba(2, 132, 199, 0.1);
  transform: rotate(180deg);
}

/* =========================================================
   18. CTA Section
   ========================================================= */

.cta-section {
  padding: 72px 0;
}

.cta-card {
  position: relative;
  overflow: hidden;
  max-width: 820px;
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: 28px;
  background:
    radial-gradient(circle at 90% 0%, rgba(255, 255, 255, 0.18), transparent 26rem),
    linear-gradient(135deg, #0f172a, #1e1b4b);
  color: #ffffff;
  box-shadow: var(--shadow-lg);
}

.cta-card h2 {
  max-width: 760px;
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.030em;
}

.cta-card p {
  max-width: 690px;
  margin: 0 0 1.8rem;
  color: rgba(255, 255, 255, 0.78);
}

.cta-card .btn-outline {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

/* =========================================================
   19. Page Hero (inner pages)
   ========================================================= */

.page-hero {
  padding: clamp(118px, 10vw, 148px) 0 clamp(54px, 6vw, 76px);
  background:
    radial-gradient(circle at 20% 15%, rgba(2, 132, 199, 0.1), transparent 32rem),
    linear-gradient(180deg, #ffffff, var(--bg-soft));
  border-bottom: 1px solid var(--border-color);
}

.breadcrumbs,
.legal-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin-bottom: 1rem;
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 600;
}

.breadcrumbs a,
.legal-breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumbs a:hover,
.legal-breadcrumbs a:hover {
  color: var(--accent-primary);
}

.page-title {
  max-width: 940px;
  margin: 0 0 1rem;
  font-size: clamp(2.35rem, 5vw, 4.45rem);
  line-height: 1.02;
  letter-spacing: -0.036em;
  font-weight: 900;
}

.page-lead {
  max-width: 760px;
  margin: 0 0 1.8rem;
  color: var(--text-muted);
  font-size: 1.13rem;
  line-height: 1.7;
}

.page-section {
  padding: 86px 0;
}

.prose {
  max-width: 860px;
}

.prose h2 {
  margin: 2.1rem 0 0.8rem;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.028em;
}

.prose h3 {
  margin: 1.5rem 0 0.5rem;
  letter-spacing: -0.018em;
}

.prose p,
.prose li {
  color: var(--text-muted);
  line-height: 1.7;
}

.prose a {
  color: var(--accent-primary);
  font-weight: 700;
}

.prose ul {
  padding-left: 1.2rem;
}

/* =========================================================
   20. Forms
   ========================================================= */

.form-card,
.contact-form {
  padding: 1.35rem;
  border-radius: 28px;
  border: 1px solid var(--border-color);
  background: #ffffff;
  box-shadow: var(--shadow-md);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.form-field {
  display: grid;
  gap: 0.35rem;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: 15px;
  background: var(--bg-soft);
  color: var(--text-main);
  padding: 0.8rem 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.form-field textarea {
  min-height: 130px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: rgba(2, 132, 199, 0.55);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.1);
}

/* =========================================================
   21. Legal Pages
   ========================================================= */

.legal-page {
  padding: 132px 0 72px;
  min-height: 70vh;
}

.legal-content {
  max-width: 840px;
  margin: 0 auto;
}

.legal-content h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.032em;
  line-height: 1.08;
}

.last-updated {
  color: var(--text-soft);
  font-weight: 700;
  margin-bottom: 2rem;
}

.legal-content h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
  line-height: 1.7;
}

.legal-content a {
  color: var(--accent-primary);
  font-weight: 700;
}

/* =========================================================
   22. Footer
   ========================================================= */

.footer {
  background: #020617;
  color: #ffffff;
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 2rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.footer a:hover {
  color: #ffffff;
}

.footer h3,
.footer h4 {
  margin: 0 0 1rem;
  font-weight: 700;
  letter-spacing: -0.012em;
}

.footer p,
.footer li {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.88rem;
  line-height: 1.65;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
}

/* =========================================================
   23. WhatsApp Floating Button
   ========================================================= */

.whatsapp-float,
.wa-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1400;
  width: 52px;
  height: 52px;
  min-width: 52px;
  max-width: 52px;
  min-height: 52px;
  max-height: 52px;
  border-radius: 999px;
  background: #25d366;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.38);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  line-height: 0;
}

.whatsapp-float:hover,
.wa-fab:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 14px 36px rgba(37, 211, 102, 0.46);
}

.whatsapp-float svg,
.wa-fab svg {
  display: block;
  width: 26px;
  height: 26px;
  min-width: 26px;
  max-width: 26px;
  min-height: 26px;
  max-height: 26px;
  flex: 0 0 26px;
  fill: #ffffff;
}

/* =========================================================
   24. Utility
   ========================================================= */

.center {
  text-align: center;
}

.mt-0 {
  margin-top: 0 !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.hidden {
  display: none !important;
}

/* =========================================================
   25. Animations
   ========================================================= */

.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms ease, transform 650ms ease;
  transition-delay: var(--delay, 0ms);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.interactive-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    420px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(2, 132, 199, 0.13),
    transparent 38%
  );
  transition: opacity var(--transition);
}

.interactive-card:hover::before {
  opacity: 1;
}

/* =========================================================
   26. Responsive - Tablet (≤ 1100px)
   ========================================================= */

@media (max-width: 1100px) {
  .services-grid,
  .feature-grid,
  .industries-grid,
  .tech-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .process-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-content {
    max-width: 820px;
    margin-inline: auto;
    text-align: center;
  }

  .hero-title,
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions,
  .trust-row {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    max-width: 640px;
    margin-inline: auto;
  }

  .software-panel {
    margin-inline: auto;
  }

  .nav-actions .btn,
  .desktop-header-cta {
    display: none;
  }
}

/* =========================================================
   27. Responsive - Mobile nav breakpoint (≤ 920px)
   ========================================================= */

@media (max-width: 920px) {
  .nav-menu {
    display: none;
  }

  .nav-toggle,
  .nav-close {
    display: inline-flex;
  }

  .nav-phone {
    display: none;
  }

  .services-grid,
  .feature-grid,
  .industries-grid,
  .tech-grid,
  .process-grid,
  .related-grid,
  .two-col,
  .three-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-section {
    grid-template-columns: 1fr;
  }

  .sticky-copy {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .logo-grid,
  .clients-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =========================================================
   28. Responsive - Small Mobile (≤ 680px)
   ========================================================= */

@media (max-width: 680px) {
  :root {
    --header-height: 64px;
  }

  .container {
    width: min(100% - 28px, var(--container));
  }

  section,
  .page-section {
    padding: 54px 0;
  }

  .header {
    padding: 0.55rem 0;
  }

  .nav {
    min-height: 42px;
  }

  .logo-mark {
    width: 34px;
    height: 34px;
  }

  .logo-text-main {
    font-size: 0.9rem;
  }

  .nav-actions {
    gap: 0.35rem;
  }

  .nav-actions .btn,
  .nav-actions .btn-outline {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    padding: 0.4rem;
  }

  .hero {
    padding-top: 96px;
    padding-bottom: 50px;
  }

  .hero-content {
    text-align: left;
  }

  .hero-actions,
  .trust-row {
    justify-content: flex-start;
  }

  .hero-title {
    max-width: 100%;
    font-size: clamp(2rem, 9.5vw, 2.75rem);
    line-height: 1.1;
    letter-spacing: -0.022em;
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    max-width: 100%;
    margin-bottom: 1.25rem;
    font-size: 0.94rem;
    line-height: 1.65;
  }

  .hero-actions,
  .page-actions {
    align-items: stretch;
  }

  .hero-actions .btn,
  .hero-actions .btn-outline,
  .page-actions .btn,
  .page-actions .btn-outline {
    width: 100%;
    min-height: 44px;
  }

  .trust-pill {
    font-size: 0.74rem;
    padding: 0.36rem 0.58rem;
  }

  .hero-visual {
    margin-top: 0.8rem;
  }

  .software-panel {
    width: 100%;
    border-radius: 22px;
    padding: 0.72rem;
  }

  .panel-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-mockup {
    display: none;
  }

  .phone-mockup {
    min-height: auto;
    border-width: 6px;
    border-radius: 22px;
    padding: 0.75rem;
  }

  .phone-notch {
    width: 70px;
    height: 14px;
    margin-top: -0.75rem;
  }

  .section-header {
    text-align: left;
    margin-bottom: 1.6rem;
  }

  .section-title {
    font-size: clamp(1.65rem, 9vw, 2.15rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
  }

  .section-subtitle {
    font-size: 0.9rem;
  }

  .services-grid,
  .feature-grid,
  .industries-grid,
  .tech-grid,
  .process-grid,
  .related-grid,
  .two-col,
  .three-col,
  .logo-grid {
    gap: 0.85rem;
  }

  .service-card,
  .feature-card,
  .industry-card,
  .tech-card,
  .related-card,
  .case-card,
  .process-step {
    border-radius: 18px;
    padding: 1rem;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .two-col,
  .three-col {
    grid-template-columns: 1fr;
  }

  .tech-grid {
    grid-template-columns: 1fr;
  }

  .stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .logo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .logo-card {
    min-height: 64px;
  }

  .logo-card img {
    height: 36px;
  }

  .split-section {
    gap: 1.4rem;
  }

  .faq-item + .faq-item {
    margin-top: 0.65rem;
  }

  .faq-item {
    border-radius: 18px;
  }

  .faq-question {
    min-height: 54px;
    padding: 0.88rem 0.95rem;
    font-size: 0.9rem;
  }

  .faq-question::after {
    flex-basis: 26px;
    width: 26px;
    height: 26px;
  }

  .faq-answer {
    padding-inline: 0.95rem;
  }

  .faq-answer p {
    font-size: 0.86rem;
  }

  .cta-section {
    padding: 50px 0;
  }

  .cta-card {
    border-radius: 22px;
    padding: 1.35rem;
  }

  .cta-card h2 {
    font-size: 1.55rem;
    line-height: 1.1;
    letter-spacing: -0.024em;
  }

  .cta-card p {
    font-size: 0.88rem;
  }

  .footer {
    padding-top: 42px;
  }

  .footer-grid {
    gap: 1.4rem;
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .mobile-nav {
    width: 92vw;
  }

  .page-hero {
    padding: 96px 0 50px;
  }

  .page-lead {
    font-size: 1.02rem;
  }

  .page-title {
    font-size: clamp(2rem, 10vw, 3rem);
    line-height: 1.04;
    letter-spacing: -0.032em;
  }

  .whatsapp-float,
  .wa-fab {
    bottom: 1.2rem;
    right: 1.2rem;
    width: 48px;
    height: 48px;
    min-width: 48px;
    max-width: 48px;
    min-height: 48px;
    max-height: 48px;
  }

  .whatsapp-float svg,
  .wa-fab svg {
    width: 24px;
    height: 24px;
    min-width: 24px;
    max-width: 24px;
    min-height: 24px;
    max-height: 24px;
    flex-basis: 24px;
  }
}

/* =========================================================
   29. Responsive - Very Small (≤ 380px)
   ========================================================= */

@media (max-width: 380px) {
  .hero-title {
    font-size: clamp(1.85rem, 10vw, 2.4rem);
    letter-spacing: -0.016em;
  }

  .section-title {
    font-size: 1.55rem;
    letter-spacing: -0.016em;
  }

  .trust-pill {
    font-size: 0.68rem;
  }
}

/* =========================================================
   30. Accessibility
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
