/* =============================================================
   Scopes4 Technology — Global Stylesheet
   Design system, layout, components, animations, responsive
   ============================================================= */

/* -------------------------------------------------------------
   1. Design Tokens
   ------------------------------------------------------------- */
:root {
  /* Brand colors */
  --navy: #16225b;
  --navy-900: #0f1a44;
  --navy-800: #16225b;
  --navy-700: #1e2f78;
  --blue: #2e6cf6;
  --blue-600: #1f5ae0;
  --green: #57b947;
  --orange: #f7941e;
  --purple: #8e44ad;

  /* Semantic light theme */
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --text: #1a2138;
  --text-muted: #5a6579;
  --border: #e5e9f2;
  --heading: #16225b;
  --shadow-sm: 0 2px 8px rgba(22, 34, 91, 0.06);
  --shadow-md: 0 10px 30px rgba(22, 34, 91, 0.10);
  --shadow-lg: 0 24px 60px rgba(22, 34, 91, 0.16);

  /* Gradients */
  --grad-brand: linear-gradient(135deg, #2e6cf6 0%, #1f3faf 100%);
  --grad-hero: linear-gradient(135deg, #0f1a44 0%, #16225b 55%, #1e2f78 100%);
  --grad-4: linear-gradient(135deg, #57b947, #f7941e, #8e44ad, #2e6cf6);

  /* Typography */
  --font-sans: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-heading: 'Poppins', 'Segoe UI', system-ui, sans-serif;

  /* Layout */
  --container: 1200px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --nav-h: 76px;
  --gap: clamp(1rem, 3vw, 2rem);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.4s;
}

[data-theme="dark"] {
  --bg: #0b1020;
  --bg-alt: #0f1730;
  --bg-elevated: #141d38;
  --surface: #141d38;
  --text: #dde4f2;
  --text-muted: #98a4bd;
  --border: #24304f;
  --heading: #eef3ff;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
  --grad-hero: linear-gradient(135deg, #060a18 0%, #0d1530 55%, #142150 100%);
}

/* -------------------------------------------------------------
   2. Reset & Base
   ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--heading);
  line-height: 1.2;
  font-weight: 700;
}

a { color: var(--blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--blue-600); }

img, svg { max-width: 100%; display: block; }

ul { list-style: none; }

section { position: relative; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--navy); color: #fff; padding: 10px 18px;
  border-radius: 0 0 8px 8px; z-index: 2000; transition: top 0.25s;
}
.skip-link:focus { top: 0; color: #fff; }

/* -------------------------------------------------------------
   3. Layout Helpers
   ------------------------------------------------------------- */
.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--alt { background: var(--bg-alt); }

.section-head { text-align: center; max-width: 680px; margin: 0 auto clamp(2rem, 5vw, 3.5rem); }
.section-head .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 0.8rem; }
.section-head p { color: var(--text-muted); font-size: 1.05rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--blue);
  margin-bottom: 0.9rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--grad-4); border-radius: 2px;
}

.grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* -------------------------------------------------------------
   4. Buttons
   ------------------------------------------------------------- */
.btn {
  --_bg: var(--blue);
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.85rem 1.6rem; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 0.95rem; cursor: pointer;
  border: 2px solid transparent; font-family: var(--font-sans);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, color 0.25s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-3px); }

