/* ===================================================
   Custom Intelligence Group — Stylesheet
   =================================================== */

:root {
  --navy-950: #050b1c;
  --navy-900: #0a1530;
  --navy-800: #0f1e42;
  --navy-700: #16295a;
  --navy-600: #1f3a7a;
  --blue-accent: #3b6ef2;
  --blue-accent-light: #6c9bff;
  --gray-400: #8b95ab;
  --gray-300: #b7bfd1;
  --gray-100: #eef1f7;
  --white: #ffffff;
  --ink: #0a1530;
  --success: #22c07d;
  --error: #e5484d;

  --font-display: 'Sora', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-md: 0 10px 30px -10px rgba(10, 21, 48, 0.25);
  --shadow-lg: 0 30px 60px -20px rgba(10, 21, 48, 0.35);
  --container-w: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-900);
  margin: 0 0 0.5em;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1em; color: #3a4257; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  text-align: center;
}
.btn-primary {
  background: var(--blue-accent);
  color: var(--white);
  box-shadow: 0 12px 24px -8px rgba(59, 110, 242, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 30px -10px rgba(59, 110, 242, 0.6); }
.btn-ghost {
  background: transparent;
  color: var(--navy-900);
  border-color: rgba(10, 21, 48, 0.15);
}
.btn-ghost:hover { border-color: var(--navy-900); transform: translateY(-2px); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(10, 21, 48, 0.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 116px;
}
.brand { display: flex; align-items: center; gap: 18px; }
.brand-icon { height: 64px; width: auto; }
.brand-wordmark { height: 36px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy-800);
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--blue-accent); }
.main-nav a.nav-cta {
  background: var(--navy-900);
  color: var(--white);
  padding: 10px 22px;
  border-radius: 999px;
}
.main-nav a.nav-cta:hover { background: var(--blue-accent); color: var(--white); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 24px;
  margin: 0 auto;
  background: var(--navy-900);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 120% at 15% 0%, #0e1c40 0%, var(--navy-950) 60%);
  padding: 130px 0 100px;
  color: var(--white);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 85% 20%, rgba(59, 110, 242, 0.25), transparent 45%),
    radial-gradient(circle at 10% 80%, rgba(59, 110, 242, 0.15), transparent 40%);
  pointer-events: none;
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 70% 30%, black, transparent 65%);
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--blue-accent-light);
  margin-bottom: 18px;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  margin-bottom: 22px;
}
.hero h1.title-long {
  font-size: clamp(1.85rem, 3.8vw, 2.7rem);
}
.hero h1 span { color: var(--blue-accent-light); }
.hero-sub {
  color: var(--gray-300);
  font-size: 1.15rem;
  max-width: 600px;
  margin-bottom: 34px;
}
.hero-sub.lead-copy { max-width: 680px; }
.hero-sub a { color: var(--blue-accent-light); font-weight: 600; }
.hero-sub a:hover { text-decoration: underline; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }
.hero .btn-ghost { color: var(--white); border-color: rgba(255,255,255,0.25); }
.hero .btn-ghost:hover { border-color: var(--white); }
.hero-stats { display: flex; gap: 48px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-display); font-size: 1.8rem; color: var(--white); font-weight: 700; }
.hero-stats span { color: var(--gray-400); font-size: 0.85rem; margin-top: 2px; }

/* ===== Trust strip ===== */
.trust-strip {
  background: var(--gray-100);
  padding: 22px 0;
  text-align: center;
}
.trust-strip p {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy-700);
  font-size: 0.95rem;
}

/* ===== Sections generic ===== */
.section { padding: 100px 0; }
.section-alt { background: var(--gray-100); }
.section-eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--blue-accent);
  margin-bottom: 14px;
}
.section h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); max-width: 700px; }
.section-lead { max-width: 620px; font-size: 1.08rem; color: #55607a; }

/* ===== Services ===== */
.services { background: var(--white); }
.cards.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.card {
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: 1px solid transparent;
}
.card:hover {
  background: var(--white);
  box-shadow: var(--shadow-md);
  border-color: rgba(10,21,48,0.06);
  transform: translateY(-4px);
}
.card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.card p { font-size: 0.96rem; margin-bottom: 0; }
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  margin-bottom: 22px;
  background: var(--navy-900);
  position: relative;
}
.card-icon::before {
  content: "";
  position: absolute;
  inset: 14px;
  background: var(--blue-accent-light);
}
.card-icon[data-icon="automation"]::before {
  -webkit-mask: radial-gradient(circle, transparent 30%, black 31%) center/contain no-repeat;
  mask: radial-gradient(circle, transparent 30%, black 31%) center/contain no-repeat;
  border-radius: 50%;
}
.card-icon[data-icon="employee"]::before {
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
}
.card-icon[data-icon="dashboard"]::before {
  border-radius: 4px;
  inset: 12px;
  background: linear-gradient(180deg, var(--blue-accent-light) 0 40%, transparent 40% 45%, var(--blue-accent-light) 45% 100%);
}

