/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --primary: #ff6600;
  --primary-light: rgb(255, 133, 51);
  --primary-dark: hsl(24, 100%, 40%);
  --primary-glow: hsl(24, 100%, 70%);

  --white: #ffffff;
  --off-white: rgb(251, 250, 248);
  --light-gray: oklch(96.241% 0.00246 47.001);
  --gray: hsl(0, 0%, 60%);
  --dark-gray: hsl(0, 0%, 40%);
  --text: rgb(51, 51, 51);
  --text-light: hsl(0, 0%, 45%);

  --shadow-sm: 0 2px 8px hsla(0, 0%, 0%, 0.08);
  --shadow-md: 0 4px 20px hsla(0, 0%, 0%, 0.1);
  --shadow-lg: 0 10px 40px hsla(0, 0%, 0%, 0.15);
  --shadow-glow: 0 0 30px hsla(24, 100%, 50%, 0.3);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition: all 0.3s ease;

  --bg:           var(--light-gray);
  --bg-card:      var(--white);
  --bg-hover:     hsl(30, 10%, 90%);
  --border:       hsl(30, 8%, 87%);
  --border-hover: hsl(30, 8%, 72%);
  --text-primary: var(--text);
  --text-muted:   var(--text-light);
  --text-dim:     var(--gray);
  --accent:       var(--primary);
  --accent-dim:   hsla(24, 100%, 50%, 0.10);
  --green:        #2e8c5f;
  --green-dim:    rgba(46, 140, 95, 0.10);
  --purple:       #6c5fc7;
  --purple-dim:   rgba(108, 95, 199, 0.10);
  --red:          #c94a3d;
  --red-dim:      rgba(201, 74, 61, 0.10);
  --font-serif:   'Instrument Serif', Georgia, serif;
  --font-sans:    'DM Sans', sans-serif;
}

body.dark-mode {
  --primary: #b44a0a;
  --primary-light: rgb(214, 98, 15);
  --primary-dark: rgb(230, 92, 0);
  --primary-glow: hsla(24, 100%, 60%, 0.4);
  --white: rgb(14, 17, 23);
  --off-white: rgb(22, 27, 36);
  --light-gray: #252d3a;
  --gray: #4a5568;
  --dark-gray: #718096;
  --text: #e2e8f0;
  --text-light: #a0aec0;
  --shadow-sm: 0 2px 10px hsla(220, 30%, 4%, 0.65);
  --shadow-md: 0 4px 25px hsla(220, 30%, 4%, 0.75);
  --shadow-lg: 0 10px 45px hsla(220, 30%, 4%, 0.88);

  --bg:           #1a1f2b;
  --bg-card:      var(--off-white);
  --bg-hover:     #2a3040;
  --border:       rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.18);
  --accent-dim:   hsla(24, 100%, 50%, 0.14);
  --green:        #3aad76;
  --green-dim:    rgba(58, 173, 118, 0.13);
  --purple:       #8a7fdb;
  --purple-dim:   rgba(138, 127, 219, 0.13);
  --red:          #e0685a;
  --red-dim:      rgba(224, 104, 90, 0.14);
}

/* ============================================================
   BASE
   ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s ease, color 0.4s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3 { font-weight: 400; }
button, input, textarea, select { font-family: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 2rem; }

.eyebrow {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 0.9rem;
}
.title {
  font-family: var(--font-serif); font-weight: 400; line-height: 1.1;
  color: var(--text-primary);
}
.title em { font-style: italic; color: var(--accent); }
.section-title { font-size: clamp(2rem, 4vw, 2.8rem); }
.section-desc { color: var(--text-muted); font-size: 1.02rem; line-height: 1.7; max-width: 46ch; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.75rem; border-radius: var(--radius-full);
  font-weight: 600; font-size: 0.92rem; border: none; transition: var(--transition);
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.btn-ghost { background: transparent; color: var(--text-primary); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-dark { background: var(--text-primary); color: var(--bg-card); }
.btn-dark:hover { background: var(--accent); color: #fff; }
.btn-block { width: 100%; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1.visible { transition-delay: 0.1s; }
.reveal-delay-2.visible { transition-delay: 0.2s; }
.reveal-delay-3.visible { transition-delay: 0.3s; }

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

/* ============================================================
   SPLIT HERO (shared shell used by all 4 pages)
   ============================================================ */
.hero { padding: 3.5rem 2rem 2rem; overflow: hidden; }
.hero-inner { max-width: 1240px; margin: 0 auto; display: flex; align-items: center; gap: 3rem; }
.hero-copy { flex: 1; max-width: 52%; }
.hero-eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.hero-title { font-family: var(--font-serif); font-size: clamp(2.4rem, 4.4vw, 3.4rem); line-height: 1.08; margin: 0.9rem 0 0; }
.hero-rule { height: 4px; width: 5.5rem; background: var(--accent); border: none; margin: 1.5rem 0; border-radius: 2px; }
.hero-sub { font-size: 1.05rem; color: var(--text-muted); line-height: 1.7; max-width: 48ch; }
.hero-actions { margin-top: 1.9rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-visual { flex: 1; max-width: 48%; display: flex; align-items: center; justify-content: center; }
.hero-bullets { margin-top: 1.6rem; display: flex; flex-direction: column; gap: 0.65rem; }
.hero-bullets li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.92rem; color: var(--text-muted); }
.hero-bullets svg { width: 17px; height: 17px; color: var(--green); flex-shrink: 0; }

