/* === Agentiz Site === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Source+Sans+3:wght@300;400;500;600;700;800&display=swap');

:root {
  /* LIGHT THEME (default) */
  --bg-1: #f4fafd;
  --bg-2: #ffffff;
  --d1: #000654;
  --d2: #3b64ef;
  --d3: #71ed86;
  --t1: #000654;
  --t2: #000034;
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-bd: rgba(0, 6, 84, 0.12);
  --glass-bd-strong: rgba(0, 6, 84, 0.22);
  --shadow: 0 4px 24px rgba(0, 6, 84, 0.06), 0 1px 3px rgba(0, 6, 84, 0.04);
  --shadow-lg: 0 24px 60px rgba(0, 6, 84, 0.10), 0 8px 20px rgba(0, 6, 84, 0.06);
  --line: rgba(0, 6, 84, 0.08);
  --hairline: rgba(0, 6, 84, 0.06);
}

[data-theme="dark"] {
  --bg-1: #000034;
  --bg-2: #000654;
  --d1: #3166f6;
  --d2: #11ef78;
  --d3: #d1fc6d;
  --t1: #f4fafd;
  --t2: #c0ced3;
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-bd: rgba(255, 255, 255, 0.10);
  --glass-bd-strong: rgba(255, 255, 255, 0.18);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5), 0 8px 20px rgba(0, 0, 0, 0.3);
  --line: rgba(255, 255, 255, 0.08);
  --hairline: rgba(255, 255, 255, 0.05);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Source Sans 3', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-1);
  color: var(--t2);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

.font-display {
  font-family: 'Inter', 'Source Sans 3', sans-serif;
  letter-spacing: -0.02em;
  font-weight: 800;
  line-height: 1;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* === CONTAINER === */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 768px) {
  .container { padding: 0 20px; }
}

/* === GLASS BUTTON === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  background: var(--glass-bg);
  border: 1px solid var(--glass-bd-strong);
  color: var(--t1);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
  border-color: var(--d2);
  box-shadow: 0 6px 24px color-mix(in oklch, var(--d2) 18%, transparent);
}
.btn-primary {
  background: var(--d1);
  color: var(--bg-1);
  border-color: var(--d1);
}
[data-theme="dark"] .btn-primary {
  background: var(--d1);
  color: #ffffff;
  border-color: var(--d1);
}
.btn-primary:hover {
  background: var(--d2);
  border-color: var(--d2);
  color: #000034;
}
.btn-accent {
  background: var(--d3);
  color: #000034;
  border-color: var(--d3);
}
.btn-accent:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}
.btn .arrow { transition: transform 0.25s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* === NAV === */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 0;
  transition: all 0.3s ease;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-bd);
  border-radius: 999px;
  padding: 8px 8px 8px 24px;
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow: var(--shadow);
}
.nav.scrolled .nav-inner {
  background: color-mix(in oklch, var(--bg-2) 78%, transparent);
}
.nav-logo {
  display: flex; align-items: center;
  height: 32px;
  flex-shrink: 0;
}
.nav-logo img { height: 100%; width: auto; }
.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-menu a {
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--t2);
  border-radius: 999px;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.nav-menu a:hover {
  color: var(--t1);
  background: color-mix(in oklch, var(--d2) 8%, transparent);
}
.nav-cta {
  flex-shrink: 0;
}
.nav-burger { display: none; }

@media (max-width: 1024px) {
  .nav-menu { display: none; }
  .nav-burger {
    display: flex;
    width: 44px; height: 44px;
    align-items: center; justify-content: center;
    border-radius: 999px;
    border: 1px solid var(--glass-bd);
  }
  .nav-cta .btn-text { display: none; }
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--bg-1);
  padding: 100px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a {
  padding: 18px 0;
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.018em;
  color: var(--t1);
  border-bottom: 1px solid var(--line);
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  overflow: hidden;
}
.hero-grid {
  position: relative;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-bd);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--d1);
  margin-bottom: 28px;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px;
  background: var(--d2);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--d2);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero h1 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--t1);
  margin: 0 0 28px;
  font-weight: 800;
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--d2) 0%, var(--d3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--t2);
  margin: 0 auto 32px;
  max-width: 680px;
}
.hero-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  max-width: 760px;
}
.hero-list li {
  font-size: 14.5px;
  color: var(--t1);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-list li::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--d2);
  border-radius: 50%;
  flex-shrink: 0;
}
.hero-canvas-wrap {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  max-width: none;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.hero-canvas-wrap canvas {
  width: 100% !important;
  height: 100% !important;
  opacity: 0.85;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at center, transparent 0%, transparent 40%, var(--bg-1) 95%);
}
.hero-content > * { position: relative; z-index: 2; }