/* ===== Process ===== */
.process { background: var(--navy-950); color: var(--white); }
.process h2, .process .section-eyebrow { color: var(--white); }
.process .section-eyebrow { color: var(--blue-accent-light); }
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 52px;
}
.process-step { border-top: 2px solid rgba(255,255,255,0.15); padding-top: 22px; }
.step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--blue-accent-light);
  display: block;
  margin-bottom: 12px;
}
.process-step h3 { color: var(--white); font-size: 1.15rem; }
.process-step p { color: var(--gray-300); font-size: 0.94rem; margin-bottom: 0; }

/* ===== Industries ===== */
.industries { background: var(--white); text-align: left; }
.industry-chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.industry-chips span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--gray-100);
  color: var(--navy-800);
  border: 1px solid rgba(10,21,48,0.06);
}
.industry-chips a:hover { color: var(--blue-accent); }

.page-copy { max-width: 760px; }
.page-copy h2 { font-size: clamp(1.45rem, 2.6vw, 2.05rem); max-width: 22em; }
.page-copy p { font-size: 1.05rem; }
.page-copy p:last-child { margin-bottom: 0; }
.page-copy a,
.faq-list a,
.trust-strip a,
.local-note a {
  color: var(--blue-accent);
  font-weight: 600;
}
.page-copy a:hover,
.faq-list a:hover,
.trust-strip a:hover,
.local-note a:hover { text-decoration: underline; }
.local-note { margin-top: 28px; max-width: 640px; }

/* ===== Onboarding form ===== */
.onboarding { background: var(--gray-100); }
.onboarding-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.3fr;
  gap: 56px;
  align-items: start;
}
.onboarding-points { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.onboarding-points li {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--navy-800);
  padding-left: 26px;
  position: relative;
}
.onboarding-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--success);
}

.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 100px;
}
.form-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--gray-100);
  overflow: hidden;
  margin-bottom: 10px;
}
.form-progress-bar {
  height: 100%;
  width: 16.66%;
  background: linear-gradient(90deg, var(--blue-accent), var(--blue-accent-light));
  border-radius: 999px;
  transition: width 0.3s ease;
}
.form-steps-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-400);
  margin-bottom: 26px;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}

.form-step { display: none; animation: fadeIn 0.25s ease; }
.form-step.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.form-step h3 { font-size: 1.3rem; margin-bottom: 22px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy-800);
  margin-bottom: 8px;
  font-family: var(--font-display);
}
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field input[type="url"],
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid #dfe3ec;
  font-family: var(--font-body);
  font-size: 0.96rem;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-field textarea { resize: vertical; min-height: 90px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue-accent);
  box-shadow: 0 0 0 4px rgba(59,110,242,0.12);
}
.form-field input:invalid.touched,
.form-field select:invalid.touched,
.form-field textarea:invalid.touched {
  border-color: var(--error);
}
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b95ab' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 40px; }

.field-hint { font-size: 0.8rem; color: var(--gray-400); margin-top: 8px; line-height: 1.4; }

.hidden-field { position: absolute; left: -9999px; }

.pill-group { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  padding: 11px 20px;
  border-radius: 999px;
  border: 1.5px solid #dfe3ec;
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy-800);
  cursor: pointer;
  transition: all 0.15s ease;
}
.pill:hover { border-color: var(--blue-accent); }
.pill.selected {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: var(--white);
}

.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--navy-800);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid #dfe3ec;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.checkbox-item:has(input:checked) { border-color: var(--blue-accent); background: rgba(59,110,242,0.06); }
.checkbox-item input { width: 16px; height: 16px; accent-color: var(--blue-accent); flex-shrink: 0; }