@media (max-width: 900px) {
  .hero-inner { flex-direction: column; text-align: center; }
  .hero-copy, .hero-visual { max-width: 100%; }
  .hero-rule { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-bullets { align-items: center; }
}

/* ── Circular clip (Request a demo hero) ── */
.hero-clipped { position: relative; }
.hero-circle {
  position: absolute; top: -30%; right: -14%; width: 44rem; height: 44rem;
  border-radius: 50%; z-index: 0; pointer-events: none;
  background: radial-gradient(circle at 35% 35%, var(--primary-light), var(--primary-dark) 70%);
  opacity: 0.9;
}
.hero-clipped .hero-inner { position: relative; z-index: 1; }
@media (max-width: 900px) { .hero-circle { width: 30rem; height: 30rem; top: -22%; right: -30%; opacity: 0.5; } }

/* ── Shuffle photo grid (Case studies hero) ── */
.shuffle-grid {
  width: 100%; max-width: 460px; aspect-ratio: 1 / 1;
  display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(4, 1fr); gap: 0.4rem;
}
.shuffle-cell {
  border-radius: var(--radius-sm); background-size: cover; background-position: center;
  background-color: var(--bg-hover); box-shadow: var(--shadow-sm);
  opacity: 1; transition: opacity 0.55s ease;
}
.shuffle-cell.is-fading { opacity: 0; }
@media (max-width: 560px) { .shuffle-grid { max-width: 340px; gap: 0.3rem; } }

/* ============================================================
   STAT STRIP
   ============================================================ */
.stat-strip { padding: 0 2rem 4rem; }
.stat-strip-inner {
  max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem; text-align: center;
}
.stat-block b { display: block; font-family: var(--font-serif); font-size: 2.4rem; color: var(--accent); }
.stat-block span { font-size: 0.8rem; color: var(--text-muted); }
@media (max-width: 760px) { .stat-strip-inner { grid-template-columns: repeat(2, 1fr); gap: 2rem; } }

/* ============================================================
   LOGO STRIP
   ============================================================ */
.logo-strip { padding: 2rem 2rem 4.5rem; text-align: center; }
.logo-strip-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 1.8rem; }
.logo-row { max-width: 1000px; margin: 0 auto; display: flex; justify-content: center; align-items: center; gap: 3rem; flex-wrap: wrap; }
.logo-chip { font-family: var(--font-serif); font-size: 1.3rem; color: var(--text-dim); opacity: 0.75; letter-spacing: 0.02em; }

/* ============================================================
   PROCESS MINI-STEPS (shared — used on Request a demo)
   ============================================================ */
.mini-process { padding: 1rem 2rem 5rem; }
.mini-process-head { max-width: 640px; margin: 0 auto 3rem; text-align: center; }
.mini-process-head .section-desc { margin: 0.9rem auto 0; }
.mini-steps { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; position: relative; }
.mini-step { text-align: center; padding: 0 0.6rem; }
.mini-step .num {
  width: 42px; height: 42px; border-radius: 50%; background: var(--accent-dim); color: var(--accent);
  font-family: var(--font-serif); font-size: 1.2rem; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}
.mini-step h4 { font-size: 0.98rem; font-weight: 700; margin-bottom: 0.5rem; }
.mini-step p { font-size: 0.84rem; color: var(--text-muted); line-height: 1.6; }
@media (max-width: 760px) { .mini-steps { grid-template-columns: 1fr; gap: 2rem; } }

/* ============================================================
   CASE STUDIES — editorial spotlight layout
   (inspired by long-form customer-story pages: big pull quotes,
   named attribution, and a scannable meta rail per story)
   ============================================================ */
.case-filter { padding: 0 2rem 2.5rem; display: flex; justify-content: center; gap: 0.6rem; flex-wrap: wrap; }
.case-filter button {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-full);
  padding: 0.55rem 1.2rem; font-size: 0.82rem; font-weight: 600; color: var(--text-muted); transition: var(--transition);
}
.case-filter button.active, .case-filter button:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }

.case-list { max-width: 1080px; margin: 0 auto; padding: 0 2rem 5rem; display: flex; flex-direction: column; gap: 1.5rem; }
.case-item {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 2.6rem; display: grid; grid-template-columns: 220px 1fr; gap: 2.6rem; transition: var(--transition);
}
.case-item:hover { border-color: var(--border-hover); box-shadow: var(--shadow-lg); }