@media (max-width: 900px) {
  .hero { padding-top: 120px; padding-bottom: 60px; }
  .hero-list { gap: 8px 20px; }
  .hero-canvas-wrap canvas { opacity: 0.4; }
}

/* === SECTION === */
section { position: relative; }
.section-pad { padding: 120px 0; }
@media (max-width: 768px) { .section-pad { padding: 80px 0; } }
.section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--d1);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--d1);
  display: inline-block;
}
.section-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  color: var(--t1);
  margin: 0 0 24px;
  max-width: 900px;
  letter-spacing: -0.022em;
  font-weight: 800;
}
.section-lead {
  font-size: 18px;
  color: var(--t2);
  max-width: 700px;
  margin: 0 0 64px;
  line-height: 1.55;
}

/* === LOGO MARQUEE === */
.marquee {
  padding: 60px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: var(--bg-1);
  position: relative;
  overflow: hidden;
}
.marquee::before, .marquee::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 180px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg-1), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--bg-1), transparent); }
.marquee-track {
  display: flex;
  gap: 80px;
  animation: marquee 38s linear infinite;
  width: max-content;
}
.marquee-item {
  display: flex; align-items: center;
  height: 56px;
  flex-shrink: 0;
  opacity: 0.65;
  transition: opacity 0.3s;
}
.marquee-item:hover { opacity: 1; }
.marquee-item img {
  height: 100%;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  /* Light mode: convert any logo color to dark blue (#000654) */
  filter: brightness(0) saturate(100%) invert(8%) sepia(86%) saturate(4476%) hue-rotate(238deg) brightness(60%) contrast(120%);
}
[data-theme="dark"] .marquee-item img {
  /* Dark mode: white logos */
  filter: brightness(0) invert(1);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* === SERVICE CARDS === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 1024px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  position: relative;
  padding: 32px 28px;
  border-radius: 22px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  min-height: 360px;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, color-mix(in oklch, var(--d2) 6%, transparent) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.35s;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--d2);
  box-shadow: var(--shadow-lg);
}
.service-card:hover::before { opacity: 1; }
.service-num {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--d1);
  opacity: 0.7;
  margin-bottom: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.service-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: color-mix(in oklch, var(--d2) 12%, transparent);
  border: 1px solid color-mix(in oklch, var(--d2) 24%, transparent);
  display: flex; align-items: center; justify-content: center;
  color: var(--d1);
}
.service-title {
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  line-height: 1.15;
  color: var(--t1);
  margin: 0 0 14px;
  letter-spacing: -0.018em;
  font-weight: 700;
}
.service-desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--t2);
  margin: 0 0 20px;
  flex: 1;
}
.service-tag {
  font-size: 13px;
  font-weight: 600;
  color: var(--d1);
  margin-bottom: 24px;
  padding-left: 12px;
  border-left: 2px solid var(--d2);
  line-height: 1.4;
}
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--t1);
  margin-top: auto;
}
.service-link .arrow { transition: transform 0.25s; }
.service-card:hover .service-link .arrow { transform: translateX(4px); color: var(--d2); }

/* === SECTORS === */
.sectors {
  background: var(--bg-2);
  border-radius: 32px;
  padding: 56px;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
}
.sector-tabs {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sector-tab {
  text-align: left;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 500;
  color: var(--t2);
  border-radius: 12px;
  border-left: 2px solid transparent;
  transition: all 0.25s;
}
.sector-tab:hover { color: var(--t1); }
.sector-tab.active {
  color: var(--t1);
  border-left-color: var(--d2);
  background: color-mix(in oklch, var(--d2) 6%, transparent);
  font-weight: 600;
}
.sector-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  animation: sectorFade 0.5s ease-out forwards;
}
@keyframes sectorFade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.sector-image {
  aspect-ratio: 4/5;
  border-radius: 20px;
  background: linear-gradient(135deg, color-mix(in oklch, var(--d1) 20%, var(--bg-1)), color-mix(in oklch, var(--d2) 30%, var(--bg-1)));
  position: relative;
  overflow: hidden;
}
.sector-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent 0 12px, color-mix(in oklch, var(--bg-2) 30%, transparent) 12px 13px);
}
.sector-image .label {
  position: absolute;
  bottom: 20px; left: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--bg-1);
  letter-spacing: 0.1em;
  background: rgba(0,0,0,0.4);
  padding: 6px 10px;
  border-radius: 6px;
  z-index: 2;
}
.sector-text h3 {
  font-family: 'Inter', sans-serif;
  font-size: 32px;
  color: var(--t1);
  margin: 0 0 12px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.sector-text p {
  font-size: 15.5px;
  color: var(--t2);
  margin: 0 0 28px;
  line-height: 1.6;
}
.sector-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.stat-num {
  font-family: 'Inter', sans-serif;
  font-size: 36px;
  color: var(--d1);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.025em;
  font-weight: 800;
}
.stat-label {
  font-size: 12.5px;
  color: var(--t2);
  line-height: 1.4;
}
@media (max-width: 900px) {
  .sectors { grid-template-columns: 1fr; padding: 32px; gap: 32px; }
  .sector-tabs { flex-direction: row; overflow-x: auto; gap: 8px; }
  .sector-tab { white-space: nowrap; flex-shrink: 0; }
  .sector-content { grid-template-columns: 1fr; }
}

/* === BENEFITS CARDS === */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1024px) { .benefits-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .benefits-grid { grid-template-columns: 1fr; } }

