/* ── AI & Automation page ── */

/* ── 1. Hero ── */
.ai-hero-wrap {
  position: relative;
  width: 100%;
  min-height: 460px;
  padding-top: 72px;
  overflow: hidden;
  background: var(--voy-bg-cream);
}
.ai-hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ai-hero-glow {
  position: absolute; top: -60px; right: -40px;
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(224,37,37,0.14) 0%, transparent 65%);
  pointer-events: none;
}
.ai-hero-fade {
  position: absolute; bottom: 0; left: 0; right: 0; height: 90px;
  background: linear-gradient(to bottom, transparent, var(--voy-bg-cream));
  pointer-events: none;
}
.ai-hero-container {
  position: relative; z-index: 2;
  max-width: 1440px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.ai-hero-inner { padding: 56px 0 40px 96px; max-width: 640px; flex: 1 1 560px; }
.ai-hero-inner h1 {
  font-family: var(--voy-font-heading);
  font-weight: 800;
  font-size: clamp(34px, 3.8vw, 52px);
  line-height: 1.04;
  color: var(--voy-text-heading);
  margin: 18px 0 22px;
  letter-spacing: -0.025em;
}
.ai-hero-inner h1 em { font-style: normal; color: var(--voy-primary); }
.ai-hero-sub {
  font-family: var(--voy-font-body);
  font-size: 17.5px; font-weight: 400;
  color: var(--voy-text-body);
  line-height: 1.65; max-width: 560px;
  margin-bottom: 36px;
}
.ai-hero-buttons { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* hero right visual */
.ai-hero-visual {
  position: relative; z-index: 2;
  flex: 0 0 auto;
  width: 400px;
  max-width: 40%;
  padding-right: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ai-hero-panel {
  position: relative;
  width: 100%;
  max-width: 360px;
  background: rgba(255,255,255,.97);
  border: 1px solid var(--voy-border);
  border-radius: var(--voy-radius-xl);
  box-shadow: 0 0 40px -18px rgba(224,37,37,.22), 0 24px 54px -20px rgba(60,54,44,.2);
  padding: 22px 24px;
}
.ai-hero-float-chip {
  position: absolute; left: -22px; bottom: -20px; z-index: 3;
  display: flex; align-items: center; gap: 10px;
  background: #FFFFFF; border: 1px solid rgba(224,37,37,.28);
  border-radius: 14px; padding: 11px 16px;
  box-shadow: 0 16px 36px -16px rgba(26,26,23,.3);
}
.ai-hero-float-chip .fc-num { font-family: var(--voy-font-heading); font-weight: 800; font-size: 19px; color: var(--voy-primary); letter-spacing: -.01em; }
.ai-hero-float-chip .fc-lbl { font-size: 11px; color: var(--voy-text-muted); line-height: 1.3; max-width: 100px; }
.ai-hero-ring {
  position: absolute; top: -46px; right: -36px;
  width: 130px; height: 130px; border-radius: 50%;
  border: 1px solid rgba(224,37,37,.18);
  pointer-events: none;
}

/* ── 2. Capabilities ── */
.ai-cap-section { background: #FFFFFF; padding: 96px 96px; border-top: 1px solid rgba(0,0,0,0.06); }
.ai-cap-inner { max-width: 1248px; margin: 0 auto; }
.ai-cap-header { max-width: 820px; margin-bottom: 48px; }
.ai-cap-header h2 {
  font-family: var(--voy-font-heading); font-weight: 800;
  font-size: clamp(28px, 3vw, 40px); letter-spacing: -.025em;
  line-height: 1.1; color: var(--voy-text-heading); margin: 14px 0 16px;
}
.ai-cap-header p { font-size: 16px; color: var(--voy-text-body); line-height: 1.65; }
.ai-cap-subheading {
  font-family: var(--voy-font-heading); font-weight: 700;
  font-size: 20px; color: var(--voy-text-heading); letter-spacing: -.015em;
  margin: 0 0 22px;
}
.ai-cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ai-cap-card {
  background: var(--voy-bg-panel-inner);
  border: 1px solid var(--voy-border-light);
  border-radius: var(--voy-radius-lg);
  padding: 26px 24px 28px;
  transition: border-color .25s ease, transform .25s cubic-bezier(.22,.8,.36,1), box-shadow .25s ease;
}
.ai-cap-card:hover { border-color: rgba(224,37,37,.35); transform: translateY(-3px); box-shadow: 0 14px 30px -16px rgba(26,26,23,.18); }
.ai-cap-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: rgba(224,37,37,.08);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.ai-cap-title { font-family: var(--voy-font-heading); font-weight: 700; font-size: 17px; color: var(--voy-text-heading); margin-bottom: 8px; }
.ai-cap-desc { font-size: 13.5px; color: #6A6A5A; line-height: 1.55; margin-bottom: 16px; }
.ai-cap-relevant {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600; color: var(--voy-primary);
  text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s;
}
.ai-cap-relevant:hover { border-color: var(--voy-primary); }
.ai-cap-list { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.ai-cap-list li { font-size: 12.5px; font-family: var(--voy-font-mono); color: #5A5A50; display: flex; align-items: baseline; gap: 8px; }
.ai-cap-list li::before { content: '//'; color: var(--voy-primary); flex: none; }

/* ── 3. Case studies ── */
.ai-cases-section { background: var(--voy-bg-cream); padding: 96px 96px; border-top: 1px solid rgba(0,0,0,0.06); position: relative; overflow: hidden; }
.ai-cases-inner { max-width: 1248px; margin: 0 auto; position: relative; z-index: 1; }
.ai-cases-header { margin-bottom: 40px; max-width: 680px; }
.ai-cases-header h2 {
  font-family: var(--voy-font-heading); font-weight: 800;
  font-size: clamp(28px, 3vw, 40px); letter-spacing: -.025em;
  line-height: 1.1; color: var(--voy-text-heading); margin: 14px 0 16px;
}
.ai-cases-header p { font-size: 16px; color: var(--voy-text-body); line-height: 1.65; }
.ai-tabs-bar { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid rgba(0,0,0,0.1); margin-bottom: 32px; padding-bottom: 14px; }
.ai-tab {
  background: #FFFFFF; border: 1px solid var(--voy-border-light); cursor: pointer;
  padding: 9px 16px; border-radius: var(--voy-radius-pill);
  font-size: 13px; font-weight: 500; color: var(--voy-text-muted);
  transition: all .2s ease; white-space: nowrap; font-family: var(--voy-font-body);
}
.ai-tab.active { background: var(--voy-text-heading); border-color: var(--voy-text-heading); color: #FFFFFF; font-weight: 600; }
.ai-tab:hover:not(.active) { border-color: rgba(224,37,37,.4); color: var(--voy-text-heading); }
.ai-case-panel {
  background: var(--voy-bg-panel);
  border-radius: 16px;
  border: 1px solid #F2EBE0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 20px rgba(0,0,0,0.05);
  padding: 44px 48px;
  display: flex; gap: 56px; align-items: flex-start;
  transition: opacity .25s ease, transform .25s cubic-bezier(.22,.8,.36,1);
}
.ai-case-panel.switching { opacity: 0; transform: translateY(8px); }
.ai-case-left { flex: 1.3; min-width: 0; }
.ai-case-right { width: 320px; flex: none; background: var(--voy-bg-panel-inner); border-radius: 12px; border: 1px solid #EAE9E7; padding: 26px 22px; }
.ai-case-cat { font-size: 12px; font-family: var(--voy-font-mono); font-weight: 500; letter-spacing: .06em; color: var(--voy-primary); text-transform: uppercase; margin-bottom: 14px; }
.ai-case-title { font-family: var(--voy-font-heading); margin: 0 0 16px; font-size: 24px; line-height: 1.25; font-weight: 800; letter-spacing: -.02em; color: var(--voy-text-heading); }
.ai-case-desc { margin: 0 0 24px; font-size: 14.5px; line-height: 1.7; color: #5A5A50; }
.ai-case-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ai-case-metric-label { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--voy-text-muted); margin-bottom: 14px; font-weight: 600; }
.ai-case-metric { padding: 12px 0; border-bottom: 1px solid #EAE7E0; }
.ai-case-metric:last-child { border-bottom: none; padding-bottom: 0; }
.ai-case-metric-num { font-family: var(--voy-font-heading); font-weight: 800; font-size: 21px; color: var(--voy-primary); letter-spacing: -.01em; }
.ai-case-metric-text { font-size: 12.5px; color: #6A6A5A; margin-top: 2px; line-height: 1.4; }

/* ── 4. Stats band ── */
.ai-stats-section { background: #1A1A17; padding: 72px 96px; }
.ai-stats-inner { max-width: 1248px; margin: 0 auto; }
.ai-stats-inner h2 {
  font-family: var(--voy-font-heading); font-weight: 800; text-align: center;
  font-size: clamp(24px, 2.6vw, 32px); color: #FEFCF6; letter-spacing: -.02em; margin-bottom: 48px;
}
.ai-stats-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; }
.ai-stat-cell { text-align: center; padding: 0 12px; border-left: 1px solid rgba(255,255,255,0.08); }
.ai-stat-cell:first-child { border-left: none; }
.ai-stat-num { font-family: var(--voy-font-heading); font-weight: 800; font-size: 32px; color: var(--voy-primary); letter-spacing: -.02em; line-height: 1; }
.ai-stat-label { font-size: 12px; color: rgba(254,252,246,0.5); margin-top: 10px; line-height: 1.4; }

/* ── 5. Tech stack ── */
.ai-stack-section { background: #FFFFFF; padding: 96px 96px; border-top: 1px solid rgba(0,0,0,0.06); }
.ai-stack-inner { max-width: 1248px; margin: 0 auto; }
.ai-stack-header { text-align: center; margin-bottom: 48px; }
.ai-stack-header h2 {
  font-family: var(--voy-font-heading); font-weight: 800;
  font-size: clamp(26px, 3vw, 36px); letter-spacing: -.025em;
  color: var(--voy-text-heading); margin: 14px 0 0;
}
.ai-stack-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ai-stack-col-title { font-size: 12px; font-family: var(--voy-font-mono); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--voy-primary); margin-bottom: 16px; }
.ai-stack-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.ai-stack-pill {
  font-size: 12.5px; color: #5A5A50; font-weight: 500;
  background: var(--voy-bg-panel-inner); border: 1px solid var(--voy-border-light);
  padding: 6px 12px; border-radius: var(--voy-radius-pill);
}

/* ── 6. How we decide ── */
.ai-decide-section { background: #FFFFFF; padding: 96px 96px; border-top: 1px solid rgba(0,0,0,0.06); }
.ai-decide-inner { max-width: 780px; margin: 0 auto; }
.ai-decide-header { text-align: center; margin-bottom: 40px; }
.ai-decide-header h2 {
  font-family: var(--voy-font-heading); font-weight: 800;
  font-size: clamp(26px, 3vw, 36px); color: var(--voy-text-heading); letter-spacing: -.025em; margin: 14px 0 14px;
}
.ai-decide-intro { font-size: 15px; font-weight: 600; color: var(--voy-text-heading); }
.ai-decide-list { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }
.ai-decide-list li {
  font-size: 15px; line-height: 1.6; color: var(--voy-text-body);
  padding: 16px 20px; background: var(--voy-bg-panel-inner);
  border: 1px solid var(--voy-border-light); border-radius: 10px;
}
.ai-decide-close { font-size: 14.5px; color: var(--voy-text-muted); line-height: 1.7; margin-bottom: 32px; }
.ai-safety-box {
  background: rgba(224,37,37,.045); border: 1px solid rgba(224,37,37,.18);
  border-radius: 12px; padding: 26px 28px;
}
.ai-safety-title { font-family: var(--voy-font-heading); font-weight: 700; font-size: 16px; color: var(--voy-text-heading); margin-bottom: 10px; }
.ai-safety-text { font-size: 13.5px; color: #6A6A5A; line-height: 1.7; margin: 0; }

/* ── 7. Closing ── */
.ai-closing-section { background: #0E1628; padding: 96px 96px; border-top: 1px solid rgba(255,255,255,0.06); text-align: center; }
.ai-closing-inner { max-width: 700px; margin: 0 auto; }
.ai-closing-inner h2 {
  font-family: var(--voy-font-heading); font-weight: 800;
  font-size: clamp(26px, 3vw, 38px); color: #FFFFFF; letter-spacing: -.025em; line-height: 1.15; margin: 0 0 18px;
}
.ai-closing-inner p { font-size: 15.5px; color: rgba(255,255,255,0.55); line-height: 1.65; margin: 0 0 32px; }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .ai-hero-inner, .ai-cap-section, .ai-cases-section, .ai-stack-section, .ai-decide-section, .ai-closing-section, .ai-stats-section { padding-left: 48px; padding-right: 48px; }
  .ai-hero-visual { width: 300px; padding-right: 48px; }
  .ai-hero-panel { max-width: 280px; padding: 18px 18px; }
  .ai-hero-float-chip { left: -14px; bottom: -14px; padding: 9px 12px; }
  .ai-cap-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-stack-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-stats-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .ai-stat-cell { border-left: none; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 20px; }
}
@media (max-width: 900px) {
  .ai-case-panel { flex-direction: column; gap: 28px; }
  .ai-case-right { width: 100%; }
}
@media (max-width: 860px) {
  .ai-hero-container { flex-wrap: wrap; }
  .ai-hero-visual { display: none; }
  .ai-hero-inner { flex: 1 1 100%; max-width: 100%; }
}
@media (max-width: 700px) {
  .ai-hero-inner { padding: 56px 24px 32px; }
  .ai-cap-section, .ai-cases-section, .ai-stack-section, .ai-decide-section, .ai-closing-section, .ai-stats-section { padding: 56px 20px 64px; }
  .ai-cap-grid { grid-template-columns: 1fr; }
  .ai-stack-grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .ai-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-case-panel { padding: 28px 20px; }
}
