/* ── VIOLA TECHNOLOGY – SHARED STYLESHEET ── */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap');

:root {
  --purple: #5B3FA6;
  --purple-light: #7B5DC9;
  --purple-glow: rgba(91,63,166,0.18);
  --charcoal: #2C3240;
  --charcoal-mid: #3D4455;
  --cream: #F7F4EE;
  --white: #FFFFFF;
  --text-muted: #7A8099;
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--charcoal);
  overflow-x: hidden;
  /* give body itself breathing room so descenders never clip at edges */
  line-height: 1.6;
}

/* ── SKIP LINK ── */
.skip-link {
  position: absolute; left: -999px; top: 1rem;
  background: var(--purple); color: #fff; padding: 0.5rem 1rem;
  border-radius: 4px; font-size: 13px; z-index: 9999;
}
.skip-link:focus { left: 1rem; }

/* ══════════════════════════════
   NAV
══════════════════════════════ */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 72px;
  background: rgba(247,244,238,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(91,63,166,0.1);
  display: flex; align-items: center;
  padding: 0 48px;
  gap: 20px;
}

.nav-logo {
  display: flex; align-items: center; gap: 11px;
  text-decoration: none; flex-shrink: 0;
  /* extra bottom padding so logo-text descenders don't clip */
  padding-bottom: 2px;
}
.nav-logo svg { width: 34px; height: 34px; }
.nav-logo-text {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: 16px; letter-spacing: .05em; color: var(--charcoal);
  line-height: 1.4;
}
.nav-logo-text span { color: var(--purple); }

/* pill buttons in center */
.nav-pills {
  display: flex; gap: 7px; align-items: center;
  flex: 1; justify-content: center; flex-wrap: wrap;
}
.nav-pill {
  display: inline-flex; align-items: center; gap: 5px;
  /* increased vertical padding so g/y don't clip */
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 12px; font-weight: 600;
  line-height: 1.5;
  border: 1.5px solid rgba(91,63,166,0.18);
  background: transparent; color: var(--charcoal-mid);
  transition: all .2s; text-decoration: none;
  letter-spacing: .01em; white-space: nowrap;
  font-family: 'DM Sans', sans-serif;
}
.nav-pill:hover, .nav-pill.active {
  background: var(--purple); color: #fff; border-color: var(--purple);
  box-shadow: 0 3px 10px rgba(91,63,166,.28);
}
.nav-pill:hover svg, .nav-pill.active svg { stroke: #fff; }

/* right side */
.nav-right {
  display: flex; align-items: center; gap: 12px; flex-shrink: 0;
}
.nav-cta {
  background: var(--purple); color: #fff;
  /* increased vertical padding */
  padding: 10px 22px; border-radius: 6px;
  font-size: 13px; font-weight: 600; text-decoration: none;
  line-height: 1.5; letter-spacing: .03em;
  transition: background .2s, transform .15s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--purple-light); transform: translateY(-1px); }

/* hamburger */
.hamburger {
  display: flex; flex-direction: column; justify-content: center;
  gap: 5px; cursor: pointer; padding: 8px;
  background: none; border: none; flex-shrink: 0;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--charcoal); border-radius: 2px;
  transition: all .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile drawer */