.benefit-card {
  position: relative;
  padding: 28px 24px;
  border-radius: 20px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 220px;
  overflow: hidden;
}
.benefit-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, color-mix(in oklch, var(--d2) 7%, transparent) 0%, transparent 65%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.benefit-card:hover {
  transform: translateY(-3px);
  border-color: var(--d2);
  box-shadow: var(--shadow-lg);
}
.benefit-card:hover::before { opacity: 1; }
.benefit-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
}
.benefit-card-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: color-mix(in oklch, var(--d2) 12%, transparent);
  border: 1px solid color-mix(in oklch, var(--d2) 24%, transparent);
  display: flex; align-items: center; justify-content: center;
  color: var(--d1);
  flex-shrink: 0;
}
.benefit-card-num {
  font-family: 'Inter', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--d2);
  line-height: 1;
  letter-spacing: -0.025em;
}
.benefit-card-title {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  color: var(--t1);
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 700;
  margin: 0;
  position: relative;
}
.benefit-card-desc {
  font-size: 13.5px;
  color: var(--t2);
  line-height: 1.55;
  margin: 0;
  position: relative;
  flex: 1;
}

/* === BIG CTA === */
.big-cta {
  text-align: center;
  background: linear-gradient(135deg, var(--d1) 0%, color-mix(in oklch, var(--d1) 70%, var(--d2)) 100%);
  border-radius: 32px;
  padding: 96px 48px;
  position: relative;
  overflow: hidden;
}
.big-cta::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(49,102,246,0.55), transparent 60%);
  filter: blur(60px);
}
.big-cta::after {
  content: '';
  position: absolute;
  bottom: -50%; left: -10%;
  width: 700px; height: 700px;
  background:
    radial-gradient(circle at 30% 30%, rgba(49,102,246,0.45), transparent 55%),
    radial-gradient(circle at 60% 60%, rgba(17,239,120,0.35), transparent 55%),
    radial-gradient(circle at 80% 85%, rgba(209,252,109,0.30), transparent 55%);
  filter: blur(80px);
}
[data-theme="light"] .big-cta::after {
  background: radial-gradient(circle, color-mix(in oklch, var(--d3) 40%, transparent), transparent 60%);
}
.big-cta > * { position: relative; z-index: 2; }
.big-cta h2 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(30px, 4vw, 48px);
  color: #ffffff;
  margin: 0 0 20px;
  line-height: 1.1;
  letter-spacing: -0.022em;
  font-weight: 800;
}
.big-cta p {
  font-size: 17px;
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin: 0 auto 36px;
}
.big-cta .actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.big-cta .btn { color: var(--t1); }
.big-cta .btn-primary {
  background: #ffffff;
  color: var(--d1);
  border-color: #ffffff;
}
.big-cta .btn-primary:hover {
  background: var(--d3);
  border-color: var(--d3);
  color: #000034;
}
.big-cta .btn-ghost {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.3);
  color: #ffffff;
}
.big-cta .btn-ghost:hover { background: rgba(255,255,255,0.14); }

/* === PROCESS === */
.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 28px; left: 8%; right: 8%;
  height: 1px;
  background: linear-gradient(90deg, var(--d1) 0%, var(--d2) 50%, var(--d3) 100%);
  opacity: 0.4;
}
.process-step {
  position: relative;
  padding: 0 16px;
}
.process-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--d2);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  color: var(--d1);
  margin: 0 auto 24px;
  position: relative;
  z-index: 2;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.process-step:nth-child(1) .process-num { color: var(--d1); border-color: var(--d1); }