.review-lead { font-size: 0.92rem; margin-bottom: 20px; }
.review-grid { display: flex; flex-direction: column; gap: 14px; }
.review-item {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 16px;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}
.review-item dt { font-weight: 600; color: var(--navy-800); font-family: var(--font-display); white-space: nowrap; }
.review-item dd { margin: 0; color: #4a5470; text-align: right; }

.form-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 32px; gap: 16px; }
.form-nav #prevBtn { visibility: hidden; }
.form-nav #prevBtn.show { visibility: visible; }
.form-error { color: var(--error); font-size: 0.85rem; margin-top: 14px; text-align: center; min-height: 1em; }

.form-success { display: none; text-align: center; padding: 30px 10px; }
.form-success.show { display: block; }
.form-success .success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--success);
  color: var(--white);
  font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}

/* ===== FAQ ===== */
.faq { background: var(--white); }
.industries + .faq { background: var(--gray-100); }
.faq-list { margin-top: 40px; max-width: 780px; display: flex; flex-direction: column; gap: 12px; }
.faq-list details {
  border: 1.5px solid #e6e9f2;
  border-radius: var(--radius-md);
  padding: 20px 24px;
}
.faq-list summary {
  font-family: var(--font-display);
  font-weight: 600;
  cursor: pointer;
  color: var(--navy-900);
  list-style: none;
  position: relative;
  padding-right: 30px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0; top: -2px;
  font-size: 1.3rem;
  color: var(--blue-accent);
  transition: transform 0.2s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { margin-top: 14px; margin-bottom: 0; font-size: 0.95rem; }

/* ===== CTA band ===== */
.cta-band {
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  padding: 80px 0;
}
.cta-inner { text-align: center; max-width: 620px; margin: 0 auto; }
.cta-inner h2 { color: var(--white); }
.cta-inner p { color: var(--gray-300); margin-bottom: 30px; }
.cta-inner a:not(.btn) { color: var(--blue-accent-light); font-weight: 600; }
.cta-inner a:not(.btn):hover { text-decoration: underline; }

/* ===== Footer ===== */
.site-footer { background: var(--navy-950); color: var(--gray-300); padding: 60px 0 0; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand-logo { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.footer-icon { height: 52px; width: auto; }
.footer-wordmark { height: 30px; width: auto; }
.footer-brand p { color: var(--gray-400); font-size: 0.85rem; margin: 0; }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a { font-size: 0.9rem; font-weight: 500; color: var(--gray-300); }
.footer-links a:hover { color: var(--white); }
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  font-style: normal;
  max-width: 280px;
}
.footer-contact a { font-weight: 600; color: var(--blue-accent-light); }
.footer-contact span { color: var(--gray-300); font-size: 0.9rem; line-height: 1.45; }
.footer-bottom { padding: 22px 0; }
.footer-bottom p { margin: 0; font-size: 0.8rem; color: var(--gray-400); text-align: center; }

/* ===== Thank you page ===== */
.thankyou-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(120% 120% at 15% 0%, #0e1c40 0%, var(--navy-950) 60%);
  padding: 40px 20px;
}
.thankyou-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 56px 44px;
  max-width: 480px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.thankyou-brand-logo { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 0 auto 28px; }
.thankyou-icon { height: 64px; width: auto; }
.thankyou-wordmark { height: 36px; width: auto; }
.thankyou-card .success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--success);
  color: var(--white);
  font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.thankyou-card .btn { margin-top: 20px; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .onboarding-inner { grid-template-columns: 1fr; }
  .form-card { position: static; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .cards.services-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .site-header .container { padding: 0 16px; }
  .nav-inner { height: 76px; }
  .brand { gap: 8px; }
  .brand-icon { height: 32px; }
  .brand-wordmark { height: 18px; }
  .nav-toggle { width: 34px; height: 34px; }

  .main-nav {
    position: fixed;
    top: 76px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 24px 24px;
    transform: translateY(-130%);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
    border-bottom: 1px solid rgba(10,21,48,0.08);
  }
  .main-nav.open { transform: translateY(0); opacity: 1; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid rgba(10,21,48,0.06); }
  .main-nav a.nav-cta { text-align: center; margin-top: 12px; border-bottom: none; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { padding: 110px 0 70px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-stats { gap: 28px; }

  .section { padding: 70px 0; }
  .process-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .checkbox-grid { grid-template-columns: 1fr; }
  .form-card { padding: 28px 22px; }
  .form-nav { flex-wrap: wrap; }
  .form-nav .btn { flex: 1; }
  .review-item { flex-direction: column; }
  .review-item dd { text-align: left; }

  .footer-brand-logo { gap: 8px; flex-wrap: wrap; }
  .footer-icon { height: 32px; }
  .footer-wordmark { height: 18px; }
}
