/* ============================================================
   IT Works Group — Shared chrome stylesheet
   Used by all Tier 2-5 pages (services, industries, blog).
   Locked design tokens — match v9 homepage + Tier 1 pages.
   ============================================================ */

:root {
  --brand: #004aad;
  --brand-light: #2563eb;
  --brand-dark: #003680;
  --hero-bg: #050B1D;
  --hero-bg-2: #0a1330;
  --bg: #FFFFFF;
  --bg-soft: #F7F9FC;
  --bg-cool: #EEF2F7;
  --bg-tint: #F0F4FF;
  --bg-mint: #ECFEFF;
  --bg-lavender: #EEF0FF;
  --text: #0B1426;
  --text-mid: #2A3548;
  --muted: #64748B;
  --border: #E2E8F0;
  --border-strong: #CBD5E1;
  --accent: #00B7FF;
  --accent-2: #6366F1;
  --accent-mint: #10B981;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  --shadow-sm: 0 1px 2px rgba(11,20,38,0.04), 0 1px 3px rgba(11,20,38,0.04);
  --shadow-md: 0 4px 10px rgba(11,20,38,0.06), 0 8px 24px rgba(11,20,38,0.06);
  --shadow-lg: 0 20px 40px rgba(11,20,38,0.08), 0 8px 16px rgba(11,20,38,0.04);
  --shadow-glow: 0 30px 60px -20px rgba(0,74,173,0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 28px; position: relative; }

/* SCROLL PROGRESS */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200; pointer-events: none; }
.scroll-progress-bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--brand)); transition: width 0.05s linear; box-shadow: 0 0 12px rgba(0,183,255,0.4); }