.btn--primary {
  background: var(--grad-brand); color: #fff;
  box-shadow: 0 10px 24px rgba(46, 108, 246, 0.35);
}
.btn--primary:hover { color: #fff; box-shadow: 0 16px 34px rgba(46, 108, 246, 0.45); }

.btn--ghost {
  background: transparent; color: var(--navy); border-color: var(--border);
}
[data-theme="dark"] .btn--ghost { color: var(--text); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }

.btn--light {
  background: rgba(255,255,255,0.12); color: #fff;
  border-color: rgba(255,255,255,0.4); backdrop-filter: blur(6px);
}
.btn--light:hover { background: #fff; color: var(--navy); }

.btn--white { background: #fff; color: var(--navy); }
.btn--white:hover { color: var(--blue); }

.btn--sm { padding: 0.6rem 1.1rem; font-size: 0.85rem; }

.arrow-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 600; font-size: 0.9rem;
}
.arrow-link svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.arrow-link:hover svg { transform: translateX(4px); }

/* -------------------------------------------------------------
   5. Header / Navigation
   ------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: flex; align-items: center; }
.brand img { height: 48px; width: auto; }

.nav { display: flex; align-items: center; gap: 0.3rem; }
.nav-list { display: flex; align-items: center; gap: 0.2rem; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 0.3rem; white-space: nowrap;
  padding: 0.6rem 0.9rem; border-radius: var(--radius-sm);
  color: var(--text); font-weight: 500; font-size: 0.95rem;
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--blue); background: color-mix(in srgb, var(--blue) 8%, transparent); }
.nav-link svg { width: 14px; height: 14px; transition: transform 0.25s; }
.has-dropdown:hover .nav-link svg { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(10px);
  min-width: 260px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 0.6rem;
  opacity: 0; visibility: hidden; transition: opacity 0.25s, transform 0.25s var(--ease);
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.dropdown a {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.65rem 0.8rem; border-radius: var(--radius-sm); color: var(--text);
}
.dropdown a:hover { background: var(--bg-alt); color: var(--blue); }
.dropdown a .di {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--blue) 12%, transparent); flex-shrink: 0;
}
.dropdown a .di svg { width: 18px; height: 18px; }
.dropdown a small { display: block; color: var(--text-muted); font-size: 0.75rem; font-weight: 400; }
.dropdown a strong { font-weight: 600; font-size: 0.9rem; }

.nav-actions { display: flex; align-items: center; gap: 0.6rem; }

.theme-toggle {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: var(--bg-alt); border: 1px solid var(--border); color: var(--text);
  transition: background 0.25s, transform 0.25s;
}
.theme-toggle:hover { transform: rotate(20deg); color: var(--blue); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: block; }
[data-theme="dark"] .theme-toggle .moon { display: none; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px;
  background: var(--bg-alt); border: 1px solid var(--border); cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* -------------------------------------------------------------
   6. Hero
   ------------------------------------------------------------- */
.hero {
  position: relative; padding-top: calc(var(--nav-h) + clamp(2.5rem, 7vw, 5rem));
  padding-bottom: clamp(3rem, 8vw, 6rem);
  background: var(--grad-hero); color: #fff; overflow: hidden;
}
.hero__particles { position: absolute; inset: 0; z-index: 0; }
.hero .container { position: relative; z-index: 2; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }

.hero h1 {
  color: #fff; font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 800;
  line-height: 1.08; margin-bottom: 1.2rem; letter-spacing: -0.01em;
}
.hero h1 .accent {
  background: linear-gradient(120deg, #4f95ff, #9bc4ff);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero .lead { color: rgba(255,255,255,0.82); font-size: 1.1rem; max-width: 540px; margin-bottom: 0.6rem; }
.hero .powered { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; margin-bottom: 1.1rem; color: #9bc4ff; }
.hero .tagline { font-weight: 700; color: #fff; margin: 1.4rem 0; font-size: 1.15rem; }
.hero .tagline .dot { color: var(--orange); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.6rem; }

.hero__visual { position: relative; }
.hero__card {
  border-radius: var(--radius-lg); overflow: hidden; position: relative;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,0.12);
  aspect-ratio: 4 / 4.4;
  background: linear-gradient(160deg, #1c2b6b, #0f1838);
}
.hero__card img { width: 100%; height: 100%; object-fit: cover; opacity: 1; }

.float-badge {
  position: absolute; display: flex; align-items: center; gap: 0.6rem;
  background: rgba(255,255,255,0.14); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.25); color: #fff;
  padding: 0.7rem 1rem; border-radius: 14px; font-size: 0.82rem; font-weight: 600;
  box-shadow: var(--shadow-md); animation: floaty 5s ease-in-out infinite;
}
.float-badge .ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--grad-brand); }
.float-badge .ic svg { width: 16px; height: 16px; }
.float-badge small { display: block; font-weight: 400; opacity: 0.75; font-size: 0.72rem; }
.float-badge--tl { top: 8%; left: -6%; }
.float-badge--br { bottom: 10%; right: -6%; animation-delay: -2.5s; }
.float-badge--m { top: 46%; right: -9%; animation-delay: -1.2s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* Trust bar */
.trust-bar { background: var(--navy-900); color: #fff; }
.trust-bar .container {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1.2rem; padding: 1.1rem 0;
}
.trust-bar .label { font-weight: 600; color: rgba(255,255,255,0.75); font-size: 0.9rem; }
.trust-bar .items { display: flex; flex-wrap: wrap; gap: 1.8rem; }
.trust-bar .item { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 600; font-size: 0.92rem; }
.trust-bar .item svg { width: 20px; height: 20px; color: #6ea0ff; }

/* -------------------------------------------------------------
   7. Cards & Grids
   ------------------------------------------------------------- */
.grid { display: grid; gap: clamp(1.1rem, 2.5vw, 1.7rem); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--6 { grid-template-columns: repeat(6, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.8rem;
  box-shadow: var(--shadow-sm); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--blue) 30%, var(--border)); }

.service-card .s-icon {
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
  margin-bottom: 1.1rem; color: #fff;
}
.service-card .s-icon svg { width: 28px; height: 28px; }
.service-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.service-card p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 1rem; }
.service-card .arrow-link { color: var(--blue); }
.service-card::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 4px;
  background: var(--grad-4); transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.service-card:hover::after { transform: scaleX(1); }

.ic-blue { background: linear-gradient(135deg, #2e6cf6, #1f3faf); }
.ic-green { background: linear-gradient(135deg, #57b947, #3a8f2c); }
.ic-orange { background: linear-gradient(135deg, #f7941e, #e2740a); }
.ic-purple { background: linear-gradient(135deg, #8e44ad, #6c2f86); }
.ic-teal { background: linear-gradient(135deg, #17a2b8, #0d7c8f); }
.ic-amber { background: linear-gradient(135deg, #f2b705, #d99400); }

/* -------------------------------------------------------------
   8. Scopes4 Framework infographic
   ------------------------------------------------------------- */
.framework__grid { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }

.fw-legend .fw-item { display: flex; gap: 0.8rem; margin-bottom: 1.3rem; align-items: flex-start; }
.fw-legend .dot { width: 14px; height: 14px; border-radius: 50%; margin-top: 5px; flex-shrink: 0; }
.fw-legend h4 { font-size: 1rem; margin-bottom: 0.15rem; }
.fw-legend p { color: var(--text-muted); font-size: 0.85rem; }
.dot-blue { background: var(--blue); }
.dot-green { background: var(--green); }
.dot-orange { background: var(--orange); }
.dot-purple { background: var(--purple); }

.fw-wheel { position: relative; width: min(100%, 340px); aspect-ratio: 1; margin: 0 auto; }
.fw-wheel svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.fw-wheel .seg { cursor: pointer; transition: opacity 0.3s, transform 0.3s; transform-origin: center; }
.fw-wheel .seg:hover { opacity: 0.85; }
.fw-wheel__center {
  position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%);
  width: 40%; aspect-ratio: 1; border-radius: 50%; background: var(--surface);
  box-shadow: var(--shadow-md); display: grid; place-items: center; text-align: center;
  border: 1px solid var(--border);
}
.fw-wheel__center img { width: 68%; }
.fw-wheel .seg-label { font-size: 11px; font-weight: 700; fill: #fff; letter-spacing: 0.08em; }
.fw-wheel .seg-ic { fill: #fff; }

.fw-steps .fw-step { display: flex; gap: 0.9rem; margin-bottom: 1.2rem; }
.fw-steps .num {
  width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center;
  background: var(--grad-brand); color: #fff; font-weight: 700; font-size: 0.9rem;
}
.fw-steps h4 { font-size: 0.98rem; margin-bottom: 0.1rem; }
.fw-steps p { color: var(--text-muted); font-size: 0.85rem; }

/* -------------------------------------------------------------
   9. Why choose / feature strip
   ------------------------------------------------------------- */
.why-strip { background: var(--navy); color: #fff; }
.why-strip .container { display: grid; grid-template-columns: auto 1fr auto; gap: 2rem; align-items: center; padding: 2.2rem 0; }
.why-strip h3 { color: #fff; font-size: 1.3rem; }
.why-features { display: flex; flex-wrap: wrap; gap: 1.6rem; }
.why-feature { display: flex; align-items: center; gap: 0.6rem; font-weight: 600; font-size: 0.9rem; }
.why-feature svg { width: 22px; height: 22px; color: #6ea0ff; }
.why-stats { display: flex; gap: 2rem; }
.why-stat .n { font-size: 1.9rem; font-weight: 800; color: #fff; line-height: 1; }
.why-stat .l { font-size: 0.78rem; color: rgba(255,255,255,0.7); }

/* -------------------------------------------------------------
   10. Statistics counters
   ------------------------------------------------------------- */
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat .num { font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 800; }
.stat .num.grad-text { display: inline-block; }
.stat .label { color: var(--text-muted); font-weight: 500; margin-top: 0.3rem; }

/* -------------------------------------------------------------
   11. Industries
   ------------------------------------------------------------- */
.industry {
  display: flex; flex-direction: column; align-items: center; gap: 0.8rem;
  padding: 1.6rem 1rem; text-align: center; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface);
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}
.industry:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--blue) 30%, var(--border)); }
.industry .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--bg-alt); color: var(--blue); }
.industry .ic svg { width: 26px; height: 26px; }
.industry span { font-weight: 600; font-size: 0.9rem; color: var(--heading); }

/* -------------------------------------------------------------
   12. Process steps (horizontal)
   ------------------------------------------------------------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; position: relative; }
.process__step { text-align: center; position: relative; }
.process__num {
  width: 60px; height: 60px; margin: 0 auto 1rem; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 1.3rem; color: #fff;
  background: var(--grad-brand); box-shadow: 0 10px 24px rgba(46,108,246,0.3);
  position: relative; z-index: 2;
}
.process__step:nth-child(2) .process__num { background: linear-gradient(135deg, #57b947, #3a8f2c); box-shadow: 0 10px 24px rgba(87,185,71,0.3); }
.process__step:nth-child(3) .process__num { background: linear-gradient(135deg, #f7941e, #e2740a); box-shadow: 0 10px 24px rgba(247,148,30,0.3); }
.process__step:nth-child(4) .process__num { background: linear-gradient(135deg, #8e44ad, #6c2f86); box-shadow: 0 10px 24px rgba(142,68,173,0.3); }
.process__step h4 { font-size: 1rem; margin-bottom: 0.3rem; }
.process__step p { color: var(--text-muted); font-size: 0.85rem; }
.process::before {
  content: ""; position: absolute; top: 30px; left: 12%; right: 12%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--border) 0 8px, transparent 8px 16px);
  z-index: 1;
}

/* -------------------------------------------------------------
   13. Case study cards
   ------------------------------------------------------------- */
.case-card { padding: 0; overflow: hidden; }
.case-card .thumb { aspect-ratio: 16/10; overflow: hidden; position: relative; }
.case-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.case-card:hover .thumb img { transform: scale(1.06); }
.case-card .thumb .tag {
  position: absolute; top: 12px; left: 12px; background: var(--surface);
  color: var(--blue); padding: 0.3rem 0.8rem; border-radius: var(--radius-pill);
  font-size: 0.72rem; font-weight: 700; box-shadow: var(--shadow-sm);
}
.case-card .body { padding: 1.4rem 1.5rem 1.6rem; }
.case-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.case-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; }

/* Insights / blog cards */
.post-card { padding: 0; overflow: hidden; }
.post-card .thumb { aspect-ratio: 16/9; overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.post-card:hover .thumb img { transform: scale(1.06); }
.post-card .body { padding: 1.3rem 1.4rem 1.5rem; }
.post-card .meta { display: flex; gap: 0.8rem; font-size: 0.76rem; color: var(--text-muted); margin-bottom: 0.6rem; }
.post-card .meta .cat { color: var(--blue); font-weight: 700; }
.post-card h3 { font-size: 1.05rem; margin-bottom: 0.6rem; line-height: 1.35; }
.post-card h3 a { color: var(--heading); }
.post-card h3 a:hover { color: var(--blue); }

/* -------------------------------------------------------------
   14. CTA band
   ------------------------------------------------------------- */
.cta-band {
  background: var(--grad-hero); color: #fff; border-radius: var(--radius-lg);
  padding: clamp(2.2rem, 5vw, 3.5rem); position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.cta-band::before {
  content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(46,108,246,0.4), transparent 70%);
  top: -140px; right: -80px;
}
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 3.5vw, 2.2rem); position: relative; }
.cta-band p { color: rgba(255,255,255,0.8); position: relative; margin-top: 0.4rem; }
.cta-band .actions { position: relative; }

/* -------------------------------------------------------------
   15. Footer
   ------------------------------------------------------------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,0.72); padding-top: clamp(3rem, 6vw, 4.5rem); }
.footer__top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 2rem; padding-bottom: 2.5rem; }
.footer__brand img { height: 48px; margin-bottom: 1.1rem; }
.footer__brand p { font-size: 0.9rem; max-width: 280px; margin-bottom: 1.2rem; }
.footer__social { display: flex; gap: 0.6rem; }
.footer__social a {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255,255,255,0.08); color: #fff; transition: background 0.25s, transform 0.25s;
}
.footer__social a:hover { background: var(--blue); transform: translateY(-3px); }
.footer__social a svg { width: 18px; height: 18px; }
.footer__col h4 { color: #fff; font-size: 0.95rem; margin-bottom: 1rem; }
.footer__col a { display: block; color: rgba(255,255,255,0.68); font-size: 0.88rem; padding: 0.32rem 0; }
.footer__col a:hover { color: #fff; padding-left: 4px; }
.footer__col .contact-item { display: flex; gap: 0.6rem; font-size: 0.85rem; margin-bottom: 0.7rem; align-items: flex-start; }
.footer__col .contact-item svg { width: 18px; height: 18px; color: #6ea0ff; flex-shrink: 0; margin-top: 2px; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding: 1.4rem 0;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: 0.83rem;
}
.footer__bottom nav { display: flex; gap: 1.3rem; flex-wrap: wrap; }
.footer__bottom a { color: rgba(255,255,255,0.68); }
.footer__bottom a:hover { color: #fff; }

/* -------------------------------------------------------------
   16. Page hero (inner pages)
   ------------------------------------------------------------- */
.page-hero {
  background: var(--grad-hero); color: #fff; text-align: center;
  padding: calc(var(--nav-h) + clamp(2.5rem, 6vw, 4rem)) 0 clamp(2.5rem, 6vw, 4rem);
  position: relative; overflow: hidden;
}
.page-hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 0.8rem; }
.page-hero p { color: rgba(255,255,255,0.82); max-width: 620px; margin: 0 auto; font-size: 1.05rem; }
.breadcrumb { display: flex; justify-content: center; gap: 0.5rem; font-size: 0.85rem; margin-top: 1rem; color: rgba(255,255,255,0.6); }
.breadcrumb a { color: rgba(255,255,255,0.85); }
.breadcrumb span { opacity: 0.5; }

/* -------------------------------------------------------------
   17. Prose / rich text (blog, legal)
   ------------------------------------------------------------- */
.prose { max-width: 780px; margin-inline: auto; }
.prose h2 { font-size: 1.6rem; margin: 2rem 0 0.8rem; }
.prose h3 { font-size: 1.25rem; margin: 1.6rem 0 0.6rem; }
.prose p { margin-bottom: 1.1rem; color: var(--text); }
.prose ul, .prose ol { margin: 0 0 1.1rem 1.3rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.5rem; }
.prose blockquote {
  border-left: 4px solid var(--blue); padding: 0.5rem 1.2rem; margin: 1.4rem 0;
  background: var(--bg-alt); border-radius: 0 12px 12px 0; color: var(--text-muted); font-style: italic;
}

/* -------------------------------------------------------------
   18. Forms
   ------------------------------------------------------------- */
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.6rem, 4vw, 2.6rem); box-shadow: var(--shadow-md); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 0.4rem; color: var(--heading); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.8rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--text); font-family: inherit; font-size: 0.95rem; transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 18%, transparent);
}
.field textarea { resize: vertical; min-height: 130px; }
.field .error { color: #e0245e; font-size: 0.78rem; margin-top: 0.3rem; display: none; }
.field.invalid .error { display: block; }
.field.invalid input, .field.invalid textarea { border-color: #e0245e; }
.form-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.5rem; }
.form-success {
  display: none; align-items: center; gap: 0.6rem; padding: 1rem 1.2rem; border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--green) 15%, transparent); color: var(--green); font-weight: 600; margin-top: 1rem;
}
.form-success.show { display: flex; }

/* Contact info cards */
.contact-cards { display: grid; gap: 1rem; }
.contact-card { display: flex; gap: 1rem; padding: 1.3rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.contact-card .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-brand); color: #fff; flex-shrink: 0; }
.contact-card .ic svg { width: 22px; height: 22px; }
.contact-card h4 { font-size: 0.95rem; margin-bottom: 0.2rem; }
.contact-card p { font-size: 0.88rem; color: var(--text-muted); }

/* -------------------------------------------------------------
   19. Accordion / values / team
   ------------------------------------------------------------- */
.accordion-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 0.8rem; overflow: hidden; background: var(--surface); }
.accordion-btn {
  width: 100%; text-align: left; padding: 1.1rem 1.4rem; background: none; border: none; cursor: pointer;
  font-family: inherit; font-weight: 600; font-size: 1rem; color: var(--heading);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.accordion-btn .chev { transition: transform 0.3s; flex-shrink: 0; }
.accordion-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease); }
.accordion-panel p { padding: 0 1.4rem 1.2rem; color: var(--text-muted); font-size: 0.92rem; }

.team-card { text-align: center; padding: 1.6rem; }
.team-card .avatar { width: 110px; height: 110px; border-radius: 50%; margin: 0 auto 1rem; overflow: hidden; background: var(--bg-alt); border: 3px solid var(--surface); box-shadow: var(--shadow-md); }
.team-card .avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-size: 1.05rem; margin-bottom: 0.15rem; }
.team-card .role { color: var(--blue); font-size: 0.85rem; font-weight: 600; margin-bottom: 0.6rem; }
.team-card p { color: var(--text-muted); font-size: 0.85rem; }

/* Job listings */
.job-card { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.job-card h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.job-card .tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.chip { padding: 0.25rem 0.75rem; border-radius: var(--radius-pill); font-size: 0.75rem; font-weight: 600; background: var(--bg-alt); color: var(--text-muted); }

/* -------------------------------------------------------------
   20. Chatbot widget
   ------------------------------------------------------------- */
.chat-fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 1200;
  width: 60px; height: 60px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--grad-brand); color: #fff; box-shadow: 0 14px 30px rgba(46,108,246,0.45);
  display: grid; place-items: center; transition: transform 0.3s var(--ease);
}
.chat-fab:hover { transform: scale(1.08); }
.chat-fab svg { width: 26px; height: 26px; }
.chat-fab .close-ic { display: none; }
.chat-fab[aria-expanded="true"] .open-ic { display: none; }
.chat-fab[aria-expanded="true"] .close-ic { display: block; }

.chat-panel {
  position: fixed; bottom: 96px; right: 24px; z-index: 1200;
  width: min(360px, calc(100vw - 48px)); height: 480px; max-height: calc(100vh - 130px);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(20px) scale(0.96);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.chat-panel.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.chat-header { background: var(--grad-hero); color: #fff; padding: 1rem 1.2rem; display: flex; align-items: center; gap: 0.7rem; }
.chat-header .avatar { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.15); display: grid; place-items: center; }
.chat-header strong { display: block; font-size: 0.95rem; }
.chat-header small { opacity: 0.75; font-size: 0.75rem; display: flex; align-items: center; gap: 0.35rem; }
.chat-header small::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #4ade80; }
.chat-body { flex: 1; padding: 1.2rem; overflow-y: auto; display: flex; flex-direction: column; gap: 0.8rem; background: var(--bg-alt); }
.chat-msg { max-width: 82%; padding: 0.7rem 1rem; border-radius: 14px; font-size: 0.88rem; line-height: 1.5; }
.chat-msg.bot { background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 4px; align-self: flex-start; }
.chat-msg.user { background: var(--grad-brand); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.chat-quick { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0.6rem 1.2rem; background: var(--bg-alt); }
.chat-quick button {
  padding: 0.4rem 0.8rem; border-radius: var(--radius-pill); border: 1px solid var(--border);
  background: var(--surface); color: var(--blue); font-size: 0.78rem; cursor: pointer; font-family: inherit;
  transition: background 0.2s;
}
.chat-quick button:hover { background: color-mix(in srgb, var(--blue) 10%, transparent); }
.chat-input { display: flex; gap: 0.5rem; padding: 0.8rem; border-top: 1px solid var(--border); background: var(--surface); }
.chat-input input { flex: 1; padding: 0.6rem 0.9rem; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--bg); color: var(--text); font-family: inherit; font-size: 0.88rem; }
.chat-input input:focus { outline: none; border-color: var(--blue); }
.chat-input button { width: 42px; height: 42px; border-radius: 50%; border: none; background: var(--grad-brand); color: #fff; cursor: pointer; display: grid; place-items: center; flex-shrink: 0; }
.chat-input button svg { width: 18px; height: 18px; }

/* -------------------------------------------------------------
   21. Scroll reveal + utilities
   ------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }
.reveal[data-delay="5"] { transition-delay: 0.5s; }

.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 1500; background: var(--grad-4); transition: width 0.1s linear; }

.mt-0 { margin-top: 0; } .text-center { text-align: center; }
.glass {
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  backdrop-filter: blur(12px); border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}

/* -------------------------------------------------------------
   22. Responsive
   ------------------------------------------------------------- */
@media (max-width: 1024px) {
  .grid--6 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .why-strip .container { grid-template-columns: 1fr; text-align: center; }
  .why-features, .why-stats { justify-content: center; }
}

@media (max-width: 860px) {
  .nav { position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--surface); border-bottom: 1px solid var(--border); padding: 1rem;
    gap: 0.3rem; box-shadow: var(--shadow-md); transform: translateY(-120%); transition: transform 0.4s var(--ease);
    max-height: calc(100vh - var(--nav-h)); overflow-y: auto; }
  .nav.open { transform: translateY(0); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0.2rem; }
  .nav-link { padding: 0.85rem 1rem; }
  .dropdown { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none;
    border: none; padding: 0 0 0 1rem; min-width: auto; max-height: 0; overflow: hidden; transition: max-height 0.3s var(--ease); }
  .has-dropdown.open .dropdown { max-height: 500px; }
  .has-dropdown:hover .dropdown { transform: none; }
  .nav-toggle { display: flex; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 460px; margin: 0 auto; }
  .float-badge--tl { left: 0; } .float-badge--br { right: 0; } .float-badge--m { display: none; }
  .framework__grid { grid-template-columns: 1fr; }
  .fw-wheel { order: -1; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .process { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .process::before { display: none; }
  .cta-band { text-align: center; justify-content: center; }
  .cta-band .actions { width: 100%; display: flex; justify-content: center; }
}

@media (max-width: 560px) {
  .grid--2, .grid--3, .grid--4, .grid--6 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .trust-bar .container { flex-direction: column; align-items: flex-start; }
  .footer__bottom { flex-direction: column; text-align: center; }
}