.nav-drawer {
  position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
  background: var(--charcoal); z-index: 190;
  display: flex; flex-direction: column;
  padding: 48px 48px 40px;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.nav-drawer.open { transform: translateX(0); }
.nav-drawer a {
  font-family: 'Space Grotesk', sans-serif; font-size: 28px; font-weight: 700;
  color: rgba(255,255,255,.75); text-decoration: none;
  /* generous padding so descenders breathe */
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
  line-height: 1.4;
  transition: color .2s;
}
.nav-drawer a:hover { color: var(--purple-light); }
.nav-drawer .drawer-cta {
  margin-top: 36px;
  background: var(--purple); color: #fff;
  padding: 18px 32px; border-radius: 8px;
  font-size: 16px; line-height: 1.5; text-align: center;
  border: none;
}

/* ══════════════════════════════
   PAGE SHELL
══════════════════════════════ */
.page-shell {
  padding-top: 72px;
  min-height: 100vh;
}

/* inner page hero banner */
.page-hero {
  background: var(--charcoal);
  /* extra bottom padding for descenders on last line */
  padding: 88px 80px 84px;
  position: relative;
  /* removed overflow:hidden — was clipping descenders on hero text */
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(91,63,166,.45) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero-label {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--purple-light); font-weight: 600;
  margin-bottom: 16px; line-height: 1.6;
  position: relative; z-index: 1;
}
.page-hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 800; letter-spacing: -.02em;
  color: #fff;
  line-height: 1.28;
  max-width: 700px; position: relative; z-index: 1;
  margin-bottom: 24px;
  padding-bottom: 8px;
}
.page-hero p {
  font-size: 18px; font-weight: 300; color: rgba(255,255,255,.6);
  max-width: 560px; line-height: 1.7; position: relative; z-index: 1;
  padding-bottom: 2px;
}

/* content area */
.page-content { padding: 88px 80px; }

/* ══════════════════════════════
   SHARED COMPONENTS
══════════════════════════════ */
.section-label {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--purple); font-weight: 600;
  margin-bottom: 16px; line-height: 1.6;
}
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800; letter-spacing: -.02em;
  color: var(--charcoal);
  margin-bottom: 16px;
  line-height: 1.28;
  padding-bottom: 8px;
}
.section-sub {
  font-size: 16px; color: var(--text-muted);
  max-width: 580px; line-height: 1.75; margin-bottom: 60px;
}

/* cards grid */
.cards-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.card-item {
  background: #fff; border-radius: 16px;
  /* increased padding all round */
  padding: 40px 32px 36px;
  border: 1px solid rgba(0,0,0,.06);
  transition: transform .25s, box-shadow .25s;
  position: relative;
  /* removed overflow:hidden — was clipping descenders */
}
.card-item::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(90deg, var(--purple), var(--purple-light));
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s;
}
.card-item:hover::before { transform: scaleX(1); }
.card-item:hover { transform: translateY(-5px); box-shadow: 0 20px 48px rgba(0,0,0,.09); }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--purple-glow);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 22px;
  flex-shrink: 0;
}
.card-item h3 {
  font-family: 'Space Grotesk', sans-serif; font-size: 18px; font-weight: 700;
  margin-bottom: 12px; color: var(--charcoal);
  line-height: 1.3; padding-bottom: 2px;
}
.card-item p { font-size: 14px; color: var(--text-muted); line-height: 1.75; }
.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--purple); font-size: 13px; font-weight: 600;
  margin-top: 22px; text-decoration: none; transition: gap .2s;
  line-height: 1.5; padding-bottom: 2px;
}
.card-link:hover { gap: 10px; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--purple) 0%, #3D2280 100%);
  padding: 88px 80px;
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
}
.cta-band h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(24px, 3vw, 38px); font-weight: 800;
  color: #fff; letter-spacing: -.02em; max-width: 540px;
  line-height: 1.2; padding-bottom: 4px;
}
.cta-band p { color: rgba(255,255,255,.65); font-size: 16px; margin-top: 14px; line-height: 1.65; }
.cta-right { flex-shrink: 0; display: flex; flex-direction: column; gap: 12px; }
.btn-white {
  background: #fff; color: var(--purple);
  padding: 16px 34px; border-radius: 8px;
  font-size: 15px; font-weight: 700; text-decoration: none;
  line-height: 1.5; letter-spacing: .02em; transition: all .2s; text-align: center;
}
.btn-white:hover { background: var(--cream); transform: translateY(-2px); }
.cta-trust { font-size: 12px; color: rgba(255,255,255,.55); line-height: 1.6; }

/* footer */
.site-footer {
  background: var(--charcoal); border-top: 1px solid rgba(255,255,255,.06);
  padding: 52px 80px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  flex-wrap: wrap;
}
.footer-logo {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  color: #fff; font-size: 15px; line-height: 1.5;
}
.footer-logo span { color: var(--purple-light); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a {
  font-size: 13px; color: rgba(255,255,255,.4);
  text-decoration: none; transition: color .2s;
  line-height: 1.6; padding-bottom: 2px;
}
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,.25); line-height: 1.6; }