.process-step:nth-child(5) .process-num { color: #000034; background: var(--d3); border-color: var(--d3); }
[data-theme="dark"] .process-step:nth-child(5) .process-num { color: #000034; }
.process-step h4 {
  font-family: 'Inter', sans-serif;
  font-size: 19px;
  color: var(--t1);
  margin: 0 0 10px;
  text-align: center;
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 700;
}
.process-step p {
  font-size: 13.5px;
  color: var(--t2);
  text-align: center;
  margin: 0;
  line-height: 1.5;
}
@media (max-width: 900px) {
  .process-steps { grid-template-columns: 1fr; gap: 24px; }
  .process-steps::before { display: none; }
  .process-step { display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start; padding: 0; }
  .process-num { margin: 0; }
  .process-step h4, .process-step p { text-align: left; }
}

/* === CASES CAROUSEL === */
.cases-track {
  position: relative;
}
.case-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  min-height: 540px;
}
.case-image {
  position: relative;
  background: linear-gradient(135deg, color-mix(in oklch, var(--d1) 40%, var(--bg-1)), color-mix(in oklch, var(--d2) 50%, var(--bg-1)));
  overflow: hidden;
}
.case-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 24px, color-mix(in oklch, var(--bg-2) 25%, transparent) 24px 25px),
    repeating-linear-gradient(90deg, transparent 0 24px, color-mix(in oklch, var(--bg-2) 25%, transparent) 24px 25px);
}
.case-image .placeholder-label {
  position: absolute;
  bottom: 24px; left: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.5);
  padding: 6px 10px;
  border-radius: 6px;
  letter-spacing: 0.1em;
  z-index: 2;
}
.case-body {
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.case-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: color-mix(in oklch, var(--d2) 12%, transparent);
  border: 1px solid color-mix(in oklch, var(--d2) 24%, transparent);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--d1);
  width: fit-content;
  margin-bottom: 24px;
}
.case-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(24px, 2.6vw, 34px);
  color: var(--t1);
  line-height: 1.15;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.case-desc {
  font-size: 15.5px;
  color: var(--t2);
  line-height: 1.6;
  margin: 0 0 28px;
}
.case-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 32px;
}
.case-result {
  font-size: 13px;
  color: var(--t1);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.45;
}
.case-result .check {
  flex-shrink: 0;
  color: var(--d2);
  margin-top: 2px;
}
.cases-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
  gap: 24px;
}
.cases-dots { display: flex; gap: 8px; }
.case-dot {
  width: 24px; height: 4px;
  border-radius: 4px;
  background: var(--line);
  transition: all 0.3s;
}
.case-dot.active { background: var(--d1); width: 40px; }
.cases-arrows { display: flex; gap: 8px; }
.case-arrow {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--glass-bd-strong);
  background: var(--glass-bg);
  display: flex; align-items: center; justify-content: center;
  color: var(--t1);
  transition: all 0.2s;
}
.case-arrow:hover { background: var(--d1); color: var(--bg-1); border-color: var(--d1); }

@media (max-width: 900px) {
  .case-card { grid-template-columns: 1fr; min-height: auto; }
  .case-image { aspect-ratio: 16/10; }
  .case-body { padding: 32px 28px; }
  .case-results { grid-template-columns: 1fr; }
}

/* === TEAM === */
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.team-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 280px 1fr;
}
.team-photo {
  background: #000034;
  position: relative;
  overflow: hidden;
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.2);
}
.team-info {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.team-info h4 {
  font-family: 'Inter', sans-serif;
  font-size: 26px;
  color: var(--t1);
  margin: 0 0 4px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.team-role {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--d1);
  margin-bottom: 16px;
}
.team-bio {
  font-size: 14px;
  color: var(--t2);
  line-height: 1.55;
  margin: 0 0 24px;
}
.team-socials {
  display: flex; gap: 8px;
}
.team-socials a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--t1);
  transition: all 0.2s;
}
.team-socials a:hover { background: var(--d1); color: var(--bg-1); border-color: var(--d1); }

@media (max-width: 1024px) { .team-grid { grid-template-columns: 1fr; } }
@media (max-width: 540px) {
  .team-card { grid-template-columns: 1fr; }
  .team-photo { aspect-ratio: 1.4; }
}