/* LOGO */
.logo { min-width: 150px; display: flex; align-items: flex-end; gap: 10px; text-decoration: none;  }
.logo-mark { width: 38px; height: 38px; flex-shrink: 0; border-radius: 4px; overflow: hidden; }
.logo-wordmark { font-weight: 700; font-size: 17px; letter-spacing: 0.005em; line-height: 1; padding-bottom: 6px; transition: color 0.3s, opacity 0.4s, max-width 0.5s ease, margin-left 0.4s ease; white-space: nowrap; overflow: hidden; max-width: 200px; }
.topnav .logo-wordmark { color: #fff; }
.topnav.scrolled .logo-wordmark { max-width: 0; margin-left: -10px; opacity: 0; }

/* TOP NAV */
.topnav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: transparent; border-bottom: 1px solid transparent; transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; }
.topnav.scrolled { background: rgba(255,255,255,0.94); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom-color: rgba(226,232,240,0.7); box-shadow: 0 1px 3px rgba(11,20,38,0.04); }
.topnav-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; gap: 24px; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { color: rgba(255,255,255,0.88); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.2s; position: relative; }
.nav-links a::after { content: ""; position: absolute; bottom: -6px; left: 0; width: 0; height: 2px; background: var(--accent); transition: width 0.3s ease; }
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: #fff; }
.topnav.scrolled .nav-links a { color: var(--text); }
.topnav.scrolled .nav-links a:hover { color: var(--brand); }
.topnav.scrolled .nav-links a::after { background: var(--brand); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-tel { color: rgba(255,255,255,0.7); font-size: 14px; font-weight: 500; text-decoration: none; transition: color 0.2s; }
.topnav.scrolled .nav-tel { color: var(--muted); }
.hamburger { display: none; width: 40px; height: 40px; background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.18); border-radius: 10px; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 4px; transition: all 0.3s; }
.topnav.scrolled .hamburger { background: rgba(11,20,38,0.05); border-color: var(--border); }
.hamburger span { width: 18px; height: 2px; background: #fff; border-radius: 2px; }
.topnav.scrolled .hamburger span { background: var(--text); }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px; border-radius: 100px; font-family: var(--sans); font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; border: none; transition: all 0.25s ease; letter-spacing: -0.005em; }
.btn-primary { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%); color: #fff; box-shadow: 0 6px 18px rgba(0,74,173,0.32), 0 1px 0 rgba(255,255,255,0.18) inset; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0,74,173,0.4); }
.btn-primary .btn-arrow { transition: transform 0.25s; display: inline-block; }
.btn-primary:hover .btn-arrow { transform: translateX(4px); }
.btn-ghost-light { background: rgba(255,255,255,0.10); color: #fff; border: 1px solid rgba(255,255,255,0.22); backdrop-filter: blur(10px); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.4); }
.btn-ghost-dark { background: #fff; color: var(--text); border: 1px solid var(--border); }
.btn-ghost-dark:hover { border-color: var(--brand); color: var(--brand); }

/* PAGE HEADER (compact dark hero — for all inner pages) */
.page-header { position: relative; background: var(--hero-bg); overflow: hidden; padding: 150px 0 90px; isolation: isolate; }
.page-header::before { content: ""; position: absolute; inset: 0; z-index: 0; background: radial-gradient(ellipse 50% 50% at 15% 30%, rgba(99,102,241,0.30), transparent 60%), radial-gradient(ellipse 50% 50% at 85% 70%, rgba(0,183,255,0.22), transparent 60%); animation: drift 18s ease-in-out infinite alternate; }
.page-header::after { content: ""; position: absolute; inset: 0; z-index: 0; background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px); background-size: 32px 32px; mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%); -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%); pointer-events: none; }
@keyframes drift { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.08); opacity: 0.85; } }
.page-header .container { position: relative; z-index: 1; }
.page-kicker { display: inline-block; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.32em; color: var(--accent); text-transform: uppercase; margin-bottom: 24px; position: relative; padding: 0 26px; }
.page-kicker::before, .page-kicker::after { content: ""; position: absolute; top: 50%; width: 16px; height: 1px; background: var(--accent); transform: translateY(-50%); }
.page-kicker::before { left: 0; }
.page-kicker::after { right: 0; }
.page-h1 { font-family: var(--serif); font-size: clamp(48px, 7vw, 96px); line-height: 0.98; letter-spacing: -0.03em; font-weight: 500; color: #fff; margin-bottom: 22px; }
.page-h1 em { font-style: italic; background: linear-gradient(120deg, #fff 0%, #a5c4ff 40%, var(--accent) 70%, var(--accent-2) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 200%; animation: gradShift 8s ease infinite; }
@keyframes gradShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.page-sub { font-size: 19px; line-height: 1.55; color: rgba(255,255,255,0.78); max-width: 620px; }

/* SECTION TYPOGRAPHY */
section { position: relative; }
.section-header { margin-bottom: 56px; max-width: 760px; }
.section-eyebrow { display: inline-flex; padding: 6px 14px; border-radius: 100px; background: var(--bg-tint); color: var(--brand); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; margin-bottom: 18px; text-transform: uppercase; }
.section-h2 { font-family: var(--serif); font-size: clamp(34px, 4.4vw, 56px); line-height: 1.04; letter-spacing: -0.02em; font-weight: 500; color: var(--text); margin-bottom: 18px; }
.section-h2 em { font-style: italic; background: linear-gradient(120deg, var(--brand) 0%, var(--accent-2) 50%, var(--accent) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-sub { font-size: 18px; color: var(--muted); max-width: 620px; line-height: 1.55; }

/* REVEAL ON SCROLL */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* FEATURE GRID (used on service pages) */
.features { background: #fff; padding: 110px 0; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { background: #fff; border: 1px solid var(--border); border-radius: 22px; padding: 32px; transition: all 0.4s cubic-bezier(.2,.8,.2,1); position: relative; overflow: hidden; }
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-glow); border-color: var(--brand-light); }
.feature-icon { width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(135deg, var(--bg-tint), var(--bg-lavender)); display: flex; align-items: center; justify-content: center; margin-bottom: 22px; }
.feature-icon svg { width: 24px; height: 24px; color: var(--brand); }
.feature-title { font-family: var(--serif); font-weight: 500; font-size: 22px; letter-spacing: -0.01em; margin-bottom: 10px; color: var(--text); }
.feature-desc { color: var(--muted); font-size: 15px; line-height: 1.55; }

/* PROSE / DETAIL SECTION */
.detail { background: var(--bg-soft); padding: 110px 0; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.detail-prose p { color: var(--text-mid); font-size: 17px; line-height: 1.7; margin-bottom: 18px; }
.detail-prose p:last-child { margin-bottom: 0; }
.detail-prose strong { color: var(--text); font-weight: 600; }
.detail-callout { background: #fff; border-radius: 24px; padding: 44px; box-shadow: var(--shadow-md); border: 1px solid var(--border); }
.detail-callout-eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; color: var(--brand); text-transform: uppercase; margin-bottom: 14px; }
.detail-callout-title { font-family: var(--serif); font-size: 26px; line-height: 1.2; letter-spacing: -0.015em; font-weight: 500; margin-bottom: 18px; }
.detail-callout-list { list-style: none; }
.detail-callout-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; color: var(--text-mid); font-size: 15px; line-height: 1.55; }
.detail-callout-list li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--accent-2)); flex-shrink: 0; margin-top: 2px; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3'><polyline points='20 6 9 17 4 12'/></svg>"); background-size: 11px 11px; background-position: center; background-repeat: no-repeat; }

/* STEPS / PROCESS */
.steps { background: #fff; padding: 110px 0; }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step-card { background: #fff; border: 1px solid var(--border); border-radius: 22px; padding: 32px 28px; transition: all 0.4s; position: relative; }
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.step-card .step-num { font-family: var(--mono); font-size: 13px; letter-spacing: 0.16em; color: var(--brand); margin-bottom: 14px; display: block; }
.step-card .step-title { font-family: var(--serif); font-size: 20px; line-height: 1.2; letter-spacing: -0.01em; font-weight: 500; color: var(--text); margin-bottom: 10px; }
.step-card .step-desc { color: var(--muted); font-size: 14.5px; line-height: 1.55; }

/* PLATFORMS / TOOLS GRID */
.platforms { background: var(--bg-soft); padding: 110px 0; }
.platforms-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
.platform-pill { background: #fff; padding: 22px 24px; border-radius: 16px; border: 1px solid var(--border); transition: all 0.3s; display: flex; flex-direction: column; gap: 4px; }
.platform-pill:hover { border-color: var(--brand-light); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.platform-name { font-weight: 700; color: var(--text); font-size: 15px; }
.platform-cat { color: var(--muted); font-size: 13px; }

/* FAQ */
.faq { background: var(--bg-soft); padding: 110px 0; }
.faq-list { max-width: 880px; margin: 50px auto 0; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: 18px; margin-bottom: 14px; overflow: hidden; transition: border-color 0.3s, box-shadow 0.3s; }
.faq-item:hover { border-color: var(--brand-light); box-shadow: var(--shadow-md); }
.faq-q { padding: 24px 28px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-weight: 600; font-size: 17px; color: var(--text); line-height: 1.4; }
.faq-q::after { content: "+"; font-family: var(--serif); font-size: 32px; font-weight: 300; color: var(--brand); transition: transform 0.3s ease; line-height: 0.5; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-a-inner { padding: 0 28px 26px; color: var(--text-mid); line-height: 1.6; font-size: 15.5px; }
.faq-item.open .faq-a { max-height: 400px; }

/* RELATED / CROSS-SELL */
.related { background: #fff; padding: 110px 0; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.related-card { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 18px; padding: 28px; text-decoration: none; color: var(--text); transition: all 0.3s; display: flex; flex-direction: column; gap: 10px; }
.related-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brand-light); background: #fff; }
.related-eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--brand); text-transform: uppercase; }
.related-title { font-family: var(--serif); font-size: 22px; letter-spacing: -0.01em; font-weight: 500; line-height: 1.2; }
.related-desc { color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.related-arrow { margin-top: auto; padding-top: 14px; color: var(--brand); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; transition: gap 0.2s; }
.related-card:hover .related-arrow { gap: 12px; }

/* FINAL CTA */
.final-cta { background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(99,102,241,0.18), transparent 70%), var(--hero-bg); color: #fff; padding: 120px 0; text-align: center; position: relative; overflow: hidden; }
.final-cta::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px); background-size: 32px 32px; mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%); }
.final-cta .container { position: relative; z-index: 1; }
.final-cta h2 { font-family: var(--serif); font-size: clamp(40px, 6vw, 72px); line-height: 1.02; letter-spacing: -0.025em; font-weight: 500; color: #fff; margin-bottom: 22px; }
.final-cta h2 em { font-style: italic; background: linear-gradient(120deg, #fff, var(--accent) 60%, var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.final-cta p { font-size: 19px; color: rgba(255,255,255,0.7); max-width: 600px; margin: 0 auto 40px; }

/* FOOTER */
footer { background: #050B1D; color: rgba(255,255,255,0.7); padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 60px; margin-bottom: 50px; }
.footer-brand { max-width: 320px; }
.footer-brand p { font-size: 14px; line-height: 1.6; margin-top: 18px; color: rgba(255,255,255,0.55); }
.footer-col h4 { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; color: #fff; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 26px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: rgba(255,255,255,0.5); flex-wrap: wrap; gap: 12px; }

/* MOBILE */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; gap: 50px; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .platforms-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 640px) {
  .container { padding: 0 24px; }
  .nav-links, .nav-tel { display: none; }
  .hamburger { display: flex; }
  .topnav-inner { padding: 22px 4px; }
  .page-header { padding: 130px 0 70px; }
  .page-h1 { font-size: 48px; }
  .page-sub { font-size: 17px; }
  section.features, section.detail, section.steps, section.platforms, section.faq, section.related { padding: 70px 0; }
  .features-grid, .steps-grid, .platforms-grid { grid-template-columns: 1fr; gap: 14px; }
  .feature-card, .step-card { padding: 28px 24px; }
  .detail-callout { padding: 32px 24px; }
  .faq-q { padding: 20px 22px; font-size: 16px; }
  .faq-a-inner { padding: 0 22px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .final-cta { padding: 80px 0; }
}