/* buttons */
.btn-primary {
  background: var(--purple); color: #fff;
  padding: 15px 32px; border-radius: 8px;
  font-size: 15px; font-weight: 600; text-decoration: none;
  line-height: 1.5; letter-spacing: .02em; transition: all .2s;
  box-shadow: 0 8px 24px rgba(91,63,166,.35);
  display: inline-block;
}
.btn-primary:hover { background: var(--purple-light); transform: translateY(-2px); }

/* contact */
.contact-form-wrap { max-width: 680px; }
.contact-email {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid rgba(91,63,166,.2);
  border-radius: 10px; padding: 18px 24px;
  font-size: 16px; color: var(--purple); text-decoration: none;
  font-weight: 500; margin-bottom: 36px; transition: all .2s;
  line-height: 1.5;
}
.contact-email:hover { border-color: var(--purple); box-shadow: 0 4px 16px rgba(91,63,166,.15); }

/* case study cards */
.case-card {
  background: #fff; border-radius: 16px;
  padding: 44px 36px;
  border: 1px solid rgba(0,0,0,.06);
  margin-bottom: 24px;
  display: grid; grid-template-columns: 1fr auto;
  gap: 24px; align-items: start;
  transition: box-shadow .25s;
}
.case-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,.08); }
.case-tag {
  display: inline-block;
  background: var(--purple-glow); color: var(--purple);
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase;
  /* more vertical padding so tag text doesn't clip */
  padding: 6px 14px; border-radius: 100px;
  margin-bottom: 16px; line-height: 1.5;
}
.case-card h3 {
  font-family: 'Space Grotesk', sans-serif; font-size: 20px; font-weight: 700;
  margin-bottom: 12px; color: var(--charcoal);
  line-height: 1.3; padding-bottom: 2px;
}
.case-card p { font-size: 14px; color: var(--text-muted); line-height: 1.75; }
.case-result {
  text-align: center; flex-shrink: 0; min-width: 120px;
  background: var(--charcoal); border-radius: 12px; padding: 24px 16px;
}
.case-result-num {
  font-family: 'Space Grotesk', sans-serif; font-size: 32px; font-weight: 800;
  color: var(--purple-light); line-height: 1.2;
}
.case-result-lbl { font-size: 11px; color: rgba(255,255,255,.5); margin-top: 6px; line-height: 1.5; }

/* insight cards */
.insights-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.insight-card {
  background: #fff; border-radius: 16px;
  /* removed overflow:hidden — clips descenders in insight-top headings */
  border: 1px solid rgba(0,0,0,.06);
  transition: transform .25s, box-shadow .25s;
}
.insight-card:hover { transform: translateY(-5px); box-shadow: 0 20px 48px rgba(0,0,0,.09); }
.insight-top {
  background: var(--charcoal);
  border-radius: 16px 16px 0 0;
  padding: 32px 28px 28px;
  position: relative;
  /* removed overflow:hidden from here too */
}
.insight-top::after {
  content: ''; position: absolute; bottom: -20px; right: -20px;
  width: 100px; height: 100px; border-radius: 50%;
  background: rgba(91,63,166,.3);
  pointer-events: none;
}
.insight-cat {
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--purple-light); font-weight: 600;
  margin-bottom: 12px; line-height: 1.6;
}
.insight-top h3 {
  font-family: 'Space Grotesk', sans-serif; font-size: 17px; font-weight: 700;
  color: #fff; line-height: 1.35; position: relative; z-index: 1;
  padding-bottom: 4px;
}
.insight-body { padding: 28px 28px 24px; }
.insight-body p { font-size: 13px; color: var(--text-muted); line-height: 1.75; margin-bottom: 18px; }
.insight-link {
  font-size: 13px; font-weight: 600; color: var(--purple);
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
  line-height: 1.5; padding-bottom: 2px;
}
.insight-link:hover { gap: 10px; }