.case-meta { display: flex; flex-direction: column; }
.case-meta .industry-tag {
  align-self: flex-start; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.32rem 0.7rem; border-radius: var(--radius-full); margin-bottom: 1.2rem;
}
.case-item.t-tech .industry-tag { background: var(--accent-dim); color: var(--accent); }
.case-item.t-retail .industry-tag { background: var(--green-dim); color: var(--green); }
.case-item.t-health .industry-tag { background: var(--purple-dim); color: var(--purple); }
.case-meta .company { font-family: var(--font-serif); font-size: 1.5rem; margin-bottom: 1.1rem; line-height: 1.2; }
.case-meta .result b { display: block; font-family: var(--font-serif); font-size: 2.3rem; color: var(--text-primary); line-height: 1.1; }
.case-meta .result span { font-size: 0.8rem; color: var(--text-muted); }
.case-meta .read-link {
  margin-top: 1.4rem; font-size: 0.85rem; font-weight: 700; color: var(--accent);
  display: inline-flex; align-items: center; gap: 0.35rem;
}
.case-meta .read-link svg { width: 14px; height: 14px; transition: transform 0.25s ease; }
.case-item:hover .read-link svg { transform: translateX(3px); }

.case-body { display: flex; flex-direction: column; justify-content: center; border-left: 1px solid var(--border); padding-left: 2.6rem; }
.case-body .pull-quote {
  font-family: var(--font-serif); font-size: 1.5rem; line-height: 1.45; color: var(--text-primary); font-style: italic;
  margin-bottom: 1.5rem;
}
.case-body .pull-quote::before { content: '\201C'; color: var(--accent); }
.case-body .pull-quote::after { content: '\201D'; color: var(--accent); }
.case-attribution { display: flex; align-items: center; gap: 0.8rem; }
.case-attribution .avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), var(--primary-light));
  color: #fff; font-family: var(--font-serif); font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
}
.case-attribution .who b { display: block; font-size: 0.9rem; font-weight: 700; }
.case-attribution .who span { font-size: 0.78rem; color: var(--text-muted); }

@media (max-width: 760px) {
  .case-item { grid-template-columns: 1fr; padding: 2rem; gap: 1.6rem; }
  .case-body { border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 1.6rem; }
}

/* ============================================================
   DEMO FORM (Request a demo hero)
   ============================================================ */
.demo-form-card { width: 100%; max-width: 440px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 2rem; }
.demo-form-card h3 { font-family: var(--font-serif); font-size: 1.4rem; margin-bottom: 0.4rem; }
.demo-form-card .sub { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.form-row { margin-bottom: 1.1rem; }
.form-row label { display: block; font-size: 0.78rem; font-weight: 700; color: var(--text-muted); margin-bottom: 0.4rem; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 0.72rem 0.9rem; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--bg); color: var(--text-primary); font-size: 0.9rem; transition: var(--transition);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--accent); outline: none; }
.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.form-row label .req { color: var(--accent); margin-left: 0.15rem; }
.demo-form-card .required-note { font-size: 0.7rem; color: var(--text-dim); text-align: right; margin-bottom: 1rem; }
.form-note { font-size: 0.72rem; color: var(--text-dim); margin-top: 0.9rem; text-align: center; }
.form-success { display: none; text-align: center; padding: 1.5rem 0; }
.form-success.show { display: block; }
.form-success svg { width: 46px; height: 46px; color: var(--green); margin: 0 auto 1rem; }
.form-success h3 { font-family: var(--font-serif); font-size: 1.3rem; margin-bottom: 0.5rem; }
.form-success p { font-size: 0.88rem; color: var(--text-muted); }
@media (max-width: 480px) { .form-two { grid-template-columns: 1fr; } }

/* ── "Talk to a human" contact strip (Request a demo) ── */
.talk-human {
  margin-top: 2.2rem; display: flex; align-items: center; gap: 1.1rem;
  padding: 1.2rem 1.4rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md);
}
.talk-human .icon-wrap {
  width: 44px; height: 44px; border-radius: 50%; background: var(--accent-dim);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.talk-human .icon-wrap svg { width: 20px; height: 20px; color: var(--accent); }
.talk-human .label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 0.2rem; }
.talk-human a { font-family: var(--font-serif); font-size: 1.15rem; color: var(--text-primary); }
.talk-human a:hover { color: var(--accent); }
@media (max-width: 900px) { .talk-human { justify-content: center; text-align: left; } }

/* ============================================================
   GENERIC CTA BAND
   ============================================================ */
.cta-band { margin: 2rem; padding: 3.5rem 2.5rem; border-radius: var(--radius-lg); text-align: center; background: linear-gradient(135deg, var(--text-primary), #000); color: #fff; }
body.dark-mode .cta-band { background: linear-gradient(135deg, var(--accent-dark, var(--primary-dark)), #000); }
.cta-band h2 { font-family: var(--font-serif); font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin-bottom: 0.8rem; }
.cta-band p { color: rgba(255,255,255,0.75); max-width: 46ch; margin: 0 auto 1.8rem; font-size: 0.98rem; }
.cta-band .btn-primary { background: var(--accent); }