/* === FOOTER === */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding: 80px 0 32px;
  margin-top: 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line);
}
.footer-brand img { height: 36px; margin-bottom: 20px; }
.footer-brand p {
  font-size: 14px;
  color: var(--t2);
  max-width: 320px;
  margin: 0 0 24px;
  line-height: 1.55;
}
.footer-socials { display: flex; gap: 8px; }
.footer-socials a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--t1);
  transition: all 0.2s;
}
.footer-socials a:hover { background: var(--d1); color: var(--bg-1); border-color: var(--d1); }
.footer h5 {
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.1em;
  font-size: 12.5px;
  color: var(--t1);
  margin: 0 0 18px;
  text-transform: uppercase;
  font-weight: 700;
}
.footer-menu { display: flex; flex-direction: column; gap: 10px; }
.footer-menu a {
  font-size: 14px;
  color: var(--t2);
  transition: color 0.2s;
}
.footer-menu a:hover { color: var(--d1); }
.newsletter {
  display: flex;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 4px 4px 16px;
  margin-bottom: 12px;
}
.newsletter input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--t1);
  outline: none;
  min-width: 0;
}
.newsletter input::placeholder { color: var(--t2); opacity: 0.7; }
.newsletter button {
  background: var(--d1);
  color: var(--bg-1);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
}
[data-theme="dark"] .newsletter button { color: #ffffff; }
.newsletter-help { font-size: 12px; color: var(--t2); opacity: 0.7; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  font-size: 12.5px;
  color: var(--t2);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { transition: color 0.2s; }
.footer-bottom a:hover { color: var(--d1); }
.footer-legal { display: flex; gap: 24px; }
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* === DARK MODE: BRAND GRADIENT BORDERS ===
   Replaces solid green accent borders with the Agentiz logo gradient
   (blue → green → lime). Two techniques:
   - Rounded borders: double-background trick (padding-box + border-box).
   - Single-side borders: border-image. */
[data-theme="dark"] {
  --brand-grad:    linear-gradient(180deg, #3166f6 0%, #11ef78 50%, #d1fc6d 100%);
  --brand-grad-d:  linear-gradient(135deg, #3166f6 0%, #11ef78 55%, #d1fc6d 100%);
}

/* Service & benefit cards — hover state */
[data-theme="dark"] .service-card:hover,
[data-theme="dark"] .benefit-card:hover {
  border-color: transparent;
  background:
    linear-gradient(var(--bg-2), var(--bg-2)) padding-box,
    var(--brand-grad-d) border-box;
}

/* Process step circles */
[data-theme="dark"] .process-num {
  border-color: transparent;
  background:
    linear-gradient(var(--bg-2), var(--bg-2)) padding-box,
    var(--brand-grad) border-box;
}
[data-theme="dark"] .process-step:nth-child(5) .process-num {
  /* keep solid lime fill on last step */
  background: var(--d3);
  border: 1px solid var(--d3);
}

/* Icon chips inside cards (service/benefit) */
[data-theme="dark"] .service-icon,
[data-theme="dark"] .benefit-card-icon {
  border-color: transparent;
  background:
    linear-gradient(
      color-mix(in oklch, var(--d2) 12%, var(--bg-2)),
      color-mix(in oklch, var(--d2) 12%, var(--bg-2))
    ) padding-box,
    var(--brand-grad-d) border-box;
}

/* Case tag pill */
[data-theme="dark"] .case-tag {
  border-color: transparent;
  background:
    linear-gradient(
      color-mix(in oklch, var(--d2) 14%, var(--bg-2)),
      color-mix(in oklch, var(--d2) 14%, var(--bg-2))
    ) padding-box,
    var(--brand-grad-d) border-box;
}

/* Single-side borders → border-image */
[data-theme="dark"] .service-tag {
  border-left-color: transparent;
  border-image: var(--brand-grad) 1;
}
[data-theme="dark"] .sector-tab.active {
  border-left-color: transparent;
  border-image: var(--brand-grad) 1;
}

/* Glass buttons — hover state */
[data-theme="dark"] .btn:hover,
[data-theme="dark"] .theme-toggle:hover {
  border-color: transparent;
  background:
    linear-gradient(var(--glass-bg), var(--glass-bg)) padding-box,
    var(--brand-grad-d) border-box;
}
[data-theme="dark"] .btn-primary:hover {
  /* btn-primary fills the interior with d2 on hover — keep that, gradient on edge */
  background:
    linear-gradient(var(--d2), var(--d2)) padding-box,
    var(--brand-grad-d) border-box;
  border-color: transparent;
}

/* utility */
.hide-mobile { }
@media (max-width: 768px) { .hide-mobile { display: none; } }
.text-mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }
